CY7C43633/CY7C43643
CY7C43663/CY7C43683
21
PRELIMINARY
To program the X and Y regist ers from Port A, per form a M as-
ter Reset on both FIFOs simultaneously with SPM HIGH and
FS0 and FS1 LOW during the LOW-to-HIGH transition of
MRS1/MRS2. A fter th is re se t is c omple te, the first fo ur w r ites
to the FIFO do not store data i n RAM but load the offset regis-
ters in the order Y and X. The Port A data inputs used by the
off set registers are ( A0–7), (A0–8), ( A0–9), (A0–11), or (A0–13),for
the CY7C436x3, respectively. The highest numbered input is
used as the most significant bit of the binary number in each
case. Vali d programming values for th e registers range from 1
to 252 for the CY7C43623; 1 to 508 for the CY7C43633; 1 to
1012 for the CY7C43643; 1 to 4092 for the CY7C43663; 1 to
16380 for the CY7C43683. Before programming the offset reg-
ister, FF/IR is set HIGH. FIFOs begin normal operation after
programming is done.
To program the X and Y registers serially, initiate a Master
Reset wit h SPM LOW, FS0/SD LO W and FS1/ SEN HIGH du r-
ing the LOW-to-HIGH transition of MRS1/MRS2. After this re-
set is complete , the X a nd Y register values a re loaded bit-wis e
through the FS0/SD input on each LO W-to-HIGH transiti on of
CLKA that the FS1/SEN input is LOW. Thirty-two, thirty-six,
for ty, forty-eight, or fifty-six bit writes are needed to complete
the programming for the CY7C436x3, respectively. The two
registers are written in the order Y then finally X. The first-bit
write stores the most significant bit of the Y register and the
last-bit write stores the least significant bit of the X register.
Each register value can be programmed from 1 to 252
(CY7C43623), 1 to 508 (CY7C43633), 1 to 1020
(CY7C43643), 1 to 4092 (CY7C43663), or 1 to 16380
(CY7C43683).
When the opt ion t o p rogr am t he off set r egist ers seriall y is cho-
sen, the Port A Full/Input Ready (FF/IR) flag remains LOW
unti l a ll re gis ter bits are written. FF/IR is set HIGH by the LOW-
to-HI G H tr ansiti on of CLKA after the last bit is loaded to allo w
normal FIFO operation.
SPM, FS0/SD, and FS1/SEN function the same way in both
CY Standard and FWFT modes.
FIFO Write/Read Operat ion
The state of the Por t A data (A 0–35) lines is controlled by Port
A Chip Select (CSA) and Port A Write/Read Select (W/RA).
The A0–35 lines are in the High-impedance state when either
CSA or W/RA is HIGH. The A0–35 lines are active outputs
when bot h CS A and W/RA are LO W.
Data is loaded into the FIFO fr om the A0–35 inputs on a LOW -
to- HIGH tr ansition of CLKA when CSA is LOW , W/RA is HIGH,
ENA is HIGH, MBA is LOW, and FF/IR is HIGH (see
Ta ble 2
).
FIFO writes on Port A are independent of any concurrent Port
B operation.
The Port B c ontrol signals are i dentical to those of Port A with
the exception that the Po rt B Write/Read Select ( W/R B ) is the
inverse of the Port A Write/Read Select (W/RA). The state of
the Por t B data ( B0–35) lines is controlled by the Por t B Chip
Select ( CSB) and Por t B Write/Read Select (W/RB). The B0–
35 lines are in the high-impedance state when either CSB is
HIGH or W/RB is LOW. The B0–35 lines are active outputs
when CSB is L OW and W/RB is HIGH.
Data is read from the FIFO to the B0–35 out puts by a LOW-to-
HIGH transition of CLKB when CSB is LOW, W/RB is HIG H,
ENB is HIGH, MBB is L O W , an d EF/OR is HIGH (se e
Table 3
).
FIFO reads and writes on Port B are independent of any con-
current Port A operation.
The set-up and hold t ime constraints t o the port clocks for the
port Chip Sel ects and Write/Read Selects are only for enabling
write and read operations and are not related to high-imped-
ance cont rol of t he data outp uts. If a port e nable is LOW during
a clock cycle, the port’s Chip Select and Write/Read Select
ma y change s tat es during the set-up and hold ti me window of
the cycle.
When operating the FIFO in FWFT Mode and the Output
Ready flag i s LO W, the next word wri tten is automatically sent
to the FIFO’s output register by the LOW-to-HIGH t ransition o f
the port clock that sets the Output Ready flag HIGH, data re-
sidi ng in t he F IFO’s memory arra y i s cl oc ked t o t he out put reg -
ister only when a read i s selec ted usi ng t he port’ s Ch ip Sel ect ,
Write/Rea d Select, Enable, and Mailbox Select.
When ope rati ng the FIF O in CY St andard M ode, r egardle ss of
whether t he Emp ty Fl ag is LO W or HIGH, data residing in the
FIFO’s memory array is clocked to the output register only
when a read is selected using the port’s Chip Select, Write/
Read Select, Enable, and Mailbox Select.
Synchronized FIFO Fla gs
Each FIFO is synchronized to its port clock through at least
two flip- flop stages . This is done to impr ove fla g-signal reliabi l-
ity by reducing the probability of the metastable events when
CLKA and CLKB operate asynchronously to one another. EF/
OR an d AE are synchroni zed to CLKA. FF/ IR and AF ar e syn -
chronized to CLKB.
Table 4
shows the relationship of each port
flag t o the FI FO.
Empty/Output Ready Fla gs (EF/OR)
These are dual-purpos e fl ags. In the FWFT Mode , the Output
Ready (OR) fun ction i s select ed. When t he Out put Ready fl ag
is HIGH, new data i s present i n the FIFO ou tput regi ster . When
the Output Ready flag is LOW, the previous data word is
present in the FIFO output regi ster and att em pted FIFO reads
are ignored.
In the CY Standard Mode, the Empty Flag (EF) function is
selected. When the Empty Flag is HIGH, data is available in
the FIFO’s RAM memory for reading to the output register.
When the Empty Flag is LOW, the previous data word is
present in the FIFO output regi ster and att em pted FIFO reads
are ignored.
The Empty/Out put Ready fla g of a FI FO is sy nchroniz ed to the
port clock that reads data from its array. For both the FWFT
and CY Standard modes, the FI FO read pointer is i ncrement-
ed each time a new word i s clocked to its output register. The
state machine that controls an Output Ready flag monitors a
write p ointer an d read pointer co mp arator t hat indi cates when
the FIFO SRAM status is empty, empty+1, or empty+2.
In FWFT Mode, from t he time a wor d is written to a FIFO , it can
be shifted to the FIFO output register in a minimum of three
cycles of the Output Ready flag synchronizing clock. There-
fore, an Output Ready flag is LOW if a word in memory is the
next data to be sent to the FIFO output register and three cy-
cles ha ve not e lapsed sinc e th e time the wor d was writt en. The
Output Ready flag of the FIFO remains LOW until the third
LO W-to-HIGH transition of the synchroni zing clock occurs, si -
multa neously forcing th e Outpu t Ready fl ag HIGH and shi fti ng
the word to the FIFO output register.
In the CY Standard Mode , f rom the time a wor d is written to a
FIFO, the Empty Flag will indicate the presence of data avail-
able for reading in a m inimum of two cycles of the Empty Flag