EDA第3章補(bǔ)充2-毛刺_第1頁(yè)
EDA第3章補(bǔ)充2-毛刺_第2頁(yè)
EDA第3章補(bǔ)充2-毛刺_第3頁(yè)
EDA第3章補(bǔ)充2-毛刺_第4頁(yè)
EDA第3章補(bǔ)充2-毛刺_第5頁(yè)
已閱讀5頁(yè),還剩22頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、11. Setup/Hold Time Problem2建立時(shí)間和保持時(shí)間建立時(shí)間和保持時(shí)間 建立時(shí)間(setup time)是指在觸發(fā)器的時(shí)鐘信號(hào)上升沿到來(lái)以前,數(shù)據(jù)穩(wěn)定不變的時(shí)間,如果建立時(shí)間不夠,數(shù)據(jù)將不能在這個(gè)時(shí)鐘上升沿被打入觸發(fā)器。保持時(shí)間(hold time)是指在觸發(fā)器的時(shí)鐘信號(hào)上升沿到來(lái)以后,數(shù)據(jù)穩(wěn)定不變的時(shí)間, 如果保持時(shí)間不夠,數(shù)據(jù)同樣不能被打入觸發(fā)器(如上圖)。 數(shù)據(jù)穩(wěn)定傳輸必須滿足建立和保持時(shí)間的要求,EDA開(kāi)發(fā)軟件可以自動(dòng)計(jì)算兩個(gè)相關(guān)輸入的建立和保持時(shí)間3Example 14My Waveform InputSetup time = 2nsHold time = 0.

2、1nsAccording to Setup/Hold Matrix Setup time needs = 2.2nsHold time needs = 0.7nsHow to fix ?It is easy. Extend the Setup time from 2ns to 2.2ns Extend the Hold time from 0.1ns to 0.7ns5Correct WaveformExtend the Setup/Hold time to remove the errorWe fix the simulation error. But do we really fix th

3、e error yet ?Simulation : means all the INPUT WAVEFORM is designer provided. We can easily adjust the INPUT WAVEFORM to remove the simulation error. We need to confirm that the REAL INPUT WAVEFORM full fill the Setup/Hold time requirement. 6Example 2All the Setup/Hold prblem between this two FF7How

4、to fix the problemLet us run the Register Performance Timing AnalysisThe Input Clock Frequency is only 3.2ns width 300MHz8ConclusionIf the Setup/Hold time error happen on the Input Register (Example 1)run the Setup/Hold time Matrix to get informationadjust the Input Waveform but double confirm with

5、the real time operation signalIf the Setup/Hold time error happen between Two Register (Example 2)run the Register Performance to get Fmaxmake sure that the input clock frequency is less than or equal to the Fmax92. Design of Combinational Circuit10What is Combinational CircuitCombinational Circuit

6、ifOutputs at a specificed time are a function only of the at that timeexample of combinational circuitaddress decodersmultiplexersadders11The Simplest Combinational CircuitNothing can be simplest than 2 input AND Gate or 2 input OR Gate2 input AND/OR gate is as simple as 1+1 = 2Altera Device can not

7、 handle this so Simple Circuit122 input AND Gate Input WaveformOutput WaveformWhat happen ?But are you sure it is really so Simple ?13Take a closer lookLook at the Delay MatrixWhat is it means ?Assume the AND gate internaldelay is 0.2nsSimple Arithmetic CalculationFor Signal b :(Trace delay of b) +

8、AND gate internal delay = 8.1ns(Trace delay of b) + 0.2ns = 8.1ns(Trace delay of b) = 7.9nsFor Signal a :(Trace delay of a) + AND gate internal delay = 11.1ns(Trace delay of a) + 0.2ns = 11.1ns(Trace delay of a) = 10.9ns14續(xù)續(xù)Time : 0ns1-00-1001(Trace delay of b) = 7.9ns(Trace delay of a) = 10.9nsTime

9、 : 7.9ns01011Time : 8.1ns01111Time : 10.9ns01110Time : 11.1ns01010Output C change from “0” to “1” at 8.1nsA 3 ns Pulse generate (10.9-7.9 = 3ns)Output C change back from “1” to “0” as the final result15Key Point of Combinational DesignDesign with 2 input AND gate is not as easy as 1+1=2We need to co

10、nsider the Trace Delay and Gate Delay for Combinational Logic: The output of C is “0” : The output of C has a Glitch with 3ns widthIn this example, the 3ns Glitch is caused by Trace DelayEngineer Design Circuit work with not only16續(xù)續(xù)If you want your cirucit work RELIABLE, you need to consider This i

11、s not Altera Device ProblemThis is Design Problem17Go back to the First ExampleNow, we all know that a 2 input AND gate when involve with timing is not as easy as 1+1=218ReminderWhen Glitch will happenwhen more than one signals change at the same timeWhen you design combinational logicGlitch happen

12、is expectedIf you do not get one, you are lucky onlyA good engineer always remember that Combinational logic will have GLITCH 19Glitch issueIf we know how Glitch generatewe can calculate the exact time when the Glitch comes outwe can calculate the exact pulse width of the GlitchSpecial care must be

13、pay attention when the Combinational Logic output is used for of the Flip-Flop of the Flip-Flop of the Flip-Flopof the Latch20ConclusionCombinational Logic is easy to designWithout special care, Combinational Logic will give you unexpect Glitch and kill your design21PLD內(nèi)部毛刺產(chǎn)生的原因我們?cè)谑褂梅至⒃O(shè)計(jì)數(shù)字系統(tǒng)時(shí),由于PC

14、B走線時(shí),存在分布電感和電容,所以幾納秒的毛刺將被自然濾除。而在PLD內(nèi)部決無(wú)分布電感和電容,所以在PLD/FPGA設(shè)計(jì)中,競(jìng)爭(zhēng)和冒險(xiǎn)問(wèn)題將變的較為突出。22FPGA中的冒險(xiǎn)現(xiàn)象信號(hào)在FPGA器件內(nèi)部通過(guò)連線和邏輯單元時(shí),都有一定的延時(shí)。延時(shí)的大小與連線的長(zhǎng)短和邏輯單元的數(shù)目有關(guān),同時(shí)還受器件的制造工藝、工作電壓、溫度等條件的影響。信號(hào)的高低電平轉(zhuǎn)換也需要一定的過(guò)渡時(shí)間。由于存在這兩方面因素,多路信號(hào)的電平值發(fā)生變化時(shí),在信號(hào)變化的瞬間,組合邏輯的輸出有先后順序,并不是同時(shí)變化,往往會(huì)出現(xiàn)一些不正確的尖峰信號(hào),這些尖峰信號(hào)稱為毛刺。如果一個(gè)組合邏輯電路中有毛刺出現(xiàn),就說(shuō)明該電路存在冒險(xiǎn)。(與分立元件不同,由于PLD內(nèi)部不存在寄生電容電感,這些毛刺將被完整的保留并向下一級(jí)傳遞,因此毛刺現(xiàn)象在PLD、FPGA設(shè)計(jì)中尤為突出)23消除毛刺的方法一消除毛刺的方法一一種方法是在輸出信號(hào)的保持時(shí)間內(nèi),用一定寬度的高電平脈沖與輸出信號(hào)做邏輯“與”運(yùn)算,由此獲取輸出信號(hào)的電平值。下圖說(shuō)明了這種方法,采樣脈沖信號(hào)從輸入引腳“SAMPLE”引入。從仿真波形上可以看出,毛刺信號(hào)出現(xiàn)在“TEST”引腳上,而“OUT”引腳上的毛刺已

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論