AAST-CC312-Fall 21-Lec 06
AAST-CC312-Fall 21-Lec 06
Fall 2021
Lecture 6
Basic Computer
Instruction Cycle
PROCESSOR REGISTERS
Registers in the Basic Computer
11 0
PC
Memory
11 0
4096 x 16
AR
15 0
IR CPU
15 0 15 0
TR DR
7 0 7 0 15 0
OUTR INPR AC
List of Registers
DR 16 Data Register Holds memory operand
AR 12 Address Register Holds address for memory
AC 16 Accumulator Processor register
IR 16 Instruction Register Holds instruction code
PC 12 Program Counter Holds address of instruction
TR 16 Temporary Register Holds temporary data
INPR 8 Input Register Holds input character
OUTR 8 Output Register Holds output character
Common Bus System
S2
S1 Bus
S0
Memory unit 7
4096 x 16
Address
Write Read
AR 1
• The connection between
LD INR CLR
PC 2
register is done through
LD INR CLR
LD INR CLR
INPR
IR 5
LD
TR 6
LD INR CLR
OUTR
Clock
LD
16-bit common bus
COMMON BUS SYSTEM
Read
INPR
Memory Write
4096 x 16
Address E ALU
AC
L I C
L I C L
L I C DR IR L I C
PC TR
AR OUTR LD
L I C
7 1 2 3 4 5 6
Either one of the registers will have its load signal activated, or the memory will have its
read signal activated
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.
Common Bus System
For your information, the content of any register can be applied onto the bus and
an operation can be done in the adder and logic unit during the same clock cycle
At the end of the cycle the content of the bus into is transferred to the destination
register, and the output of the adder and logic unit into the AC
Transfer the contents of the DR through the adder and logic unit into AC
The two transfers occur upon the arrival of the clock pulse transition at the end of
the clock cycle.
Basic Computer
Instruction
Instruction Cycle
Cycle
AC-based ISA
The simplest way to organize a computer
❑ One processor register : AC(Accumulator)
➢ The operation is performed with the memory operand and the content of AC
❑ Memory :4096 x 16
➢ Store each instruction code(program) and operand (data) in 16-bit memory word
Addressing
mode
Instruction Processing
Must fetch the instruction from memory and load the instruction register, IR.
Must decode the Operation Code to determine whether data must be fetched and
whether we fetch data directly, or indirectly
Memory
Memory unit
unit 7
Read
instruction to be executed.
AR 1
The PC is transferred to AR which is connected to the LD
Clock
Memory
Memory unit
unit 7
T1 =1 Address
Read
1) Enable the read input memory
2) Place the content of memory onto the bus by
AR 1
making S2S 1S 0= 111 LD
LD
Clock
Common bus
Instruction Decode
The operation code in IR is decoded to determine the type of instruction
NOTE:
All instructions share the steps T0, T1 and T2.
IT3: AR M[AR] However, depending on what each specific
instruction requires, the control logic for
higher time steps is more complicated,
I’T3: Nothing requiring more inputs.
Thank you