第三十六章超脫輪回(大結局)下_第1頁
第三十六章超脫輪回(大結局)下_第2頁
第三十六章超脫輪回(大結局)下_第3頁
第三十六章超脫輪回(大結局)下_第4頁
第三十六章超脫輪回(大結局)下_第5頁
已閱讀5頁,還剩12頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、1CMSC 250Chapter 1, cont., Combinatorial circuits蒼穹龍騎蒼穹龍騎 http:/ 2CMSC 250Basic logic gateslAn and gate:lAn or gate:lA not gate:3CMSC 250Discrete StructuresCMSC 250Lecture 64CMSC 250Combining & determining I/O relationshiplFrom a circuit to a Boolean formula:lp (q r)pqr5CMSC 250Draw a circuit for:lp

2、, q & r are inputs.lSimplify before building the circuit.pqroutput111111011010100101100100001000006CMSC 250Number conversionslDifferent number system bases are used when convenient some commonly-used bases are 10 (decimal), 2 (binary), 8 (octal), 16 (hexadecimal) the base tells how many different nu

3、merals are used the base also determines the value of each placelConversions from anything to base 10 use the definition of the number systemlConversions from base 10 to anything use repeated integer division7CMSC 250Addition of binary numberslCarry if the number would be too large for the number sy

4、stem- if it is greater than 11001+101001+111011+101101+1118CMSC 250Discrete StructuresCMSC 250Lecture 79CMSC 250Addition of octal and hexadecimal numberslCarry if the number would be too large for the number system (larger than 7 or 15)7238+1282658+338ABC16+1216CDE16+ED1610CMSC 250Twos complementlTo

5、 represent negative values in binary:1. Find the binary equivalent of the absolute value.2. Pad on the left to completely fill the bits in the specified bit width3. Switch all of the 1s to 0s and 0s to 1s.4. Add 1 to the result.Example: find the 8-bit twos complement representation of -43:1. 4310 =

6、10101122. 0010101123. 1101010024. 110101012 = -431011CMSC 250Using a circuit for adding two bitslWrite as a logic expression lTranslate to circuitspqcarrysum0000010110011110inputoutput12CMSC 250Half adderp and q are binary values (1 bit each)sum = (p q) (p q)carry = (p q)qpsumcarry13CMSC 250Full add

7、er (for three bits)lp, q, and r are binary digitslp + q + r produces a sum value and a carry valuehalf-adder #1half-adder #2pqrS1C1CSC214CMSC 250Parallel adderslChain these half adders and full adders together for multi-bit additionlX1X2X3 + Y1Y2Y3 = CA1A2A3 X3Y3X2Y2X1Y1half-adderfull-adderfull-adderA3carrycarrycarryA2A115CMSC 250Discrete StructuresCMSC 250Lecture 816CMSC 250Draw a circuit for abcoutput0000 0 0 0 0 00010 0 0 0 0 10100 0 0 1 0 00110 0 1 0 0 11000 1 0 0 0 01010 1 1 0 0 11101 0 0 1 0

溫馨提示

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

評論

0/150

提交評論