CHAPTER 1 Introduction
CHAPTER 1 Introduction
AND ARCHITECTURE
CHAPTER 1
Introduction
The aim of this Chapter is to :
1. Understand the meaning of Computer
Architecture and Organization.
2. Examine the main functions of the computer.
3. Look at how the different components of the
computer are structured.
4. Explore the functions of each of the different
components that make up the computer
structure.
5. Understand the key performance issues that
relate to computer design.
Introduction
➢ The course is about the structure and
functions of modern day computers.
Architectural
Computer
attributes
Architecture
include:
Organizational
Computer
• Hardware details attributes
transparent to the Organization
include:
programmer, control
• The operational units and
signals, interfaces
their interconnections
between the computer
that realize the
and peripherals,
architectural
memory technology
specifications
used
COMPUTER ARCHITECTURE
WHY STUDY COMPUTER
ORGANIZATION AND ARCHITECTURE
➢ To understand the computer’s functional
components, their characteristics, their
performance and their interactions.
I/O Main
memory
System
Bus
CPU
CPU
Registers ALU
Internal
Structure
Bus
Control
Unit
CONTROL
UNIT
Sequencing
Logic
Control Unit
Registers and
Decoders
Control
Memory
Processor
I/O chips chip
PROCESSOR CHIP
L3 cache L3 cache
CORE
Arithmetic
Instruction and logic Load/
logic unit (ALU) store logic
L2 instruction L2 data
cache cache
19
I/O Function
• I/O module can exchange data directly with the processor
• Processor can read data from or write data to an I/O
module
– Processor identifies a specific device that is controlled by a
particular I/O module
– I/O instructions rather than memory referencing instructions
• In some cases it is desirable to allow I/O exchanges to
occur directly with memory
– The processor grants to an I/O module the authority to read
from or write to memory so that the I/O memory transfer can
occur without tying up the processor.
– The I/O module issues read or write commands to memory
relieving the processor of responsibility for the exchange.
– This operation is known as direct memory access (DMA).
System Interconnection
Mechanism to provide communication between
the CPU, memory and the I/O sub system. It
consists of the System Bus and the Interfaces
System Bus.
A set of conductors that connect the CPU to its
memory and I/O devices. The bus conductors are
normally separated into 3 groups:
➢ The Data Lines: for transmitting information
➢ Address Lines: Indicate where information is to come
from or where it is to be placed.
➢ Control Lines: To regulate the activities on the bus.
Interfaces
Circuitry needed to connect the bus to a device.
Memory interfaces
➢ Decode the address of the memory location being
accessed.
➢ Buffer data onto/off the bus.
➢ Contain circuitry to perform memory reads or write.
I/O interfaces
➢ Buffer data onto/off the system bus
➢ Receive commands from the CPU
➢ Transmit information from their devices to the CPU.
COMPUTER STRUCTURE
Two arrangements of these components can be
described:
➢ The single bus / Single processor
architecture: one processing element and all
the other components are connected to a single
link (the System Bus)
I/O AR
Data
Execution
unit Data
I/O BR
Data
Data
PC = Program counter
Buffers IR = Instruction register
MAR = Memory address register
MBR = Memory buffer register
I/O AR = Input/output address register
I/O BR = Input/output buffer register
MAR
❑ MASKED ROM:
Programmed by a masking operation while the
chip is being manufactured. They cannot be
altered by the user.
➢ Static Ram:
keep its contents so long as power is
on.
➢ Dynamic Ram:
made of capacitors that can be charged
or discharged. It must be refreshed
often because of charge leakage.
I/O INTERFACES
Memory and peripherals are connected to
buses through interfaces and controllers.
➢ A controller: initiates commands given
to a device and it senses the status of
the device.
➢ Byte/Word Transfer
one byte or word is moved by one
command.
➢ Block Transfer
A whole block of information is moved
by a single command e.g. Direct
memory Access transfers which are
between memory and the peripheral.
Data Transfer
In block transfers a device’s interface must be
used in conjunction with a DMA controller that
can access memory directly without intervention
by the CPU. e.g. a disk uses DMA.
Control lines
Data lines
components
Reduce the frequency
of memory access by
◼ Architectural examples incorporating
increasingly complex
include: and efficient cache
structures between the
processor and main
memory
Graphics display
Wi-Fi modem
(max speed)
Hard disk
Optical disc
Laser printer
Scanner
Mouse
Keyboard
101 102 103 104 105 106 107 108 109 1010 1011
Data Rate (bps)
Data Representation:
• In this chapter we shall cover the different
formats used by the computer to represent
the information it receives.
Reading Assignment
Note: Ensure to read about the following
as this knowledge is going to be required
in chapter 2.
Read and make notes on the following: Make sure you work
out some examples.
1) Converting from decimal to binary and vice versa.
2) Converting from binary to Hexadecimal and vice versa.
3) Converting from Hexadecimal to decimal and vice versa.
4) Converting from Binary to octal and vice versa.
5) Converting from Octal to Hexadecimal and vice versa.