Computing Systems Organization
Computing Systems Organization
Contents
Describe the operation of a computer at the functional level
Explain the function of the main components of a computer
system
Detail the interaction of computer sub-systems
Detail the organization of computer sub-systems
Computer organization
Instruction set architecture provides a good
understanding of what a microprocessor can do;
provides no information how to use the processor in a
bigger system.
In order to design a computing system, more
information is need than the instruction set
Computer system subsystems:
CPU
Buses
Memory
Input/Output
System buses
Set of wires, that interconnects all the components
(subsystems) of a computer
A source component sources out data onto the bus
A destination component inputs data from the bus
Address bus
CPU reads/writes data from the memory by
addressing a unique location; outputs the location of
the data (aka address) on the address buss; memory
uses this address to access the proper data
Each I/O device (such as monitor, keypad, etc) has a
unique address as well (or a range of addresses);
when accessing a I/O device, CPU places its address
on the address bus. Each device will detect if it is its
own address and act accordingly
Devices always receive data from the CPU; CPU
never reads the address buss (it is never addressed)
Data bus
When the CPU fetches data from memory, it first
outputs the address on the address bus, then the
memory outputs the data onto the data bus; the CPU
reads the data from data bus
When writing data onto the memory, the CPU
outputs first the address on the address bus, then
outputs the data onto the output bus; memory then
reads and stores the data at the proper location
The process to read/write to a I/O device is similar
Control bus
Address and data buses consist of n lines, which
combine to transmit one n bit value; control bus is a
collection of individual control signals
These signals indicate whether the data is to be read
into or written out the CPU, whether the CPU is
accessing memory or an IO device, and whether the
I/O device or memory is ready for the data transfer
This bus is mostly a collection of unidirectional
signals
CPU
The Central Processing Unit (CPU a.k.a. Processor) is the
chip which acts as a control center for all operations. It
executes instructions (a program) which are contained in the
memory section.
Basic operations involve
the transfer of data between itself and the memory section
manipulation of data in the memory section or stored internally
the transfer of data between itself and input/output devices
Harvard:
Uses separate memory modules for instructions and for data
It is easier to pipeline and there are no memory alignment
problems
Higher memory throughput
Suitable for DSP (Digital Signal Processors)
Computer Memory
Memory contains instructions for the processor to execute or data it
operates on
Address Locations - Memory consists of a sequential number of
locations, each of which are a specific number of bits wide.
Computer Memory
The total number of address locations which can be accessed by the
processor is known as its physical address space. How large this is
determined by the size of the address bus, and is often expressed in
terms of Kilobytes (x1024), Megabytes or Gigabytes.
16 bits address bus = 64K (65536 locations)
20 bits address bus = 1MB (IBM PC)
32 bits address bus = 4GB (486DX)
Access Times - Access time refers to how long it takes the processor
to read or write to a specific memory location within a chip. The
limiting factor is the type of technology used to implement the
memory cells inside the chip.
Volatility - This refers to whether or not the contents of the memory
is lost when power is turned off. If the contents are lost, the memory
is volatile. If the contents are retained, then the memory is nonvolatile.
Input/Output devices
Peripheral devices allow input and output to occur.
Examples of peripheral devices are
Fetch Cycle
In the first phase, the processor generates the necessary timing signals to fetch the next instruction from
the memory system.
The instruction is transferred from memory to an internal location inside the processor (the instruction
register)
In the above image, the processor is ready to begin the Fetch cycle. The current contents of the
instruction counter (program counter) is address 0100. This value is placed on the address bus, and a
READ signal is activated on the control bus. The memory receives this and finds the contents of the
memory location 0100, which happens to be the instruction MOV AX, 0.
The memory places the instruction on the Data Bus, and the processor then copies the instruction from the
Data Bus to the Instruction Register.
Decode Cycle
The processor transfers the instruction from the instruction register to the Decode Unit.
It compares the instruction to an internal table, and when a match is found, the table contains
the list of macro instructions (a number of steps) which are required to perform the instruction.
In our case, the instruction means place the value 0 into the AX register. The decode unit now has all
the details of how to do this.
During this phase the processor (if required by the instruction) will get any operand's required
by the instruction.
The final effect of instruction MOV AX, 0 is to set the value of the AX register of the processor to
the constant value 0. The processor has the instruction (MOV AX), but now needs the constant value
0 to complete the instruction before executing it. In this instance, the processor will fetch the
constant value 0 from the next location in memory (it is found immediately after the instruction, in
the next memory location 0101)
Execute Cycle
Fetch/Decode/Execute
References
Computer Systems Organization & Architecture,
John D. Carpinelli, ISBN: 0-201-61253-4
Operating Systems A modern perspective, Garry
Nutt, ISBN 0-8053-1295-1