CY7C4808V25
CY7C4806V25
CY7C4804V25PRELIMINARY
19
Signal Description
Master Reset (MR)
The FIFO memory of the CY7C480XV25 undergoes a complete reset by taking its associated Master Reset (MR
) input
LOW for at least fo ur P ort A clock (CLKA) and fou r P ort B clock
(CLKB) LOW -to-HIGH tran sitions . The Master Reset inpu t can
switch asy nchronous ly to the clocks. A Master Reset initializes
the internal read and write pointers and forces the Full/Input
Ready flag (FF
/IR) LOW, the Empty/Output Ready flag
(EF
/OR) LOW, the Almost Empty flag (AE) LOW, and the Al-
most Fu ll flag (AF
) HIGH. A fter a Mas ter Reset, t he FIFO’s
Full/Input Ready flag is set HIGH after two clock cycles to begin normal operation. A Master Reset must be performed on
the FIFO after pow er up, before data is written to its memory .
A LOW- to-HI GH tran siti on on a F IFO Mas ter Res et (MR
) input
latches th e v alue o f the Bi g Endian (BE) i nput, determi ning t he
order by which b ytes are transfe rred through Port B.
A LOW-to-HIGH transition on a FIFO reset (M R
) input latches
the values of the Flag Select (FS0, FS1) and Serial Programming Mode (SPM
) inputs for choosi ng the Almost Full and Almost Empty offset programming method (see Almost Empty
and Almost Full flag offset programming below) .
Partia l Re se t (PR
)
Each of the two FI FO m em orie s of the CY7C480XV25 undergoes a limited reset by taking i ts associated P artial Reset (PR
)
input LOW for at least four Port A clock (CLKA) and four Por t
B clock (CLKB) LOW-to-HIGH transitions. The Partial Reset
inputs can switch asynchronously to the clocks. A Partial Reset initializes the internal read and write pointers and forces
the Full/Input Ready flag (FF
/IR) LOW, the Empty/Output
Ready flag (EF
/OR) LOW, the Almost Empty flag (AE) LOW,
and the Almost Full flag (AF
) HIGH. A ft er a Partial R es e t, th e
FIFO’s Full/In put Ready f lag is set HI GH af ter t wo cloc k c ycles
to begin normal operation.
Whatever flag offsets, programming method (parallel or serial), and timing mode (FWFT or CY Standard mode) are currently selected at the time a Partial Reset is initiated, those
settings will remain unchanged upon completion of the reset
operation. A Partial Reset may be useful in the case where
reprogramming a FIFO following a Master Reset would be inconvenient.
Big Endian/First-Word Fall-Through (BE/FWFT
)
This is a dual-purpose pin. At t he time of Master Reset, the BE
select function is active, permitting a choice of Big or Little
Endian byte ar rangement f or dat a written to or read from ei ther
one of the ports. This selecti on determines the order by which
bytes (or short words or wor ds) of data are transf erred through
this port. For the following examples, assume that a byte (or
short words or word) bus size has been selected for Port B.
(Note that when Port B is configured for a long-word size, the
Big Endian function has no application and the BE input is a
“don’t care”.)
A HIGH on the BE/FWFT
input when the Master Reset (MR)
input goes f rom LOW to HIGH wi ll select a Big Endi an arrang ement. When data is moving from Port A to Por t B, the most
significant byte (short word/word) of the long-word written to
Port A will be transferred to Port B first; the least significant
byte (short word/word) of the long-word written to Port A will
be transferred to Port B last.
A LOW on the BE/FWFT
input when the Master Reset (MR)
input goes from LOW to HIGH will select a Little Endian arrangement. When data is moving from Port A to Port B, the
least significant byte (short word/word) of the long-word written to Port A will be transferred to Port B first; the most significant by te (short word/word) of the long-word written to Port A
will be transferred to Port B last.
After Master Reset, the FWFT select f unction is acti ve, permitting a choice between two possible timing modes: CY Standard Mode or First-Word Fall-Through (FWFT) Mode. Once
the Master Reset (MR
) input is HIGH, a HIGH o n the BE/ FWFT
input at the second LOW-to-HIGH transition of CLKA will select CY Standa rd Mode. This mode uses the Em pty Fl ag function (EF
) to indicate whether or not there are any words
present in the F IFO memory . It uses t he Full Flag funct ion (FF
)
to indicate whether or not the FIFO memory has any free
space for writing. I n CY Standar d Mode , e v ery word read fr om
the FIFO, inclu ding the f irst , must be requeste d using a f o rmal
read operati on.
Once the Master Reset (MR
) inpu t is HIG H, a LOW on the
BE/FWFT
input LOW-to-HIGH transition of CLKA will select
FWFT Mode. This mode uses the Output Ready function (OR)
to indicate wh ether or n ot there i s val id data at the data outputs
(B
0–79
). It also uses the Input Ready function (IR) to indicate
whether or not the FIFO memory has any free space for writing. In the FWFT mode , the firs t word written to an em pty FIFO
goes directly to dat a outputs, no read request necessary. Subsequent words m ust be acce ssed by perf ormin g a fo rmal rea d
operation.
Following Master Reset, the level applied to the BE/FWFT
input to choose the desired timing mode must remain static
throughout th e FIFO operation.
Programming the Almost Empty and Almost Full Flags
Two registers in the CY7C480 XV25 are u sed to hol d the o ffset
values for the Almost Empty and Almost Full fl ags. The Port A
Almost Empty flag ( AE
) offset regis ter is l abeled X. The Port B
Almost Full flag (AF
) offset register is labeled Y. The index of
each regist er name corres ponds wit h preset val ues during th e
reset of a FIFO, programmed in parallel using t he FIFO’s Port
A data inputs, or programmed in serial using the Serial Data
(SD) input (see Table 2).
To load a FIFO’s Almost Empty flag and Al most Full f lag offset
registers with one of the three preset values listed in Table 2,
the Serial Program Mode (SPM
) and at least one of the
flag-select inputs must b e HIGH during the LO W -to-HIGH tr ansition of it s M aster Reset input (MR
). For example, to load the
preset value of 64 into X and Y, SPM
, FS0, and FS1 must be
HIGH when the FIFO reset (MR
) returns HI GH.
To program the X and Y register s from P ort A, perform a Master Reset with SPM
HIGH and FS0 and FS1 LOW during the
LOW -to-HIGH t ransitio n of MR
. After this reset is complete, the
first two writes to the FIFO do not store data in memory but
load the offset registers in the order Y and X. The Port A data
inputs used by the offset registers are (A
0–11
), (A
0–13
), or
(A
0–15
),for the CY7C48 0XV25, re spec tiv ely. The highest numbered input is used as the most significant bit of the binary
number in each case. Valid programming values for the registers range from 0 to 4095 for the CY7C4804V25; 0 to 16383
for t he CY7C4806V25; 0 to 65535 for the CY7C4808V25. Before programming the offset registers, FF
/IR is set HIGH.
FIFOs begin normal operati on after programmi ng is comple te.