Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

MetaStability

Altera_Forum
Honored Contributor II
1,979 Views

How long is the duration of metastability in a flipflop? If metastability occurs in one cycle i.e. data edge coincides with clock edge and in the next cycle data is stable at the clock edge, will the output of flipflop still remain metastable in the next clock cycle?

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
363 Views

No, it should go stable again. 

 

If there is a risk of meta stable values in your system (other than synchronisers) you have a problem with your design.
0 Kudos
Altera_Forum
Honored Contributor II
363 Views

 

--- Quote Start ---  

No, it should go stable again. 

 

If there is a risk of meta stable values in your system (other than synchronisers) you have a problem with your design. 

--- Quote End ---  

 

 

The data signal is generated at 122.88 MHz and sampled at 153.76 MHz via two synchronizers. Is it required to pulse stretch the data signal? The sampling clock is faster than the data signal.
0 Kudos
Altera_Forum
Honored Contributor II
363 Views

 

--- Quote Start ---  

The data signal is generated at 122.88 MHz and sampled at 153.76 MHz via two synchronizers. Is it required to pulse stretch the data signal? The sampling clock is faster than the data signal. 

--- Quote End ---  

 

I think your problem is not metastability per se but how to pass data fom one clock domain to other. 

If you want to keep sampling rate as 122.88 then use dc fifo 

if you want to upsample to new rate then use filter
0 Kudos
Altera_Forum
Honored Contributor II
363 Views

Technically metastability can last forever, which is why it's generally reported as an MTBF, or Mean Time Between Failures. That being said, you can get that MTBF up to trillions of years or more, making it pretty much a guarantee it won't happen.  

https://newwww.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/wp/wp-01082-quartus-ii-metastability.pdf 

That being said, Quartus can analyze metastability, not only by synchronizer but for the whole design: 

https://newwww.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/hb/qts/qts_qii51018.pdf
0 Kudos
Reply