syn.directive.reset - 2023.1 English

Vitis Unified IDE and Common Command-Line Reference Manual (UG1553)

Document ID
UG1553
Release Date
2023-07-17
Version
2023.1 English

Description

Adds or removes resets for specific state variables (global or static). The reset port is used to restore the registers and block RAM, connected to the port, to an initial value any time the reset signal is applied. The presence and behavior of the RTL reset port is controlled using the syn.rtl.reset command as described in RTL Configuration.

Greater control over reset is provided through syn.directive.reset. If a variable is a static or global, the RESET pragma or directive is used to explicitly add a reset, or the variable can be removed from the reset by specifying off. This can be particularly useful when static or global arrays are present in the design.

Syntax

syn.directive.reset=[OPTIONS] <location> <variable>
  • <location> is the location (in the format function[/label]) at which the variable is defined.
  • <variable> is the variable to which the directive is applied.

Options

off
  • If off is specified, reset is not generated for the specified variable.

Examples

Adds reset to variable a in function foo even when the global reset setting is none or control.

syn.directive.reset=foo a

Removes reset from variable static int a in function foo even when the global reset setting is state or all.

syn.directive.reset=off foo a