CY7C4225V/4205V/4215
CY7C4425V/4235V/4245
Document #: 38-06029 Rev. *B Page 4 of 20
Architecture
The CY7 C 42X5 V co ns is t s o f an array of 6 4 to 4K words o f 18
bits each (imple mented by a du al-port a rray of SRAM cells ), a
read pointer, a write pointer, control signals (RCLK, WCLK,
REN, WEN, RS), and flags (EF, PAE, HF, PAF, FF). The
CY7C42X5V also includes the control signals WXI, RXI, WXO,
RXO for depth expansion.
Resetting the FIFO
Upon power-up, the FIFO must be reset with a Reset (RS)
cycle. This causes the FIFO to enter the Empty condition
signified by EF being LOW. All dat a outputs go LO W aft er the
falling edge of RS only if OE is as se rted. In order for the FIFO
to reset to its default state, a falling edge must occur on RS
and the user must not read or write while RS is LOW.
FIFO Operation
When the WEN signal is active (LOW), data present on the
D0-17 pins is written into the FIFO on each rising edge of the
WCLK signal. Similarly, when the REN signal is active LOW,
data in the FIFO memory will be presented on the Q0−17
outputs. New data will be presented on each rising edge of
RCLK while REN is active LOW and OE is LOW. REN must
set up tENS before RCLK for it to be a valid read function. WEN
must occur tENS before WCLK for it to be a valid write function.
An Output Enable (OE) pin is provided to three-st ate the Q0–17
outputs when OE is deasserted. When OE is enabled (LOW),
data in the output register will be avail able to the Q0−17 outputs
after tOE. If devices are cascaded, the OE function will only
output data on the FIFO that is read enabled.
The FIFO contains overflow circuitry to disallow additional
writes when the FIFO is full, and und erflow circuitry to disallow
additional reads when the FIFO is empty. An empty FIFO
maintains the data of the last valid read on its Q0−17 outputs
even after additional reads occur.
Programming
The CY7C42X5V devices contain two 12-bit offset registers.
Data present on D0–11 during a program write will determine
the distance from Empty (Full) that the Almost Empty (Almost
Full) flag s become ac tive. If the user elec ts not to prog ram the
FIFO’s fl ag s, the de f au l t off se t valu e s ar e us ed (see Table 2).
When the Loa d LD pin is set LOW and WEN is set LOW , da ta
on the inputs D0–11 is written into the Empty offset register on
the first LOW-to-HIGH transition of the write clock (WCLK).
When the LD pin and WEN ar e hel d LOW then data is written
into the Full offset register on the second LOW-to-HIGH
transiti on of the Write Clock (WCLK). The third transition of the
Write Clock (WCLK) again writes to the Empty offset register
(see Table 1). Writing all offset registers does not have to
occur at one time. One or two offset registers can be written
and then, by bring ing the LD pin HIGH, the FIF O is returned to
normal read/ write o peration. When the LD pin is set LOW , and
WEN is LOW, the next offset register in sequence is written.
The contents of the offset registers can be read on the output
lines when the LD pi n is set LOW and REN is set LOW; then,
data can be read on the LOW-to-HIGH transition of the Read
Clock (RCLK).
Note:
1. The same selection sequence applies to reading from the registers. R EN i s enab led and r ead is perf ormed on th e LOW -to- HIGH tr ansiti on of RC LK.
RXI Read Expansion
Input ICasc aded – Con nected to RXO of previous device. Not Casc aded – T ie d to VSS.
RXO Read Expansion
Output OCascaded – Connected to R XI of next device.
RS Reset I Reset s device to em pty condition. A re set is requi red befor e an initia l read or write
operation after power-up.
OE Output Enable I When OE is LOW, the FIFO’s data outputs drive the bus to which they are
connected. If OE is HIGH, the FIFO’s outputs are in High Z (high-impedance)
state.
VCC/SMODE Synchronous
Almost Empty/
Almost Full Flags
IDual-Mode Pin. Asynchronous Almost Empty/Almost Full flags – tied to VCC.
Synch ron ous Almo st Empt y/Almo st Fu ll flag s – tie d to VSS. (Almo st Em pty
sync hro nized to RCLK , Al most Ful l synch ron ized to WCLK .)
Pin Definitions (continued)
Signal Name Description I/O Function
Table 1. Write Offset Register
LD WEN WCLK[1] Selection
0 0 Writing to offset registers:
Empty Offs et
Full Offset
01 No Operation
1 0 Write Into FIFO
11 No Operation