COA课件-大连交大-Lyx_Ch_07.ppt

  1. 1、本文档共50页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
COA课件-大连交大-Lyx_Ch_07

William Stallings Computer Organization and Architecture 6th Edition Chapter 7 Input/Output Input/Output Problems Wide variety of peripherals Delivering different amounts of data At different speeds In different formats often slower than CPU and RAM Need I/O modules I/O Module(Two major functions) Interface to CPU and Memory Interface to one or more peripherals Generic Model of I/O Module §7.1 External Devices Human readable Screen, printer, keyboard Machine readable Monitoring and control Communication Modem Network Interface Card (NIC) External Device Block Diagram Typical I/O Data Rates §7.2 I/O Module Function Control Timing 控制和定时 CPU Communication 处理器通信 Device Communication 设备通信 Data Buffering 数据缓冲 Error Detection 检错 I/O Steps(Read) CPU checks I/O module device status I/O module returns status If ready, CPU requests data transfer I/O module gets data from external device I/O module transfers data to CPU Write??? I/O Module Diagram I/O Module Decisions Hide or reveal device properties to CPU Support multiple or single device Control device functions or leave for CPU Also O/S decisions e.g. Unix treats everything it can as a file Input Output Techniques Programmed I/O 编程I/O ※Interrupt-Driven I/O 中断驱动I/O ※Direct Memory Access (DMA) 直接存储器存取 §7.3 Programmed I/O CPU has direct control over I/O Sensing status 检查设备状态 Read/write commands 发送读/写命令 Transferring data 传送数据 CPU waits for I/O module to complete operation Wastes CPU time Programmed I/O – detail CPU requests I/O operation I/O module performs operation I/O module sets status bits CPU checks status bits periodically周期性地 I/O module does not inform CPU directly I/O module does not interrupt CPU CPU may wait or come back later I/O Commands CPU issues address Identifies module ( device if 1 per module) CPU issues command Control - telling module what to do e.g. spin up disk Test - check status e.g. power? Error? Read/Write Module transfers data via buffer from/to device Addressing I/O Devices Und

文档评论(0)

qwd513620855 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档