Microprocessor Based Systems: Lecture No 02 Introduction To Computer Architecture
Microprocessor Based Systems: Lecture No 02 Introduction To Computer Architecture
Systems
Lecture No 02 Introduction to
Computer Architecture
By Nasir Mahmood
Objective of Learning Computer
Architecture
The internal working of the computer
CPU
Memory
Busses
I/O
Computer Architecture
It is concerned with the structure and behaviour of the
computer as seen by the user. It includes the information
formats, the instruction set, and techniques for addressing
memory.
Architecture & Organization
Architecture is those attributes visible to the
programmer
Instruction set, number of bits used for data representation,
I/O mechanisms, addressing techniques.
e.g. Is there a multiply instruction?
Organization is how features are implemented,
typically hidden from the programmer
Control signals, interfaces, memory technology.
e.g. Is there a hardware multiply unit or is it done by
repeated addition?
Relationship between organization and
architecture
All Intel x86 family share the same basic architecture
The IBM System/370 family share the same basic architecture
Data movement
Control
Functional view
Data
Control
Movement
Mechanism
Apparatus
Data
Processing
Facility
Operations (1)
Data movement
e.g. keyboard to screen Data
Storage
Facility
Data
Control
Movement
Mechanism
Apparatus
Data
Processing
Facility
Operations (2)
Storage
e.g. Internet download to disk Data
Storage
Facility
Data
Control
Movement
Mechanism
Apparatus
Data
Processing
Facility
Operation (3)
Data
Control
Movement
Mechanism
Apparatus
Data
Processing
Facility
Operation (4)
Data
Control
Movement
Mechanism
Apparatus
Data
Processing
Facility
Structure
Major Components of a Computer
Central Processing Unit (CPU) – Controls the operation of
the computer and performs data processing
Main Memory – Stores data
Input Output (I/O) – Moves data between the computer
and the external environment
System Interconnect – Some mechanism that provides for
communications between the system components,
typically a bus (set of wires)
Structure - Top Level
Peripherals Computer
Central Main
Processing Memory
Unit
Computer
Systems
Interconnection
Input
Output
Communication
lines
Generic System Bus
System Bus = Data, Address, and Control Bus (set of wires, e.g. 32 wires each)
Typically multiple I/O buses, power bus, etc.
Structure - CPU
Major components of the CPU
Control Unit (CU) – Controls the operation of the CPU
Arithmetic and Logic Unit (ALU) – Performs data
processing functions, e.g. arithmetic operations
Registers – Fast storage internal to the CPU, but contents
can be copied to/from main memory
CPU Interconnect – Some mechanism that provides for
communication among the control unit, ALU, and registers
Structure - The CPU
CPU
Computer Arithmetic
Registers and
I/O Login Unit
System CPU
Bus
Internal CPU
Memory Interconnection
Control
Unit
Structure – Inside the CPU
The implementation of registers and the ALU
We will say a bit about the architecture of the control
unit, there are many possible approaches.
A common approach is the microprogrammed control unit,
where the control unit is in essence itself a miniature
computer, where a CPU instruction is implemented via one or
more micro instructions
Sequencing Logic – Controlling the order of events
Microprogram Control Unit – Internal controls
Microprogram Registers, Memory
Structure – A Microprogrammed
Control Unit
Control Unit
CPU
Sequencing
ALU Login
Control
Internal
Unit
Bus
Control Unit
Registers Registers and
Decoders
Control
Memory
Current Trends : Multicore Processors
using Network on Chip
THE END