2023年全國碩士研究生考試考研英語一試題真題(含答案詳解+作文范文)_第1頁
已閱讀1頁,還剩13頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、<p>  Microprocessors</p><p>  A microprocessor is a computation engine that is fabricated on a single chip. The first microprocessor was the Intel 4004, introduced in 1971 .The 4004 was not very powerf

2、ul – all it could do was add and subtract, and it could only do that 4 bits at a time. But it was amazing that everything was on one chip. Prior to the 4004, engineers built computers either from collections of chips or

3、from discrete components. The 4004 powered one of the first portable electronic calculators.</p><p>  The first microprocessor to make it into a home computer was the Intel 8080, a complete 8-bit computer on

4、 the chip, introduced in 1974. The first microprocessor to make a real splash in the market was the Intel 8088 , introduced in 1979 and incorporated into the IBM PC. The PC market moved from the 8088 to the 80286 to the

5、80386 to the 80486 to the Pentium to the Pentium II to the Pentium III to the Pentium 4. All of these microprocessors are made by Intel and all of them are improvements on the</p><p>  The following table sh

6、ows the differences between the different processors that Intel has introduced over the years.</p><p><b>  Table1.2</b></p><p>  From this table you can see that, in general, there i

7、s a relationship between clock speed and MIPS. The maximum clock speed is a function of the manufacturing process and delays within the chip. There is also a relationship between the number of transistors and MIPS. For e

8、xample, the 8088 clocked at 5 MHz but only executed at 0.33 MIPS(about one instruction per 15 clock cycles). Modern processors can often execute at a rate of two instructions per clock cycle. That improvement is directly

9、 relate</p><p>  Inside a Microprocessor A microprocessor executes a collection of machine instructions that tell the processor what to do. Based on the instruction, a microprocessor does three basic things:

10、</p><p>  1. Using its ALU (Arithmetic/Logic Unit), a microprocessor can perform mathematical operations like addition, subtraction, multiplication and division. Modern Microprocessors contain complete float

11、ing point processors that can perform extremely sophisticated operations on large floating point numbers.</p><p>  2. A microprocessor can move data from one memory location to another.</p><p> 

12、 3. A microprocessor can make decisions and jump to a new set of instructions based on those decisions.</p><p>  These may be very sophisticated things that a microprocessor does, but those are its three bas

13、ic activities. The following diagram shows an extremely simple microprocessor capable of doing those three things:</p><p>  This microprocessor has an address bus that sends an address to memory, a data bus

14、that can send data to memory or receive data from memory, an RD (read) and WR (write) line to tell the memory whether it wants to set or get the addressed location, a clock line that lets a clock pulse sequence the proce

15、ssor and a reset[4] line that resets the program counter to zero (or whatever) and restarts execution. And let’s assume that both the address and data buses are 8 bits wide here.</p><p>  Here are the compon

16、ents of this simple microprocessor (Figure 1.1):</p><p>  Figure 1.1</p><p>  Registers A, B and C are simply latches made out of flip – flops.</p><p>  The address latch is just li

17、ke registers A, B and C.</p><p>  The program counter is a latch with the extra ability to increment by 1 when told to do so, and also to reset to zero when told to do so.</p><p>  The ALU could

18、 be as simple as an 8 - bit adder, or it might be able to add, subtract, multiply and divide 8 – bit values. Let’s assume the latter here.</p><p>  The test register is a special latch that can hold values f

19、rom comparisons performed in the ALU. An ALU can normally compare two numbers and determine if they are equal, if one is greater than the other, etc. The test register can also normally hold a carry bit from the last sta

20、ge of the adder. It stores these values in flip-flops and then the instruction decoder can use the values to make decisions.</p><p>  There are six boxes marked “3-State” in the diagram. These are tri-state

21、buffers[5]. A tri-state buffer can pass a 1, a 0 or it can essentially disconnect its output. A tri-state buffer allows multiple outputs to connect to a wire, but only one of them to actually drive a 1 or a 0 onto the li

