T
terabits
Guest
module test;
reg a,b;
initial
begin
a =0;
b = 0;
#10 a= 1;
#10;
$finish;
end
always @ (a or b)
begin
assert (a == b) $display (" a eual to b") ;
else $display (" a is not eual to b") ;
end
endmodule
Model Technology ModelSim SE vlog 6.0b Compiler 2004.12 Dec 1 2004
-- Compiling module test
** Error: assert.sv(17): near "assert": expecting: IDENT THIS
It gives me this error, could any one let me know what causes this ??
reg a,b;
initial
begin
a =0;
b = 0;
#10 a= 1;
#10;
$finish;
end
always @ (a or b)
begin
assert (a == b) $display (" a eual to b") ;
else $display (" a is not eual to b") ;
end
endmodule
Model Technology ModelSim SE vlog 6.0b Compiler 2004.12 Dec 1 2004
-- Compiling module test
** Error: assert.sv(17): near "assert": expecting: IDENT THIS
It gives me this error, could any one let me know what causes this ??