







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








-^ Binary information in a digital system such as^ microprocessor can be classified as either dataor control information. •^ Data is manipulated in a datapath by micro-operations. •^ These operations are implemented with adders/ subtractors, shifters, registers, multiplexers^ and buses.•^ Control Unit provides signals that activates
-^ Control Unit is a sequential circuit with statesth t di t t
Control Signals
Status Signals
ControlSignals
DataOutputs
ControlOutputs
DataInputs
-^ Controllers are of two types:^ ¾^ Hardwired Finite State Machine based Controllers ¾^ Hardwired
Finite State Machine based Controllers. ¾^ Micro-programmed Architecture based Controllers. • Hardwired FSM:
N
¾^ FSM is a sequential system with N Flip-flops and has 2
N
possible states, so the number od possible states is
finite_._
¾^ FSM can be described using Bubble Diagrams (StateDiagrams) or Algorithmic State Machine Charts (ASM)Diagrams) or Algorithmic State Machine Charts (ASM). • Micro-programmed Control Unit: ¾^ The control units binary control values are stored as
y words in a ROM. ¾ Each word in the control contains a micro-instruction. ¾ A sequence of micro-instructions constitutes a micro-q program. • We will be considering only State Machine based Controllersdescribed using State Diagrams.
g^
g
St t^ Di
b
d^
th^
ifi^ ti^
d
-^ Draw a State Diagram based on these specifications andperform necessary State Assignment.•^ Choose FF type to implement FSM state register•^ Choose FF type to implement FSM state register.•^ Implement the FSM.
-^ Main bodies^ ¾^ Ports and internal signals : input, output, clock, reset, curr_state,next_state.
NextState^
always @^ ( curr_state
or^ in1^ or^ in2 ) begin
always @ (posedge
clock ) begin
StateLogic
Statechange
begincase ( curr_state
St0:.. .St1:.. .St2:^ begin if (
in1 )
g curr_state = next_state; end l @ (^
t t^ i 1 OutputLogic
St2:^ begin if (
in1 )^ next_state=St0; else^ next_state=St1; end default:^ next state=St0;
always @ (
curr_state^ or
in or^ in2.. .)^ beginif ( curr_state=St
t1 1’b Logic
default:^ next
_state=St0; endcaseend
out1=1’b1;^ else^ out1=1’b1;^ end
Inputs^
Outputs Inputs
Nextstate Presentstate
Presentstate
Nextstate
state
O t^ t
state^
state
Outputs
l^ M^
hi
0/0 St0St0^ St St^
St St
St^
¾^ Moore Machine
(^00) St0/
1 St1/ St4/
St2/ St3/
JMP<i^ di
JMP
docsity.com