TRANSLATE_OFF/TRANSLATE_ON OFF/ON - TRANSLATE_OFF/TRANSLATE_ON OFF/ON - 2022.2 English - UG901

Vivado Design Suite User Guide: Synthesis (UG901)

Document ID
UG901
Release Date
2022-11-16
Version
2022.2 English

TRANSLATE_OFF and TRANSLATE_ON instruct the Synthesis tool to ignore blocks of code. These attributes are given within a comment in RTL. The comment can start with one of the following keywords:

synthesis

synopsys

pragma

xilinx

In newer versions of the tool, using a keyword has become optional, the tool will work with just translate_off/on or off/on in the comment.

TRANSLATE_OFF starts the ignore, and it ends with TRANSLATE_ON . These commands cannot be nested.

This attribute can only be set in the RTL.