Question

In: Electrical Engineering

It is required to design a synchronous sequential circuit that receives two input bit streams X...

It is required to design a synchronous sequential circuit that receives two input bit streams X and Y, and detects identical 4-bit sequences in both X and Y that are non-overlapping. The output Z is also a bit stream that produces a 1 only after detecting two identical 4-bit input sequences. Use an asynchronous reset input to reset the sequential circuit to its initial state.
Example:
X: 001010 110010 0111 1010100 0111
Y: 011010 100010 0111 1000100 0010
Z: 000001 000001 0001 0000001 0000
a) (5 points) Draw a Mealy state diagram of the sequential circuit.
b) (10 points) Implement your design using a minimal number of D-type flip flops and combinational logic. Show the K-maps and write the minimal next state and output equations. Draw the circuit diagram.
c) (10 points) Write a structural Verilog model that models your implemented sequential circuit by modeling the D Flip-Flops and instantiating them and modeling the combinational part using either assign statement or gate primitives.
d) (10 points) Write a test bench that tests your structural Verilog model in (c) using the given input sequence. Start by resetting all flip-flops and then apply the input sequences of X and Y shown above. Verify that your circuit produces the correct output by including the generated waveform from simulation.
e) (10 points) Write a behavioral Verilog description that models your state diagram in part (a).
f) (5 points) Write a test bench that tests your behavioral Verilog model of part (e). Start by resetting all flip-flops and then apply the input sequences of X and Y shown above. Verify that your circuit produces the correct output by including the generated waveform from simulation.
g) Submit a report (Word or PDF document) that should contain:
i. The state diagram of your design (part a).
ii. The K-maps, equations, and circuit diagram of your sequential circuit (part b).
iii. A copy of the Verilog modules and test benches of parts (c) to (f)
iv. The timing diagrams (waveforms) taken directly as snapshots from the simulator for
parts (d) and (f).
Take All the time you need.

Solutions

Expert Solution

Melay FSM: the output of the Melay FSM depends on the present state and present input.


Related Solutions

Design a synchronous sequential logic circuit with input X (that has been synchronized to the clock)...
Design a synchronous sequential logic circuit with input X (that has been synchronized to the clock) and output Y. Every second high-to-low transition of X results in a one clock period long pulse on Y immediately after the transition. Otherwise, Y is 0. Draw a timing diagram (showing input, output and state variables) for an appropriate sequence on input X
Design a Moore sequential circuit that has an input X and an output Y. The circuit...
Design a Moore sequential circuit that has an input X and an output Y. The circuit detects the following sequence: 100 Your answer should include state diagram and state table. Hint. X= 0 1 0 1 0 0 0 1 1 1 0 0 1 0 1 Y= 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0
Consider a sequential circuit to control the washer: The circuit receives 3 input signals: Clock, DoorOpen,...
Consider a sequential circuit to control the washer: The circuit receives 3 input signals: Clock, DoorOpen, and Start. It also maintains a state bit Wash. If DoorOpen = 1, Wash should be set to 0. Otherwise, if Start = 1, Wash should be set to 1 and if Start = 0, Wash should retain its value from previous cycle. Make A truth table to compute the new value of Wash; Make A circuit Diagram. ------------------------------------ How would the truth table...
Design a logic circuit that takes 2-bit input A and 2-bit input B and subtracts the...
Design a logic circuit that takes 2-bit input A and 2-bit input B and subtracts the two numbers using full adders and inverters with full adders diagram, which input is subtracted dos not matter.
Use JK-Flip-Flop to design a sequential circuit as an input for the previous designed decoder to...
Use JK-Flip-Flop to design a sequential circuit as an input for the previous designed decoder to write UAE. In this design, the sequential circuit will be used instead of the two bits switches and the output will be shown in three 7-segment displays one for each letter. Letters must glow one by one in a correct sequence where the speed depends on the clock frequency. Use only one circuit as an input for the three 7-segment displays where one of...
Design a sequential digital circuit with one output that produces “…100110…” bit pattern continuously.( show state...
Design a sequential digital circuit with one output that produces “…100110…” bit pattern continuously.( show state table, state diagram, show circuit diagram and waveform of the circuit) [Digital Systems 2]
A clocked sequential circuit has three states, A, B, and C, and one input X. As...
A clocked sequential circuit has three states, A, B, and C, and one input X. As long as the input X is '1', the circuit alternates between the states A and C. If the input X becomes '0' (either in state A or C), the circuit goes to the state B and remain in state B as long as X continues to be '0'. The circuit returns to state A if the input becomes '0' once again and from then...
Design a mod 5 counter as a (a) synchronous circuit (b) asynchronous circuit
Design a mod 5 counter as a (a) synchronous circuit (b) asynchronous circuit
Design and implement a sequential circuit that counts from 0-3 in a repeating cycle with two...
Design and implement a sequential circuit that counts from 0-3 in a repeating cycle with two inputs: step and reset. If the step input is 1 the count progresses to the next value, if 0 you stay at the current value. If the reset input is 1 the count returns to 0, if 0 it has no effect. If both step and reset are 1, reset takes precedence. Use J-K flip flops in your design and follow the design process...
Problem Statement: Design a combinational logic circuit that meets the following specifications: • Input: 3-bit binary...
Problem Statement: Design a combinational logic circuit that meets the following specifications: • Input: 3-bit binary integer (A), 2-bit binary integer (B). • Output: 5-bit binary integer (X) = (AxB). For example, A=6, B=2, X=6x2=12. Notation: • A=(A2,A1,A0) • B=(B1,B0) • X=(X4,X3,X2,X1,X0) Required Output: Show the truth table and a minimal logic expression for each of the outputs. Also, draw a logic diagram using discrete gates. Extra Credit: Redesign by using multiplexers and minimal discrete logic as appropriate. 1 |...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT