Memory Blocks

Keep the value available.

Review memory-related components and their behavior. Preserve exact interfaces and state-handling requirements when integrating a block.

Memory Block Models


WriteMemory

WriteMem

File: general_blocks/Memory/WriteMemory.sim
Description
The model places the data structure which is on the store input port into the
memory referenced by the parameter memory_name argument.
Ports

Input Ports

  • store     Data Type: ANY

Output Ports

  • done     Data Type: TRIGGER

Parameters

  • memory_name

RealLocalMem

RealLocMem

File: general_blocks/Memory/RealLocalMem.sim
Description
The model stores the value of the write input into the local memory.
Every read input will cause the current value of the local memory to
be placed on value output. The initial value of the memory is set by
the parameter initial_value.
Ports

Input Ports

  • write     Data Type: REAL
  • read     Data Type: TRIGGER

Output Ports

  • value     Data Type: REAL

Parameters

  • initial_value     Data Type: REAL

ReadMemory

ReadMem

File: general_blocks/Memory/ReadMemory.sim
Description
The model places a copy of the current Data Structure in memory onto the
contents output when the input trigger is enabled.
Ports

Input Ports

  • trigger     Data Type: TRIGGER

Output Ports

  • contents    Data Type: ANY

Parameters

  • memory_name

MultipleBuffers

MultBuff

File: general_blocks/Memory/MultipleBuffers.sim
Description
The model stores the data structure placed on the bufn input at the
buffer number specified on the store input. The number of buffers is
specified by the parameter Number_of_buffers. The store value must
be between zero and Number_of_buffers minus one. The content of a
particular buffer can be obtained by placing the number of that buffer on
the release input port. The content of the specified buffer is placed on the out port.
Ports

Input Ports

  • bufn      Data Type: ANY
  • store     Data Type: INTEGER
  • release  Data Type: INTEGER

Output Ports

  • out        Data Type: ANY

Parameters

  • Number_of_buffers   Data Type: INTEGER

Mem_increment

Mem increment

File: general_blocks/Memory/Mem_increment.sim
Description
The model increments the integer memory by one. The name of the integer memory is
specified by the memory_name parameter. Each time the trigger input is enabled, the
 current value of the memory is incremented by one. The incremented value is then placed
on the value output port.
Ports

Input Ports

  • trigger     Data Type: TRIGGER

Output Ports

  • value      Data Type INTEGER

Parameters

  • memory_name   Data Type: INTEGER

Mem_decrement

Mem dec

File: general_blocks/Memory/Mem_decrement.sim

Description
The model decrements the integer memory by one. The name of the integer memory is
specified by the memory_name parameter. Each time the triggerinput is enabled, the
 current value of the memory is decremented by one. The decremented value is then placed
on the value output port.
Ports

Input Ports

  • trigger Data Type: TRIGGER

Output Ports

  • value Data Type: INTEGER

Parameters

  • memory_name Data Type: INTEGER

LocalMem

File: general_blocks/Memory/LocalMem.sim
Description
The model stores the data structure placed on the write input.
Every time the read input is enabled, the data structure which
was most recently placed on the write input is placed on the
value output port.
Ports

Input Ports

  • write Data Type: ANY
  • read Data Type: TRIGGER

Output Ports

  • value Data Type: ANY

Parameters

  • none

IntLocalMemory

IntLocalMem

File: general_blocks/Memory/IntLocalMemory.sim

Description
The model to store the write input into the local memory.
Every time the read input comes in, the current value of the
local memory is placed on the value output. The initial value
of the memory is set with the parameter initial_value.
Ports

Input Ports

  • write Data Type: INTEGER
  • read Data Type: TRIGGER

Output Ports

  • value Data Type: INTEGER

Parameters

  • initial_value Data Type: INTEGER

ActiveReadMemory

ActReadMem

File: general_blocks/Memory/ActiveReadMemory.sim

Description
The model will place a copy of the data structure in memory each time the memory is modified.
The data structure in memory is sent out the contents output port.

Ports

Input Ports

  • none

Output Ports

  • contents Data Type: ANY DATA STRUCTURE

Parameters

  • memory_name

LocalMem_wCopy

LocalMem wCopy

File: general_blocks/Memory/LocalMem_wCopy.sim
Description
The model holds (stores) the data structure placed on the "write" port. Every time the "read" input is enabled, a new copy of the stored data structure is created and placed on the "value" output port. The stored data structure is destroyed (freed) when a new data structure is written.
Ports

Input Ports

  • write     Data Type: ANY
  • read     Data Type: TRIGGER

Output Ports

  • value     Data Type: ANY

Parameters

  • (none)

LocalMemRef

LocalMemRef

File: general_blocks/Memory/LocalMem_wCopy.sim
Description
The model stores the data structure placed on the write input. Every time the read input is enabled, the data structure which was most recently placed on the write input is placed on the value output port.

Ports

Input Ports

  • write     Data Type: ANY
  • read     Data Type: TRIGGER

Output Ports

  • value     Data Type: ANY

Parameters

  • (none)

This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.