%STATE_UPDATE_EQUATIONS%

Code that transitions the state variables to the next cycle.

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 %STATE_UPDATE_EQUATIONS% key is replaced by an assignment statement of a state variable to a value computed by the last %OUTPUT_UPDATE_EQUATIONS% execution. In schematic terms, this corresponds to that the values of signals connected to the input of Pre blocks are transferred into the memory registers (state variable) that the Pre blocks constitute. As a result, this key generates the code that, together with %OUTPUT_UPDATE_EQUATIONS%, should be executed for each cycle.

Generators

C/C++/Java, VHDL

Example

See %OUTPUT_UPDATE_EQUATIONS%.