Your SlideShare is downloading. ×
Vsync   track c
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Vsync track c

591
views

Published on

Published in: Education

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
591
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Variations cause: skew, jitter and drifts.
  • - While latches can present an intermediate voltage at the outputs, FF just present an non-deterministic delay (the chance of having intermediate voltage is very low thanks to the inverters asymmetry).
  • Here we allow one cycle for settling
  • This is easy to chart with Excel or similar tool. You can draw your own if you need to change any of the parameters. If you can decide how much MTBF you want, you can find out how long S should be. Alternative formats of drawing the data were published by Xilinx in 2002 (reference below). Note that if F C remains the same but we consider the slow corner (tau and W 50% higher, say tau=100ps and W=200ps), the MTBF values are smaller. But there is also a simpler way of approaching this.
  • FO4 gate delay depends (roughly) linearly or quadratically on voltage. But MTBF depends exponentially on delay, hence exponentially on voltage !!!
  • Transcript

    • 1. Synchronization Issues in Multiple-Clock Domain Designs Reuven Dobkin vSync Circuits ltd. www.vsyncc.com May 4, 2010
    • 2. Outline
      • Multiple Clock Domain designs
      • Metastability and MTBF
      • Common synchronization mistakes
      • Advanced synchronization with EDA tools
    • 3. Multiple Clock Domain (MCD) Designs
    • 4. Multiple Clock Domains (1)
      • Where can I encounter MCD?
        • Everywhere!
      • Single clock domain distribution is cumbersome in large designs due to:
        • Variations (cells and interconnect)
        • Clock uncertainty (skew) limits the performance
        • Actually we always have ‘mesochronous’ clocks (same freq, slightly different phase), which are “synchronized” by timing assumptions (maximal skew)
    • 5. Multiple Clock Domains (2)
      • System-on-Chip (ASIC or FPGA)
        • Usually consists of multiple IP-blocks
        • Each IP works with its own clock
        • Local / Global clock gating
        • Dynamic Voltage and Frequency Scaling (DVFS):
          • The speed of each module may change over time for power reduction
    • 6. Taxonomy of Multiple Clock Domains R. Dobkin, R. Ginosar, &quot;Fast Universal Synchronizers,&quot; PATMOS, 2008 0 drifts Multi-synchronous Asynchronous f d >  Periodic f d <  Varies Plesiochronous 0  c Mesochronous 0 0 Synchronous  f  Class
    • 7. Inter-MCD Communication
      • Data transfer between different clock domains should be performed carefully
      • Incoming data change near receiver clock sampling edge causes metastability , which may lead to a functional failure
        • Either set-up or hold time is not satisfied
    • 8. Metastability and MTBF
    • 9. Metastability
      • What happens when the data changes during sampling?
      • The sampling FF becomes metastable
      • Metastability : the FF goes into an unstable intermediate state presenting non-deterministic delay
    • 10. Asynchronous Failures Clock t pd t su + t h © 2003 Prof. Ran Ginosar, Technion, 048878-VLSI Architectures In 1 Out 1 In 2 Out 2 Data conflict Long Delay In 3 Out 3 Metastability Terrible data conflict All look fine in RTL simulation! Rarely caught in GL (SU/H Warnings)! Do YOU run GL on your FPGA design?
    • 11. Synchronization Failure
      • Not a singular problem! It spreads through the entire circuit, causing total failure
      Long delay due to M/S causes violation of cycle time Failures due new M/S event or incorrect function
    • 12. M/S Handling: The Two-Flop Synchronizer
      • Allow time for Metastability settling
      • Why two flops? (could actually be 1,2,3…)
      • Settling time (S): 2 cycles
      • Latency (from RDY+ to data latching): At least 2, up to 3
      • Why synchronize RDY and not data?
      • Is this circuit enough? (NO)
      data BFF Clock B FF1 FF2 RDY enable
    • 13. MTBF Mean Time Between Failures
      • Given metastability at t = 0, probability of metastability at t > 0 = e -t/  
      •   2 FO4 gate delay
      • Failure: Still metastable by next clock
        • Failure = p(enter m.s)  p(still m.s. after T)
        • Rate(failure) = Rate(enter m.s)  p(still m.s. after T) =W  F c  F d  e -T/ 
      • MTBF = 1/ Rate( failure) =
    • 14. MTBF (various frequencies) One day One year 100 years 10K years 200MHz 400MHz 600MHz 800MHz 1 GHz © 2003 Prof. Ran Ginosar, Technion, 048878-VLSI Architectures
    • 15. MTBF: Low Voltage is Deadly ! At nominal Vdd range (0.9—1.1V), MTBF(1T) is millions of years At half nominal Vdd, ckt is only 2-3x slower, but MTBF is less than one year! 90nm NORMAL © 2003 Prof. Ran Ginosar, Technion, 048878-VLSI Architectures
    • 16.  vs. V DD and temperature
      • Tau significantly increases at low temperature and low supply voltage
      © 2003 Prof. Ran Ginosar, Technion, 048878-VLSI Architectures
    • 17.  : Recent findings (1) S. Beer, R. Dobkin, R. Ginosar, A. Kolodny, &quot;The Devolution of Synchronizers,&quot; Proc. of ASYNC, 2010. We thank our partner GiDEL for supporting this research. We also thank Freescale Semiconductor for their support.
    • 18.  : Recent findings (2) We thank our partner GiDEL for supporting this research. We also thank Freescale Semiconductor for their support. S. Beer, R. Dobkin, R. Ginosar, A. Kolodny, &quot;The Devolution of Synchronizers,&quot; Proc. of ASYNC, 2010.
    • 19. Common Synchronization Mistakes
    • 20. Not Really Errors !
      • Most examples actually work as planned
      • They may not scale, or not be portable
      • They may fail when assumptions change
    • 21. Avoiding Synchronization
      • Myth: “since MTBF is a million years, there is no metastability and I don’t need a synchronizer”
      • Truth:
        • Lots of metastability events per second
        • Design should be “metastability-tolerant”, not “metastability-free”
    • 22. One Flop Synchronizer
      • Long delay may lead to setup violation
      • Works if T SETTLE +T PD +T SETUP < T CYCLE
      • Use with caution, only in latency-critical situations
        • Real life – year 2005: 10MHz design with hundreds of clocks (signals used as clocks). Works, although unintentionally…
    • 23. Greedy Path
      • Typically wrong “edge detector”
      • Advise against in SoC methodology
      • Use with caution, only in latency-critical situations
    • 24. Parallel Synchronizer
      • This one is extremely dangerous !
    • 25. Advanced Synchronization
    • 26. Conclusion from previous slides
      • Growing number of clock domain crossings (CDC) calls for an automatic CDC handling approach:
        • Correct by design flexible synchronizer IPs
          • Customized for the specific targeted FPGA / ASIC technology
          • Enforced methodology avoiding synchronization pitfalls
        • Tool-based CDC verification
          • Sign off the design for each new change including porting to another technology
    • 27. Correct by design synchronizers
      • Guided requirement specification
      • Different interface protocols
      • Simulation models
      • Synthesis constraints
      • Efficient clock relation handling
      • Different operating conditions handling
      • FPGA/ASIC design flows support
      vSync Generator
    • 28. Tool-based CDC verification vSync Checker
      • CDC Identification
      • CDC Classification
      • Different operating conditions handling
      • Design Reliability Grading
      • RTL and GL support
      • Similar tools are available from Mentor, Atrenta and Real Intent
    • 29. Summary
      • Synchronization is essential in most of the designs we deal with today
      • Analyze all system requirements including reliability before choosing correct synchronizer
      • Need EDA tools for reliable integration of multiple CDCs
      • Validate each synchronizer
        • Make this part of design methodology
        • Use EDA tools for CDC verification
    • 30. Thank you! You are welcome to visit us at www.vsyncc.com