电子信息工程-微处理器[外文翻译].doc
《电子信息工程-微处理器[外文翻译].doc》由会员分享,可在线阅读,更多相关《电子信息工程-微处理器[外文翻译].doc(9页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、如有侵权,请联系网站删除,仅供学习与交流电子信息工程-微处理器外文翻译【精品文档】第 8 页外文资料所译外文资料:1.作者 G.Bouwhuis, J.Braat, A.Huijser2.书名:Principles of Optical Disk Systems3.出版时间:1991年9月4.所译章节:Session 2/Chapter9, Session 2/Chapter 11原文:MicroprocessorOne of the key inventions in the history of electronics, and in fact one of the most import
2、ant inventions ever period, was the transistor. As time progressed after the invention of LSI integrated circuits, the technology improved and chips became smaller, faster and cheaper. The functions performed by a processor were implemented using several different logic chips. Intel was the first co
3、mpany to incorporate all of these logic components into a single chip, this was the first microprocessor. A microprocessor is a complete computation engine that is fabricated on a single chip. A microprocessor executes a collection of machine instructions that tell the processor what to do. Based on
4、 the instructions, a microprocessor does three basic things: 1.Using the ALU (Arithmetic/Logic Unit), a microprocessor can perform mathematical operations like addition, subtraction, multiplication and division; 2.A microprocessor can move data from one memory location to another; 3.A microprocessor
5、 can make decisions and jump to a new set of instructions based on those decisions.There may be very sophisticated things that a microprocessor does, but those are its three basic activities. Microprocessor has an address bus that sends an address to memory, a data bus that can send data to memory o
6、r receive data from memory, an RD(read) and WR(write) line that lets a clock pulse sequence the processor and a reset line that resets the program counter to zero(or whatever) and restarts execution. And lets assume that both the address and data buses are 8 bits wide here.Here are the components of
7、 this simple microprocessor:1. Registers A, B and C are simply latches made out of flip-flops.2. The address latch is just like registers A, B and C.3. 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.4. The ALU
8、could be as simple as an 8-bit adder, or it might be able to add, subtract, multiply and divide 8-bit values. Lets assume the latter here.5. The test register is a special latch that can hold values from comparisons performed in the ALU. An ALU can normally compare two numbers send determine if they
9、 are equal, if one is greater than the other, etc. The test register can also normally hold a carry bit from the last stage of the adder. It stores these values in flip-flops and then the instruction decoder can use the values to make decisions.6. There are six boxes marked “3-State”.These are tri-s
10、tate buffers. 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 then to actually drive a 1or a 0 onto the line.7. The instruction register and instruction decoder are responsible for cont
11、rolling all of the other components.Although they are not shown in this diagram, there would be control lines from the instruction decoder that would:1. Tell the A register to latch the value currently on the data bus 2. Tell the B register to latch the value currently on the data bus 3. Tell the C
12、register to latch the value currently on the data bus4. Tell the program counter register to latch the value currently on the data bus5. Tell the address register to latch the value currently on the data bus6. Tell the instruction register to latch the value currently on the data bus 7. Tell the pro
13、gram counter to increment 8. Tell the program counter to reset to zero9. Activate any of the six tri-state buffers (six separate lines)10. Tell the ALU what operation to perform11. Tell the test register to latch the ALUs test bits12. Activate the RD line13. Activate the WR lineComing into the instr
14、uction decoder are the bits from the best register and clock line, as well as the bits from the instruction register.RAM and ROM The address and data buses, as well as the RD and WR lines connect either to RAM or ROMgenerally both. In our sample microprocessor, we have an address bus 8 bits wide and
15、 a data bus 8 bits wide. That means that the microprocessor an address (2n) 256 bytes of the memory and it can read or write 8 bits of the memory at a time. Lets assume that this simple microprocessor has 128 bytes of ROM starting at address 0 and 128 bytes of RAM starting at address 128.ROM stands
16、for read-only memory. A ROM chip 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 the data bus.RAM stands for random-access memory.
17、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 problem with todays RAM chips is that they forget everything once the power goes off. That is why the computer needs ROM.By the way, nearly all computers
18、 contain some amount of ROM (it is possible to create a simple computer that contains no RAMmany microcontrollers do this by placing a handful of RAM bytes on the processor chip itselfbut generally impossible to create one that contains no ROM).On a PC, the ROM is called the BIOS (Basic Input/Output
19、 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 machine, and then it goes to the hard disk to fetch the boot sector. This boot sector is another small program, and the BIOS store it in RAM
20、after reading it off the disk. The microprocessor then begins executing the boot sectors instructions from RAM. The boot sector program will tell the microprocessor to fetch something else from the hard disk into RAM, which the microprocessor then executes, and so on. This is how the microprocessor
21、loads and executes entire operating system.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, each one of which has a different meaning when
22、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 patterns. This collection of words is called the assembly languages of the processor. An assembler can translate the words into their
23、 bit patterns very easily, and then the output of assembler is placed in memory for the microprocessor to execute. If you use C language programming, a C compiler will translate the C code into assembly language.So now the question is, “How do all of these instructions look in ROM?” Each of these as
24、sembly language instructions must be represented by a binary number. These numbers all know as recodes. The instruction decoder needs to turn each of recodes into a set of signals that drive the different components inside the microprocessor. Lets take the ADD instruction as an example and look at w
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文翻译 电子信息工程 微处理器 外文 翻译
限制150内