Chapter 5: Input-Output Devices and Interrupts
10 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

This controller is usually located on the motherboard, or may be added with a ______ card.

PCIe

Controllers usually expose a set of control ______ to the OS to check their status and trigger operations.

registers

There are two main communication mechanisms for device ______.

controllers

Most architectures map device control registers into the physical address ______.

<p>space</p> Signup and view all the answers

Programs can then read from/write to these ports with special ______, available only in supervisor mode.

<p>instructions</p> Signup and view all the answers

I/O devices are physical devices that enable interactions with the ______ world

<p>outside</p> Signup and view all the answers

Block devices store information that can be accessed later on, while character devices do not keep any ______ to be accessed later on.

<p>information</p> Signup and view all the answers

Examples of block devices include hard drives (HDD) and solid-state drives (SSD), while examples of character devices include ______ and keyboards.

<p>printers</p> Signup and view all the answers

From an electrical engineer’s perspective, I/O devices are a set of chips and mechanical parts that perform ______.

<p>operations</p> Signup and view all the answers

Devices usually have a hardware ______ that is used to interface with the rest of the computer.

<p>controller</p> Signup and view all the answers

Study Notes

I/O Devices

  • I/O devices are physical devices that enable interactions with the "outside" world, allowing computer systems to communicate outside the CPU-memory world.
  • They can be classified as:
    • Block devices that work with fixed-size blocks of information, addressable and accessible independently, used for storing information (e.g., hard drives, solid-state drives, magnetic tapes).
    • Character devices that work with streams of characters, not addressable, and usually do not keep any information to be accessed later on (e.g., printers, keyboards/mice, terminals).

Device Controllers

  • Devices usually have a hardware controller that interfaces with the rest of the computer, usually located on the motherboard or added with a PCIe card.
  • Controllers expose a set of control registers to the OS to check their status and trigger operations.
  • Controllers implement an interface specification (e.g., USB, SATA) to control devices in a standard way, detailing communication protocols between devices and the system.
  • Controllers may also implement features like error checking/correction, replication, compression, encryption, wear leveling, virtual address translation, etc.

Communication With Devices

  • There are two main communication mechanisms for device controllers:
    • Device ports: each device control register is assigned a port number, allowing programs to read from/write to these ports with special instructions in supervisor mode.
    • Memory-mapped devices: device control registers are mapped into the physical address space, protected as supervisor only, allowing the OS to use regular memory operations to interact with devices.

Bandwidths of Various Devices

  • Keyboard: 10 B/s
  • Mouse: 100 B/s
  • Bluetooth 5 BLE: 256 KB/s
  • 802.11n Wireless: 37.5 MB/s
  • USB 2.0: 60 MB/s
  • Gigabit Ethernet: 125 MB/s
  • SATA 3 HDD: 600 MB/s
  • USB 3.0: 625 MB/s
  • PCIe 3.0 (single lane): 985 MB/s
  • 802.11ax Wireless: 1.25 GB/s
  • PCIe 5.0 nVME SSD (read): 14 GB/s
  • USB 4.0: 5 GB/s
  • PCIe 6.0: 126 GB/s

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Description

This chapter covers the basics of input-output devices, interrupts, and their role in operating systems and system software.

More Like This

Use Quizgecko on...
Browser
Browser