22、ne.</p><p>  The instruction register and instruction decoder are responsible for controlling all of the other components.</p><p>  Although they are not shown in this diagram, there would be co

23、ntrol lines from the instruction decoder that would:</p><p>  Tell the A register to latch the value currently on the data bus</p><p>  Tell the B register to latch the value currently on the da

24、ta bus</p><p>  Tell the C register to latch the value currently on the data bus</p><p>  Tell the program counter register to latch the value currently on the data bus </p><p>  Te

25、ll the address register to latch the value currently on the data bus</p><p>  Tell the instruction register to latch the value currently on the data bus</p><p>  Tell the program counter to incr

26、ement</p><p>  Tell the program counter to reset to zero</p><p>  Activate any of the six tri-state buffers (six separate lines)</p><p>  Tell the ALU what operation to perform</

27、p><p>  Tell the test register to latch the ALU’s test bibs</p><p>  Activate the RD line </p><p>  Activate the WR line</p><p>  Coming into the instruction decoder are t

28、he bits from the test register and the clock line, as well as the bits from the instruction register.</p><p>  RAM and ROM the address and data buses, as well as the RD and WR lines connect either to RAM or

29、ROM-generally both. In our sample microprocessor, we have an address bus 8 bits wide and a data bus 8 bits wide. That means that the microprocessor can address (28) 256 bytes of memory, and it can read or write 8 bits of

30、 the memory at a time. Let’s assume that this simple microprocessor has 128 bytes of ROM starting at address 0 and 128 bytes of RAM starting at address 128.</p><p>  ROM stands for read-only memory. A ROM ch

31、ip is programmed with a permanent collection of pre-set bytes. The address bus tells the ROM chip which byte to get and place on the data bus. When the RD line changes state, the ROM chip presents the selected byte onto

32、the data bus.</p><p>  RAM stands for random-access memory. RAM contains bytes of information, and the microprocessor can read or write to those bytes depending on whether the RD or WR line is signaled. One

33、problem with today’s RAM chips is that they forget everything once the power goes off. That is why the computer needs ROM.</p><p>  By the way, nearly all computers contain some amount of ROM (it is possible

34、 to create a simple computer that contains no RAM-many microcontrollers do this by placing a handful of RAM bytes on the processor chip itself-but generally impossible to create one that contains no ROM). On a PC, the RO

35、M is called the BIOS (Basic Input/Output System). When the microprocessor starts, it begins executing instructions it finds in the BIOS. The BIOS instructions do things like test the hardware in the machin</p><

36、;p>  Microprocessor Instructions Even the incredibly simple microprocessor shown here will have a fairly large set of instructions that it can perform. The collection of instructions is implemented as bit patterns, ea

37、ch one of which has a different meaning when loaded into the instruction register. Humans are not particularly good at remembering bit patterns, so a set of short words are defined to represent the different bit pattern

38、s. This collection of words is called the assembly language of the p</p><p>  So now the question is, “How do all of these instructions look in ROM?” Each of these assembly language instructions must be repr

39、esented by a binary number . These numbers are known as opcodes. The instruction decoder needs to turn each of the opcodes into a set of signals that drive the different components inside the microprocessor. Let’s take t

40、he ADD instruction as an example and look at what it needs to do:</p><p>  During the first clock cycle, we need to actually load the instruction. Therefore the instruction decoder needs to:</p><p

41、>  Activate the tri-state buffer for the program counter</p><p>  Activate the RD line</p><p>  Activate the data-in tri-state buffer</p><p>  Latch the instruction into the inst

42、ruction register</p><p>  During the second clock cycle, the ADD instruction is decoded. It needs to do very little:</p><p>  Set the operation of the ALU to addition</p><p>  Latch

43、 the output of the ALU into the C register </p><p>  During the third clock cycle, the program counter is incremented (in theory this could be overlapped into the second clock cycle).</p><p>  E

