Chapter One: Microcomputer Architecture
Chapter One: Microcomputer Architecture
Chapter One: Microcomputer Architecture
Microcomputer Architecture
The main internal hardware features of a computer are the processor, memory
and registers (registers are special processor components for holding address
and data).
The external hardware features are the computer Input/output devices such as
keyboard, monitor…
Software consists of the operating system (O.S) and various programs and data
files stored on disk. Inside any computer based on a member of the 8086 family,
the basic arrangement of the main components is shown in Figure 1.
1
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
The Bus Interface Unit (BIU) within the MPU fetches new instruction or data
as necessary. It is also the BIU jobs to interpret or decode instruction and to
route results to their proper destination.
The MPU Execution Unit carries out any arithmetic which is required,
including memory calculation. Microcomputer memories consist of a collection
of chips of two kinds Read Only Memory (ROM) and Random Access
Memories (RAM).
System Bus
The components of the computer system must communicate with each other and
with the outside world. Although it may be possible to connect each component
to the CPU separately as a practical matter this would require too many physical
connects. To keep the number of connections manageable, the processor is
connected to memory and all peripherals using a bus.
Data Bus (DB): the width of DB indicates the size of the data transferred
between the processor and memory or I/O device.
2
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
The main component of the PC is its System Board (or mother board). It
contains the processor, co-processor, main memory, connectors, and expansion
slots for optional cards. The slots and connectors provide access to such
components as ROM, RAM, hard disk, CD-ROM drive, additional memory,
video unit, keyboard, mouse, parallel and serial device, sound adapter and cache
memory (the processor use high speed cache memory to decrease its need to
access the slower main memory). A bus with wires attached to the system board
connect the components. It transfers data between the processor, memory and
external devices.
A. The processor
The CPU or processor acts as the controller of all actions or services
provided by the system. The operations of a CPU can be reduced to three
basic steps: fetch, decode, and execute. Each step includes intermediate
steps, some of which are:
Fetch the next instruction:
- Place it in a holding area called a queue.
- Decode the instruction.
Decode the instruction :
- Perform address translation.
- Fetch operand from memory.
3
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
B. Memory
The memory of a computer system consist of tiny electronic switches,
with each switch set in one of two states: open or close. It is however
more convenient to think of these states as 0 and 1.
4
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
Thus each switch can represent a binary digit or bit, as it is known, the
memory unit consists of millions of such bits, bits are organized into
groups of eight bits called byte.
Memory can be viewed as consisting of an ordered sequence of bytes.
Each byte in this memory can be identified by its sequence number
starting with 0, as shown in Figure 3. This is referred to as memory
address of the byte. Such memory is called byte addressable memory.
8086 can address up to 1 MB (220 bytes) of main memory this magic
number comes from the fact that the address bud of the 8086 has 20
address lines. This number is referred to as the Memory Address Space
(MAS).
The memory address space of a system is determined by the address bus
width of the CPU used in the system. The actual memory in a system is
always less than or equal to the MAS.
6
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
Addresses
Group of bits which are arranged sequentially in memory, to enable direct
access, a number called address is associated with each group. Addresses
start at 0 and increase for successive groups. The term location refers to a
group of bits with a unique address. Table 1 represents Bit, Byte, and
Larger units.
Types of memory
7
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
Read/Write Memory
8
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
C. INPUT/OUTPUT
Input / Output (I/O) devices provide the means by which the computer
system can interact with the outside world. Computers use I/O devices
(also called peripheral devices) for two major purposes:
a. To communicate with the outside world and,
b. Store data.
9
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
10
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
Unit In the Figure 6, the processor is partitioned into two logical units: an
Execution Unit (EU) and Bus Interface Unit (BIU). The role of the EU
is to execute instruction, whereas the BIU delivers instruction and data to
EU. The EU contains ALU, CU and number of registers. This feature
enables the EU to execute instructions and perform arithmetic and logical
operations. The most important function of BIU is to manage the bus
control unit, segment registers instruction queue. The BIU controls the
busses that transfer data to the EU, to memory, and to external
input/output devices, whereas the segment registers control the memory
addressing.
11
Chapter One Microcomputer Architecture
Lecturer: Zainab Khyioon Abdalrdha
Second Class
12