N
nospam
Guest
I've tried to define a macro-expansion in some Verilog-RTL ...
`define MAXIMUM2( x, y ) ( ((x)>) ? (x) : )
....
parameter IN_WIDTH = 24;
parameter OUT_WIDTH = 32;
parameter BUS_WIDTH = `MAXIMUM2( IN_WIDTH, OUT_WIDTH );
This compiles and evalutates correctly under Modelsim 5.6,
NC-Verilog 4.0, Design Compiler 2003.06-SP1, etc.
But Xilinx Webpack 6.2i spits out an error message saying
something like "`MAXIMUM2 not defined."
....
I'm guessing Xilinx's preprocessor doesn't do macros?
Will this be supported in the future?
`define MAXIMUM2( x, y ) ( ((x)>) ? (x) : )
....
parameter IN_WIDTH = 24;
parameter OUT_WIDTH = 32;
parameter BUS_WIDTH = `MAXIMUM2( IN_WIDTH, OUT_WIDTH );
This compiles and evalutates correctly under Modelsim 5.6,
NC-Verilog 4.0, Design Compiler 2003.06-SP1, etc.
But Xilinx Webpack 6.2i spits out an error message saying
something like "`MAXIMUM2 not defined."
....
I'm guessing Xilinx's preprocessor doesn't do macros?
Will this be supported in the future?