44、very instruction can be broken down as a set of sequenced operations like these that manipulate the components of the microprocessor in the proper order. Some instructions, like this ADD instruction, might take two or th

45、ree clock cycles. Others might take five or six clock cycles.</p><p>  Microprocessor Performance The number of transistors available has a huge effect on the performance of a processor. As seen earlier, a t

46、ypical instruction in a processor like an 8088 took 15 clock cycles to execute. Because of the design of the multiplier, it took approximately 80 cycles just to do one 16-bit multiplication on the 8088. With more transis

47、tors, much more powerful multipliers capable of single-cycle speeds become possible.</p><p>  More transistors also allow for a technology called pipelining[6]. In a pipelined architecture, instruction execu

48、tion overlaps. So even though it might take five clock cycles to execute each instruction, there can be five instructions in various stages of execution simultaneously. That way it looks like one instruction completes ev

49、ery clock cycle.</p><p>  Many modern processors have multiple instruction decoders, each with its own pipeline. This allows for multiple instruction streams, which means that more than one instruction can c

50、omplete during each clock cycle. This technique can be quite complex to implement, so it takes lots of transistors.</p><p>  The trend in processor design has been toward full 32-bit ALUs with fast floating

51、point processors built in and pipelined execution with multiple instruction streams. There has also been a tendency toward special instructions that make certain operations particularly efficient. There has also been the

52、 addition of hardware virtual memory support and L1 caching on the processor chip. All of these trends push up the transistor count, leading to the multi-million transistor powerhouses available tod</p><p>&

53、lt;b>  微處理器</b></p><p>  微處理器是建在一塊芯片上的一個(gè)計(jì)算器,1971年因特爾公司推出世界上第一款微處理器Intel4004。Intel4004功能不齊全,它只能做加減,并且一次只能處理4位,但令人吃驚的是一切都在一塊芯片上。在Intel 4004之前,工程師利用芯片或其他零部件開發(fā)計(jì)算機(jī),從此揭開了微型計(jì)算機(jī)發(fā)展的序幕。</p><p>  

54、1974年,利用Intel8088微處理開始生產(chǎn)家用電腦,它能處理8個(gè)二進(jìn)制數(shù),1979年推出的Intel8088,第一次打開了市場。IBM公司運(yùn)用這塊芯片推出了個(gè)人電腦,電腦發(fā)展經(jīng)歷了8088、80286、80386、80486、奔騰、奔騰II、奔騰III、奔騰4,所有這些微處理都是因特爾公司生產(chǎn)的,它們都是在8088的設(shè)計(jì)基礎(chǔ)上開發(fā)的,奔騰4能執(zhí)行8088上的任一套指令,但是它比8088快5000倍。</p><

55、p>  從以下表格我們可以看出因特爾公司近幾年來所生產(chǎn)的各種處理器。</p><p><b> ?。ū砀?)</b></p><p>  從這個(gè)表中,大體可以看出時(shí)鐘頻率和MIPS之間存在一定的關(guān)系,最大的時(shí)鐘頻率是生產(chǎn)進(jìn)程的一個(gè)函數(shù),并且它在芯片內(nèi)會(huì)延遲,晶體管和MIPS之間有一定的關(guān)系,例如8088在5兆赫茲時(shí)就運(yùn)行一次,但只是以0.33MIPS的速度來執(zhí)行

56、(大于每15時(shí)鐘周期執(zhí)行一條指令)?,F(xiàn)在的處理器通常能達(dá)到每一個(gè)時(shí)鐘周期執(zhí)行兩條指令的速度,那種運(yùn)算速度的提高與芯片上的晶體管數(shù)量有直接關(guān)系。</p><p>  微處理器的內(nèi)部結(jié)構(gòu):微處理器執(zhí)行告訴處理器該做什么的一系列的機(jī)器指令,在這個(gè)指令的基礎(chǔ)上,微處理器完成3個(gè)基本的功能:</p><p>  1、微處理器用它的算術(shù)邏輯單元,能夠完成像加減乘除這一系列算術(shù)操作,現(xiàn)在的微處理器包含有

