Dual port RAM with single output port
HDL Coder / HDL RAMs
The Simple Dual Port RAM block models RAM that supports simultaneous read and write operations, and has a single output port for read data. You can use this block to generate HDL code that maps to RAM in most FPGAs.
The Simple Dual Port RAM is similar to the Dual Port RAM, but the Dual Port RAM has both a write data output port and a read data output port.
During a write operation, if a read operation occurs at the same address, old data appears at the output.
Address bit width. Minimum bit width is 2, and maximum bit width is 29. The default is 8.
The block has the following ports:
wr_din
Write data input. The data can have any width. It inherits the width and data type from the input signal.
Data type: scalar fixed point, integer, or complex
wr_addr
Write address.
Data type: scalar unsigned integer (uintN
) or unsigned
fixed point (ufixN
) with a fraction length of
0
wr_en
Write enable.
Data type: Boolean
rd_addr
Read address.
Data type: scalar unsigned integer (uintN
) or unsigned
fixed point (ufixN
) with a fraction length of
0
rd_dout
Output data from read address, rd_addr
.