Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

How do I solve this on paper? For logisim assignment? I ' m getting it wrong each time. For our first lab assignment, you will

How do I solve this on paper? For logisim assignment? I'm getting it wrong each time.
For our first lab assignment, you will apply what we have learned so far about finite state machines and sequential logic design using state diagrams and state tables. In this assignment, you will derive the next-state and output logic of a pattern detector which can detect the pattern 101 in an input bit stream. (This input stream is similar to the serial input stream depicted on Page 6 of the "Finite State Machines, Part One" lecture notes; as shown there, the input arrives one bit at a time serially, as opposed to multiple bits in parallel.) The input value X represents the most recent bit from the input stream; the resulting output Z should be a 1 if the last digit of a new occurrence of the pattern was found in the stream, and a 0 otherwise. Your design should allow for bit overlaps.
For example, if the input stream is ...
0010101011101
... then the corresponding output stream should be ...
0000101010001
(Hint: For convenience, use the same Q1Q0 state coding values seen in previous assignments and in the lecture notes: Q1Q0=00 means S0; Q1Q0=01 means S1; Q1Q0=10 means S2; and Q1Q0=11 means S3. Note that four states are needed to respectively represent zero, one, two, or three matching digits of the pattern. Arrival in state S3, then, indicates that a complete occurrence of the pattern was found.)
Completing This Assignment
Begin by deriving a state diagram for this pattern detector logic; next, from this diagram, derive a state table. Your table should include the Q1Q0 values for the present state, the input value X, the new Q1Q0 values for the next statehere, called Q1+ and Q0+and the output value Z.
Once you have a complete state table, the next step is to design logic circuits for the next-state values Q1+ and Q0+ as well as the output Z. Implement this logic within the corresponding subcircuits in the attached Logisim circuit file.
Finally, complete the "test harness" shown in the main circuit by adding your Q1+, Q0+, and Z subcircuits. Note that several components are already provided for you, including a ROM containing example input stream data, a counter (in the upper-left) to generate the ROM addresses which will produce the input stream data, and a register (in the center-left) to hold the current state of the machine. You will also find a stack of output terminals on the right side of the circuit, as well as two splitters, one from the register to provide the current-state inputs, and another to connect the next-state values to the output terminals. (Note that the next-state outputs are also connected to the register input so that the new state is saved to the register.) Remember that bit 0 of the splitters correspond to the Q0 and Q0+ signals, and that bit 1 of the splitters correspond to the Q1 and Q1+ signals. Add your subcircuits into the empty area near the center of the main circuit, and provide the necessary interconnections by adding wires.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Disordered eating in dance professionals

Answered: 1 week ago