57、完整的浮點(diǎn)處理器,它們能夠完成非常復(fù)雜的浮點(diǎn)數(shù)的操作。</p><p>  2、微處理器能把數(shù)據(jù)從一個(gè)存儲(chǔ)單元移到另一個(gè)存儲(chǔ)單元。</p><p>  3、微處理器能做出決定,并且在那些決定的基礎(chǔ)上發(fā)出一系列新的指令。</p><p>  這些或許就是微處理器能完成的復(fù)雜的功能,但那些僅是它的3個(gè)基本功能,下面的圖表說明微處理器是如何執(zhí)行這些簡單功能的:微處理器有地

58、址總線,它把地址送到儲(chǔ)存器,它還有一個(gè)數(shù)據(jù)總線,把數(shù)據(jù)送到儲(chǔ)存器或者從儲(chǔ)存器里接收數(shù)據(jù),它也有讀寫總線,告訴儲(chǔ)存器是想設(shè)置還是想取出這個(gè)定了位置的儲(chǔ)存單元,它還有時(shí)鐘線,告訴時(shí)鐘脈沖記錄處理器的結(jié)果,以及重新設(shè)置線把編碼器重新設(shè)置到零(或者其他什么的)以及重新執(zhí)行命令。我們假定這兒的位置和數(shù)據(jù)總線均為8位寬。下面是這個(gè)簡單微處理器的結(jié)構(gòu)表:(圖表1.1)</p><p><b>  圖表1.1</

59、b></p><p>  1、記錄器A,B和C 都是構(gòu)成觸發(fā)器的簡單的鎖存器。</p><p>  2、位置鎖恰好記錄器A,B和C。</p><p>  3、編碼計(jì)算器是具有特別遞增能力的鎖,當(dāng)接到指令時(shí),它就增加1或者重新設(shè)置到零。</p><p>  4、數(shù)據(jù)邏輯單元可能和8位的加法器一樣簡單,或者它可能會(huì)做加、減、乘和除8位數(shù)值,

60、我們假定這兒屬于后者。</p><p>  5、檢測記錄器是一個(gè)特殊的鎖,它能夠把經(jīng)過比較的數(shù)值鎖在算術(shù)邏輯單元里,算術(shù)邏輯單元就能正常的比較兩個(gè)數(shù)字,并判斷他們是否相等,是否一個(gè)大于另一個(gè)等,檢測記錄器也能正常鎖住一個(gè)階段加法的進(jìn)位位,它把這些數(shù)值儲(chǔ)存在觸發(fā)器上,然后信息譯碼器能用這些數(shù)值來做出判斷。</p><p>  6、圖表中6個(gè)標(biāo)注了“3—State”的方框,這些是三態(tài)緩沖器,它

61、能傳遞a 1 ,a 0 或者它能基本上斷開它信息的輸出,它允許多個(gè)信息輸出,連接到電源線,但是他們中只有一個(gè)能準(zhǔn)確驅(qū)動(dòng)a 1 或a 0 到流水線上去。</p><p>  7、信息記錄器和譯碼器要控制其余所有的部件。</p><p>  雖然這些圖表上沒有顯示這些結(jié)構(gòu),但是信息譯碼里將有控制線做以下事情:</p><p>  1、告訴A記錄器鎖定當(dāng)前數(shù)據(jù)總線上的數(shù)值

62、</p><p>  2、告訴B記錄器鎖定當(dāng)前數(shù)據(jù)總線上的數(shù)值</p><p>  3、告訴C記錄器鎖定當(dāng)前數(shù)據(jù)總線上的數(shù)值</p><p>  4、告訴編碼計(jì)算器鎖定當(dāng)前數(shù)據(jù)總線上的數(shù)值</p><p>  5、告訴位地址記錄器鎖定當(dāng)前數(shù)據(jù)總線上的數(shù)值</p><p>  6、告訴信息記錄器 鎖定當(dāng)前數(shù)據(jù)總線上的數(shù)值

