Intel Microprocessors Architecture Progr
Intel Microprocessors Architecture Progr
ALU CU Clock
Control Unit
Address Bus
The figure shows the main components of a microprocessor-based system:
CPU- Central Processing Unit, where calculations and logic operations are done.
CPU contains registers, a high-frequency clock, a control unit (CU) and an arithmetic
logic unit (ALU).
o Clock: synchronizes the internal operations of the CPU with other system
components using clock pulsing at a constant rate (the basic unit of time for
machine instructions is a machine cycle or clock cycle)
One cycle
A machine instruction requires at least one clock cycle some instruction require 50 clocks.
o Control Unit (CU) - generate the needed control signals to coordinate the
sequencing of steps involved in executing machine instructions: (fetches data
and instructions and decodes addresses for the ALU).
o Arithmetic logic (ALU) - performs arithmetic operations such as addition and
subtraction and logical operations such as AND, OR, and NOT.
o Registers: Internal memory locations.
o System Bus: The components of the computer system must communicate with
other and with the outside world using a bus.
A bus is a bunch of wires that transfer data from one part of the computer to another.
There are three types of Bus:
1. Address Bus (AB): the width of AB determines the amount of physical memory
addressable by microprocessor and it holds the addresses of instructions and data when
the currently executing instruction transfers data between the CPU and memory.
2. Data Bus (DB): The width of DB: The width of DB indicates the size of the data
transferred between microprocessor and memory or I/O device.
(Transfer instructions and data)
3. Control Bus (CB): The control bus uses binary signals to synchronize actions of all
devices attached to the system bus.
CB consists of control signals like memory read, memory write, I/O read, I/O write,
interrupt acknowledge …
Memory Storage Unit:
The memory of computer system consists of tiny electronic switches (two states: open or
close). Each switch can represent a binary digit or bit. The memory unit consists of
millions of such bits; bits are organized into groups as the following:
Name Number of bytes
Bit 0 or 1 (1 Bit)
Byte 8 Bits (1 Byte)
Word 2- Bytes (16- Bits) Address
Double Word 4- Bytes (32- Bits)
Quad Word 8- Bytes (64- Bits) Data
Memory Unit
Paragraph 16- Bytes (128- Bits) Read
KB. 1024- Byte
Write
Two memory operations (Basic Operations)
Read & Write
Steps in a typical read cycle:
1. Read the address of the location.
2. Activate the read signal (control signal).
3. Wait for the memory to retrieve the data.
4. Read the data from the data bus.
5. Drop the memory read control signal to terminate the read cycle.
Steps in a typical write cycle:
1. Place the address of the location to be written on the address bus.
2. Place the data to be written on the data bus.
3. Activate the write signal.
4. Wait for the memory to store data.
5. Drop the write signal.
Logical view of the systems (memory system)
Memory can be viewed as consisting of an ordered sequence of bytes. Such memory is
called byte addressable memory.
8086 microprocessor can address up to 1 MB (220 bytes) (address lines)
Address in Address in
Decimal Hex
220-1 FFFFF
220-2 FFFFE
.
.
.
.
.
2 00002
1 00001
0
00000
Types of memory:
The memory unit can be implemented using a variety of memory chips- different speeds,
different technologies and different sizes.
(The two basic types are RAM or ROM)
1- Read Only Memories (ROM)
Other types of ROM:
o Programmable ROM (PROM)
o Erasable PROM (EPROM)- Special equipment
o EAPROM (Electrically)
2- Read/write Memory
Random access memory (RAM):
o Static RAM- used for implementing CPU registers and cache memory.
o Dynamic RAM- main memory in a computer system (Program is kept during
the execution, also the data).
Instruction Execution Cycle