0% found this document useful (0 votes)
12 views6 pages

TI FIFO Memories Scaa011a

Uploaded by

h20230184
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views6 pages

TI FIFO Memories Scaa011a

Uploaded by

h20230184
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

FIFO Memories:

Solution to Reduce FIFO Metastability

First-In, First-Out Technology

Tom Jackson
Advanced System Logic – Semiconductor Group

SCAA011A
March 1996

1
IMPORTANT NOTICE

Texas Instruments (TI) reserves the right to make changes to its products or to discontinue any semiconductor
product or service without notice, and advises its customers to obtain the latest version of relevant information
to verify, before placing orders, that the information being relied on is current.

TI warrants performance of its semiconductor products and related software to the specifications applicable at
the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are
utilized to the extent TI deems necessary to support this warranty. Specific testing of all parameters of each
device is not necessarily performed, except those mandated by government requirements.

Certain applications using semiconductor products may involve potential risks of death, personal injury, or
severe property or environmental damage (“Critical Applications”).

TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, INTENDED, AUTHORIZED, OR WARRANTED


TO BE SUITABLE FOR USE IN LIFE-SUPPORT APPLICATIONS, DEVICES OR SYSTEMS OR OTHER
CRITICAL APPLICATIONS.

Inclusion of TI products in such applications is understood to be fully at the risk of the customer. Use of TI
products in such applications requires the written approval of an appropriate TI officer. Questions concerning
potential risk applications should be directed to TI through a local SC sales office.

In order to minimize risks associated with the customer’s applications, adequate design and operating
safeguards should be provided by the customer to minimize inherent or procedural hazards.

TI assumes no liability for applications assistance, customer product design, software performance, or
infringement of patents or services described herein. Nor does TI warrant or represent that any license, either
express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property
right of TI covering or relating to any combination, machine, or process in which such semiconductor products
or services might be or are used.

Copyright  1996, Texas Instruments Incorporated

2
As system operating frequencies continue to increase in excess of 33 MHz, designers must begin to address the issues of overall
system reliability due to increased chance of a metastable event occurring. A metastable event is defined as the time period when
the output of a logic device is neither at a logic high nor at a logic low but rather in an indeterminate level. The chance of a
metastable occurrence is exponentially increased if single-stage synchronization is employed, as in the case of the ′722xx
synchronous-style devices versus the two-stage synchronization that is implemented by Texas Instruments (TI) (see Figure 1).
The following information assists designers in understanding and improving upon the metastable characteristics of ′722xx
synchronous-style devices and their reliability.

1.00E+57
1.00E+52

1.00E+47
1.00E+42

1.00E+37
1.00E+32
MTBF – s

Two-Stage Synchronization
1.00E+27
One-Stage Synchronization
1.00E+22
1.00E+17

1.00E+12
1.00E+07
1.00E+02
1.00E–03
1.00E–08
0 10 20 30 40 50 60 70
Frequency – MHz

Figure 1. MTBF for Metastability as a Function of Frequency

Metastability may occur when using a FIFO to synchronize two digital signals operating at different frequencies. This type of
application is a familiar one to many design engineers. Triggering a metastable event is common in single-stage (single flip-flop)
synchronized FIFOs that are used to synchronize different clock signals (see Figure 2). With this method, the asynchronous input
might change states too close to the clock transition, violating the flip-flop’s setup and hold times. This causes an increase in
resolve time (tr) which then results in an overall increase in propagation delay (tpd ). Once a metastable event is triggered, the
probability of the output recovering to a high or low level increases exponentially with the increased resolve time. The expected
time until the output of a single flip-flop with asynchronous data has a metastable event is described by the mean time between
failure (MTBF) equation (see equation 1). The first term of the equation is the probability that the asynchronous data will trigger
a metastable event. The second term is the data rate. The third and final term is the probability of the metastable event recovering
given the resolve time. A linear increase in resolve time exponentially increases the MTBF of a metastable event.

3
Synchronized
Clock Q Flag

Asynchronous
Flag D

Clock

tsu
Asynchronous
Flag

Synchronized
Flag

tpd tr

Figure 2. Single-Stage Synchronizer

MTBF 1 + t 1f
o c
1
fd
expǒǓ tr
t
(1)

Where:
to = flip-flop constant representing the time window during which changing data invokes a failure
tr = resolve time allowed in excess of the normal propagation delay
t = flip-flop constant related to the settling time of a metastable event
fc = clock frequency
fd = asynchronous data frequency (for OR-flag analysis, it is the frequency at which data is written to
empty memory; for IR-flag analysis, it is the frequency at which data is read from full memory).

