
CY7C4801/4811/4821
CY7C4831/4841/4851
Document #: 38-06005 Rev. *A
Page 15 of 23
Programmable Flag (PAEA,PAEB, PAFA,PAFB) Operation
Whether the flag offset registers are programmed as de-
scribed in Table 1 or the default values are used, the programmable
almost-empty flag (PAEA,PAEB) and programmable almost-full flag
(PAFA,PAFB) states are determined by their corresponding offset
registers and the difference between the read and write pointers.
The number formed by the empty offset least significant bit
register and empty offset most significant register is referred
to
as
n and determines the operation of (PAEA,PAEB).
(PAEA,PAEB) is synchronized to the LOW-to-HIGH transition of
RCLK by one flip-flop and is LOW when the FIFO contains n or fewer
unread words. (PAEA,PAEB) is set HIGH by the LOW-to-HIGH tran-
sition of RCLK when the FIFO contains (n+1) or greater unread
words.
The number formed by the full offset least significant bit regis-
ter and full offset most significant bit register is referred to as
m and determines the operation of (PAFA,PAFB). (PAEA,PAEB) is
synchronized to the LOW-to-HIGH transition of (WCLKA,WCLKB) by
one flip-flop and is set LOW when the number of unread words in the
FIFO is greater than or equal to CY7C4801 (256–m), CY7C4811
(512–m), CY7C4821 (1K–m), CY7C4831 (2K–m), CY7C4841
(4K–m), and CY7C4851 (8K–m). (PAFA,PAFB) is set HIGH by the
LOW-to-HIGH transition of (WCLKA,WCLKB) when the number of
available memory locations is greater than m.
Notes:
25. The same selection sequence applies to reading form the registers. REN1 and REN2 are enabled and a read is performed on the LOW- to-HIGH transition of
RCLK.
Figure 1. Offset Register Location and Default Values.
256 x 9 x 2
512 x 9 x 2
8
0
8
0
8
0
8
0
1K x 9 x 2
2K x 9 x 2
4K x 9 x 2
8K x 9 x 2
(MSB)
0
(MSB)
0
7
1
7
1
8
0
8
0
8
0
8
0
(MSB)
00
(MSB)
00
7
1
7
1
8
0
8
0
8
0
8
0
(MSB)
000
(MSB)
000
7
2
7
2
8
0
8
0
8
0
8
0
Empty Offset (LSB) Reg.
Default Value = 007h
Full Offset (LSB) Reg
Default Value = 007h
(MSB)
0000
(MSB)
0000
7
3
7
3
Empty Offset (LSB) Reg.
Default Value = 007h
Full Offset (LSB) Reg
Default Value = 007h
Empty Offset (LSB) Reg.
Default Value = 007h
Full Offset (LSB) Reg
Default Value = 007h
Empty Offset (LSB) Reg.
Default Value = 007h
Full Offset (LSB) Reg
Default Value = 007h
8
0
8
0
8
0
8
0
Empty Offset (LSB) Reg.
Default Value = 007h
Full Offset (LSB) Reg
Default Value = 007h
(MSB)
00000
(MSB)
00000
7
4
7
4
8
0
8
0
8
0
8
0
7
7
Full Offset (LSB) Reg
Default Value = 007h
Empty Offset (LSB) Reg.
Default Value = 007h
Table 1. Writing the Offset Registers.
LD
WEN
WCLK[25]
Selection
0
0
Empty Offset (LSB)
Empty Offset (MSB)
Full Offset (LSB)
Full Offset (MSB)
0
1
No Operation
1
0
Write Into FIFO
1
1
No Operation