how to set global include in synplify, like vivado "set global include"

skyworld_cy

Junior Member level 3
Joined
Jun 29, 2011
Messages
31
Helped
0
Reputation
0
Reaction score
1
Trophy points
1,288
Activity points
1,513
Hi,
I have used `define in several verilog files like

Code:
`ifdef FPGA
   ......
`else // FPGA
  ....
`endif // FPGA

I use an .inc file to enable/disable these defines macros. In vivado I can set this inc file as "set global include" so that every verilog file see these define macros. Is there is a way I can implement the same function in synplify? thanks.


regards
skyworld
 

But that's the Verilog way to do it.
with vivado, I can set this inc file as "global include". In this way every verilog file could know what is defined in inc file. I'm not sure how to do this in synplify
 

"Global include" is a non-standard Verilog extension in Vivado, not provided by other tools (at least I'm not aware of). If you want portable code, use standard Verilog language means.
 

Cookies are required to use this site. You must accept them to continue using the site. Learn more…