數(shù)字設(shè)計(jì)教學(xué)課件第六章組合邏輯設(shè)計(jì)實(shí)踐_第1頁(yè)
數(shù)字設(shè)計(jì)教學(xué)課件第六章組合邏輯設(shè)計(jì)實(shí)踐_第2頁(yè)
數(shù)字設(shè)計(jì)教學(xué)課件第六章組合邏輯設(shè)計(jì)實(shí)踐_第3頁(yè)
數(shù)字設(shè)計(jì)教學(xué)課件第六章組合邏輯設(shè)計(jì)實(shí)踐_第4頁(yè)
數(shù)字設(shè)計(jì)教學(xué)課件第六章組合邏輯設(shè)計(jì)實(shí)踐_第5頁(yè)
已閱讀5頁(yè),還剩96頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、Chapter 6 Combinational Logic Design PracticesMSI building blocks are the important element of combinational circuits.8/22/20221本章重點(diǎn)具備一定功能的通用組合邏輯電路的設(shè)計(jì)方法及實(shí)例掌握常用的MSI的使用方法及功能擴(kuò)展掌握譯碼器、MUX實(shí)現(xiàn)組合邏輯功能的方法能分析、設(shè)計(jì)由MSI構(gòu)建的電路8/22/20222chapter 66.1 Documentation Standard1. Signal Names and Active LevelsMost signals (

2、signal name) have active level. active high active lowNaming convention surffix “_L” attaching to signal name represent active low level. Like, EN_L、READY_L In logic relation, EN_L=EN, READY_L=READY。8/22/20223chapter 62. Active levels for pinsENEN_LDinstartDoutflgstart_LDinDoutflg_LInversion bubbleA

3、ctive lowENENDinstartDoutflgstartDinDoutflgActive hign8/22/20224chapter 6Exp2:EN=1 (active high), data can be transferredEN=0 (active low), data can be transferredENCLKEN_LCLK8/22/20225chapter 63. bubble-to-bubble logic designMake the logic circuit easier to understand.Exp:Not matchABSELDATAABASELDA

4、TAmatch8/22/20226chapter 66.3 Combinational PLDs1. Programmable logic arrays (PLA) two level “ANDOR”device. Can be programmed to realize any sum-of-products logic expression.An nm PLA with p product terms: ninputs moutputs pproduct terms8/22/20227chapter 643 with 6 product termsAND arrayOR array8/22

5、/20228chapter 68/22/20229chapter 62. Programmable Array Logic DevicesFixed OR array,programmable AND arrayBidirectional input/output pins,熔絲型PAL16L8,Output enable8/22/202210chapter 63. Generic Array Logic Devices(GAL)an innovation of the PAL; can be erased and reprogrammed; 8/22/202211chapter 66.4 D

6、ecoderAn important type of combinational circuit .input code wordenable inputOutput code word decodeer1-to-1mapping1-out-of-m codenmn-bitm-bit8/22/202212chapter 61、bianry decodersinput code:n-bitoutput code:2n-bit 2-4 decoder(2-22) I1I0Y3Y2Y1Y0truth table:?Yi:?I1I0Y3Y2Y1Y0000001010010100100111000Yi=

7、miY0=I1I0Y1=I1I0Y2=I1I0Y3=I1I02-4decoderOne input combination chooses an output port.8/22/202213chapter 62-4 decoder with enable inputYi=EN miENI1I0Y3Y2Y1Y0000001000001101001011001001111000I1I0Y3Y2Y1Y0EN2-4 decoder8/22/202214chapter 6(2)74139 , dual 2-4 decoderInput code:B(MSB) A(LSB)Also be called

8、address input.Output code:Y3_LY0_LEN 8/22/202215chapter 6(3)74138, 3-8 decoderEnable inputEN=G1G2A_LG2B_LInput code:C(MSB)、B、 AOutput code: Y0_L Y7_LYi_L=(ENmi)Y0_LY1_LY2_LY3_LY4_LY5_LY6_LY7_LG1G2A_LG2B_LEN8/22/202216chapter 6ENmsblsb8/22/202217chapter 62、realizing combinational circuits with decode

9、rreview:canonical sumDecoder output:Yi_L=(ENmi) when EN=1, Yi_L=mi =Mi add an NAND gate to the decoders output.Exp: (1) F=AB(0、3)F=AB+ABEnable asserted8/22/202218chapter 6(2)if a 3-bit number XYZ is odd number,then ODD output 1,else output 0. realize the function with decoder and gates.solution:F=?F

10、=XYZ(1,3,5,7)8/22/202219chapter 6(3)F=XYZ(0、1、5) 解:8/22/202220chapter 63. Cascading binary decodersHow to construct a 4-16、5-32 decoder? use multiple 2-4 or 3-8 decoders to cascade.PS.:confirm the number of decoders according to the input and output bits.only one chip works in each decoding.8/22/202

