Home Alarm System
Problem definition:
Assume that the alarm system to be designed is to be applied on three windows and a door. Each window and the door has a sensor such that when it is opened, it will give logic level 1. There should be an on/off switch for the alarm. If we want to activate the alarm, the switch will give logic level 1. Otherwise, it will give logic level 0.
solution :
Implementing the combinational circuit for the design problem.
- Let’s assign binary variables s0, s1, s2, and s3 to each sensor output.
- Let the on/off switch be represented by the binary variable m.
- Let’s define the binary variable a as an output. This variable will have logic value 1 when an intruder triggers the alarm. Otherwise, the output of the system will be logic level 0.
Based on all these constraints, the logic function between the input and output will be
a = (s0 + s1 + s2 + s3) · m.
Verilog Description of the Home Alarm System:( code:1)
we provide the Verilog description in which LEDs and switches on the board are connected as the input and output in code 2. Here, we use the Verilog description of the system in code:1 as an IP block.
Home Alarm System Implemented on the Basys3 Board in Verilog code 2
Verilog Description of the Seven-Segment Display Decoder Module code 3
No comments:
Post a Comment