Dual Rate Dual Port RAM
R2026bDual-port RAM that supports two rates
Libraries:
HDL Coder /
HDL RAMs
Description
The Dual Rate Dual Port RAM block models a dual-port memory that supports simultaneous read and write operations through two independent RAM ports, port A and port B, which can operate at different rates. Each RAM port has its own address, data, and write-enable signals, which you can use to access different memory locations concurrently. The block ports din_A, addr_A, we_A, and dout_A represent the inputs and outputs for the RAM port A, and ports din_B, addr_B, we_B, and dout_B represent the inputs and outputs for the RAM port B.
In high-performance hardware applications, you can use this block to access the RAM twice per clock cycle. If you generate HDL code, this block maps to a dual-clock dual-port RAM in most FPGAs.
This block supports HDL code generation for complex signals. You cannot mix real-value and complex inputs.
Simultaneous Access
You can access different memory locations in port A and port B simultaneously.
If you access a memory location from one port while the other port writes to the same location, the block generates an error.
Read-During-Write Behavior
The RAM uses write-first behavior. When a write occurs, the newly written data is immediately available at the corresponding output port.
Limitations
This block does not support the
halfdata type.You can generate HDL code for Dual Rate Dual Port RAM blocks that are in resettable subsystems.
If the RAMArchitecture model configuration parameter is set to
WithoutClockEnable, you cannot generate HDL code for Dual Rate Dual Port RAM blocks in enabled or triggered subsystems.
