Question
A combination lock has a reset input RESET, two inputs b0 and b1, one for 0 and one for 1, respectively, and an unlock output
A combination lock has a reset input RESET, two inputs b0 and b1, one for 0 and one for 1, respectively, and an unlock output unlock. In reality, inputs are asynchronous signals, but assume that they are synchronous. (a) Draw the finite state machine for your design. Is this a Moore machine or a Mealy machine? (b) Write a Verilog module using a finite state machine (FSM) to simulate a combination lock that would unlock if the input sequence is 01001. (c) Write a testbench for your design. Present the output waveform of your design using the following input sequence 0001001011. Include the input/output signals along with the state variable in the output waveforms.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started