電腦是如何工作的_第1頁
電腦是如何工作的_第2頁
電腦是如何工作的_第3頁
電腦是如何工作的_第4頁
電腦是如何工作的_第5頁
已閱讀5頁,還剩27頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、How Computer Works? By Mark2011 August 12What is the Input data? What Input to Human BrainVideo, Audio, LanguageWhat input to CPUVideo, Audio, Language3How to describe informationTextVideoAudioNumberDigital bits0,1All information is represented using binary numbers: 4High and Low5V0VHighLowHigh: 1Lo

2、w: 05論理回路記號(Logic Circuit )論理積(AND)論理和(OR)排他的論理和(XOR)否定(NOT)Exclusive OR6xyzxyz入力出力xyz000010100111入力出力xyz000011101111論理積(AND)論理和(OR)7入力出力xyz000011101110入力出力xz0110排他的論理和(XOR)否定(NOT)2入力違、出力12者不同時(shí),輸出1xyzxz8xyzxyz入力出力xyz001011101110入力出力xyz001010100110NANDNORAND+NOTOR+NOT9xyzxyz入力出力xyz0V0V0V0V5V0V5V0V0V5

3、V5V5V入力出力xyz0V0V0V0V5V5V5V0V5V5V5V5VANDOR內(nèi)部電子回路?105V0V電圧対応10 xyzAND練習(xí)問題1xyzttt0V0V0V5V5V5V11練習(xí)問題2xyzttt0V0V0V5V5V5Vxyz論理和(OR)12練習(xí)問題3xyzttt0V0V0V5V5V5V排他的論理和(XOR)xyz13Why use binary numberOne signal can describe 1/0 =2 statesN signals can describe 2x2x22= 2nCan be calculate(+ - * /)在電路上用n根信號線可以表示2n種狀

4、態(tài).0000 STOP0001 RUN0010 PAUSE14Bit Combinations1 bit012 bits000110113 bits0000010100111001011101114 bits0000000100100011010001010110011110001001101010111100110111101111Each additional bit doubles the number of possible combinations15Bit CombinationsEach combination can represent a particular itemThe

5、re are 2N combinations of N bitsTherefore, N bits are needed to represent 2N unique items21 = 2 items22 = 4 items23 = 8 items24 = 16 items25 = 32 items1 bit ?2 bits ?3 bits ?4 bits ?5 bits ?How manyitems can berepresented by16How does computer know text72 105 44 32 72 101 97 116 104 101 114 46H i ,

6、H e a t h e r .English character -ASCII code (1 byte)漢字 - 2 byte code17000+011+101+110+1進(jìn)位Add ABSC182進(jìn)數(shù)半加算器半加算器B1A1S1C2A1B1S1C2XORAND加算値桁上練習(xí)問題19全加算器B3A3S3C全加算器B2A2S2C3半加算器B1A1S1C2A3 A2 A1B3 B2 B1S3 S2 S1+C桁上202進(jìn)數(shù)全加算器A2B2C2S2C3全加算器B2A2S2C3C2XORXORANDANDOR21進(jìn)數(shù)進(jìn)數(shù)進(jìn)數(shù)進(jìn)數(shù)進(jìn)數(shù)進(jìn)數(shù)基數(shù)桁數(shù)字22進(jìn)數(shù)整數(shù)進(jìn)數(shù)小數(shù)進(jìn)數(shù)23進(jìn)數(shù)進(jìn)數(shù)基數(shù)(base)桁

7、數(shù)字10100,1,2,3,4,5,6,7,8,9220,1880,1,2,3,4,5,6,716160,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F7?24進(jìn)數(shù)進(jìn)數(shù)変換整數(shù)場合25Storing Information927892799280928192829283928492859286Large values arestored in consecutivememory locationsEach memory cell stores a set number of bits (usually 8 bits, or one byte)KB210 = 1024MB220 (o

8、ver 1 million)GB230 (over 1 billion)TB240 (over 1 trillion)kilobytemegabytegigabyteterabyte26The Central Processing Unit (CPU)A CPU is on a chip called a microprocessor It continuously follows the fetch-decode-execute cycle:fetchRetrieve an instruction from main memorydecodeDetermine what theinstruc

9、tion isexecuteCarry out theinstruction27The Central Processing UnitThe CPU contains:Arithmetic / Logic UnitRegistersControl UnitSmall storage areasPerforms calculations and makes decisionsCoordinates processing steps28実行直前0 1 1 0 10001 1 1 1 00011 1 1 1 00101 0 1 1 10110 0 0 0 01000 0 0 1 11010 0 1

10、0 01100 0 0 0 0111Command registercontentsindex000000000000000ArithmeticCommand decodeIndex register5bits CPU Computers only know binary numbersCPUMain MemoryStep by Step29実行第段階0 1 1 0 10001 1 1 1 00011 1 1 1 00101 0 1 1 10110 0 0 0 01000 0 0 1 11010 0 1 0 01100 0 0 0 0111命令番地011010110100000累算器命令呼出、解読Load命令解読器番地000 Load A (A累算器持)30CPU instructions1.CPU instructionsmachine language12.How to tell computer to doComputers only accept binary bits.(machine language)3.assembly languageeasy to understand by humanassembly language : machine language

溫馨提示

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

最新文檔

評論

0/150

提交評論