11 Stateful Lock

11 : Stateful Lock

Design renderSelect Project123456789ONSW2

How it works

A little two-bit state machine decides which code is required to enter the next state. The fourth state equals to the lock being open. A wrong code in any state resets to the first state.

How to test

To test the project, refer to its Wokwi, which is public.

IO

#InputOutputBidirectional
0
1
2
3
4
5
6
7