Lecture 12 – Managing Metastability in Systems

Ryan Robucci
• Spacebar to advance through slides in order • Shift-Spacebar to go back • Arrow keys for navigation
• ESC/O-Key to see slide overview • ? to see help
Printable Version

References

Metastability is Unsolvable

MIT, original author unknown, see note

Synchronizers in Digital Input Circuitry (microcontroller):

Note the use of a synchronizer in the following datasheet:

ww1.microchip.com/downloads/en/DeviceDoc/doc8018.pdf#page=66

FIFO as Synchronizers

Understanding Metastability in FPGAs

Page 5:
FPGA Architecture Enhancements:

The metastability time constant C2 in the MTBF equation depends on various factors related to the process technology used to manufacture the device, including the transistor speed and the supply voltage. Faster process technologies and faster transistors allow metastable signals to resolve more quickly. As FPGAs have migrated from 180-nm process geometries to 90 nm, the increase in transistor speed usually improves metastability MTBF. Therefore, metastability has not been a major concern for FPGA designers.
However, as the supply voltage reduces with reduced process geometries, the threshold voltage for the circuit does not decrease proportionally. When a register goes metastable, its voltage is approximately one-half of the supply voltage. With a reduced power supply voltage, the metastable voltage level is closer to the threshold voltage in the circuit. When these voltages get closer together, the gain of the circuit is reduced and the registers take longer to transition out of metastability. As FPGAs enter the 65-nm process geometry and lower, with power supplies at 0.9V and lower, the threshold voltage consideration is becoming more important than the increase in transistor speed. Therefore, metastability MTBFs generally get worse unless the vendor designs the FPGA circuitry to improve metastability robustness.

Altera uses metastability analysis of the FPGA architecture to optimize the circuitry for improved metastability MTBF. Architecture improvements in Altera’s 40-nm Stratix ® IV FPGA architectures and new device development have improved the metastability robustness results by reducing the MTBF C2 constant.

MTBF and Timing Slack

When is more slack better and when is less slack fine?

ꭝMetastability in Altera Devices Page 5:
Design Optimizations

MTBF with Multiple Points of Failure

ꭝꭝMetastability in Altera Devices Page 5:

Next Lecture On Clock Domain Crossing

Briefly Mention In-Class, Covered Next Lecture:
Synthesis and Scripting Techniques for Designing MultiAsynchronous Clock Designs (2001)
http://www.sunburst-design.com/papers/CummingsSNUG2001SJ_AsyncClk.pdf

Details of Code for FIFO implementation shown at end of 2001 paper:
Simulation and Synthesis Techniques for Asynchronous
FIFO Design (2002)
http://www.sunburst-design.com/papers/CummingsSNUG2002SJ_FIFO1.pdf

Interview Questions

https://www.glassdoor.com/Interview/uk-digital-design-engineer-interview-questions-SRCH_IL.0,2_IN2_KO3,26.htm
Cisco: Clock domain crossings in cases where very fast sending signals arriving at a much slower clock domain. How to capture without losing any incoming signal event into the slow clock domain? No idea as to how frequent or how long incoming events appear.

Apple Interview Question:
https://www.glassdoor.com/Interview/Describe-how-a-multi-bit-synchronizer-async-fifo-handles-the-variable-delay-of-each-bit-QTN_1243086.htm