Controlling Moon-2 - State-Based Controllers Notes | EduRev

: Controlling Moon-2 - State-Based Controllers Notes | EduRev

 Page 1


CS031 
CS31 
 Pascal Van Hentenryck 
Lecture 12 1 
Moon-2 
(II) 
Page 2


CS031 
CS31 
 Pascal Van Hentenryck 
Lecture 12 1 
Moon-2 
(II) 
CS031 
Lecture 12 2 
Overview 
Moon-2 (II) 
•! Control 
•! State-Based Controllers 
Page 3


CS031 
CS31 
 Pascal Van Hentenryck 
Lecture 12 1 
Moon-2 
(II) 
CS031 
Lecture 12 2 
Overview 
Moon-2 (II) 
•! Control 
•! State-Based Controllers 
CS031 
Lecture 12 3 
Controlling Moon-2 
What needs to be controlled? 
•! PcWrite 
•! MuxPc 
•! IrWrite 
•! RamWrite 
•! MuxIm 
•! MuxMem 
•! AccWrite 
•! ArWrite 
•! OutWrite 
Page 4


CS031 
CS31 
 Pascal Van Hentenryck 
Lecture 12 1 
Moon-2 
(II) 
CS031 
Lecture 12 2 
Overview 
Moon-2 (II) 
•! Control 
•! State-Based Controllers 
CS031 
Lecture 12 3 
Controlling Moon-2 
What needs to be controlled? 
•! PcWrite 
•! MuxPc 
•! IrWrite 
•! RamWrite 
•! MuxIm 
•! MuxMem 
•! AccWrite 
•! ArWrite 
•! OutWrite 
CS031 
Lecture 12 4 
Controlling Moon-2 
How to control it? 
•! opcodes 
•! cycle of the instruction 
State based controller 
Control 
ROM 
State 
Control 
Signals 
opcode 
Page 5


CS031 
CS31 
 Pascal Van Hentenryck 
Lecture 12 1 
Moon-2 
(II) 
CS031 
Lecture 12 2 
Overview 
Moon-2 (II) 
•! Control 
•! State-Based Controllers 
CS031 
Lecture 12 3 
Controlling Moon-2 
What needs to be controlled? 
•! PcWrite 
•! MuxPc 
•! IrWrite 
•! RamWrite 
•! MuxIm 
•! MuxMem 
•! AccWrite 
•! ArWrite 
•! OutWrite 
CS031 
Lecture 12 4 
Controlling Moon-2 
How to control it? 
•! opcodes 
•! cycle of the instruction 
State based controller 
Control 
ROM 
State 
Control 
Signals 
opcode 
CS031 
Lecture 12 5 
Controlling Moon-2 
How many bits to represent the state? 
•! 2 since an instruction takes at most 3 
cycles 
What size is needed for the ROM? 
•! Inputs:  5 bits (3 for opcode and 2 for 
state 
•! Outputs:  11 bits (9 control signals) 
Read More
Offer running on EduRev: Apply code STAYHOME200 to get INR 200 off on our premium plan EduRev Infinity!