hulk789
Junior Member level 3
Code:
`define print(v)\
$display("var v=%h",v)
module try();
reg [3:0] test1=4'b1111;
initial begin
`print(test1);
end
endmodule
$display("var v=%h",v)
|
ncvlog: *E,EXPMPA (1.v,2|7): expecting the keyword 'module', 'macromodule' or 'primitive'[A.1].
`print(test1);
|
ncvlog: *E,NOTSTT (1.v,7|15): expecting a statement [9(IEEE)].
module worklib.try:v
errors: 1, warnings: 0