Digital Design of A Digital Combination
Digital Design of A Digital Combination
ISSN : 2349-4522
Vol. 1, Issue 1, 2014
Digital Design of a Digital Combination Lock
Arnab Pramanik
Department of Electronics and Communication Engineering, Camellia School Of Engineering and Technology
Kolkata, West Bengal, India.
ABSTRACT: This paper investigates a finite state machine based combination (Digital) lock using several
modules, both combinational and sequential circuitry, using Verilog coding and simulated in Xilinx ISE 14.2.
1. INTRODUCTION
In this design, the main part is the FSM based controller. The function of that controller is to detect when a user
has entered the 4 digit secret code. Now a Finite State Machine is basically a sequential circuit which follow
pre-user-defined number states to control a number of inputs where each and every state is a stable entity that
the FSM can occupy. It consists of a next state decoder, memory flip-flops and output decoder. Two kinds of
finite state machine occur, viz. Moore machine and Melay machine. Now the Moore machine differs from the
Melay one in the sense that it does not have any feed-forward paths. The following figure shows the block
diagram of a Melay based FSM.
Now I’ll define all the input and output ports and interconnect them such a way in Verilog coding so that one
can utilise the combination lock.
Now to modify the above problem and to introduce better and secured functioning I introduced two edge-
detector circuits, a timer circuit and a seven-segment display. The following diagram shows the new proposed
digital combination lock system.
It has eight active-low push button switches where switches 0,3,2 and 6 are hardwired through a 4:1 multiplexer.
It is the secret code word. The 8 input AND gate provides Allsw that goes to 0 if any switch is pressed. The
mux output goes 0 logic if the switch being pressed corresponds to mux select address input as mux is able to
select each switch in the code in a correct sequence. Mux output will go low only when the correct switch has
been pressed.
Up to this point, the circuit operates asynchronously. But the controller is a fully synchronous environment. So
the mux output and Allsw output is totally unpredictable and creates erroneous output. This problem is
overcome by using edge detector circuit labelled edg1 and edg2. The edge detector produces a single clock
cycle length logic 1 pulses at the output. The codesw and anysw are feed directly into the controller. The edge
detectors and FSM are clocked by the same signal to ensure proper synchronisation.
3. EXPERIMENTAL RESULTS
In the Verilog coding, the test module generates a 10 Hz clock using an initial sequential block-coding.
Fig. 4 Combination lock simulation using Xilinx ISE for the application of the correct switching sequence.
4. CONCLUSION
REFERENCES
1. AN ELECTRONIC DIGITAL COMBINATION LOCK: A PRECISE AND RELIABLE SECURITY SYSTEM- Adamu Murtala
Zungeru--School of Electrical and Electronic Engineering, University of Nottingham, Jalan Broga, 43500 Semenyih, Selangor Darul Ehsan,
Malaysia
2. Voice recognition digital cipher lock for smart vehicles - Hassan, M.H. ; Beardslee, W.S. ; Arnold, T.K. Circuits and Systems,
1993.,Proceedings of the 36th Midwest Symposium on Digital Object Identifier: 10.1109/MWSCAS.1993.343037 IEEE Publication.
3. A novel flash fast-locking digital phase-locked loop: design and simulations - Wagdy, M.F. ;Cabrales, B.C. Circuits, Devices & Systems,
IET Volume: 3 , Issue: 5 Digital Object Identifier: 10.1049/iet-cds.2008.0342 IEEE Publication.