Unit 2
Unit 2
Architecture
UNIT - II
List of Topics :
• Instruction Codes
• Computer Registers
• Computer Instructions
• Timing and Control
• Instruction Cycle
• Memory Reference Instructions
• Input-Output and Interrupt
• Complete Computer Description
• Design of Basic Computer
• Design of Accumulator Logic G.Swarnalatha, Asst.Professor, GNITC
II INTRODUCTION
• Every different processor type has its own design (different registers, buses,
microoperations, machine instructions, etc)
• Modern processor is a very complex device
• It contains
• Many registers
• Multiple arithmetic units, for both integer and floating point calculations
• The ability to pipeline several consecutive instructions to speed execution Etc.
• However, to understand how processors work, we will start with a simplified processor
model
• This is similar to what real processors were like ~25 years ago
• M. Morris Mano introduces a simple processor model he calls the Basic Computer
• We will use this to introduce processor organization and the relationship of the RTL model
to the higher level computer processor
• Program
• A sequence of (machine) instructions
• (Machine) Instruction
• A group of bits that tell the computer to perform a specific operation (a sequence of micro-
operation)
• The instructions of a program, along with any needed data are stored in
memory
• The CPU reads the next instruction from memory
• It is placed in an Instruction Register (IR)
• Control circuitry in control unit then translates the instruction into the
sequence of microoperations necessary to implement it
G.Swarnalatha, Asst.Professor, GNITC
II INSTRUCTION FORMAT
• In a direct or indirect addressing, the processor needs to keep track of what locations in
memory it is addressing: The Address Register (AR) is used for this
• The AR is a 12 bit register in the Basic Computer
• When an operand is found, using either direct or indirect addressing, it is placed in the
Data Register (DR). The processor then uses this value as data for its operation
• The Basic Computer has a single general purpose register – the Accumulator (AC)
Rea INPR
Memory d
Write
4096 x E ALU
16 Address
AC
L I C
L I C L
DR IR
L I C L I C
PC TR
AR OUTR LD
L I C
7 1 2 3 4 5 6
16-bit Common Bus
• Three control lines, S2, S1, and S0 control which register the bus selects as its input
• Either one of the registers will have its load signal activated, or the memory will have its read signal
activated
• Will determine where the data from the bus gets loaded
• The 12-bit registers, AR and PC, have 0’s loaded onto the bus in the high order 4 bit positions
• When the 8-bit register OUTR is loaded from the bus, the data comes from the low order 8 bits on the
bus
• After an instruction is executed, the cycle starts again at step 1, for the
next instruction
• Note: Every different processor has its own (different) instruction cycle
BSA:
D5T4: M[AR] PC, AR AR + 1
D5T5: PC AR, SC 0