Lecture 11 Control Unit n Instruction Cycle
Lecture 11 Control Unit n Instruction Cycle
CSE 211
Basic Computer Organization and Design 2
CSE 211
Basic Computer Organization and Design 3
Basic Computer
Hex Code
Instructions
Symbol I=0 I=1 Description
AND 0xxx 8xxx AND memory word to AC
ADD 1xxx 9xxx Add memory word to AC
LDA 2xxx Axxx Load AC from memory
STA 3xxx Bxxx Store content of AC into memory
BUN 4xxx Cxxx Branch unconditionally
BSA 5xxx Dxxx Branch and save return address
ISZ 6xxx Exxx Increment and skip if zero
CSE 211
Basic Computer Organization and Design 6
Control Unit
3x8
decoder
7 6543 210
D0
I Combinational
D7 Control Control
signals
logic
T15
T0
15 14 . . . . 2 1 0
4 x 16
decoder
CSE 211
Basic Computer Orgsnization and Design 8
Timing Signals
- Generated by 4-bit sequence counter and 416 decoder
- The SC can be incremented or cleared.
D3T4: SC 0
T0 T1 T2 T3 T4 T0
Clock
T0
T1
T2
T3
T4
D3
CLR
SC
CSE 211
• Which of the following counters is used in the
design of Hardwired control unit?
a) 3-bit Sequence Counter
b) 4-bit Sequence Counter
c) 5-bit Sequence Counter
d) 6-bit Sequence Counter
Basic Computer Orgsnization and Design 10
Instruction Cycle
Note: Every different processor has its own (different) instruction cycle
CSE 211
Basic Computer Organization and Design 11
T0: AR PC
T1: IR M [AR], PC PC + 1
CSE 211
Basic Computer Organization and Design 12
T1 S2
T0 S1 Bus
S0
Memory
unit 7
Address
Read
AR 1
LD
PC 2
INR
IR 5
LD Clock
Common bus
CSE 211
Basic Computer Organization and Design 13
Figure shows how first two statements are implemented in bus system
At T0 :
1. Place the content of PC into bus by making S2S1S0=010
Transfer the content of bus to AR by enabling the LD input of
AR
At T1 :
1. Enable read input of memory
2. Place content of bus by making S2S1S0=111
3. Transfer content of bus to IR by enabling the LD input of IR
4. Increment PC by enabling the INR input of PC
CSE 211
Basic Computer Organization and Design 14
T0
AR <-- PC
T1
IR <-- M[AR], PC <-- PC + 1
T2
Decode Opcode in IR(12-14),
AR <-- IR(0-11), I <-- IR(15)
T3 T3 T3 T3
Execute Execute AR <-- M[AR] Nothing
input-output register-reference
instruction instruction
SC <-- 0 SC <-- 0 Execute T4
memory-reference
instruction
SC <-- 0