电子信息工程 微处理器[外文翻译]_第1页
电子信息工程 微处理器[外文翻译]_第2页
电子信息工程 微处理器[外文翻译]_第3页
电子信息工程 微处理器[外文翻译]_第4页
电子信息工程 微处理器[外文翻译]_第5页
已阅读5页,还剩7页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、外文资料所译外文资料: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 important inventions ever period, was the tr

2、ansistor. 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 company to incorporate all of these logi

3、c 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 the instructions, a microprocessor do

4、es 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 can make decisions and jump to a new s

5、et 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 or receive data from memory, an RD(read

6、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 this simple microprocessor:1. Registers A

7、, 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 could be as simple as an 8-bit adder, or i

8、t 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 are equal, if one is greater than the othe

9、r, 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 -state buffers. A tri-state buffer can pass

10、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 controlling all of the other components.Althou

11、gh 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 bus2. Tell the B register to latch the value currently on the data bus3. Tell the C register to latch the value currently on the

12、 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 bus7. Tell the program counter to increment8. Tell the program

13、counter to reset to zero9. Activate any of the six tri-state buffers (six separate lines10. 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 instruction decoder are the bits from the best regis

14、ter 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 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 m

15、icroprocessor 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 for read-only memory. A ROM chip is programmed

16、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. RAM contains bytes of information, and the micr

17、oprocessor 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 contain some amount of ROM (it is possible to

18、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 ROM is called the BIOS (Basic Input/Output System. When the microprocessor starts, it be

19、gins 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 after reading it off the disk. The microprocess

20、or 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 loads and executes entire operating system.Micr

21、oprocessor 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 loaded into the instruction register. Humans ar

22、e 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 bit patterns very easily, and then the output

23、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 assembly language instructions must be represente

24、d 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 what it needs to do.During the first clock cycle

25、, we need to actually load the instruction. Therefore the instruction decoder needs to: activate the tri-state buffer for the program counter; activate the RD line; activate the data-in tri-state buffer; latch the instruction into the instruction register.During the second clock cycle, the ADD instr

26、uction is decoded. It needs to do very little: set the operation of ALU to addition; latch the output of the ALU into the C register.During the third clock cycle, the program counter is incremented (in theory this could be overlapped into the second clock cycle.Every instruction can be broken down a

27、s a set of sequenced operations like these that manipulate the components of microprocessor in the proper order. Some instructions, like this ADD instruction, might take two or three clock cycles. Others might take five or six clock cycles.Microprocessor Performance The number of transistors availab

28、le has a huge effect on the performance of a processor. As seen earlier, a typical 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 transistors

29、, much more powerful multipliers capable of single-cycle speeds become possible.More transistors also allow for a technology called pipelining. In a pipelined architecture, instruction execution overlaps. So even though it might take five clock cycles to execute each instruction, there can be five i

30、nstructions in various stages of execution simultaneously. That way it looks like one instruction completes every clock cycle.Many modern processors have multiple instruction decoders, each with own pipeline. This allows for multiple instruction streams, which means that more than one instruction ca

31、n complete during each clock cycle. This technique can be quite complex to implement, so it can be lots of transistors.The trend in processor design has been toward full 32-bit ALU with fast floating point processors built in and pipelined execution with multiple instruction streams. There has also

32、been a tendency toward special instructions that make certain operations particularly efficient. There has also been the 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 powerho

33、uses available today. These processors can execute about one billion instructions per second! The Operational Amplifier will continue to be a vital component of analog designbecause it is a fundamental component. Each generation of electronic equipment integrates more functions on silicon and takes

34、more of the analog circuitry inside the IC. As digital applications increase, analog applications also increase because the predominant supply of data and interface applications are in the real world, and the real world is an analog world.The LM386 is a power amplifier designed for use in low voltag

35、e consumer applications. The gain is internally set to 20 to keep external part count low, but the addition of an external resistor and capacitor between pins 1 and 8 will increase the gain to any value from 20 to 200.The inputs are ground referenced while the output automatically biases to one-half

36、 the supply voltage. The quiescent power drain is only 24 mill watts when operating from a 6 volt supply, making the LM386 ideal for battery operation.A Crystal is a basic piezoelectric quartz crystal. On its own, it cannot generate electrical clocks. It has to be connected to a clock oscillator to

37、get a clock waveform. There are two kinds of crystals: Series Resonant, which can be modeled as a high Q series LC circuit, and Parallel Resonant, which can be modeled as a high Q parallel LC circuit. A Crystal Oscillator is an oscillator with the crystal as the feedback element. There are other kin

38、ds of oscillators with active or passive feedback components, but the crystal oscillator provides the most accurate and stable output frequency. Crystal oscillators are the preferred clock source in most high-speed digital systems requiring clocks. A chip is a small piece of conducting material on w

39、hich an integrated circuit is embedded. A microprocessor is a silicon chip that contains a CPU. In operation, a computer is both hardware and software. One is useless without another. The hardware design specifies the commands it can follow, and the instructions tell it what to do. With the infiltra

40、tion in the social field of the computer in recent years, the application of the one-chip computer is moving towards deepening constantly, drive tradition is it measure crescent benefit to upgrade day to control at the same time. In measuring in real time and automatically controlled one-chip comput

41、er application system, the one-chip computer often uses as a key part, only one-chip computer respect knowledge is not enough, should also follow the structure of the concrete hardware , and direct against and use the software of target's characteristic to combine concretely, in order to do perf

42、ectly.译文: 微处理器 晶体管是电子学发展史上的关键发明之一,它实际上也是人类历史上最重要的发明 之一。集成技术随着时间的推移而提高,芯片也更小,更快,更便宜。处理器完成的功 能最早是由几个不同的逻辑芯片实现的,英特尔公司率先将所有这些部件集成到单个芯 片中,这就是最早的微处理器,它是在单芯片上制造的完整的运算引擎。 微处理器执行一组机器指令,这些指令告诉微处理器去做什么,根据这些指令,微 处理器能够完成如下三项基本任务。1.微处理器使用其 ALU(算术/逻辑单元)可以完 成加、减、乘、除等数学运算。2.微处理器可将数据从存储器的一个位置搬移到另一个 位置。3.微处理器可做出判断,并根据

43、这些判断跳转到一组新的指令。 一个微处理器可以做非常复杂的工作,但上述三项是最基本的。微处理器有一套地 址总线 (向存储器发送地址) 一套数据总线 , (向存储器发送数据或者接收存储器数据) , 一条读信号线 RD 和一条写信号线 WR(用于通知存储器是从寻址地址读取数据还是写 入数据) ,一条时钟信号线(为处理器安排时序的时钟脉冲)和一条复位信号线(将程 序计数器置零和重新开始执行) 。这里假定数据总线和地址总线的宽度都是位。 构成这个简易处理器的组件如下: 寄存器 A,寄存器 B 和寄存器 C:它们是由触发器构成的简易锁存器。 地址锁存器:和寄存器 A,一样。 程序计数器:一种具备“加一”

44、功能和“置零”功能的锁存器。 算术逻辑单元:可以简单到只是一个位加法器,也可以是能够完成位加、 减、乘、除的单元(此处我们假定为后者) 。 测试寄存器:一种保存 ALU 比较结果的专用锁存器。通常,ALU 能够将两个 数进行比较,并判断出二者是否相等或者一个比另一个更大。测试寄存器也可以保存加 法运算最后一步的进位。这些数值保存在触发器当中,指令译码器利用这些数值做出判 决。 “State”是三态缓冲器。它可以传送逻辑,逻辑,或者和输出断开。三 态缓冲器允许在一条信号线上连接多个输出信号,但只有一个信号输出。 指令寄存器和指令译码器负责控制所有其他组件。 从指令译码器引出完成如下功能的控制信号

45、线: 通知寄存器锁定当下出现在数据总线上的数值 通知寄存器锁定当下出现在数据总线上的数值。 通知寄存器锁定当下出现在数据总线上的数值 通知程序计数器锁定当下出现在数据总线上的数值 通知地址寄存器锁定当下出现在数据总线上的数值 6 通知指令寄存器锁定当下出现在数据总线上的数值 通知程序计数器增加 通知程序计数器复位置零 激活任何一个三态缓冲器 通知 ALU 需要完成的操作 通知测试寄存器锁定 ALU 的测试位 激活 RD 信号线 激活 WR 信号线 指令译码器的数据位不仅来自指令寄存器,而且来自测试寄存器和时钟信号线。 只读存储器和随机存取存储器 数据总线、地址总线、读写信号线都连接到 ROM

46、上或者连接到 RAM 上(通常两者都有) 。在这个微处理器例子中,有一套位地址总 线和一套位数据总线。这意味着微处理器可寻址 256 字节的存储器,一次可以读写 位数据。假定该微处理器有 128 字节(地址从开始)的 RAM 和 128 字节(地址从 128 开始)的 RAM。 ROM 是只读存储器。 ROM 芯片是用一组永久的预设字节进行编程得到的。 地址总 线告知 ROM 芯片要将哪个字节取出并置于数据总线上。 RD 信号线改变状态时, 当 ROM 芯片将选中的字节输出到数据总线上。 ROM 是随机存取存储器。 ROM 中包含着以字节为单位的信息, 微处理器能够依据 RD/WR 信号哪个有

47、效来决定字节的读写。当前 RAM 芯片的一个问题是:掉电后, 所有保存在 RAM 上的内容全部丢失。这就是计算机需要 ROM 的原因。 顺便提一下,几乎所有计算机都有一定数量的 ROM(可以建造一种简单的不含 RAM 的计算机许多微控制器在片内集成了一定数量的 RAM但是一般不可能建 造出一种不含 ROM 的计算机) 在 PC 机中, 。 ROM 被称作 BIOS 基本输入输出系统) 。 当计算机启动时,它就执行在 BIOS 中找到的指令。这些 BIOS 指令完成对机内硬件的 测试,然后从硬盘中读取引导扇区。引导扇区也是一个小程序,BIOS 将其从硬盘中读 出来之后,这个小程序就存储在 RAM 中。然后,微处理器开始从 RAM 执行引导扇区 的指令。这个程序将告知微处理器从硬盘其他位置读取信息到 RAM 中,然后微处理器 执行相应的指令等。这就是微处理器装载和执行整个操作系统的过程。 微处理器指令 甚至这里给出的简单得难以置信的微处理器也拥有一套相当大的指 令集。 指令的集合是以比特组

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论