TI has increased the metastable MTBF by several orders of magnitude over single-stage synchronization with its advanced FIFO
family by employing two-stage synchronization (see Figure 3). The output of the first flip-flop is clocked into the second flip-flop
on the next clock cycle. For the output of the second stage to become metastable, the first stage must have a metastable event that
lasts long enough to encroach upon the setup time of the second stage. The addition of the second flip-flop to the single-stage
synchronizer allows the flip-flops more time to resolve any metastable output. This is statistically equivalent to increasing its
resolve time by the clock period minus its propagation delay. MTBF for a two-stage synchronizer is given in equation 2. All terms,

ƪ ƫ
except for the third one, are the same as in equation 1. The third term represents the additional propagation delay through the added
flip-flop.

MTBF 2 + t 1f
o c
1
fd
exp
1
fc *t
t
pd
exp ǒǓ tr
t
(2)

tpd = propagation delay through the first flip-flop


MTBF2 = MTBF1

Where:
tr = tr + (1/fc – tpd)

4
Synchronized
Clock Q Q
Flag

Asynchronous
Flag D D

Clock

ÎÎÎ tsu
Asynchronous
ÎÎÎ
ÎÎÎ
Flag

First Stage

ÎÎÎÎÎÎÎÎÎÎ
ÎÎÎÎÎÎÎÎÎÎ
tpd tr
Synchronized

ÎÎÎÎÎÎÎÎÎÎ
Flag

High or Low (does not matter)

Figure 3. Two-Stage Synchronizer

The functional block diagram in Figure 4 illustrates the connections necessary to add the second-stage synchronization to
the ′72211 synchronous FIFO. A quick and inexpensive schematic to resolve metastability of a synchronous FIFO is shown in
Figure 5. In this case, the FIFO is the ′72211LJ and, by implementing a single TI SN74F74 D-type positive-edge-triggered
flip-flop and a TI SN74F08 two-input positive AND gate, the metastability characteristics of this circuit can be dramatically
improved. The TI SN74F74 acts as the second stage for this circuit, increasing the resolve time as described in the previous
paragraphs. The TI SN74F08 is implemented to act as the control-empty and control-full flags to the receiving device. These
control lines of the first-stage and second-stage synchronized flags are then ANDed together to create the control flags (control
empty and control full). The control lines are essentially read enables that ensure the synchronization of the device. As is shown
in the logic diagram and truth table, synchronization is complete only when the empty flags (EF) of both the second stage (truth
table input A) and the device (truth table input B) are high. The empty flag is used for read control and the full flag (FF) is used
for write control. If either flag from the synchronizer or the device is held low or becomes metastable, a read is not permitted (truth
table output Y) until the write flag is synchronized.
As can be seen in today’s digital systems, synchronous and asynchronous operations can and will produce random errors due to
metastability in single-stage FIFO designs like those of the ′722xx synchronous FIFO family. The described method of
implementing a second stage for flag synchronization is extremely useful for clock speeds that are either approaching or
exceeding 33 MHz. Metastability can be virtually eliminated in the ′722xx synchronous FIFO family by the simple addition of
a second flip-flop. The second-stage synchronizer greatly reduces metastability, thereby increasing the MTBF and allowing
designers to use faster microprocessors and higher data-transfer rates for greater overall system performance and reliability.
To reduce metastability and improve system reliability, TI offers a complete line of high-performance FIFO memory devices.
TI’s FIFOs have dual-stage synchronization designed onto each chip. This eliminates the need for any external discrete solution
and reduces critical board space by fully utilizing TI’s family of fine-pitch surface-mount packaging.

5
′72211 Second Stage EF / FF Control Logic

WCLK RCLK Q Control Empty


EF
D

EF
FF
Q Control Full
FF
D

Figure 4. Connecting the Second-Stage Synchronizer to the ′72211 Synchronous FIFO

TI SN74F74 TI SN74F08
D-Type 2-Input
Positive-Edge-Triggered Positive
′72211 Flip-Flop AND Gate

Control Empty EF

1A
WCLK 27 2 1D 1B
3 1CLK 2D 12 1Y To
2CLK 11 2A Receiving
5 2B Device
1Q
11 RCLK 2Q 9 2Y
EF
FF

Control Full FF
14
15

EF FF
Two Stage Control Empty Two Stage Control Full
EF FF

INPUTS OUTPUT
A B Y
H H H
L X L
X L L

Figure 5. Resolving Metastability of a Synchronous FIFO

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy