Professional Documents
Culture Documents
Computer Architecture System Buses PDF
Computer Architecture System Buses PDF
CHAPTER 1
INTRODUCTION TO COMPUTER ORGANIZATION
Lesson 14
COMPUTER ORGANIZATION & SYSTEM BUSES
Most computer systems, from the embedded controllers found in automobiles and
consumer appliances to personal computers and mainframes, have the same basic
organization. This organization has three main components: he CPU, the memory
subsystem, and the I/O subsystem. We discuss each of these components in more
detail later in this chapter. The generic organization of these components is shown in
Figure 4.1.
Figure 4.1
Generic computer organization
In this section, we first describe the system buses used to connect the components in
the computer system. Then we examine the instruction cycle, the sequence of
operations that occurs within the computer as it fetches, decodes, and executes an
instruction.
SYSTEM BUSES
Physically, a bus is a set of wires. The components of the computer are connected to
the buses. To send information from one components to another, the source
component outputs data onto the bus. The destination component then inputs this data
from the bus. As the complexity of a computer system increases, it becomes more
efficient (in terms of minimizing connections) at using buses rather than direct
connections between every pair of devices. Buses use less space on a circuit board
and require less power than a large number of direct connections. They also require
fewer pins on the chip or chips that comprise the CPU.
The system shown in Figure 4.1 has three buses. The uppermost bus in this
figure is the address bus. When the CPU read data or instructions from or writes data
to memory, it must specify the address of the memory location it wishes to access. It
outputs this address to the address bus; memory inputs this address from the address
bus and uses it to access the proper memory location. Each I/O device, such as a
keyboard, monitor, or disk drive, has a unique address as well. When accessing an I/O
device, the CPU places the address of the device on the address bus. Each device can
read the address off of the bus and determine whether it is the device being accessed
by the CPU. Unlike the other buses, the address bus always receives data from the
CPU; the CPU never reads the address bus.
Data is transferred via the data bus. When the CPU fetches data from memory,
it first outputs the memory address on its address bus. Then memory outputs the data
onto the data bus; the CPU can then read the data from the data bus. When writing
data to memory, the CPU first outputs the address onto the address bus, then outputs
the data onto the data bus. Memory then reads and stores the data at the proper
location. The processes for reading data from and writing data to the I/O devices are
similar.
The control bus is different from the other two buses. The address bus consists
of n lines, which combine to transmit one n-bit address value. Similarly, the lines of
the data bus work together to transmit a single, multibit value. In contrast, the control
bus is a collection of individual control signals. These signals indicate whether data is
to be read into or written out of the CPU, whether the CPU is accessing memory or an
I/O device, and whether the I/O device or memory is ready to transfer data. Although
this bus is shown as bi-directional in Figure 4.1, it is really a collection of (mostly)
unidirectional signals. Most of these signals are output from the CPU to the memory
and I/O subsystems, although a few are output by these subsystems to the CPU. We
examine these signals in more detail when we look at the instruction cycle and the
subsystem interface.
A system may have a hierarchy of buses. For example, it may use its address, data,
and control buses to access memory, and an I/O controller. The I/O controller, in turn,
may access all I/O devices using a second bus, often called an I/O bus or a local bus.
The practical perspective describes the PCI bus, a local bus commonly used in
personal computers.
INSTRUCTION CYCLES