Simple Tri Port RAM System
R2026bSimple tri-port RAM that supports simultaneous read and write operations
Since R2023b
Libraries:
HDL Coder /
HDL RAMs
Description
The Simple Tri Port RAM System block models a simple tri-port RAM that
supports simultaneous read and write operations through two output ports for read data.
This blocks allows concurrent access to different memory addresses. To configure this
block, open the block and set the Type of RAM parameter to
Simple tri port. By using this block, you can:
Create parallel RAM banks by using vector data at the din, addr, and we ports.
Specify an initial value for the RAM using the Initial output of RAM parameter.
Perform asynchronous read in target hardware by selecting the Use asynchronous read feature in target hardware parameter.
Perform cycle-accurate read operation by selecting the Model RAM with one cycle of delay parameter.
Use the column-write method to write to specified bits in an addressed memory location.
Note
During a write operation, if a read operation occurs simultaneously at the same address, old data appears at the read output port.
Limitations
When you build the FPGA bitstream for the RAM, the global reset logic does not reset the RAM contents. To reset the RAM, implement the reset logic.
The RAM address can be either
fixed-point (fi)orinteger, must be unsigned, and must be between2and31bits long.You can generate HDL code for Simple Tri Port RAM System blocks that are in resettable subsystems.
If the RAMArchitecture model configuration parameter is set to
WithoutClockEnable, you cannot generate HDL code for Simple Tri Port RAM System blocks in enabled or triggered subsystems.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"hdlsllib/HDL RAMs/Simple Tri Port RAM System"
Example: add_block("hdlsllib/HDL RAMs/Simple Tri Port RAM System","myModel/myBlock",MakeNameUnique="on")
