Chapter 3: Memory Blocks in Arria II Devices
3–21
Design Considerations
December 2010
Altera Corporation
Arria II Device Handbook Volume 1: Device Interfaces and Integration
Read-During-Write Behavior
You can customize the read-during-write behavior of the Arria II memory blocks to
suit your design requirements. The two types of read-during-write operations are
same port and mixed port.
shows the difference between the same port
and mixed port.
Same-Port Read-During-Write Mode
This mode applies to either a single-port RAM or the same port of a true dual-port
RAM. In same-port read-during-write mode, three output choices are available: new
data mode (or flow-through), old data mode, or don’t care mode. In new data mode,
the new data is available on the rising edge of the same clock cycle on which it was
written. In old data mode, the RAM outputs reflect the old data at that address before
the write operation proceeds. In don’t care mode, the RAM outputs “don’t care”
values for a read-during-write operation.
shows sample functional waveforms of same-port read-during-write
behavior in don’t care mode for MLABs.
Figure 3–19. Read-During-Write Data Flow
Port A
data in
Port B
data in
Port A
data out
Port B
data out
Mixed-port
data flow
Same-port
data flow
Figure 3–20. MLABs Blocks Same Port Read-During Write: Don’t Care Mode
clk_a
wrena
data_in
address
A1
q(unregistered)
A0(old data)
A2
FFFF
AAAA
XXXX
XX
FFFF
AAAA
A1(old data)
A2(old data)
q(registered)
FFFF
AAAA
A0
XX
XX
XX