CY7C4421V/4201V/4211V/4221V
CY7C4231V/4241V/4251V
11
Architecture
The CY 7C42X1 V con sist s of an arr a y of 64 to 8K wo rds o f 9 bi ts
each (implemented by a du al-port array of SRAM cells), a read
pointer, a wr ite poin ter, control s ignals ( RCLK, W CLK, R EN1
,
REN2
, WEN1, WEN2, RS), and flags (EF, PAE , PAF, FF).
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 signifi ed by EF
being LOW. All data outputs (Q
0−8
) go LOW t
RSF
after the ris ing edge of RS. 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. All flags are guaran-
teed to be valid t
RSF
after RS is taken LOW.
FIFO Operation
When the WEN1 signal is active LOW and WEN2 is active HIGH,
data present on th e D
0−8
pins is written into the FIFO on each
rising edge of the WCLK signal. Similarly, when the REN1
and
REN2
signals are active LOW, data in the FIFO memory will
be presented on th e Q
0−8
outputs. New data wi ll be prese nte d
on each rising edge of RCLK while REN1
and REN2 are ac-
tive. REN1
and REN2 must set up t
ENS
before RCLK for it to
be a valid read function. WEN1
and WEN2 must occur t
ENS
before WCLK for it to be a valid write function.
An Output Enable (OE
) pin is provided to three-state the Q
0−8
outputs when OE is asserted. When OE is enabled (LOW), data
in the output register will be available to the Q
0−8
outputs after tOE.
The FIFO contains overflow circuitry to disallow additional
writes when the FIFO is full, and underflow circuitry to disallo w
additional reads when the FIFO is empty. An empty FIFO
maintains the data of the last valid read on its Q
0−8
outputs
ev en aft e r additional reads occur.
Write Enable 1 (WEN1
)
- If the FIFO is configured for pro-
grammab le flags, Write Enable 1 (WEN1
) is the only wri te enable control pin. In this configuration, when Write Enable 1
(WEN1
) is LOW, data can be loade d int o the i nput r egist er and
RAM array on t he LO W-to-HIGH trans iti on of e v ery write cloc k
(WCLK). Data is stored is the RAM array sequentially and independently of any on-going read operat ion.
Write Enable 2/Load ( WEN2/LD
)
- This is a dua l-purpose pin.
The FIFO is configured at Reset to have programmable flags
or to hav e two write enab les, which all ows f or depth ex pansion.
If Write Enabl e 2 /Load ( WEN2/L D
) is set active HIGH at Reset
(RS
=LOW), this pin operates as a second write enable pin.
If the FIFO is con figured t o hav e two write enables , when Write
Enable (WEN1
) is LOW and W rit e Enable 2/Load (WEN2/L D)
is HIGH, data can be loaded into the input register and RAM
array on the LOW-to-HIGH transition of every write clock
(WCLK). Data is stored in the RAM array sequentially and independently of any on-going read operation.
Programming
When WEN2/LD is h eld LO W duri ng Reset , this pin i s the load
(LD
) enable for flag offset programming. In this configuration,
WEN2/LD
can be used to access t he f our 8-bit offset regis ters
contained in the CY7C42X1V for writing or reading data to
these registers.
When the device is configured for programmable flags and
both WEN2/LD
and WEN1 are LOW, the first LOW-to-HIGH
transition of WCLK writes dat a from the data inputs to the empty offset Least Signifi cant Bit (LSB) reg ister . The second, thi rd,
and fourth LOW -to-HIGH tr ansiti ons of WCLK store dat a in the
empty offset Most Si gnifica nt Bit (MSB) reg ister , full o ffset LSB
register, and full offset MSB register, respectively, when
WEN2/LD
and WEN1 are LOW. The fifth LOW-to-HIGH tran-
sition of WCLK while WEN2/LD
and WEN1 are LOW writes
data to the em pty LSB register again. Figure 1 shows the register sizes a nd default values for the vari ous device types.
It is not nece ssary to writ e to all t he offset registe rs at one time.
A subset of the offset registers can be written; then b y bringing
the WEN 2/ LD
input HIGH, the FIFO is re turned to normal read
and write oper ati on. The ne xt time WEN2/LD
is brought LOW,
a write operation stores data in the next offset register in sequence.
The contents of the offset registers can be read to the data
outputs when WEN2/LD
is LOW and both REN1 and REN2
are LOW. LOW-to-HI GH transi tions of RCLK read regi ster con tents to the data outputs. Writes and reads should not be
performed simul taneously on the offset registers.
Switching Waveforms
(continued )
PAF OFFSET
MSB
PAF OFFSET
LSB
t
ENH
Read Pr ogrammable Registers
WEN2/LD
RCLK
t
CLKH
t
ENS
t
CLKL
PAE OFFSET LSB
Q
0–Q8
REN1,
REN2
t
ENS
PAE OFFSET MSB
t
CLK
UNKNOWN
t
A
42X1V–15