




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、13.9 3.9 基本邏輯電路設(shè)計基本邏輯電路設(shè)計2345678library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity decoder is port(inp : in std_logic_vector(2 downto 0); outp : out std_logic_vector(7 downto 0); end decoder; architecture rtl of decoder is begin outp=shl(“00000001”, inp); end rtl;9lib
2、rary ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity decoder is port(inp : in std_logic_vector(2 downto 0); outp : out std_logic_vector(7 downto 0); end decoder; architecture rtl of decoder is begin process(inp) begin outp0); outp(conv_integer(inp)=1; end process; end rtl;
3、10111213Sum(i) = a(i) b(i) cinC(i+1) = a(i) b(i) +(a(i) + b(i) ) c(i) 1415位寬擴展位寬擴展161718三態(tài)門電路描述三態(tài)門電路描述1920212223242526clocksig_insig_out1sig_out2reset同步復(fù)位同步復(fù)位異步復(fù)位異步復(fù)位2728293031 library ieee; library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_1164.all; entity t_ff is entity t_ff is port(t,
4、 clk : in std_logic; port(t, clk : in std_logic; q : buffer q : buffer std_logic);std_logic); end t_ff; end t_ff; architecture rtl of t_ff is architecture rtl of t_ff is begin begin process(clk) process(clk) begin begin if clk if clkevent and clk=event and clk=1 1 thenthen if t= if t=1 1 then then q
5、=not q; q=not q; else else q=q; q=q; end if; end if; end process; end process; end rtl; end rtl;TClkQ2 2)T T觸發(fā)器觸發(fā)器32 library ieee; use ieee.std_logic_1164.all; entity rs_ff is port(r, s, clk : in std_logic; q, qn : buffer std_logic); end rs_ff; architecture rtl of rs_ff is begin process(r, s, clk) b
6、egin if clkevent and clk=1 then if s = 1 and r = 0 then q=0; qn=1; elsif s=0 and r=1 then q=1; qn=0; elsif s=0 and r=0 then q=q; qn state = ERROR; 2、直接回到已設(shè)定的狀態(tài)。如果系統(tǒng)對狀直接回到已設(shè)定的狀態(tài)。如果系統(tǒng)對狀態(tài)機的容錯性要求不高,那么可以不對狀態(tài)機態(tài)機的容錯性要求不高,那么可以不對狀態(tài)機出錯進行處理,直接回到某一確定狀態(tài)(如初出錯進行處理,直接回到某一確定狀態(tài)(如初始狀態(tài)始狀態(tài) S0)。)。85第第3 3章章 習(xí)題四習(xí)題四 1 1、給觸發(fā)器復(fù)位的方法有哪兩種?如果時鐘進程、給觸發(fā)器復(fù)位的方法有哪兩種?如果時鐘進程 中用了敏感信號表,哪種復(fù)位方法要求把復(fù)位中用了敏感信號表,哪種復(fù)位方法要求把復(fù)位 信號放在敏感信號表中?信號放在敏感信號表中? 2 2、設(shè)計一個任意、設(shè)計一個任意 n n 分頻的分頻器。分頻的分頻器。 3 3、設(shè)計一個用于時鐘(分、秒)計數(shù)的、設(shè)計一個用于時鐘(分、秒)計數(shù)的 6060進制進制 的計數(shù)器(分個、十位)。的計數(shù)器(分個、十位)。 4 4、設(shè)計一個用于時鐘(小時)計數(shù)的、設(shè)計一個用于時鐘
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 中國電建合同范本
- 烹飪原料知識練習(xí)題庫(附答案)
- 個人廣告公司年終總結(jié)
- 修路購銷合同范本
- 作坊小廠轉(zhuǎn)讓合同范本
- 上半年工作總結(jié)和下半年工作計劃
- 醫(yī)生專家聘用合同范本
- 南京 汽車銷售合同范本
- 個人經(jīng)營合作合同范本
- 各種合作合同范例
- 會計信息化練習(xí)題庫+參考答案
- 武漢2025年湖北武漢市教育系統(tǒng)專項招聘教師679人筆試歷年參考題庫附帶答案詳解
- 高中主題班會 借哪吒精神燃開學(xué)斗志!課件-高一下學(xué)期開學(xué)第一課班會
- 2024年12月2025浙江湖州市長興縣綜合行政執(zhí)法局公開招聘輔助執(zhí)法人員8人筆試歷年典型考題(歷年真題考點)解題思路附帶答案詳解
- 水產(chǎn)養(yǎng)殖尾水處理技術(shù)-第1篇-深度研究
- 財務(wù)管理畢業(yè)論文
- 二零二五年度醫(yī)療援助派駐服務(wù)協(xié)議4篇
- 合同簽訂培訓(xùn)課件
- 1投影的形成和分類投影的形成投影的分類工程中常用的投影圖28課件講解
- 2025屆廣東省佛山一中石門中學(xué)高考臨考沖刺數(shù)學(xué)試卷含解析
- 大模型關(guān)鍵技術(shù)與應(yīng)用
評論
0/150
提交評論