63、</p><p>  7、告訴編碼計(jì)算器增加數(shù)值</p><p>  8、告訴編碼計(jì)算器重新設(shè)置到零</p><p>  9、激活6個(gè)三態(tài)緩沖器中的任意一個(gè) </p><p>  10、告訴算術(shù)邏輯單元該執(zhí)行什么指令</p><p>  11、告訴檢測記錄器鎖定算術(shù)邏輯單元的檢測結(jié)果</p><p&

64、gt;<b>  12、激活RD線</b></p><p><b>  13、激活WR線</b></p><p>  進(jìn)入信息譯碼器的是那些檢測記錄器,時(shí)鐘流水線以及信息記錄器里面的二進(jìn)制數(shù)字行大約十億條指令。</p><p>  隨機(jī)存貯器、只讀存貯器、位址和數(shù)據(jù)總線。讀、寫一般說來都與隨機(jī)存貯及只讀存貯有關(guān)。在我們的樣

65、本微處理器中,我們有8位總線地址寬,8位數(shù)據(jù)總線寬,那意味著微處理器能存入(28)256個(gè)字節(jié),它一次能讀或?qū)?個(gè)二進(jìn)字位,我們假定這個(gè)簡單的微處理器只讀存貯0開始的位置上有128個(gè)字節(jié)及隨機(jī)存貯在128開始的位置上有128個(gè)字節(jié)。</p><p>  ROM代表只讀存貯器。ROM芯片是用來永久性收集預(yù)置字節(jié)的位總線告訴ROM芯片取哪個(gè)字節(jié)及放在哪條數(shù)據(jù)總線上。當(dāng)RD線變化狀態(tài)時(shí),ROM芯片就會(huì)把被選擇的字節(jié)呈現(xiàn)

66、到數(shù)據(jù)總線上去。</p><p>  RAM代表隨機(jī)存貯器,RAM包括信息字節(jié)微處理器能讀或?qū)懡o那些依靠RD或WR線是否注冊的字節(jié)。RAM芯片的一個(gè)問題就是當(dāng)斷掉電源時(shí),它上面的一切信息就不會(huì)保存下來那就是計(jì)算機(jī)需要ROM的原因。</p><p>  順便說一下,幾乎所有的計(jì)算機(jī)都包括一定量的ROM(開發(fā)一個(gè)不包含RAM的簡單電腦是可能的——許多微控制器通過在處理器芯片本身上面放少量RAM

67、字節(jié)就可以完成,——但一般說來,一個(gè)不包含ROM的電腦是不可能的)。在PC機(jī)上,ROM被叫做BI0S(基本輸入/輸出系統(tǒng))當(dāng)微處理器開始運(yùn)行時(shí),它就開始執(zhí)行它在BIOS中找到的指令。BIOS指令做一些檢查機(jī)器硬件是否出故障的事情,然后此指令到硬盤上去獲取引導(dǎo)程序扇區(qū)這個(gè)引導(dǎo)程序。扇區(qū)是另一個(gè)小程序,BIOS從磁盤上讀取后把它存入RAM微處理器,然后開始從RAM上執(zhí)行引導(dǎo)程序扇區(qū)的指令。引導(dǎo)程序?qū)⒏嬖V微處理器到硬盤上去讀取一些別的信息存貯

68、到RAM。在那兒,微處理器然后執(zhí)行等等,這就是微處理器讀取和執(zhí)行的整個(gè)操作系統(tǒng)。</p><p>  這兒顯示的相當(dāng)簡單的微處理器將有它能執(zhí)行的相當(dāng)大數(shù)量的指令,這些指令作為二進(jìn)制數(shù)字符來執(zhí)行。其中的每一個(gè)都有不同的意思當(dāng)被載入信息記錄器時(shí)人類特別不善于記住二進(jìn)字符,這些詞語被叫做處理的匯編語言。匯編器能非常容易地把這些詞語翻譯成它們的字符,然后,匯編器的輸出就被放在存貯器里供微處理器執(zhí)行。如果你用C語言編程、C

