0% found this document useful (0 votes)
31 views37 pages

Comporg6 ch7

Chapter 7 discusses input/output organization, focusing on hardware requirements, bus operation types, and interface circuits. It covers various commercial standards such as USB, PCI, and PCI Express, detailing their functionalities and features. The chapter also explains bus arbitration, data transfer protocols, and the significance of plug-and-play technology in system integration.

Uploaded by

rajagopal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views37 pages

Comporg6 ch7

Chapter 7 discusses input/output organization, focusing on hardware requirements, bus operation types, and interface circuits. It covers various commercial standards such as USB, PCI, and PCI Express, detailing their functionalities and features. The chapter also explains bus arbitration, data transfer protocols, and the significance of plug-and-play technology in system integration.

Uploaded by

rajagopal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 37

Chapter 7

Input/Output Organization
Chapter Outline
• Hardware needed to access I/O devices
• Synchronous and asynchronous bus operation
• Interface circuits
• Commercial standards, such as USB, SAS, and PCI Express
A Single-Bus System
I/O interface for an input device
I/O interface for an input device
• Interface circuit responds when it recognizes its address.
• Needs to know exactly when to check address information
and when to send input data or receive output data.
• Control circuitry coordinates the interface’s operation.
• Two approaches to timing of bus transfers:
– Synchronous
– Asynchronous
Input transfer timing on a synchronous bus
Input transfer timing on a synchronous bus
• A delay is introduced by the bus drivers that place new
information on the address or data lines.
• Additional delay is encountered as information propagates
along the bus.
• Receiver requires a minimum amount of setup time to receive
data correctly
A detailed timing diagram for the input transfer
A detailed timing diagram for the input transfer
• Not all devices operate at the same speed.
• After sending a transfer request, some bus protocols allow
device interface to respond in a later clock cycle.
• In this case, the clock period need not be designed to
accommodate the slowest device.
An input transfer using multiple clock cycles
Asynchronous protocol
• Timing automatically adjusts to delays.
• Data transfer is controlled by two interlocked signals:
Master-ready and Slave-ready.
• Whenever the processor takes an action, it waits for the
device interface to respond before taking the next action, and
vice-versa.
Handshake control: input operation
Handshake control: output operation
Bus Master
• The device initiating read and write requests is called a bus
master.
• Devices request bus mastership.
• An arbiter grants the bus to the highest priority device.
• Control lines on the bus are used to request and grant the
bus.
Bus arbitration
Granting the bus, priorities: BR1 > BR2 > BR3
Examples of interface circuits
• Consider an interface circuit that connects a keyboard to the
bus of a processor.
• When a key is pressed, the character code is loaded into an
interface register, and a status bit is set.
• Status bit value and character code are sent to the processor
in response to read operations on appropriate addresses.
Keyboard-to-processor connection
Data and status information

Capture
data

Select Set status


Data or bit
status
Set status
Enable bit
Detail of status flag control
• KIN is set by Valid and cleared by a read operation, but only
when Master-ready is not asserted.
An output interface
• Data are written into DISP_DATA register.
• Transferred to the display under control of New-data signal.
• Ready signal sets status bit, which can be read by processor
from DISP_STATUS register.
• An
implementation
of an output
interface
Serial links
• Many I/O interconnections use serial data transmission.
– More suitable for longer distances
– Less expensive
• Data are transmitted one bit at a time.
• Requires a means for the receiver to recover timing
information.
• A simple scheme for low-speed transmission is known as
“start-stop,” using a Universal Asynchronous Receiver
Transmitter (UART).
UART
Start-stop transmission
• Start bit signals the beginning of a character.
• Presence of stop bit(s) at end of data bit sequence
ensures proper transition for start bit of new character.
I/O interconnection standards
• Standards facilitate system integration using components
from a variety of sources.
• They encourage the development of many plug-compatible
devices.
• They help industry grow.
• Perhaps the most commonly encountered I/O standard today
is the Universal Serial Bus (USB).
• USB is found on many devices:
Memory keys, printers, external disk drives, cameras, etc.
USB (Universal Serial Bus )
• Point-to-point
connections
• Tree structure
USB features
• Point-to-point connections using two twisted pairs
• Wide range of speeds
• Plug-and-play
• Supports a wide variety of devices:
– Asynchronous, e.g. mouse, keyboard, memory key
– Isochronous: e.g. sampled audio
• Several versions, with speeds up to 5 Gb/s
PCI (Peripheral Component Interconnect) Bus
• Used most often
on the
motherboard of
a computer.
An input operation on the PCI bus
Plug-and-play
• PCI pioneered the plug-and-play feature, which was
made possible by the bus’s initial connection protocol.
• There are up to 21 device connectors on the PCI bus.
• Each PCI-compatible device has a small ROM
with information on the device characteristics.
• Processor scans all connectors to determine
whether a device is plugged in.
• It assigns an address to each device and reads
the contents of its ROM.
• With this information, it selects the appropriate device driver
software, performs any initialization that may be needed, etc.
PCIexpress
• Point-to-point
connections
with one or
more switches
forming a tree.
• Root complex
provides high-
speed ports for
memory and
other devices.
PCIe links
• The basic connection is called a lane.
• A lane consists of two twisted-pairs or optical lines
for each direction of transmission.
• The data rate is 2.5 Gb/s in each direction.
• A connection to a device (link) may use up to 16 lanes.
• The PCIe protocols are fully compatible with PCI,
e.g., the same initial connection protocol is used.
Example 7.2: Finite-State Machine
for a Three-Device Priority Arbiter
Example 7.3:
Output
Interface
for a
Synchronous
Bus
Example 7.4: Finite-State Machine
for Output Interface Handshake Control Circuit

You might also like