Question

In: Electrical Engineering

We want to make a machine that detects an alternating pattern. It should indicate whether three...

We want to make a machine that detects an alternating pattern. It should indicate whether

three or more alternating bits have been observed on our serial input X. So, if X has 010 or

101, the output Z will be high, otherwise the output will be low. Assume that when the

machine starts up or is reset, is has not seen any bits of data to work with and the output

cannot go high until it sees the third bit of data.

Your task is to design two CONCEPTUALLY different synchronous state machines (Mealy

and Moore) in Logisim. You can use either J-K or D flip-flops.

Your Task:

Make the State Diagram

Make the State Assignments

Make the State Transition Table

Make the K-Maps

Derive the Equations

Implement in Logisim

Solutions

Expert Solution

Mealy FSM

There are 5 different states as shown in Mealy State diagram. We use binary state encoding.

S0 = 000,             S1 = 001,             S2 = 010,             S3 = 011,             S4 = 100

STATE

PRESENT STATE

INPUT

NEXT STATE

OUTPUT

Q2

Q1

Q0

X

Q2+

Q1+

Q0+

Z

S0

0

0

0

0

0

0

1

0

0

0

0

1

0

1

1

0

S1

0

0

1

0

0

0

1

0

0

0

1

1

0

1

0

0

S2

0

1

0

0

0

0

1

1

0

1

0

1

0

1

1

0

S3

0

1

1

0

1

0

0

0

0

1

1

1

0

1

1

0

S4

1

0

0

0

0

0

1

0

1

0

0

1

0

1

1

1

S5

1

0

1

0

X

X

X

X

1

0

1

1

X

X

X

X

S6

1

1

0

0

X

X

X

X

1

1

0

1

X

X

X

X

S7

1

1

1

0

X

X

X

X

1

1

1

1

X

X

X

X

Moore FSM

There are 7 different states shown in Moore State diagram. We use binary state encoding.

S0 = 000,             S1 = 001,             S2 = 010,             S3 = 011,             S4 = 100,             S5 = 101,           S6 = 110

STATE

PRESENT STATE

INPUT

NEXT STATE

OUTPUT

Q2

Q1

Q0

X

Q2+

Q1+

Q0+

Z

S0

0

0

0

0

0

0

1

0

0

0

0

1

1

0

0

0

S1

0

0

1

0

0

0

1

0

0

0

1

1

0

1

0

0

S2

0

1

0

0

0

1

1

0

0

1

0

1

1

0

0

0

S3

0

1

1

0

0

0

1

1

0

1

1

1

0

1

0

1

S4

1

0

0

0

1

0

1

0

1

0

0

1

1

0

0

0

S5

1

0

1

0

0

0

1

0

1

0

1

1

1

1

0

0

S6

1

1

0

0

1

0

1

1

1

1

0

1

1

0

0

1

S7

1

1

1

0

X

X

X

X

1

1

1

1

X

X

X

X


Moore Machine Circuit


Related Solutions

Write a VHDL mealy state machine that detects the pattern 01110 in a stream of bits....
Write a VHDL mealy state machine that detects the pattern 01110 in a stream of bits. The machine should have three inputs; in, clk, reset. The output of the machine goes high whenever the pattern is detected.
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 10% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 10% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 7% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 7% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Should individual states be allowed to make the decision as to whether they want to participate...
Should individual states be allowed to make the decision as to whether they want to participate in the Medicaid Expansion initiative outlined in the ACA? WHY? If you were the governor of a state what would be the specific reasons why you WOULD or WOULD NOT participate?
We want to investigate now whether the average occupancy rate in May differs across the three...
We want to investigate now whether the average occupancy rate in May differs across the three regions.2.1 State the null and alternative hypotheses for the above research question.2.2 Conduct a Levene test for the homogeneity of the variances at the 10% level using the absolute deviations from the median. Make sure you state both the null and alternative hypotheses and the conclusions of your test.2.3 Test the null hypothesis in 1.1 at the 10% significance level.2.4 What can you conclude...
We want to investigate now whether the average occupancy rate in May differs across the three...
We want to investigate now whether the average occupancy rate in May differs across the three regions.2.1 State the null and alternative hypotheses for the above research question.2.2 Conduct a Levene test for the homogeneity of the variances at the 10% level using the absolute deviations from the median. Make sure you state both the null and alternative hypotheses and the conclusions of your test.2.3 Test the null hypothesis in 2.1 at the 10% significance level.2.4 What can you conclude...
We want to investigate now whether the average occupancy rate in May differs across the three...
We want to investigate now whether the average occupancy rate in May differs across the three regions.2.1 State the null and alternative hypotheses for the above research question.2.2 Conduct a Levene test for the homogeneity of the variances at the 10% level using the absolute deviations from the median. Make sure you state both the null and alternative hypotheses and the conclusions of your test.2.3 Test the null hypothesis in 1.1 at the 10% significance level.2.4 What can you conclude...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT