Does Xilinx XST plan on supporting `define macro( X ) ?

Oct 16, 2004 0 Replies

I've downloaded the Webpack 6.3, and found that XST still lacks support for Verilog define-arguments.



`define MINIMUM2( x, y ) ( ((x)>(y)) ? (y) : (x) )



parameter IN_BUS = 16; parameter OUT_BUS = 8;



parameter DATA_BUS = `MINIMUM2( IN_BUS, OUT_BUS );



...



If I try to synthesize this, Xilinx gives me a strange syntax error. It's obviously stumped by my `define macro. Thankfully, I rarely use these constructs in RTL-code, but it's convenient for certain expressions and bit-manipulations.



...



And support for the system-tasks $signed() and $unsigned() would be nice, too!


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required