%OUTPUT_UPDATE_EQUATIONS%

Code that computes all local and output signals from the current inputs and states.

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 output and local signals of all types, and in each copy, the %OUTPUT_UPDATE_EQUATIONS% key is replaced by a statement where a local or output signal is computed and assigned. As a result, this key generates the code that, together with %STATE_UPDATE_EQUATIONS%, should be executed for each cycle.

Generators

C/C++/Java, VHDL

Example (C)

void run()
{
   %OUTPUT_UPDATE_EQUATIONS%
   %STATE_UPDATE_EQUATIONS%
}

Example (VHDL)

process (clk)
begin
   if reset = '1' then
      %INITIAL_EQUATIONS%
   elsif clk'event and clk = '1' then
      %STATE_UPDATE_EQUATIONS%
   endif;
end process;
%OUTPUT_UPDATE_EQUATIONS%