Dual Port RAM System
R2026bDual-port RAM that supports simultaneous read and write operations
Libraries:
HDL Coder /
HDL RAMs
Description
The Dual Port RAM System block models a dual-port RAM that supports
simultaneous read and write operations through output ports for read and write data. To
configure this block, open the block and set the Type of RAM
parameter to dual 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 reads 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, new data appears at the output of the write port wr_dout of the Dual Port RAM System block. If a read operation occurs simultaneously at the same address as a write operation, old data appears at the read output port rd_dout.
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 Dual 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 Dual 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/Dual Port RAM System"
Example: add_block("hdlsllib/HDL RAMs/Dual Port RAM System","myModel/myBlock",MakeNameUnique="on")