11、221chapter 6Exp:a 4-16 decoderInputs: 4-bit N3、N2、N1、N0。Outputs: 16-bit DEC15_LDEC0_LNeed 2 3-8 decoders. Use the MSB of the inputs as chip-select bit. 000000010111100010011111N3 N2 N1 N0N3 N2 N1 N08/22/202222chapter 6Chip selecting8/22/202223chapter 6Exp:4-bit prime-number detector. Realizing it wi

12、th 74138 and some gates.N3N2N1N0F8/22/202224chapter 64、7-segment decoderClassify of 7-seg displayer:in materials: LED(發(fā)光二極管) LCD(液晶)In working mode: common-cathode (共陰極) common-anode (共陽(yáng)極)afbcegddpabcdedpfggndgnd8/22/202225chapter 67-segment decoder transform the input BCD code to 7-segment displayi

13、ng code.devices: 7446A、74LS47 (驅(qū)動(dòng)共陽(yáng)) 74LS48、 74LS49(驅(qū)動(dòng)共陰)00001001 are useful input codes.10101111 are unused BCD code.8/22/202226chapter 674LS498/22/202227chapter 65、BCD decoder(二十進(jìn)制譯碼器)Inputs: BCDY0Y9BCD decoderOutput:1-out-of 10 code74HC428/22/202228chapter 65.5 Encoder1、binary encoder inputs:1-ou

14、t-of-2n codeI0I1Im(m=2n-1) output:n-bitY0Y1Yn-1binary encoder8/22/202229chapter 68-3 encoderinputoutputI7I6I5I4I3I2I1I0Y2Y1Y01000000011101000000110001000001010001000010000001000011000001000100000001000100000001000In/out:active high8/22/202230chapter 6Y0=I1+I3+I5+I7Y1=I2+I3+I6+I7Y2=I4+I5+I6+I78/22/20

15、2231chapter 62、Priority Encoderif multiple inputs are asserted, how to deal with?solution:assign priority to each input from high to low. let I7 highest priority and decrease from I6 down to I0 A2,A1,A0encode output IDLEwhen no input is asserted, IDLE=18/22/202232chapter 6inputoutputI7I6I5I4I3I2I1I0

16、A2A1A0IDLE111100111000011010000110000000101100000010100000000100100000000100000000000000018/22/202233chapter 68/22/202234chapter 63、74148 Priority EncoderEI_L:Enable Input.I7_LI0_L:encode input,I7_L has highest priority.A2_LA0_L:encode outputGS_L:GS_L =0 when one or more of the request inputs are as

17、serted.EO_L:enable output, EO_L=0 when all of the request inputs are negative and EI_L=0. 高低優(yōu)先級(jí)8/22/202235chapter 674148真值表8/22/202236chapter 64、cascading priority encoderproblem:how to construct 16-4、32-5 priority encoder?Connecting multiple 8-3 endoder.note: make sure the needed number of chips ac

18、cording to the inputs. need to redesign the output circuit that could produce the correct encoding output.8/22/202237chapter 616-4 priority encoder: use two 74148 U1、U2, U1: input E15_LE8_L; U2: input E7_LE0_L; E15_L is the highest priority, output: A3A0,active high;When one or more inputs is assert

19、ed,GS0=1;and A3A0=0000。U1U28/22/202238chapter 6思考:若需要編碼輸出、GS0為低電平有效,如何修改電路輸出結(jié)構(gòu)?P.413 figure 6-49 shows the 32-5 priority encoders strcture,.8/22/202239chapter 66.6 Three-state Devices1、three-state buffers8/22/202240chapter 6EN_LAOUTENEN_LAAOUT_LOUT_LEnable means: the buffer output normal logic 0、1 w

20、hen EN is asserted;the buffer output Hi-Z when EN is negated. 8/22/202241chapter 6Application data返回時(shí)序 address of data source8/22/202242chapter 6Issues in application TPLZ 、TPHZ :time that takes from normal logic into Hi-Z; TPZL 、TPZH :time that takes from Hi-Z into normal logic;generally, TPLZ 、TPH

21、Z TPZL 、TPZH But to confirm the correction in application, a control logic is adopted.8/22/202243chapter 674138的相關(guān)引腳信號(hào)查看電路 截止時(shí)間(停滯時(shí)間)8/22/202244chapter 6課堂練習(xí)試設(shè)計(jì)一個(gè)電路,當(dāng)控制信號(hào)M=1時(shí),電路為“判一致”電路,即當(dāng)三個(gè)輸入變量取值全部相同時(shí)輸入為1;當(dāng)控制信號(hào)M=0時(shí),電路為“多數(shù)表決”電路,即輸出等于輸入變量中占多數(shù)的取值。請(qǐng)寫(xiě)出最簡(jiǎn)表達(dá)式。(注:至少要寫(xiě)出卡諾圖,三變量為X、Y、Z)8/22/202245chapter 66.7