69、編譯程序?qū)袰編碼譯成匯編語言。</p><p>  那么現(xiàn)在問題就在于所有這些指令在ROM中如何呈現(xiàn),每一個(gè)這些匯編語言指令都必須代表二進(jìn)制的數(shù)。這些數(shù)字就叫做操作碼,這個(gè)指令譯碼器需要將每一個(gè)Opcodes變成一套指令。它們的驅(qū)動(dòng)微處器內(nèi)部的不同部件,咱們用ADD指令做例子來看看需要做的一切。</p><p>  在第一個(gè)時(shí)鐘周期中,我們需要準(zhǔn)確的讀取指令,因此指令解碼器需要為簡碼計(jì)數(shù)

70、器激活三態(tài)緩沖器,激活RD線,激活三態(tài)緩沖器里的數(shù)據(jù)線把指令鎖定在指令記錄器。</p><p>  在第二個(gè)時(shí)鐘周期中,ADD指令被編譯了,它幾乎不需要做什么。</p><p>  把ALU操作看到加的位置上。</p><p>  把ALU的輸出鎖進(jìn)C寄存器。</p><p>  在第三個(gè)時(shí)鐘周期,編碼的數(shù)量在遞增,C理論上說,這可能與第二個(gè)

71、時(shí)鐘周期重疊每一個(gè)指令都會(huì)像那些以適當(dāng)順序偽造的微處理一樣作為結(jié)果指令出故障,有些指令,像ADD命令,可能花二、三個(gè)時(shí)鐘周期,另外的可能要花五、六個(gè)時(shí)鐘周期。</p><p><b>  微處理器的操作: </b></p><p>  可用的晶體管數(shù)量對處理器的操作有巨大的影響,正如早就預(yù)見到的像8088處理器里的主要指令花了15個(gè)時(shí)鐘周期來完成,由于在8088上安裝

72、了乘法器,做一個(gè)16個(gè)二進(jìn)制的乘法花了大約80個(gè)時(shí)鐘周期。隨著晶體管的增加,計(jì)算能力更強(qiáng)的乘法器具有單一周期的能力,更多的晶體管也考慮到一個(gè)叫做流水線技術(shù),在一個(gè)流水線系統(tǒng)結(jié)構(gòu)中,有些指令執(zhí)行要重疊,因此盡管可能花5個(gè)時(shí)鐘周期來執(zhí)行一個(gè)指令。但可能有5個(gè)不同的進(jìn)程的指令在同時(shí)執(zhí)行,那樣看起來好像一個(gè)指令完成每一個(gè)時(shí)鐘周期。</p><p>  許多現(xiàn)代的處理器有多個(gè)指令解碼器,每一個(gè)都有自己的流水線。這考慮到了多

73、條指令,那意味著在每一個(gè)時(shí)鐘周期中,不只完成一個(gè)指令,這個(gè)技術(shù)可能對于執(zhí)行來說相當(dāng)復(fù)雜,因此它運(yùn)用了許多晶體管。</p><p>  在處理器設(shè)計(jì)過程中已趨向于32-bit算術(shù)邏輯單元。帶有快速浮點(diǎn)處理器及各種指令的流水線,也趨向于特殊的指令,使某種操作特別有效,也有附有實(shí)質(zhì)存貯的硬件及常于處理器芯片處的L1。所有這些趨向推動(dòng)了晶體數(shù),促成了數(shù)百萬今天可用的晶體群。這些處理器每秒鐘能執(zhí)行大約十億條指令。</

溫馨提示

  • 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. 眾賞文庫僅提供信息存儲(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論