[Need help]Verilog simulation models problem

Status
Not open for further replies.

cheelgo

Member level 5
Joined
Nov 23, 2004
Messages
82
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
488
Hi,
I am not that familar verilog simulation models,

------
padlib.v
------
module padlib (...);
input ...;
output ..;

wire ...;

...

...

`ifdef cve
buf #0.001 (...);
`else
or #0.001 (...);
`endif

endmodule

Question:
if I only wanna force this model use cve part, HOW can I configure,
can I use set cve true

somebody can help.
thanks in advance?
Cheelgo
 

Any simulator has the optional of "+define+macro...". You can find the detail information of the vcs/ncverilog/ncsim/modelsim/... -help.
 

Hi,

I did not quite understand your question. But if you are trying to configure
the verilog module, use compiler primitives like "#define cve".

RP,
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…