22、MultiplexerABSELY=A or B2-to-1 MUXY=SELA+SELB8/22/202246chapter 6又稱(chēng)數(shù)據(jù)選擇器,簡(jiǎn)稱(chēng)MUXOutput:enableselect n data source data output n2s mj:SELj minterm1、基本結(jié)構(gòu):8/22/202247chapter 6Let b=1, D0D1DjDn-1SELENY8/22/202248chapter 6Exp:4-to-1 MUXABCDS1S001101234outputCS0S1output00A01B10C11D8/22/202249chapter 62、MSI

23、MUX(1)8-to-1 MUX ,74151EN_LaddressY_LY8/22/202250chapter 6返回8/22/202251chapter 6G_L S (2)4-bit, 2 input MUX ,741578/22/202252chapter 6(3)2 bit, 4 input MUX,74 153inputoutput1G_L2G_LBA1Y2Y00001C02C000011C12C100101C22C200111C32C301001C0001011C1001101C2001111C30100002C0100102C1101002C2101102C311001G_L2

24、G_L8/22/202253chapter 63、Expanding MUXsExp1:use 74151 to realize a 16-to-1 MUX, some gates can be used if necessary.Chips needed: according to the 16 inputs, 2 74151 chips.output: combine two chips outputs into one output.8/22/202254chapter 6The MSB(A3) of input act as the chip-select bit.8/22/20225

25、5chapter 6Exp2:用74153實(shí)現(xiàn)4輸入,4位MUX,。 設(shè)4路輸入分別是:1D3.0、2D3.0、3D3.0、4D3.0; 4位輸出是:Dout3.0 輸入選擇:S1、S0解:無(wú)需外加門(mén),只需要合理安排輸入、輸出數(shù)據(jù)端口即可。8/22/202256chapter 6Dout3S1S08/22/202257chapter 64、用MUX實(shí)現(xiàn)組合邏輯函數(shù)的標(biāo)準(zhǔn)和 multiple input, 1 bit MUX, the output: when EN is asserted: the canonical sum form.74151的內(nèi)部電路8/22/202258chapter

26、6MUX的數(shù)據(jù)輸入端與真值表的每行輸出對(duì)應(yīng),MUX的地址選擇端作為最小項(xiàng)產(chǎn)生器,即 真值表:輸出值輸入變量 MUX:數(shù)據(jù)輸入端地址端例1:試設(shè)計(jì)一個(gè)數(shù)據(jù)檢測(cè)電路,當(dāng)輸入3位二進(jìn)制數(shù)能被3整除時(shí),輸出F為1,否則為0。請(qǐng)用74151實(shí)現(xiàn)該邏輯函數(shù)。 解:F=XYZ(?) 電路?按最小項(xiàng)編號(hào)順序變量與選擇端對(duì)應(yīng)8/22/202259chapter 6例1的電路XYZFU1W6D04D13D22D31D415D514D613D712A11C9B10Y5G7VCCGNDR18/22/202260chapter 6例2:若例1中輸入數(shù)為4位二進(jìn)制數(shù),如何實(shí)現(xiàn)?解1:用16輸入,1位的MUX來(lái)實(shí)現(xiàn),選用7

27、4150。 F=WXYZ(0,3,6,9,12,15)解2:仍選用74151,先對(duì)所求函數(shù)的卡諾圖做降維處理。預(yù)備知識(shí):卡諾圖的降維 用一個(gè)n變量的卡諾圖來(lái)處理m變量的函數(shù)(nB)F(A=B)F(AB= ABFABFA=BFAB=(A1B1)+(A1=B1) ( A0B0) = A1B1 + (AB+AB)(A1B1 )FA=B=(A1=B1)(A0=B0)FAB=(A1B1)+(A1=B1)(A0BFA=BFABA1B11A1=B1A0B01A1=B1A0=B01偽邏輯8/22/202289chapter 64. 標(biāo)準(zhǔn)MSI比較器4-bit 數(shù)值比較器7485級(jí)聯(lián)輸入:ALBI、AEBI、AGBI,用于比較器的擴(kuò)展比較輸出(級(jí)聯(lián)輸出):ALBO、AEBO、AGBOAGBO=(AB)+(A=B)AGBIAEBO=(A=B)AEBIALBO=(ABFA=BFABFA=BFABX11.8Y11.8X7.4Y7.4X3.0Y3.08/22/202292chapter 65.10 加法器、減法器和ALU(Adders、Subtractors and ALU)主要內(nèi)容:二進(jìn)制補(bǔ)碼加/減法的電路實(shí)現(xiàn)1、1-bit半加器和全加器(1)半加器XYHSCO0000011010101101半加和:HS=XY進(jìn)位輸出:

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 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ì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論