Document Number: 001-53687 Rev. *N Page 8 of 35
Data Valid Signal (DVal)
Data valid (DVal) is an active low signal , synchronized to RCLK
and is provided to check for valid data on the output bus. When
a read operation is performed, the DVal signal goes low along
with output data. This helps user to capture the data without
keeping track of REN to data output latency. This signal also
helps when write and read operations are performed
continuously at different frequencies by indicating when valid
data is availabl e at the output port Q[35:0].
Write Mask and Read Skip Operation
As mentioned in Architecture on page 7, enabling writes but
disabling the inputs (IE HIGH) increments the write pointer
without doing any write operations or altering the contents of the
location.
This feature is called Write Mask and allows user to move the
write pointer w ithout actually writ ing to the locations. This “write
masking” ability is useful in some video applications such as
Picture In Picture (PIP).
Similarly, du ri ng a rea d o peratio n, if the outputs are disable d by
keeping the OE high, the read data does not appear on the
output bus; however, the read pointer is incremented. This
feature is referred to as a Read Skip Operation.
Flow-through Mailbox Register
This feature transfers data from input to output directly bypassing
the FIFO sequence. When MB signal is asserted the data
present in D[35:0] will be available at Q[35:0] after two WCLK
cycles. Normal read and write operations are not allowed during
flow-through mailbox operation. Before starting Flow-through
mailbox operation FIFO read should be completed to make data
valid DVal high in order to avoid data loss from FIFO. The width
of flow-through mailbox register always corresponds to port size.
Flag Operation
This device provides five flag pins to indicate the condition of the
FIFO.
Full Flag
The Full Flag (FF) operates on double word (burst length of two)
boundaries and goes LOW when the device is full. Write
operations are inhibited whene ver FF i s LOW regardless o f the
state of WEN. FF is synchronized to WCLK, that is, it is
exclusively updated by each rising edge of WCLK. The worst
case assertion latency for Full Flag is four. As the user cannot
know that the FIFO is full for four clock cycles, it is possible that
user continues writing data during this time. In this case, the four
data words written will be stored to prevent data loss and these
words have to be read back in order for full flag to get
de-asserted. The minimum number of reads required to
de-assert full-flag is two and the maximum number of reads
required to de-assert full flag is six. The assertion and
de-assertion of Full flag with associated latencies is explained in
Latency Table on page 14.
Half-Full Flag
The Half-Full (HF) flag goes LOW when half of the memory array
is written. HF is synchronized to WCLK. The assertion and
de-assertion of Half-Full flag with associated latencies is
explained in Latency Table on page 16.
Empty Flag
The Empty Flag (EF) deassertion depe nds on burst writes and
goes 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, that is, it is exclusively updated by
each rising edge of RCLK. The assertion and de-assertion of
Empty flag with associated latencies is explained in Latency
Table on page 16.
Programmable Almost-Empty and Almost-Full Flags
The CYF0072V includes programmable Almost-Empty and
Almost-Full flags. Each flag operates on word boundaries and is
programmed (see Programming Flag Offsets and Configuration
Registers on page 9) a specific distance from the corresponding
boundary flags (Empty or Full). (offset can range from 16 to
1023) When the FIFO contains the number of words for which
the flags are programmed, the P AF or P AE is asserted, signifying
that the FIFO is either almost-full or almost-empty. The default
flag offset for both PAE and PAF is 12 7 words. These pro gram-
mable flag boundaries have thresholds associated with them.
Table 2 give s the assertion and de-assertion conditi ons fo r PA E
& PAF flags based on thes e thresholds assuming default offset
values.
The PAF flag signal transition is caused by the rising edge of
WCLK and the PAE flag transition is caused by the rising edge
of RCLK. The assertion and de-assertion of these flags with
associated latencies is explained in Latency Table on page 16.
Table 2. Programmable Flag Assertion/De-assertion Thresholds
Operation PAE offset Numb e r of FIF O wo rds - PAE PAF offset Number of FIFO words - PAF
Assertion 127 # FIFO words <= (PAE offset + 2)
i.e. # FIFO words <= 129 127 # FIFO words >= FIFO depth - (offset + 1)
i.e. # FIFO words >= 2M - 128
Deassertion 127 # FIFO words > (of f set)
i.e. # FIFO words > 127 127 # FIFO words < FIFO depth - (offset)
i.e. # FIFO words < 2M - 127