G
Gammaburst
Guest
How do I put compile-time switches into my Verilog source code so that
it compiles different stuff depending on which compiler I'm using? I
thought this would be easy, like in C where I say "#ifdef __MSVC__" or
"#ifdef __GNUC__", but I can't find any unique pre-defined values in
the Verilog compilers that I'm using (ModelSim, Synplify Pro, and
Xilinx XST). Maybe I just haven't found the right manual page.
it compiles different stuff depending on which compiler I'm using? I
thought this would be easy, like in C where I say "#ifdef __MSVC__" or
"#ifdef __GNUC__", but I can't find any unique pre-defined values in
the Verilog compilers that I'm using (ModelSim, Synplify Pro, and
Xilinx XST). Maybe I just haven't found the right manual page.