Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a digital combination lock as illustrated in Figure a display that shows the number of keys pressed since the last reset. The lock

 

Consider a digital combination lock as illustrated in Figure a display that shows the number of keys pressed since the last reset. The lock code below. On its keypad are five digital input buttons for numbers 1-5, a reset button R, and is a sequence of four digits. At the initial state, a 0 is displayed. When a number key is pressed, the display is incremented by 1, regardless of the input. Upon the fourth key press, if the input sequence is correct, the display will change to a 0, unlocking the system. If an incorrect sequence is entered, the display will change to an E upon the fourth key press, and the user must then press the R button to reset the lock to its initial state. The user can also press the R button anytime to reset the lock. Assume that the code is set to 5152. 2 5 3 R CO a) Draw the Moore state machine of the combination lock. b) Draw the Mealy state machine of the combination lock. Hint: consider the display as well as the lock status (locked, unlocked) as the output.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

a Moore State Machine of the Combination Lock States S0 Initial state display 0 S1 One key pressed d... blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

Find the inverse, if it exists, for the matrix. -1

Answered: 1 week ago