Feb 29, 2012 #1 Y yannsun Newbie level 4 Joined Apr 18, 2007 Messages 6 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,344 Hi all, If a parameter "i" defined in verilog code, but not evaluated, how to call the value outside the code, in SHELL? Thanks. Code: code ------- module any(); define i; // ... ... ... endmodule Code: SHELL ------- set i=$var
Hi all, If a parameter "i" defined in verilog code, but not evaluated, how to call the value outside the code, in SHELL? Thanks. Code: code ------- module any(); define i; // ... ... ... endmodule Code: SHELL ------- set i=$var
Feb 29, 2012 #2 P poluekt Full Member level 2 Joined Dec 11, 2009 Messages 130 Helped 45 Reputation 90 Reaction score 44 Trophy points 1,308 Location Russia Activity points 1,813 run simulator with option +FINISH=10000 inside verilog-code: integer stop_clock; if ($value$plusargs("FINISH=%d", stop_clock)) begin ...
run simulator with option +FINISH=10000 inside verilog-code: integer stop_clock; if ($value$plusargs("FINISH=%d", stop_clock)) begin ...