Memory Structure
●
Determines the word size used for bit buffers, such as conditions and events.
●
●
If a buffer size smaller than the selected word size is sufficient, then the smaller buffer is used.
●
● If there are 3 conditions in the model and the word size selected is 16, then an 8-bit buffer is allocated to hold the 3 conditions.
● If there are 20 conditions in the model and the word size selected is 16, then two buffers are allocated to hold the 20 conditions—one with 16 bits (for the first 16 conditions) and one with 8 bits (for the remaining 4 conditions).
Note: The State variable that holds the current state of a control activity does not follow this rule, and will allocate a buffer with sufficient size to hold the State's topology (up to 32 bits).
●
●
● Byte Orientation
●
Controls the orientation of the bytes inside allocated data larger than a single byte.
●
In addition, you can select the Use Instrumentation check box to control the generation of byte orientation directives in the code (
#ifdef LSBYTE_FIRST
directives). If this option is selected, #ifdef directives will be used in the code to accommodate the two byte orientations. This adds flexibility by making the code easier to change manually.