Read Or Write Clock Mode; Single-Clock Mode; Design Considerations; Read-During-Write Operations - Altera Cyclone IV Device Handbook

Table of Contents

Advertisement

Chapter 3: Memory Blocks in Cyclone IV Devices

Design Considerations

Read or Write Clock Mode

Cyclone IV devices M9K memory blocks can implement read or write clock mode for
FIFO and simple dual-port memories. In this mode, a write clock controls the data
inputs, write address, and wren registers. Similarly, a read clock controls the data
outputs, read address, and rden registers. M9K memory blocks support independent
clock enables for both the read and write clocks.
When using read or write mode, if you perform a simultaneous read or write to the
same address location, the output read data is unknown. If you require the output
data to be a known value, use either single-clock mode, input clock mode, or output
clock mode and choose the appropriate read-during-write behavior in the
MegaWizard Plug-In Manager.

Single-Clock Mode

Cyclone IV devices M9K memory blocks can implement single-clock mode for FIFO,
ROM, true dual-port, simple dual-port, and single-port memories. In this mode, you
can control all registers of the M9K memory block with a single clock together with
clock enable.
Design Considerations
This section describes designing with M9K memory blocks.

Read-During-Write Operations

"Same-Port Read-During-Write Mode" on page 3–16
Write Mode" on page 3–16
configurations when reading from an address during a write operation at that same
address.
There are two read-during-write data flows: same-port and mixed-port.
shows the difference between these flows.
Figure 3–13. Cyclone IV Devices Read-During-Write Data Flow
write_a
November 2011 Altera Corporation
describe the functionality of the various RAM
Port A
data in
read_a
Port A
data out
and
"Mixed-Port Read-During-
Figure 3–13
write_b
Port B
data in
Mixed-port
data flow
Same-port
data flow
Port B
read_b
data out
Cyclone IV Device Handbook,
3–15
Volume 1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Cyclone IV and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF