SlideShare a Scribd company logo
USB DESIGN HOUSE                   METASTABILITY   1




                   Metastability




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                          METASTABILITY   2


  Clock
 It is a Periodic Event, causes state of memory element to change.
 It can be of rising edge, falling edge, high level, low level.




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                           METASTABILITY   3

       Timing requirements of edge triggered flip-flops




    There is a timing
  "window" around the     ts-set up time
     clocking event        Minimum time before the clocking event by which the
 during which the input   input must be stable
   must remain stable
     and unchanged        th-hold time
        in order          Minimum time after the clocking event during which
    to be recognized      the input must remain stable

2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                          METASTABILITY   4

  Metastability
               Async in   Synchronous
                          system

                    CLK

  •In non-synchronous systems, if the asynchronous input
  signals violate a flip flop's timing requirements, the
  output of the flip flops can become metastable.




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                       METASTABILITY   5


                    Bistable element
             HIGH                      LOW



             LOW                         HIGH



           LOW                         HIGH




           HIGH                          LOW
2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                     METASTABILITY   6


     Metastability
        Metastability is inherent in any bistable circuit




        Two stable points, one metastable point



2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                              METASTABILITY   7

    Another look at metastability




  The likelihood that a flip-flop enters a metastable state and
  the time required to return to a stable state varies
  depending on the process technology used to manufacture
  the device and on the ambient conditions. Generally, flip-
  flops will quickly return to a stable state
2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                           METASTABILITY   8




  Avoiding Metastability
                   How?

  •Inputs must be synchronized with the system clock
  before being applied to a synchronous system.




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                         METASTABILITY   9
                    A simple synchronizer




  As shown in above figure, a D flip-flop samples the asynchronous
  input at each of the system clock and produces a synchronous
  output that is valid during the next clock period.
  •But there is a problem ?
  •the synchronizer output may become metastable when setup and
  hold time are not met.


2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                               METASTABILITY     10

                   Only one synchronizer per input




  In this design, the two flip-flops will not see clock and input at precisely
  same time because of physical delays in the circuit. Therefore when
  asynchronous input transitions occur near the clock edge, there is a small
  window of time during which one flip-flop may sample the input as 1 and the
  other may sample it as 0.
2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                           METASTABILITY   11
 An asynchronous input driving two synchronizers through
 combinational logic.




    The different paths through the combinational logic will inevitably have
    different delays, the likelihood of an inconsistent result is even more
    greater. The proper way to use an asynchronous signal as a state
    machine input is as shown in next figure.

2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                                METASTABILITY       12


   Better Way To Synchronize Asynchronous Input In
   State Machine.




     All of the excitation (Combinational) logic sees the same synchronized input
     signal, SYNCIN.

2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                              METASTABILITY   13


 Synchronizer failure and Metastability resolution time

   •Synchronizer failure is said to occur if the system uses
    synchronizer output while the output is still in
    metastable state.

   •One way to get a flip-flop out of a metastable state is
    to wait long enough so the flip-flop comes out
    of metastability on its own.




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                               METASTABILITY   14

 Metastability resolution time

  •It is the maximum time that the output can remain metastable
  without causing synchronizer(and system) failure.




                       For the above synchronizer the
                       Metastability resolution time
                       tr = tclk-tsu

2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                           METASTABILITY   15




  If there is any combinational ckt then
               tr=tclk-tsu-tcomb


2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                    METASTABILITY   16

  Recommended synchronizer design




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                              METASTABILITY   17


 MTBF(Mean Time Between synchronizer Failure)
  Theoretical results suggests and experimental research
  has confirmed ,that when asynchronous inputs change
  during the decision window , the duration of
  metastability is governed by the Exponential Formula




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                                        METASTABILITY   18

 Example

 •For a typical 74LS74 flipflop,for which To=0.4 ns an T(twoe)=1.5ns.
 •Tsu=20 ns; and the clock period is 100ns (10 MHz);

 •tr(resolution time)=tclk-tsu=100-20=80 ns;

 •If the synchronizer input changes 100,000 times per second,the
 • MTBF(80 ns)=exp(80/1.5)/0.4.(10)7 .(10)5
                =3.6. 1011 seconds
                = about 100 centuries between
          failures.
 •With clk period of 62.5 ns MTBF=3.1 s !!!!!!!!!!




2012 @ USB DESIGN HOUSE
USB DESIGN HOUSE                METASTABILITY   19




                    THANK YOU




2012 @ USB DESIGN HOUSE

More Related Content

What's hot

Counters
CountersCounters
Counters
Abhilash Nair
 
vlsi design flow
vlsi design flowvlsi design flow
vlsi design flowAnish Gupta
 
Low Power VLSI Design
Low Power VLSI DesignLow Power VLSI Design
Low Power VLSI Design
Mahesh Dananjaya
 
VLSI Testing Techniques
VLSI Testing TechniquesVLSI Testing Techniques
VLSI Testing Techniques
A B Shinde
 
Timing Analysis
Timing AnalysisTiming Analysis
Timing Analysis
rchovatiya
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
ShivamSood22
 
UVM Driver sequencer handshaking
UVM Driver sequencer handshakingUVM Driver sequencer handshaking
UVM Driver sequencer handshaking
HARINATH REDDY
 
AHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptxAHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptx
GuckChick
 
Asic design flow
Asic design flowAsic design flow
Asic design flow
yogeshwaran k
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
VLSI Physical Design Automation.ppt
VLSI Physical Design Automation.pptVLSI Physical Design Automation.ppt
VLSI Physical Design Automation.ppt
RichikDey5
 
Mealy state machine
Mealy state machineMealy state machine
Mealy state machineArif Siyal
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
manishpatel_79
 
Avr microcontroller
Avr microcontrollerAvr microcontroller
Avr microcontroller
Dhananjay Chauhan
 
Phase locked loop
Phase locked loopPhase locked loop
Phase locked loop
Preet_patel
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
vishalgohel12195
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
Sudhanshu Janwadkar
 
Design for Testability
Design for Testability Design for Testability
Design for Testability
kumar gavanurmath
 
UNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINESUNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINESDr.YNM
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
Shreyans Pathak
 

What's hot (20)

Counters
CountersCounters
Counters
 
vlsi design flow
vlsi design flowvlsi design flow
vlsi design flow
 
Low Power VLSI Design
Low Power VLSI DesignLow Power VLSI Design
Low Power VLSI Design
 
VLSI Testing Techniques
VLSI Testing TechniquesVLSI Testing Techniques
VLSI Testing Techniques
 
Timing Analysis
Timing AnalysisTiming Analysis
Timing Analysis
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
UVM Driver sequencer handshaking
UVM Driver sequencer handshakingUVM Driver sequencer handshaking
UVM Driver sequencer handshaking
 
AHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptxAHB To APB BRIDGE.pptx
AHB To APB BRIDGE.pptx
 
Asic design flow
Asic design flowAsic design flow
Asic design flow
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
VLSI Physical Design Automation.ppt
VLSI Physical Design Automation.pptVLSI Physical Design Automation.ppt
VLSI Physical Design Automation.ppt
 
Mealy state machine
Mealy state machineMealy state machine
Mealy state machine
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
 
Avr microcontroller
Avr microcontrollerAvr microcontroller
Avr microcontroller
 
Phase locked loop
Phase locked loopPhase locked loop
Phase locked loop
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
Design for Testability
Design for Testability Design for Testability
Design for Testability
 
UNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINESUNIT-IV .FINITE STATE MACHINES
UNIT-IV .FINITE STATE MACHINES
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 

Viewers also liked

Perils of an Old Metric: MTBF
Perils of an Old Metric: MTBFPerils of an Old Metric: MTBF
Perils of an Old Metric: MTBF
Accendo Reliability
 
Timing issues in digital circuits
Timing issues in digital circuitsTiming issues in digital circuits
Timing issues in digital circuits
aroosa khan
 
Basics in Maintenance
Basics in MaintenanceBasics in Maintenance
Basics in Maintenanceraghuttam
 
Cuadros de mantenimiento de maquinarias
Cuadros de mantenimiento de maquinariasCuadros de mantenimiento de maquinarias
Cuadros de mantenimiento de maquinarias
Anibal Cruz
 
Maintenance
MaintenanceMaintenance
Maintenance
Kulbhushan Sharma
 
6 formato mantenimientos y cronograma
6 formato mantenimientos y cronograma6 formato mantenimientos y cronograma
6 formato mantenimientos y cronogramaPaola Rincon
 
Formatos basicos de mantenimiento
Formatos basicos de mantenimientoFormatos basicos de mantenimiento
Formatos basicos de mantenimientolinamartinfer
 
Types of maintenance
Types of maintenanceTypes of maintenance
Types of maintenanceAbhik Rathod
 
Maintenance Management
Maintenance ManagementMaintenance Management
Maintenance Management
Bisina Keshara
 

Viewers also liked (10)

Perils of an Old Metric: MTBF
Perils of an Old Metric: MTBFPerils of an Old Metric: MTBF
Perils of an Old Metric: MTBF
 
Timing issues in digital circuits
Timing issues in digital circuitsTiming issues in digital circuits
Timing issues in digital circuits
 
Overview and Basic Maintenance
Overview and Basic MaintenanceOverview and Basic Maintenance
Overview and Basic Maintenance
 
Basics in Maintenance
Basics in MaintenanceBasics in Maintenance
Basics in Maintenance
 
Cuadros de mantenimiento de maquinarias
Cuadros de mantenimiento de maquinariasCuadros de mantenimiento de maquinarias
Cuadros de mantenimiento de maquinarias
 
Maintenance
MaintenanceMaintenance
Maintenance
 
6 formato mantenimientos y cronograma
6 formato mantenimientos y cronograma6 formato mantenimientos y cronograma
6 formato mantenimientos y cronograma
 
Formatos basicos de mantenimiento
Formatos basicos de mantenimientoFormatos basicos de mantenimiento
Formatos basicos de mantenimiento
 
Types of maintenance
Types of maintenanceTypes of maintenance
Types of maintenance
 
Maintenance Management
Maintenance ManagementMaintenance Management
Maintenance Management
 

Similar to Metastability

Intro
IntroIntro
Clock Gating
Clock GatingClock Gating
Clock Gating
Mahesh Dananjaya
 
Low Power VLSI Designs
Low Power VLSI DesignsLow Power VLSI Designs
Low Power VLSI Designs
Mahesh Dananjaya
 
VLSI Power in a Nutshell
VLSI Power in a NutshellVLSI Power in a Nutshell
VLSI Power in a Nutshell
Mahesh Dananjaya
 
Low power electronic design
Low power electronic designLow power electronic design
Low power electronic design
Mahesh Dananjaya
 
SoC Power Reduction
SoC Power ReductionSoC Power Reduction
SoC Power Reduction
Mahesh Dananjaya
 
20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)
20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)
20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)
Darpan Dinker
 
ppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.sppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.s
muskans14
 
VLSI Power Reduction
VLSI Power ReductionVLSI Power Reduction
VLSI Power Reduction
Mahesh Dananjaya
 
ECI OpenFlow 2.0 the Future of SDN
ECI OpenFlow 2.0 the Future of SDN ECI OpenFlow 2.0 the Future of SDN
ECI OpenFlow 2.0 the Future of SDN
ECI – THE ELASTIC NETWORK™
 
Lec sequential
Lec sequentialLec sequential
Lec sequential
UmAir AsgHar
 
High performance network programming on the jvm oscon 2012
High performance network programming on the jvm   oscon 2012 High performance network programming on the jvm   oscon 2012
High performance network programming on the jvm oscon 2012
Erik Onnen
 
wd1-01-jaseel-madhusudan-pres-user
wd1-01-jaseel-madhusudan-pres-userwd1-01-jaseel-madhusudan-pres-user
wd1-01-jaseel-madhusudan-pres-userjaseel_abdulla
 
ZERO WIRE LOAD MODEL.pptx
ZERO WIRE LOAD MODEL.pptxZERO WIRE LOAD MODEL.pptx
ZERO WIRE LOAD MODEL.pptx
VishalYadav29718
 
CLOCKLESS CHIP BY Saurabh singh
CLOCKLESS CHIP BY Saurabh singhCLOCKLESS CHIP BY Saurabh singh
CLOCKLESS CHIP BY Saurabh singhSaurabh Singh
 
Manja ppt
Manja pptManja ppt
Manja ppt
Druva Gowda
 
Intro to IO-Link
Intro to IO-LinkIntro to IO-Link
Intro to IO-Link
Neil Farrow, P.E.
 
MySQL Replication: Pros and Cons
MySQL Replication: Pros and ConsMySQL Replication: Pros and Cons
MySQL Replication: Pros and Cons
Rachel Li
 
14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing
Usha Mehta
 

Similar to Metastability (20)

Intro
IntroIntro
Intro
 
Clock Gating
Clock GatingClock Gating
Clock Gating
 
Low Power VLSI Designs
Low Power VLSI DesignsLow Power VLSI Designs
Low Power VLSI Designs
 
VLSI Power in a Nutshell
VLSI Power in a NutshellVLSI Power in a Nutshell
VLSI Power in a Nutshell
 
Low power electronic design
Low power electronic designLow power electronic design
Low power electronic design
 
SoC Power Reduction
SoC Power ReductionSoC Power Reduction
SoC Power Reduction
 
20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)
20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)
20 Real-World Use Cases to help pick a better MySQL Replication scheme (2012)
 
ppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.sppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.s
 
VLSI Power Reduction
VLSI Power ReductionVLSI Power Reduction
VLSI Power Reduction
 
ECI OpenFlow 2.0 the Future of SDN
ECI OpenFlow 2.0 the Future of SDN ECI OpenFlow 2.0 the Future of SDN
ECI OpenFlow 2.0 the Future of SDN
 
Lec sequential
Lec sequentialLec sequential
Lec sequential
 
High performance network programming on the jvm oscon 2012
High performance network programming on the jvm   oscon 2012 High performance network programming on the jvm   oscon 2012
High performance network programming on the jvm oscon 2012
 
wd1-01-jaseel-madhusudan-pres-user
wd1-01-jaseel-madhusudan-pres-userwd1-01-jaseel-madhusudan-pres-user
wd1-01-jaseel-madhusudan-pres-user
 
ZERO WIRE LOAD MODEL.pptx
ZERO WIRE LOAD MODEL.pptxZERO WIRE LOAD MODEL.pptx
ZERO WIRE LOAD MODEL.pptx
 
CLOCKLESS CHIP BY Saurabh singh
CLOCKLESS CHIP BY Saurabh singhCLOCKLESS CHIP BY Saurabh singh
CLOCKLESS CHIP BY Saurabh singh
 
Manja ppt
Manja pptManja ppt
Manja ppt
 
Intro to IO-Link
Intro to IO-LinkIntro to IO-Link
Intro to IO-Link
 
MySQL Replication: Pros and Cons
MySQL Replication: Pros and ConsMySQL Replication: Pros and Cons
MySQL Replication: Pros and Cons
 
14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing
 
Vsync track c
Vsync   track cVsync   track c
Vsync track c
 

