Question: part A and C only 2.12 Digital combination lock A safe lock opens if the two pushbuttons A and B are pressed in the sequence
2.12 Digital combination lock A safe lock opens if the two pushbuttons A and B are pressed in the sequence AABABA (a real safe would have more pushbuttons and/or a longer code). Pressing B three times in a row resets the lock to its initial state. Pressing A when B should have been pressed sounds an alarm. Pressing any pushbutton after the lock has opened will reset the lock. a. Construct the state diagram of the digital combination lock as a Mealy machine. b. Implement the sequential machine defined in part a. c. Construct the state diagram of the digital combination lock as a Moore machine. d. Implement the sequential machine defined in part c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
