Compiler

translate_off and translate_on VHDL Language Directives



VHDL language directives that direct the Logic Synthesizer to ignore portions of the design code that are specific to simulation and not relevant to logic synthesis.

To use the translate_off and translate_on language directives, you can specify the translate_off language directive in a comment located immediately before the code you want the Logic Synthesizer to ignore, and specify the translate_on language directive in a comment located immediately after the code you want the Logic Synthesizer to ignore. In the comment, precede the language directive with the synthesis keyword.

For example, in the following code, the Logic Synthesizer ignores the code USE std.textio.all;, and performs logic synthesis on any code after the comment -- synthesis translate_on (unless the user uses the translate_off and translate_on language directives again).

-- synthesis translate_off 
USE std.textio.all; 
-- synthesis translate_on 


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.