计算机系统结构(英文课件).ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《计算机系统结构(英文课件).ppt》由用户(晟晟文业)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机系统 结构 英文 课件
- 资源描述:
-
1、Chapter 2:Computer-System StructuresnComputer System OperationnI/O StructurenStorage Structure nStorage Hierarchy nHardware Protection nGeneral System ArchitectureUniprocessor Computer-System ArchitecturecontrollerControllernA device controller is a part of a computer system that makes sense of the
2、signals going to,and coming from the CPU processor.Each device controller is in charge of a particular device type.nDevice controllers use binary and digital codes.Each device controller has a local buffer and a command register.I/O is from the device to local buffer of controller.nI/O devices and t
3、he CPU can execute concurrently.Device controllers communicate with the CPU by causing an interrupt.Functions of device controllersnReceiving and understanding the commands of CPUnimplementing the data exchange between CPU and devices(format conversion)nRecording the status of device to be queried b
4、y CPU(status register)nIdentifying the address of each deviceCommon Functions of InterruptsnInterrupts transfers control to the interrupt service routine generally,through the interrupt vector,which contains the addresses of all the service routines.通常中断通过中断向量把控制传给中断服务程序nInterrupt architecture must
5、save the address of the interrupted instruction.nIncoming interrupts are disabled while another interrupt is being processed to prevent a lost interrupt.nA trap is a software-generated interrupt caused either by an error or a user request.nAn operating system is interrupt driven.Interrupt HandlingnT
6、he operating system preserves the state of the CPU by storing registers and the program counter.nDetermines which type of interrupt has occurred:npolling nvectored interrupt system nSeparate segments of code determine what action should be taken for each type of interrupt Interrupt Time Line For a S
7、ingle Process Doing Output(P21)Chapter 2:Computer-System StructuresnComputer System OperationnI/O StructurenStorage Structure nStorage Hierarchy nHardware Protection nGeneral System ArchitectureI/O Structure1.No channel(IOP):npollingCPU-OrientedCPURAMCCCCDisk DrivePrinterDeviceSystem BusI/O Structur
8、e2.channel(IOP):Memory-OrientedC1IOP1CPURAMIOP2C2C3C4Device1Device2Device3Device4Device5Device6Device7How to output the data in RAM?nConstruct a channel programnSubmit the channel program to the corresponding IOP via RAMnThe IOP executes the channel programnThe IOP notifies CPU by causing an interru
9、pt upon completion A channel program is a sequence of I/O instructions executed by the input/output channel processor(IOP).The channel program consists of one or more channel command words.Two I/O MethodsSynchronousAsynchronousSynchronous I/OnAfter I/O starts,control returns to user program only upo
10、n I/O completion.nwait instruction idles the CPU until the next interruptnwait loop(contention for memory access).nAt most one I/O request is outstanding at a time,no simultaneous I/O processing.Asynchronous I/OnAfter I/O starts,control returns to user program,without waiting for I/O completion.nSys
11、tem call request to the operating system to allow user to wait for I/O completion.nDevice-status table contains entry for each I/O device indicating its type,address,and state.nOperating system indexes into I/O device table to determine device status and to modify table entry to include interrupt.nT
12、he main advantage of asynchronous I/O is increased system efficiency.Device-Status TableI/O StructurenProgrammed input/output(PIO)is a method of transferring data between the CPU and a peripheral.In general,programmed I/O happens when software running on the CPU uses instructions that access I/O add
13、ress space to perform data transfers to or from an I/O device.nWith Direct Memory Access(DMA),the CPU would initiate the transfer,do other operations while the transfer is in progress,and receive an interrupt from the DMA controller once the operation has been done.Direct Memory Access(DMA)Structure
14、nUsed for high-speed I/O devices able to transmit information at close to memory speeds.nDevice controller transfers blocks of data from buffer storage directly to main memory without CPU intervention.nOnly one interrupt is generated per block,rather than the one interrupt per byte.Chapter 2:Compute
展开阅读全文