V
V.
Guest
I am trying to switch between a simulation library and synthesis only library depending on my environment using Modelsim's predefined pragmas.
I made two packages called intf_defn_sim and intf_defn . They have identical defines, but different values.
I was trying to do the following in order to switch between them:
use work.intf_defn
-- synthesis translate_off
_sim
-- synthesis translate_on
..all;
ModelSim compile currently fails out of this as I think it doesn't recognize the "_" in front of the keyword sim.
Is there a smarter way to do this?
The following compiles without issue, but not quite what I want.
use work
-- synthesis translate_off
..intf_defn
-- synthesis translate_on
..all;
I made two packages called intf_defn_sim and intf_defn . They have identical defines, but different values.
I was trying to do the following in order to switch between them:
use work.intf_defn
-- synthesis translate_off
_sim
-- synthesis translate_on
..all;
ModelSim compile currently fails out of this as I think it doesn't recognize the "_" in front of the keyword sim.
Is there a smarter way to do this?
The following compiles without issue, but not quite what I want.
use work
-- synthesis translate_off
..intf_defn
-- synthesis translate_on
..all;