0% found this document useful (0 votes)
90 views

Chapter 1 (Assembly)

Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor : 4,8,16,32 dan 64 byte Nibble, byte, word dan longword Fecthing and execution cycles. Internal structure and basic operation of a microprocessor (arithmetic and logic unit, control unit, register sets, accumulator, condition code register, program counter, stack pointer) Bus system: data bus, address bus and control bus. Microprocessor clock system Examples of micro

Uploaded by

haroonhani
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Chapter 1 (Assembly)

Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor : 4,8,16,32 dan 64 byte Nibble, byte, word dan longword Fecthing and execution cycles. Internal structure and basic operation of a microprocessor (arithmetic and logic unit, control unit, register sets, accumulator, condition code register, program counter, stack pointer) Bus system: data bus, address bus and control bus. Microprocessor clock system Examples of micro

Uploaded by

haroonhani
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 32

Today’s Agenda

 Basic components of a computer system using block diagrams:


Cpu
Memory
Input and output unit
 Evolution of microprocessor : 4,8,16,32 dan 64 byte
 Nibble, byte, word dan longword
 Fecthing and execution cycles.
 Internal structure and basic operation of a microprocessor
(arithmetic and logic unit, control unit, register sets,
accumulator, condition code register, program counter, stack
pointer)
 Bus system: data bus, address bus and control bus.
 Microprocessor clock system
 Examples of microprocessor: 8085,8086.
1
1 BLOCK DIAGRAM OF A BASIC COMPUTER
SYSTEM
Basic computer system consist of a Central processing unit (CPU),
memory (RAM and ROM), input/output (I/O) unit.

Address bus

ROM RAM I/O I/O


CPU interface devices

Data bus Control


bus

Block diagram of a basic computer system


2
Buses

3
Basic component of micro-computer

1. CPU - Central Processing Unit


• the portion of a computer system that carries out the instructions of a
computer program
• the primary element carrying out the computer's functions. It is the unit that
reads and executes program instructions.
• The data in the instruction tells the processor what to do.

Pentium D dual core processors

4
2. Memory
• physical devices used to store data or programs (sequences of
instructions) on a temporary or permanent basis for use in an
electronic digital computer.
• Computer main memory comes in two principal varieties: random-
access memory (RAM) and read-only memory (ROM).
• RAM can be read and written to anytime the CPU commands it, but
ROM is pre-loaded with data and software that never changes, so the
CPU can only read from it.
• ROM is typically used to store the computer's initial start-up
instructions.
• In general, the contents of RAM are erased when the power to the
computer is turned off, but ROM retains its data indefinitely.
• In a PC, the ROM contains a specialized program called the BIOS that
orchestrates loading the computer's operating system from the hard
disk drive into RAM whenever the computer is turned on or reset.

5
3. I/O Unit

• Input/output (I/O), refers to the communication between an


information processing system (such as a computer), and the outside
world possibly a human, or another information processing system.
• Inputs are the signals or data received by the system, and outputs are
the signals or data sent from it
• Devices that provide input or output to the computer are called
peripherals
• On a typical personal computer, peripherals include input devices like
the keyboard and mouse, and output devices such as the display and
printer. Hard disk drives, floppy disk drives and optical disc drives serve
as both input and output devices. Computer networking is another
form of I/O.

6
Evolution of Microprocessor

7
DATA SIZE
Nibble 4 bit

Byte 8 bit

Word 16 bit

Long word 32 bit

8
Fetching & Execution Cycles

• Fetching Cycles
• The fetch cycle takes the instruction required from
memory, stores it in the instruction register, and
• moves the program counter on one so that it points to
the next instruction.
• Execute cycle
• The actual actions which occur during the execute cycle of
an instruction.
• depend on both the instruction itself and the addressing
mode specified to be used to access the data that may be
required.

9
Fetching an instruction

• Step 1
Instruction pointer (program counter) hold the address
of the next instruction to be fetch.

10
FETCHING AN INSTRUCTION (cont.)

• Step 2

11
FETCHING AN INSTRUCTION (cont.)

• Step 3

12
FETCHING AN INSTRUCTION (cont.)
• Step 4

13
FETCHING AN INSTRUCTION (cont.)

• Step 5

14
FETCHING AN INSTRUCTION (cont.)

• Step 6

15
Internal structure and basic
operation of microprocessor

Address bus
ALU Register
Section
Data bus

Control and timing


section Control bus

Block diagram of a microprocessor


