第七章同步电路.ppt
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《第七章同步电路.ppt》由会员分享,可在线阅读,更多相关《第七章同步电路.ppt(39页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、SoC设计方法与实现设计方法与实现郭炜郭炜 郭筝郭筝 谢憬谢憬第七章第七章同步电路设计及与异步同步电路设计及与异步信号交互问题信号交互问题OutlineSynchronous Design vs.Asynchronous DesignAsynchronous Interface nMetastabilitynSlow clock domain to fast clock domainnFast clock domain to slow clock domainGeneral Clock Strategy About Synchronous DesignWhat is synchronous d
2、esign circuit?nAll clocked element,such as flip flops(FFs)or registers,share a common clock signal(a globally distributed clock)nData changes based on clk edgesnExample:clk reaches to R1 and R2 at the same time How to guarantee synchronous design for millions of gates in layout?Clock Tree Synthesis(
3、CTS)supported by EDA company used to solve the problemClock Tree Synthesis CTS tool will do:nParasitic extractionnDelay calculationnTiming analysisnPlacementnRoutingTopologies:nH treen.Pros and ConsProsnFully supported by EDA toolsnStatic timing analysis tools are designed to report timing problem o
4、n one-clock synchronous designsnEasy to implementConsnNoise caused by the gates on the clock path nClock skew nIncreased chip areanIncreased powerAbout Asynchronous DesignTransition can be done at any time-Not controlled by any global or local clockAsynchronous Design cont.Designing a purely asynchr
5、onous circuit is a nontrivial and potentially hazardous tasknHow to avoid race and hazard conditions?nNot supported by EDA toolsnHandshaking protocols result in complexityOutlineSynchronous Design vs.Asynchronous DesignAsynchronous Interface nMetastabilitynSlow clock domain to fast clock domainnFast
6、 clock domain to slow clock domainGeneral Clock Strategy MetastabilityObserved:nasynchronous inputs in synchronous systems lead to system failure(also called synchronization failure)Metastability-contAn asynchronous input which can change at any time with respect to the clock edges of the synchronou
7、s system.When a FF input signal is changing state at or near the instant of active clk edge occurring.Metastable statenThe output of the device does not reach either of the valid logic levels but between the two for a time that is long compared with the normal timing delays of the device or may even
8、 oscillate.nIf the signal bdat1 is propagated to the rest of the design before it comes to a stable state,synchronous failure will occur.More cases in real ASIC design world nInput data from UART,SSI,devices to another device/chipnAsynchronous external reset Metastability-contAvoid Metastability Cas
9、e I Case 1:signal from slow CLK domain enter into fast CLK domainCommon approach is 2 stage FF synchronizer Extra clock cycle added to delay.This must be acceptable in application if this type of solution is chosen Two Stage FF SynchronizerTwo FFs Synchronizer cont.Two Stage FF Synchronizer cont.But
10、 a synchronizer does not eliminate the possibility of metastable failure.It only limits its occurrence within the synchronizer and thereby minimize its effect on the system Bad news-building a perfect synchronizer that always delivers a legal answer is impossible!MTBF Mean time between failures(MTBF
11、)for a single flip-flop:MTBF=(nsec)T :the period of the synchronizing clock Ts:is the setting timel:the mean rate of arrival of data edgestand To:describe the metastability performance of the flip-flopA Shift Register Synchronizer:A chain of(N+1)flip-flops Assumed that a metastable state is transfer
12、red along the chain of flip-flops by simple sampling Simplified Equation tp is the propagation delay of a flip-flopThe more stage,the more stable.But introduce longer delay MTBF=Avoid Metastability Case IICase II:Signal from Fast Clock Domain into Slow Clock DomainProblem:a signal from a fast clock
13、domain only asserted for one fast clock cycle before it can be sampled into a slow clock domain.Can not solve the problem!If using 2 stage FF synchronizer:Common Practical Solution Handshaking ProtocolExample 1:To assert control signal for a period of time that exceeds the cycle time of the sampling
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 第七 同步 电路
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内