Chapter 7 InputOutput.ppt

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

Chapter 7 Input/Output 7.1 External Devices 7.2 I/O Modules 7.3 Programmed I/O 7.4 Interrupt-Driven I/O 7.5 Direct Memory Access 7.6 I/O Channels and Processors 7.7 FireWire Input/Output Problems Wide variety of peripherals external devices Delivering different amounts of data At different speeds In different formats All slower than CPU and RAM Need I/O modules Generic Model of I/O Module I/O Module Diagram External Device Block Diagram External Devices Human readable devices Screen, printer, keyboard Only machine readable devices Monitoring and control Communication Modem Network Interface Card NIC Typical I/O Data Rates Typical I/O Module Functions Control Timing Bus Communication Device Communication Data Buffering Error Detection I/O Steps Overview of I/O steps e.g. Input : CPU checks I/O module device status I/O module returns status If ready, CPU requests data transfer I/O module gets data from device I/O module transfers data to CPU Variations for Output, DMA, etc. 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 I/O can seem very much like memory access from CPU viewpoint … BUT … it isn’t the same! Each device given unique identifier address CPU’s I/O commands refer to device address, I/O Module design Decisions Tradeoffs: Hide or reveal device properties to CPU? Support multiple or single device? Control device functions or leave for CPU? O/S decisions e.g. Unix treats everything it can as a file I/O Mapping [see next slide] I/O Mapping Memory mapped I/O Devices and memory share an address space I/O access just like memory read/write No special CPU instructions for I/O Large selection of memory access commands Isolated I/O Separate address spaces Need I/O vs. memory select lines on control bus Special CPU instructions fo

文档评论(0)

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

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

1亿VIP精品文档

相关文档