16
Arithmetic and logic unit (ALU)
• The component that performs the arithmetic and logical
operations
• the most important components in a microprocessor, and is
typically the part of the processor that is designed first.
• able to perform the basic logical operations (AND, OR), including
the addition operation.
• The inclusion of inverters on the inputs enables the same ALU
hardware to perform the subtraction operation (adding an inverted
operand), and the operations NAND and NOR.

17
Internal structure of ALU

2 bits of ALU 4 bits of ALU

18
Control unit

• The circuitry that controls the flow of information through the


processor, and coordinates the activities of the other units within it.
• In a way, it is the "brain within the brain", as it controls what happens
inside the processor, which in turn controls the rest of the PC.
• On a regular processor, the control unit performs the tasks of
fetching, decoding, managing execution and then storing results.

19
Internal structure of control unit

20
Register sets
• The register section/array consists completely of circuitry used to
temporarily store data or program codes until they are sent to the
ALU or to the control section or to memory.

• The number of registers are different for any particular CPU and
the more register a CPU have will result in easier programming
tasks.

• Registers are normally measured by the number of bits they can


hold, for example, an "8-bit register" or a "32-bit register".

21
accumulator

• a register in which intermediate arithmetic and logic results are


stored.
• example for accumulator use is summing a list of numbers.
• The accumulator is initially set to zero, then each number in turn is added to
the value in the accumulator.
• Only when all numbers have been added is the result held in the
accumulator written to main memory or to another, non-accumulator, CPU
register.

22
Condition code register (CCR)

• an 8 bit register used to store the status of CPU, such as carry, zero,
overflow and half carry.

• The status register is a hardware register that contains information


about the state of the processor.

23
Program counter (PC)

• a 16 bit register, used to store the next address of


the operation code to be fetched by the CPU.
• Not much use in programming, but as an indicator
to user only.
• Purpose of PC in a Microprocessor
• to store address of tos (top of stack)
• to store address of next instruction to be
executed.
• count the number of instructions.
• to store base address of the stack.
24
Bus system connection

25
Data bus
• The data bus is 'bi-directional'
• data or instruction codes from memory or
input/output.are transferred into the microprocessor
• the result of an operation or computation is sent out
from the microprocessor to the memory or
input/output.
• Depending on the particular microprocessor, the
data bus can handle 8 bit or 16 bit data.

26
Address bus

• The address bus is 'unidirectional', over which the microprocessor


sends an address code to the memory or input/output.
• The size (width) of the address bus is specified by the number of bits
it can handle.
• The more bits there are in the address bus, the more memory
locations a microprocessor can access.
• A 16 bit address bus is capable of addressing 65,536 (64K) addresses.

27
Control bus

• The control bus is used by the microprocessor to send out or receive


timing and control signals in order to coordinate and regulate its
operation and to communicate with other devices, i.e. memory or
input/output.

28
Microprocessor clock

• Also called clock rate, the speed at which a microprocessor executes


instructions. Every computer contains an internal clock that regulates
the rate at which instructions are executed and synchronizes all the
various computer components.
• The CPU requires a fixed number of clock ticks (or clock cycles) to
execute each instruction. The faster the clock, the more instructions the
CPU can execute per second. Clock speeds are expressed in megahertz
(MHz) or gigahertz ((GHz).
• Some microprocessors are superscalar, which means that they can
execute more than one instruction per clock cycle.
• Like CPUs, expansion buses also have clock speeds. Ideally, the CPU clock
speed and the bus clock speed should be the same so that neither
component slows down the other. In practice, the bus clock speed is
often slower than the CPU clock speed, which creates a bottleneck. This
is why new local buses, such as AGP, have been developed.

29
Examples of micro processor

• Intel 8085
• Intel 8086
• Intel 8088

30
8085
• The Intel 8085 is an 8-bit microprocessor
introduced by Intel in 1977. An Intel 8085AH processor.

• It was binary-compatible with the more- Produced


From 1977 to
famous Intel 8080 but required less 1990s

supporting hardware, thus allowing


simpler and less expensive microcomputer •Intel and
Common
several
manufacturer(s)
systems to be built. others

3,5 and
Max. CPU clock rate
6 MHz

Instruction set pre x86

Package(s) •40 pin DIP

31
8086 & 8088
 The 8086 is a 16-bit microprocessor chip
designed by Intel, which gave rise to the
x86 architecture; development work on
the 8086 design started in the spring of
1976 and the chip was introduced to the
market in the summer of 1978.
 The Intel 8088, released in 1979, was a
slightly modified chip with an external 8-
bit data bus (allowing the use of cheaper
and fewer supporting logic chips and is
notable as the processor used in the
original IBM PC.

32

You might also like