Kiran Sahu
Newbie level 1
sir,
There is problem in defining macros in verilog(compiled in Model Sim)
like Here I used n in program as
module test();
`define n 8
wire i;
assign i = n;
endmodule
then it shows an error as "Undefined variable: n"
kindly, help me out of this error. As I would like to define n in the global scope so that I can use it in another program.
There is problem in defining macros in verilog(compiled in Model Sim)
like Here I used n in program as
module test();
`define n 8
wire i;
assign i = n;
endmodule
then it shows an error as "Undefined variable: n"
kindly, help me out of this error. As I would like to define n in the global scope so that I can use it in another program.