Visible to Intel only — GUID: mwh1409959923176
Ixiasoft
Visible to Intel only — GUID: mwh1409959923176
Ixiasoft
3.5.15. Read Comments as HDL
The read_comments_as_HDL synthesis directive indicates that the Quartus® Prime software should compile a portion of HDL code that you commented out. This directive allows you to comment out portions of HDL source code that are not relevant for simulation, while instructing the Quartus® Prime software to read and synthesize that same source code. Setting the read_comments_as_HDL directive to on indicates the beginning of commented code that the synthesis tool should read; setting the read_comments_as_HDL directive to off indicates the end of the code.
Formal verification tools do not support the read_comments_as_HDL directive because the tools do not recognize the directive.
In these examples, the Compiler synthesizes the commented code enclosed by read_comments_as_HDL because the directive is visible to the Quartus® Prime Compiler. VHDL 2008 allows block comments, which comments are also supported for synthesis directives.
HDL | Code |
---|---|
Verilog HDL | // synthesis read_comments_as_HDL on // my_rom lpm_rom (.address (address), // .data (data)); // synthesis read_comments_as_HDL off |
VHDL | -- synthesis read_comments_as_HDL on -- my_rom : entity lpm_rom -- port map ( -- address => address, -- data => data, ); -- synthesis read_comments_as_HDL off |
VHDL 2008 | /* synthesis read_comments_as_HDL on */ /* my_rom : entity lpm_rom port map ( address => address, data => data, ); */ synthesis read_comments_as_HDL off */ |