Is it possible to define a preprocessor macro in Xilinx ISE

S

Swarna B

Guest
Is it possible to define a macro through the GUI of ISE or by any
command line
means? I mean, just like we give a +define+MACRO_NAME along with a
verilog
compilation commandline in Modelsim or in NC verilog. How do I do it?
As, otherwise, it becomes quite messy affair of commenting and
uncommenting
lines containing `define in the source code. Xilinx Answer records
don't seem to have anything on this.

Regrds
Swarna
 
On 17 Oct 2003 13:23:09 -0700, swarnakumar_ba@yahoo.com (Swarna B)
wrote:
Is it possible to define a macro through the GUI of ISE or by any
command line
means? I mean, just like we give a +define+MACRO_NAME along with a
verilog
compilation commandline in Modelsim or in NC verilog. How do I do it?
As, otherwise, it becomes quite messy affair of commenting and
uncommenting
lines containing `define in the source code. Xilinx Answer records
don't seem to have anything on this.

Regrds
Swarna

I wish I knew your answer!

Please explain how you got that +define to work in ModelSim. I get no
effect. That feature is documented in the pdf manual, but it's not in
html manual, and it's not in the list of command-line options when I
type "vsim -help".
 
Please explain how you got that +define to work in ModelSim. I get no
effect. That feature is documented in the pdf manual, but it's not in
html manual, and it's not in the list of command-line options when I
type "vsim -help".
You need to add +define to "vlog" command instead of "vsim"

Jim Wu
jimwu88NOOOSPAM@yahoo.com (remove capital letters)
http://www.geocities.com/jimwu88/chips
 
On Sat, 25 Oct 2003 15:53:34 GMT, "Jim Wu"
<jimwu88NOOOOSPAM@yahoo.com> wrote:

Please explain how you got that +define to work in ModelSim. I get no
effect. That feature is documented in the pdf manual, but it's not in
html manual, and it's not in the list of command-line options when I
type "vsim -help".

You need to add +define to "vlog" command instead of "vsim"

Jim Wu
Doh! Thanks, works fine. I'll go stand in the corner for an hour.
 

Welcome to EDABoard.com

Sponsor

Back
Top