Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
EG 2: HARDWIRED APPROACH
Step 2
EEE/DSDCA/SV 2
Step 3 :algorithm
EEE/DSDCA/SV 3
STEP 5:H/W ELEMENTS OF PROCESSING
SECTION
EEE/DSDCA/SV 4
STEP 6. PROCESSING SECTION COMPLETE
DESIGN
EEE/DSDCA/SV 5
STEP 7: BLOCK DIAGRAM OF CONTROLLER
EEE/DSDCA/SV 6
STEP 8: STATE DIAGRAM
EEE/DSDCA/SV 7
STEP 9:
EEE/DSDCA/SV 8
SEQUENCE CONTROLLER TRUTH TABLE
EEE/DSDCA/SV 9
STEP 10:
EEE/DSDCA/SV 10
ADDITIONAL EXERCISES
Develop control signals, draw state diagram & design processing section of the
control unit.
Micro-programmed approach
All control functions that can be simultaneously activated are
grouped to form control words stored in control memory
EEE/DSDCA/SV 12
MICROPROGRAMMED CONTROL UNIT DESIGN
Processing section : same as hardwired
Control unit :
Control functions grouped to form control words
Control words stored in control memory(control ROM)
control words fetched from control memory
Advantage
Well structured control organization
Control functions are systematically transformed into programming discipline
Greater flexibility
Disadvantage
More expensive than hardwired
May reduce overall speed of the system
EEE/DSDCA/SV 13
MICROPROGRAMMING
Micro programmed control unit words are held in separate memory called as CM
(control memory )
Generally micro instruction have two component
1) Control field
2) Address field
GENERAL PURPOSE MICROPROGRAMMED
CONTROL ORGANIZATION
EEE/DSDCA/SV 15
1.EXTERNAL CONDITION SELECT MUX
Selects one of the external conditions acc. to contents of condition select field
EEE/DSDCA/SV 16
2.MICROPROGRAM COUNTER
Holds the address of the next microinstruction to be executed
Initially it is loaded from an external source to point to the starting address of the
micro-program
Then ,MPC is incremented after each micro-program fetch
When a branch instruction is encountered ,the MPC will be loaded with the contents
of the branch address field
EEE/DSDCA/SV 17
3.CONTROL MEMORY BUFFER REGISTER
Act as a buffer for the microinstructions retrieved from the control memory
If the select condition is false o/p of mux= 0 ie., = 0 , the MPC will
point to the next instruction to be executed
EEE/DSDCA/SV 18
EEE/DSDCA/SV 19
Eg:design of a typical microprogrammed system
Algorithm:
Start : A0 CO
Binbus C1
Loop : AA+B C2,C3
BB-1 C4
if B<>0 then go to loop
OutbusA; C5
Halt
EEE/DSDCA/SV 20
One to one correspondence b/n RT description & microprogram
Each line of the program is stored as a word in CM
Step 2: address is specified as integer number
Control algorithm Control
memory signals
address
0 Start : A0 CO
1 B00001010(Inbus) C1
2 AA+B C2,C3
3 BB-1 C4
4 if B<>0 then go to loop
5 OutbusA; C5
6 Halt
EEE/DSDCA/SV 21
step 3: checking condition applying
Step 6:
to condition select mux
Z=0
X1 X0 Operation
0 0 No branch
Size of branch address: 3
0 1 Branch if Z= 0
1 0 Unconditional branch Control functions : 6
4to 1 mux
EEE/DSDCA/SV 22
STEP 7: COMPLETE HARDWARE ORGANIZATION
OF THE CONTROL UNIT
0- gnd
1-vcc
EEE/DSDCA/SV 23
Step 8: Binary listing of the microprogram
EEE/DSDCA/SV 24