Memory Block Models
WriteMemory
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
Output Ports
Parameters
RealLocalMem
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
Parameters
- initial_value Data Type: REAL
ReadMemory
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
Parameters
MultipleBuffers
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
Parameters
- Number_of_buffers Data Type: INTEGER
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
Parameters
- memory_name Data Type: INTEGER
Mem_decrement
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 trigger
input 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
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
Parameters
IntLocalMemory
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
Parameters
- initial_value Data
Type: INTEGER
ActiveReadMemory
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
Output Ports
- contents Data
Type: ANY DATA STRUCTURE
Parameters
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
Parameters
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
Parameters