Metastability

  • 1. USB DESIGN HOUSE METASTABILITY 1 Metastability 2012 @ USB DESIGN HOUSE
  • 2. USB DESIGN HOUSE METASTABILITY 2 Clock It is a Periodic Event, causes state of memory element to change. It can be of rising edge, falling edge, high level, low level. 2012 @ USB DESIGN HOUSE
  • 3. USB DESIGN HOUSE METASTABILITY 3 Timing requirements of edge triggered flip-flops There is a timing "window" around the ts-set up time clocking event Minimum time before the clocking event by which the during which the input input must be stable must remain stable and unchanged th-hold time in order Minimum time after the clocking event during which to be recognized the input must remain stable 2012 @ USB DESIGN HOUSE
  • 4. USB DESIGN HOUSE METASTABILITY 4 Metastability Async in Synchronous system CLK •In non-synchronous systems, if the asynchronous input signals violate a flip flop's timing requirements, the output of the flip flops can become metastable. 2012 @ USB DESIGN HOUSE
  • 5. USB DESIGN HOUSE METASTABILITY 5 Bistable element HIGH LOW LOW HIGH LOW HIGH HIGH LOW 2012 @ USB DESIGN HOUSE
  • 6. USB DESIGN HOUSE METASTABILITY 6 Metastability  Metastability is inherent in any bistable circuit  Two stable points, one metastable point 2012 @ USB DESIGN HOUSE
  • 7. USB DESIGN HOUSE METASTABILITY 7 Another look at metastability The likelihood that a flip-flop enters a metastable state and the time required to return to a stable state varies depending on the process technology used to manufacture the device and on the ambient conditions. Generally, flip- flops will quickly return to a stable state 2012 @ USB DESIGN HOUSE
  • 8. USB DESIGN HOUSE METASTABILITY 8 Avoiding Metastability How? •Inputs must be synchronized with the system clock before being applied to a synchronous system. 2012 @ USB DESIGN HOUSE
  • 9. USB DESIGN HOUSE METASTABILITY 9 A simple synchronizer As shown in above figure, a D flip-flop samples the asynchronous input at each of the system clock and produces a synchronous output that is valid during the next clock period. •But there is a problem ? •the synchronizer output may become metastable when setup and hold time are not met. 2012 @ USB DESIGN HOUSE
  • 10. USB DESIGN HOUSE METASTABILITY 10 Only one synchronizer per input In this design, the two flip-flops will not see clock and input at precisely same time because of physical delays in the circuit. Therefore when asynchronous input transitions occur near the clock edge, there is a small window of time during which one flip-flop may sample the input as 1 and the other may sample it as 0. 2012 @ USB DESIGN HOUSE
  • 11. USB DESIGN HOUSE METASTABILITY 11 An asynchronous input driving two synchronizers through combinational logic. The different paths through the combinational logic will inevitably have different delays, the likelihood of an inconsistent result is even more greater. The proper way to use an asynchronous signal as a state machine input is as shown in next figure. 2012 @ USB DESIGN HOUSE
  • 12. USB DESIGN HOUSE METASTABILITY 12 Better Way To Synchronize Asynchronous Input In State Machine. All of the excitation (Combinational) logic sees the same synchronized input signal, SYNCIN. 2012 @ USB DESIGN HOUSE
  • 13. USB DESIGN HOUSE METASTABILITY 13 Synchronizer failure and Metastability resolution time •Synchronizer failure is said to occur if the system uses synchronizer output while the output is still in metastable state. •One way to get a flip-flop out of a metastable state is to wait long enough so the flip-flop comes out of metastability on its own. 2012 @ USB DESIGN HOUSE
  • 14. USB DESIGN HOUSE METASTABILITY 14 Metastability resolution time •It is the maximum time that the output can remain metastable without causing synchronizer(and system) failure. For the above synchronizer the Metastability resolution time tr = tclk-tsu 2012 @ USB DESIGN HOUSE
  • 15. USB DESIGN HOUSE METASTABILITY 15 If there is any combinational ckt then tr=tclk-tsu-tcomb 2012 @ USB DESIGN HOUSE
  • 16. USB DESIGN HOUSE METASTABILITY 16 Recommended synchronizer design 2012 @ USB DESIGN HOUSE
  • 17. USB DESIGN HOUSE METASTABILITY 17 MTBF(Mean Time Between synchronizer Failure) Theoretical results suggests and experimental research has confirmed ,that when asynchronous inputs change during the decision window , the duration of metastability is governed by the Exponential Formula 2012 @ USB DESIGN HOUSE
  • 18. USB DESIGN HOUSE METASTABILITY 18 Example •For a typical 74LS74 flipflop,for which To=0.4 ns an T(twoe)=1.5ns. •Tsu=20 ns; and the clock period is 100ns (10 MHz); •tr(resolution time)=tclk-tsu=100-20=80 ns; •If the synchronizer input changes 100,000 times per second,the • MTBF(80 ns)=exp(80/1.5)/0.4.(10)7 .(10)5 =3.6. 1011 seconds = about 100 centuries between failures. •With clk period of 62.5 ns MTBF=3.1 s !!!!!!!!!! 2012 @ USB DESIGN HOUSE
  • 19. USB DESIGN HOUSE METASTABILITY 19 THANK YOU 2012 @ USB DESIGN HOUSE