Dual Port RAM
R2026b(To be removed) Dual port RAM with two output ports
Dual Port RAM will be removed in a future release. Use the Dual Port RAM System instead.
Libraries:
HDL Coder /
HDL RAMs
Description
The Dual Port RAM block models a RAM that supports simultaneous read and write operations, and has both a read data output port and write data output port. You can use this block to generate HDL code that maps to RAM in most FPGAs.
If you do not need to use the write output data, wr_dout, you can
achieve better RAM inference with synthesis tools by using the Simple Dual Port RAM block.
Read-During-Write Behavior
During a write, new data appears at the output of the write port
(wr_dout) of the Dual Port RAM 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).
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"
Example: add_block("hdlsllib/HDL RAMs/Dual Port RAM","myModel/myBlock",MakeNameUnique="on")
