VLSI Question:

Describe a finite state machine that will detect three consecutive coin tosses (of one coin) that results in heads?

VLSI Interview Question
VLSI Interview Question

Answer:

State machine to detect 3 consecutive heads appearing in
multiple tosses;

state 1 : initial state
As long as the toss results in TAIL , in this state
If the toss results in HEAD go to state 2
state 2 : HEAD1 resulted
in the next toss , If TAIL is resulted go to
the initial state1 . If HEAD is resulted go to
state3.
state3 : HEAD2 is resulted
in the next toss , If TAIL is resulted go to
the initial state1 . If HEAD is resulted go to
state4.
state4 : HEAD3 is resulted and this is the final state
As long as the HEAD results in each next toss
be in state 4. If any toss results in TAIL go to
initial state1


Previous QuestionNext Question
What is the term snooping?In what cases do you need to double clock a signal before presenting it to a synchronous state machine?