Forum Discussion
TFisc4
New Contributor
1 year agoQuartus_syn and nested pragma not supported
I have a bunch of vhdl code which needs to be seen from Altera tools but not others, so I am using "altera translate_on/off" nested inside "pragma translate_off/on" directives: library ieee;
use iee...
TFisc4
New Contributor
1 year agoFor instance take this code which compiles for both quartus_map✔& quartus_syn✔:
library ieee; use ieee.std_logic_1164.all; --altera translate_off --altera translate_on library altera_mf; -- Example Altera-specific library use altera_mf.altera_mf_components.all; --altera translate_off --altera translate_on
But that one compiles only on quartus_map✔ and fails on quartus_syn
library ieee; use ieee.std_logic_1164.all; --pragma translate_off --altera translate_on library altera_mf; -- Example Altera-specific library use altera_mf.altera_mf_components.all; --altera translate_off --pragma translate_on