Section 7.8
Review Questions
Hardware DFAs
-
Referring to the following hardware DFA, write the next state number
in the blank provided
for each combination of current state and condition.
In state... on condition... go to state...
2 a _____________
2 c _____________
3 d _____________
0 a _____________
1 c _____________
1 b _____________
answer...
In state... on condition... go to state...
2 a _____0_______
2 c _____3_______
3 d _____3_______
0 a _____1_______
1 c _____3_______
1 b _____2_______
-
If there were 20 different states, how many flip-flops would you need
for the DFA state register?
answer...
5 because it would take a 5-bit number to represent 20
-
Show the AND gate that controls the S1 control wire. Which instructions
set the S1 wire? (S1 is one of the inputs to the shifter.)
answer...
-
Since the IR register is only changed at one point during the instruction
cycle, what STATE wire would control IR-LD?
(Refer to Fig. 7.7.2)
answer...
state 2
-
Which instructions cause the DFA to move directly from state 2 to
state 4, bypassing state 3 entirely?
(Refer to Fig. 7.7.2)
answer...
those that have no operand or jump address. These instructions are
A2S, S2A, HLT, STS, LDS, SHL, SHR, NOP and RET