Kiran Sahu
Newbie level 1
- Joined
- May 25, 2011
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,288
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.