How to use command line option(compiler directive) inside verilog model

Status
Not open for further replies.

tsuresh

Newbie level 4
Joined
Nov 28, 2008
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,321
Hi,
How can I use the command line option as a switch inside verilog model ?
Ex:
My command line is (say)
ncelab -delay_mode unit
(or)
ncelab -delay_mode zero

How can I use "unit" or "zero" inside verilog model ?
Requirement is:
I want to change some timings depends on this switch.

Regards,
suresh
 


you need to do
ncelab -define delay_mode=unit
ncelab -define delay_mode=zero

and in your code have
`define delay_mode unit
`define delay_mode zero

in you code you can use :
`ifdef
`elsif
else
endif

you can check also the ncvlog manual
**broken link removed**
 

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