Forum Discussion
Altera_Forum
Honored Contributor
12 years agoFor code only visible to synthesis, you can use
-- ------------------------------------------------------------
-- Synthesis-only
-- ------------------------------------------------------------
--
-- Note: Quartus does not allow comments inside the read
-- comments as HDL block.
--
-- synthesis read_comments_as_HDL on
**** Synthesis VHDL in comments, but no VHDL comments ****
-- synthesis read_comments_as_HDL off
For code only visible to simulation, you can use
-- ------------------------------------------------------------
-- Simulation-only
-- ------------------------------------------------------------
--
-- altera translate_off
*** Simulation only code ***
-- altera translate_on
Cheers, Dave