CPU Organization
CPU Organization
CO - Dr S.Elango
Three types of CPU Organization
CO - Dr S.Elango
Single Accumulator
Organization
CO - Dr S.Elango
neral Registers Organization
CO - Dr S.Elango
The Polish mathematician Lukasiewicz showed that arithmetic
expressions can be represented in prefix notation, often referred to
as Polish notation, which places the operator before the operands.
The postfix notation, referred to as reverse Polish notation (RPN),
places the operator after the operands. The following examples
demonstrate the three representations:
CO - Dr S.Elango
Instruction Format
CO - Dr S.Elango
The number of address fields in the instruction format of a
computer depends on the internal organization of its registers
inside the CPU. Most computers fall into one of three types of
CPU organizations:
CO - Dr S.Elango
Addressing Mode
It specifies the way the operands are to be accessed. The
Addressing mode offers the following advantages
CO - Dr S.Elango
Implied Mode: In this mode the operands are specified implicitly
in the instruction. For example, the instruction "complement
accumulator“ is an implied-mode instruction because the
operand in the accumulator register is implied in the definition of
the instruction.
CO - Dr S.Elango
Register Direct Mode: In this mode the operands are in
registers that reside within the CPU.
CO - Dr S.Elango
A few addressing modes require that the address field of the
instruction be added to the content of a specific register in
the CPU. The CPU register used in the computation may be
the program counter, an index register, or a base register.
The effective address in these modes is obtained from the
following computation:
Effective address = Address part of instruction + Content of
CPU register
CO - Dr S.Elango
Base Addressing Mode: In this mode the content of a base
Mem -Addr Effective Acc Reg
Mode Address content
Direct 500 800
Immediate ___ 500
800 300
Indexed 600 900
Relative 701 325
Register ___ 400
Reg-Indirect 400 700
Auto Inc 401 750
Auto Dec 399 450
CO - Dr S.Elango
PROGRAM CONTROL
Program control instruction, when executed, may
change the address value in the program counter and
cause the flow of execution control to be altered.
CO - Dr S.Elango
PROGRAM CONTROL - PSW (Program
Status Word)
ALU circuit in the CPU is supplemented with a status
register where status bits can be stored for further
analysis. Status bits are also called condition-code bits
or flag bits.
SP <- SP - 1
M [SP] <-PC
PC <- Interrupt vector address
6. Microprogrammed control
CO - Dr S.Elango
RISC Characteristics
7. Hardwired control
CO - Dr S.Elango