Digital Safe System
Problem Definition:
We can design a simple digital safe using combinational circuits. Assume that the system has a four-bit predefined password. We will use four switches as the input to the system. If the input matches the predefined password, then the first output will have logic level 1. Otherwise, the second output will have logic level 1.
solution:
We can implement the corresponding combinational circuit using an XOR gate followed by a NOT gate for each bit to be tested. Therefore, if input bit matches the corresponding password bit, then the XOR gate followed by NOT will give logic level 1. If all input bits match corresponding predefined password bits this way, the first output will have logic level 1 and the second output will have logic level 0. The second output will simply be inverse of the first output.
To implement the combinational circuit for the design,
let’s assign binary variables s0, s1, s2, and s3 as input.
Predefined password can be represented as p[0] · · · p[3].
Let’s define the first and second outputs as binary variables l0 and l1, respectively.
The logic function between the inputs and first output variable will be
The second output will be l1 = ~ lo
================================================
Implementing the Digital Safe System on Basys3 board
👉LINK TO Digital Safe System( SEQUENTIAL)
No comments:
Post a Comment