Question

Design the following finite state machine (FSM). It has two 1-bit inputs (in1 and in2) and...

Design the following finite state machine (FSM). It has two 1-bit inputs (in1 and in2) and two 1-bit outputs (out1 and out2). The first output (out1) bit should be equal to one if, on both of the last two cycles, in1 and in2 were EQUAL to each other; otherwise, out1 should equal zero. The second output (out2) should be equal to 1 if, on the last cycle, in1 and in2 were NOT EQUAL to each other; otherwise, out2 should equal zero.

Draw a state transition diagram where each state has a unique name that is a string of bits (eg, 00, 01, and 11). Write the associated output and label all the arcs between transitions with the inputs causing them. This must be a Moore machine.

Draw a truth table with both inputs, the current state bits, the outputs, and the next state bits.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

State Table

STATE

PRESENT STATE

INPUTs

NEXT STATE

OUTPUTs

Q1

Q0

In2

In1

Q1+

Q0+

Out2

Out1

S0

0

0

0

0

1

0

0

0

0

0

0

1

0

1

0

0

0

0

1

0

0

1

0

0

0

0

1

1

1

0

0

0

S1

0

1

0

0

1

0

1

0

0

1

0

1

0

1

1

0

0

1

1

0

0

1

1

0

0

1

1

1

1

0

1

0

S2

1

0

0

0

1

1

0

0

1

0

0

1

0

1

0

0

1

0

1

0

0

1

0

0

1

0

1

1

1

1

0

0

S3

1

1

0

0

1

1

0

1

1

1

0

1

0

1

0

1

1

1

1

0

0

1

0

1

1

1

1

1

1

1

0

1

NextState and Output expressions:

Add a comment
Know the answer?
Add Answer to:
Design the following finite state machine (FSM). It has two 1-bit inputs (in1 and in2) and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT