What is metastability?

1 什么是亚稳态?

如果一个触发器的输入不满足建立时间和保持时间的要求时,触发器的输出就进入了一个不确定的状态(也就是亚稳态)。亚稳态最后有可能是1也有可能是0,整个这个过程叫做亚稳态。如下图所示Tsu是建立时间、Th是保持时间,当触发器的输入信号D不满足建立时间和保持时间的要求时,会出现亚稳态。

What is metastability?(转-译) - huihui - 辉辉的博客

如果触发器进入亚稳态,如下图所示:输出会在0和1之间振荡(这里最终输出稳定到0),可以看到在输出稳定之前花了很长时间在振荡(这个时间依赖于触发器的性能)。

What is metastability?(转-译) - huihui - 辉辉的博客

在触发器建立时间和保持时间没有满足时,我们来看一下触发器内部的工作状态,以上升沿D触发器为例,当时钟上升沿正好发生在触发器的输入D正准备给master latch传递数据的时候(也就是说时钟上升沿来的时候,想要通过触发器传递的数据正好来),这时触发器最有可能进入亚稳态,This rising clock causes the master latch to try to capture its current value while the slave latch is opened allowing the Q output to follow the "latched" value of the master. The most perfectly "caught" quasi-stable state (on the very top of the hill) results in the longest time required for the flip-flop to resolve itself to one of the stable states.

What is metastability?(转-译) - huihui - 辉辉的博客

2 亚稳态持续时间长短

如上图所示,处于稳定状态的逻辑0和逻辑1要比亚稳态稳定很多。理论上处于亚稳态的触发器会持续处于亚稳态,但是实际中它不会持续处于亚稳态,正如在空气中皮球不会来回振荡一样,热和噪声最终会使亚稳态最终趋于0或者1(不确定最终会是哪个)。

3 亚稳态出现的原因

当一个触发器输入的建立时间和保持时间不满足时,会出现亚稳态,下面我们需要知道建立时间和保持时间需要满足多长时间。

  • 当输入信号是一个不对称信号时
  • 当时钟skew/slew太大时(上升时间和下降时间太大时)
  • 处于两个时钟域的接口电路、同一时钟内不同相位的电路
  • when the combinational delay is such that flip-flop data input changes in the critical window(setup+hold window)

4 什么是MTBF

MTBF是平均无故障时间,也就是平均两次故障之间的时间,下图给出了一个触发器的MTBF以及MTBF等式。

What is metastability?(转-译) - huihui - 辉辉的博客

 5 我们该怎么避免出现亚稳态

In reality, one cannot avoid metastability and increased clock-to-Q delays in synchronizing asynchronous inputs, without the use of tricky self-timed circuits. So a more appropriate question might be"怎么最大程度容忍亚稳态".

设计者可以使用的最简单的方法是提高时钟周期(也就是降低时钟频率),This approach ,while simple,is rarely practical given the performance requirements of most modern designs.

The most common way to tolerate metastabiligy is to add one or more successive synchronizing flip-flops to the synchronizer.This approach allows for an entire clock period(except for the setup time of the second flip-flop) for metastable events in the first synchronizing flip-flop to resolve themselves. This does,however,increase the latency in the synchronous logic's observation of input changes.

Neither of these approaches can guarantee that metastabiligy cannot pass through the synchronizer;they simply reduce the probability to practical levels.

In quantitative terms,if the MTBF of a particular flip-flop in the context of a given clock rate and input transition rate is 33.33seconds then the MTBF of two such flip-flops used to synchronize the input would be(33.33* 33.33) = 18.514 Minutes. Well I have taken the worst flip-flop ever designed in history of man kind :-). The figure below shows how to connect two flip-flops in series to achieve this and also the resultant MTBF.

What is metastability?(转-译) - huihui - 辉辉的博客

Normally,

  • we can use a metastable hardened flip-flop
  • cascade two or three DFF

参考文献

  • Thomas J. Chaney, "Measured Flip-Flop Responses to Marginal Triggering", IEEE Transactions on Computers, Vol. C-32. No. 12, December 1983, pp.1207-1209.
  • Lindsay Kleeman and Antonio Cantoni, "On the Unavoidability of Metastable Behavior in Digital Systems", IEEE Transactions on Computers, Vol. C-36. No. 1, January 1987, pp.109-112.
  • Lindsay Kleeman and Antonio Cantoni, "Can Redundancy and Masking Improve the Performance of Synchronizers?", IEEE Transactions on Computers, Vol. C-35, No. 7, July 1986, pp.643-646.
  • Cypress Semiconductor, "Are Your PLDs Metastable?, Fax ID: 6403, May 1992, Revised March 6,1997. http://www.cypress.com/pld/pldappnotes.html#pldmeta
  • http://www.xilinx.com/apps/xapp.htm
  • M. Valencia, M. J. Bellido, J. L. Huertas, A. J. Acosta, and S. Sanchez-Solano, "Modular Asynchronous Arbiter Insensitive to Metastability. IEEE Transactions on Computers, 44(12):1456-1461, December 1995
内容概要:《2024年中国城市低空经济发展指数报告》由36氪研究院发布,指出低空经济作为新质生产力的代表,已成为中国经济新的增长点。报告从发展环境、资金投入、创新能力、基础支撑和发展成效五个维度构建了综合指数评价体系,评估了全国重点城市的低空经济发展状况。北京和深圳在总指数中名列前茅,分别以91.26和84.53的得分领先,展现出强大的资金投入、创新能力和基础支撑。低空经济主要涉及无人机、eVTOL(电动垂直起降飞行器)和直升机等产品,广泛应用于农业、物流、交通、应急救援等领域。政策支持、市场需求和技术进步共同推动了低空经济的快速发展,预计到2026年市场规模将突破万亿元。 适用人群:对低空经济发展感兴趣的政策制定者、投资者、企业和研究人员。 使用场景及目标:①了解低空经济的定义、分类和发展驱动力;②掌握低空经济的主要应用场景和市场规模预测;③评估各城市在低空经济发展中的表现和潜力;④为政策制定、投资决策和企业发展提供参考依据。 其他说明:报告强调了政策监管、产业生态建设和区域融合错位的重要性,提出了加强法律法规建设、人才储备和基础设施建设等建议。低空经济正加速向网络化、智能化、规模化和集聚化方向发展,各地应找准自身比较优势,实现差异化发展。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值