%INITIAL_EQUATIONS%

Code that resets all state variables to the initial state.

If this key is found in a line of the template file during code generation, then that whole line will be copied the same number of times as there are state variables of all types, and in each copy, the %INITIAL_EQUATIONS% key is replaced by an assignment statement of a state variable to its initial value. As a result, this key generates the code that should be executed once in the initialization of the process. None of the input, output or local signals are assigned or referred in this code.

Generators

C/C++/Java, VHDL

Example (C)

void initialize()
{
   %INITIAL_EQUATIONS%
}