Professional Documents
Culture Documents
T1
Ep Lm Ep Lm Ep Lm
T2
Cp Cp Cp
T3
Ce Li Ce Li Ce Li
T4
Ei Lm Ei Lm Ei Lm
T5
Ce La Ce Lb Ce Lb
T6
X Eu La Su La
LDA
ADD
SUB
OUT
HLT
Ep Lm
Ep Lm
Cp
Cp
Ce Li
Ce Li
Ea Lo
X
X
X
X
X
State Equations
Ep= T1 Cp= T2 Lm= T1+ T4.LDA+T4.ADD+T4.SUB Ce= T3+ T5.LDA+T5.ADD+T5.SUB Li= T3 Ei= T4.LDA+T4.ADD+T4.SUB La= T5.LDA+T6.ADD+T6.SUB Ea= T4.OUT Su= T6.SUB Eu= T6.ADD Lb= T5.ADD+T5.SUB Lo= T4.OUT
Implementation of HLT
LDA I7 I6 I5 i4 ADD Instruction Decoder 4-16 SUB OUT HLT CLK Oscillator/ Clock Generator
Microprogramming
Reduces the complexity of control circuit. In Microprogramming, microinstructions are stored in a ROM instead of producing them with hardwired control matrix.
Contents
600H 200H 180H 240H 120H 000H 240H 102H 024H 240H 102H 028H 011H 000H 000H x
Routine
Fetch
Active
EP Lm Cp Ce Li Ei Lm Ce La None Ei Lm Ce Lb Eu La Ei Lm Ce Lb Su La Ea Lo
LDA
ADD
SUB
OUT
T1
CLR
Control ROM
12 bit
SAP-2
8 bit microprocessor 16 bit address bus Includes jump instructions.
In Port 2
PC
Mar
MDR
IR
Controller
16
8
8 ALU 2 FLAGS 8 8 TMP 16 8 B 8 C
16
8
OUTPUT PORT
SAP-2 Instructions
43 INSTRUCTIONS Conditional and Unconditional brunches Call and Ret instructions.