Memory Reference Instructions Execution
Memory Reference Instructions Execution
REFERENCE
INSTRUCTION
EXECUTION
by NIKITA SINGLA
SID- 18103066
Stored Program
Organisation
Organise a computer
One processor
An instruction code :
1. operation/ opcode
2. address
4 bits
(opcode)
16-bit
memory
12 bits
(address)
Computer Instructions
Each format has 16 bits
Total number of instructions
for basic computer=25
Memory reference instruction:
if I=0 -> direct address
if I=1 -> indirect address
Register reference instruction:
recognised by operation
code 0111
Input-output reference
instruction:
recognised by operation
code 1111
MEMORY
REFERENCE
REGISTER
REFERENCE
INPUT/OUTPUT
REFERENCE
Control unit and
time signals
Control unit consists :
2 decoders
A sequence counter
Control logic gates
Time Signals:
Outputs of SC ->16 time
signals
SC can be:
- incremented
- cleared
If SC is not cleared time
signals will continue….
.
Figure: Control circuit for instruction fetch. This is a part of the control
circuit and demonstrates the kind of wiring needed
INSTRUCTION CYCLE
(Fetch and
Decode)
Phases in instruction cycle:
1) Fetch an instruction
2) Decode it
3) Read effective address
4) Execute the instruction
T0: AR <- PC
ADD to AC:
- performs sum
D1T4 • DR <- M[AR]
- uses operation decoder D1
- two time signals needed D1T5 • AC <- AC+DR , E <- Cout , SC <- 0