Docsity

Understanding Metastability in Digital Electronics: Causes, Analysis, and Solutions, Slides of Electronic Circuits Design

Partial preview of the text

Download Understanding Metastability in Digital Electronics: Causes, Analysis, and Solutions and more Slides Electronic Circuits Design in PDF only on Docsity!

Asynchronous Input Example

  • Program counter normally increments, jumps to address of interrupt subroutine on asynchronous interrupt
  • How many states can Jump/Increment have?

Interrupt

Program Counter

Jump

Increment

Clock

Asynchronous Input Example – Revised

  • Did we solve the problem? Why not?

Interrupt

Program Counter

Jump

Increment

Clock

Design Approach Where Metastability

Present

  • Don’t look for solution, there is none (don’t believe everything you read). - Bottom line - Can’t guarantee correct operation with arbitrary clock and data phase
  • Do design such that worst case probability of error is acceptable
  • Do understand and be able to identify trouble spots in design

Why Metastability is a “Special” Problem,

Charles E. Molnar

  • Because it “breaks most of the conceptual and computatonal tools that we use from day to day (e.g., binary or two state circuits)
  • It defies careful and accurate measurements
  • It can produce failures that leave no discernable evidence
  • It can cause failures in systems whose software is “correct” and whose hardware passes all conventional tests
  • It involves magnitudes of time and voltage to be removed from our daily experience

Analyzing Metastability

Altera Application Note 42

Mean Time Between Failure ( MTBF ) for a synchronization flip-flop can be estimated with the following formula

where fCLOCK is the system clock frequency fDATA is the data transfer frequency tMET is the additional time allowed for the flip-flop to settle

C 1 and C 2 are device specific parameters found by plotting the natural log of MTBF versus tMET and performing linear regression analysis on the data

( 2 )

1

C t MET

CLOCK DATA

MTBF e C f f

×

× ×

MTBF vs. T MET

Altera Application Note 42

( 2 ) 1

C t MET CLOCK DATA

C e MTBF f f

× = (^) × ×

2

ln( ) MET

C MTBF = (^) t  

Time of metastability

Mean Time Between Failure

Determining T MET for a given MTBF

Altera Application Note 42

From test circuit we can find C 2

Then we can solve for C 1

With C 1 and C 2 known, can find required tMET for given clock and data rates and required MTBF.

1 2

ln( (^) CLOCK DATA ) MET t MTBF^ f^ f^ C C

=^ ×^ ×^ ×

2

ln( ) MET

C MTBF t

=  

( 2 ) 1

C t MET CLOCK DATA

C e MTBF f f

×

× ×

Application Example

Altera Application Note 42

Example Altera Flex 10K C 1 = 1.01 x 10 -13, C 2 = 1.268 x 10^10

For one year (~3x10 7 seconds) and a data frequency of 2MHz and a clock frequency of 10 MHz

Small increases in tMET dramatically affect the MTBF. A tMET delay to 1.59 ns increases MTBF to 10 years.

7 6 6 13 10

ln(3 10 ) ln[(10 10 )(2 10 )(1.01 10 ) (^) 1.41 ns MET 1.268 10 t

× + × × ×^ −

×