Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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
 

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top