Professional Documents
Culture Documents
CAO Unit 1 Part 3-1
CAO Unit 1 Part 3-1
CAO Unit 1 Part 3-1
Machine instruction
Micro-program
Micro-instruction
Micro-operation
• Clock
— One micro-instruction (or set of parallel micro-
instructions) per clock cycle
• Instruction register
— Op-code for current instruction
— Determines which micro-instructions are performed
• Flags
— State of CPU
— Results of previous operations
Fetch Cycle:
t1: MAR (PC)
t2: MBR (memory)
PC (PC) +4
t3: IR (MBR)
Step Action
• Enable R1out, R1
contents of R1 will be R1in
on internal bus
• Enable R2in, the data
R2out
loaded in R2 R2in
• It can be done in
same time unit as,
t1: R1out, R2in
Dr. Geeta Tripathi
• Fetching of the instruction will be same
Step Action
Execute Cycle:
• Different for each instruction
•Note no overlap of micro-operations
Step Action
Indirect Cycle:
t1: MAR (IRaddress)
t2: MBR (memory)
t3: IRaddress (MBRaddress)
Step Action
Step Action
State Machine
Storage
Clock Elements
Inputs
Outputs
Next States
Master-slave
flipflops
Microinstructions:
• Generate Control Signals
• Provide Branching
• Do both
Horizontal Microprogrammed
— Unpacked
— Hard
— Direct
Vertical Microprogrammed
— Packed
— Soft
— Indirect
• Fast
• Slower
Dr. Geeta Tripathi
Typical Microinstruction Formats
Advantage:
• Simplifies design of control unit
— Cheaper
— Less error-prone
— Easier to modify
Disadvantage:
• Slower
• Necessity of speed
• Size of microinstructions
• Address generation
—Branches
– Both conditional and unconditional