CY7C4255
CY7C4265
15
Architecture
The CY7C4256/65 consist s of an arra y of 8K/16K words of 18
bits each (implemente d by a dual-po rt arra y of SRAM cells), a
read pointer, a write pointer, control signals (RCLK, WCLK,
REN
, WEN, RS), and flags (EF, PAE, HF, PAF, FF). The
CY7C4255/65 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 data outputs go LOW after the falling edge of RS
only if OE is asserted. 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 D
0–17
pins is written into the FIFO on each rising edge of the WCLK signal.
Similarly, when the REN
signal is active LO W , data in the FIFO mem-
ory will be presented on the Q
0–17
outputs. New data will be present-
ed on each rising edge of RCLK while REN
is active LOW and OE is
LOW. REN
must set up t
ENS
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-state the Q
0 – 17
outputs when OE is deasserted. When OE is enabled (LOW), data
in the output register will be available to the Q
0–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 F IFO is full, and under fl ow circ uitry to disa llow
additional reads when the FIFO is empty. An empty FIFO
maintains the data of the last valid read on its Q
0–17
outputs
even after additional reads occur .
Programming
The CY7C4255/65 devices contain two 14-bit offset registers.
Data present on D
0–13
during a program write will determin e the
distance from Empty (Full) that the Almost Empty (Almost Full) flags
become active. If the user el ects not to program the FIFO’s flags, the
default offset values are used (see Table 2 ). When the Load LD
pin
is set LOW and WEN
is set LOW, data on the inputs D
0–13
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 are held LOW
then data is written into the Full offset register on the second
LOW-to-HIGH transition 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
bringing the LD
pin HIGH, the FIFO is returned to normal read/write
operation. 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
pin is set LOW and REN is set LOW; then, data
can be read on the LOW-to-HIGH transition of the Read Clock
(RCLK).
Flag Ope r ati o n
The CY7C4255/65 devi ces provide fiv e flag pins to indic ate the
condition of the FIFO contents. Empty and Full are synchronous. PAE
and P A F are synchronous if VCC/SMODE is tied to VSS.
Full Flag
The Full Flag (FF
) will go LOW when device is Full. Write operations
are inhibited whenever FF
is LOW regardless of the state of WEN. FF
is synchronized to WCLK, i.e., it is exclusively updated by each rising
edge of WCLK.
Empty Flag
The Empty Flag (EF
) will go LOW when the device is empty. Read
operations are inhibited whenever EF
is LOW , regardless of the state
of REN
. EF is synchronized to RCLK, i.e., it is exclusively updated by
each rising edge of RCLK.
Programmable Almost Empty/Almost Full Flag
The CY7C4255/65 feat ures pr ogram mab le Almos t Empty and
Almost Full Flags. Each flag can be programmed (described
in the Programming section) a specific distance f rom the corresponding boundary flags (Empty or Full). When the FIFO
contains the number of words or fe wer f or which the fla gs have
been programm ed, th e PAF
or P AE wil l be asserted, signifying that
the FIFO is either Almost Full or Almost Empty. See Ta b l e 2 for a
description of programmable flags.
When the SMODE
pin is tied LOW, the PAF flag signal transition is
caused by the rising edge of the write clock and the P AE
flag transition
is caused by the rising edge of the read clock.
Notes:
36. The same selection sequence applies to reading from the registers. REN
is enabled and read i s perf ormed on the LO W-to-HIGH transition of RCLK.
Table 1. Write Offset Register
LD WEN WCLK
[36]
Selection
0 0 Writing to offset registers:
Empty Offset
Full Offset
0 1 No Operation
1 0 Write Into FIFO
1 1 No Operation