SlideShare a Scribd company logo
1 of 11
Download to read offline
Katrina Little
Experiment #2:
Simple Combinational Logic
Katrina Little
Experiment #2
Page number 2
OBJECTIVES:
 Execution of a simple combinational logic circuit to further get
acquainted with Xilinx’s ISE procedures.
 Learn how to implement a design from nothing but a simple idea for a burglar
system alarm.
EQUIPMENT LIST:
 FPGA BASYS1 board
 Xilinx ISE program
 Flash Drive
 BIT file
BLOCK DIAGRAM:
DESIGN SPECIFICATION PLAN:
The idea is to design a burglar alarm system. The alarm will need to sound if and only if
the power of the alarm system is turned ON, and either a window or door has been
opened. Also, the alarm should sound if a door and window are both open. To easily
recognize the possible combinations required for the alarm to sound, please refer to
Figure (2).
Burglar Alarm
Controller
Power(P)
Window (W)
Door (D)
Alarm
(A)
FIGURE (1)
Katrina Little
Experiment #2
Page number 3
Figure (2)
DESIGN METHODOLOGY:
From the design specification plan, techniques
to create the system can be drawn by careful
reasoning.
Since the design specification says the power
has to be on and either a window or door is open,
appropriate gates can easily be established from
the context of the plan. The truth table in FIG(3)
gives a visual representation of what makes
these conditions true.
POWER WINDOW DOOR
ON CLOSED OPEN
ON OPEN CLOSED
ON OPEN OPEN
P W D A
1 0 1 1
1 1 0 1
1 1 1 1
INV ‘
AND +
OR *
Figure(3)
Truth table that states the conditions to
be met for the burglar alarm to sound. P,
W, D, & A stand for power, window,
door, and Alarm respectively. 1 signifies
true. Which means open for W or D, on
for P , and alarm triggered for A. 0
means closed for W or D. Note: this truth
table is incomplete. Since there are 3 bits
eight total combinations will need to be
tested.
Since the windows and doors can be one or zero we will need to use
inverter gates for those two aspects only. To get every status
combination of power, windows, and doors we will need three (3 bit) and
gates (two of which the inverters will feed into). We will need one and
gate with a window open and power on, one with a door open and power
on, and lastly, one with the window/door open and power on. Finally, to
get the final output (the alarm) to trigger, we will need one or gate that
the three and gates will feed into. See Figure (5a)
Figure (4):
Operations of each gate
Katrina Little
Experiment #2
Page number 4
Interpreting the one’s from the truth table in Figure 3 you can write the alarm as a
function of P, D, and W using “Sum of Products,” (SOP) as shown.
A(PDW) = PW’D + PWD’ + PDW
DETAILED SCHEMATIC DIAGRAM:
INPUT/OUTPUT SWITCH PIN # LED #
P SW0 36
D SW1 38
W SW2 29
A 15 0
P
P
P
D
D
W
W
W
A
D
Figure (5a)
Figure (5a):
(left) displays
the design
schematic for
the alarm
system. Figure
5b: (bottom left)
is the Verilog
language
interpretation.
Figure 6 (below)
is the legend for
the switch, pin,
and led
configuration
for the input s
and output of
the function on
the BASYS(1)
board.
Figure (6)
● ● ●
module veriloglittlelab2(A, P, D, W);
output A;
input P;
input D;
input W;
assign A =
((P&D&(~W))|(P&(~D)&W)|(P&D&W));
endmodule
● ● ●
Figure(5b)
Katrina Little
Experiment #2
Page number 5
TEST PLAN (PROCEDURE):
The test plan was broken into three parts essentially:
I. Test the plan using the schematic capture tool.
a. Generate a timing diagram (test bench) to represent all possible bit
combinations.
b. Set both the test bench and the simulation time to 2000 nanoseconds to
allow enough time to cycle through all possible inputs.
c. Simulate behavior model
d. Generate a bit file and download to the BASYS board using the Diligent
Export program.
II. Test the plan using the Verilog language (Repeat steps a-d from part I.)
III. Verify that the circuit design from parts I & II behave appropriately by checking
when the LED was triggered on the BASYS board. (Which would be the output
A). Refer to “Results Section.”
I:
Katrina Little
Experiment #2
Page number 6
I.a:
I.c:
Katrina Little
Experiment #2
Page number 7
II: (see Fig 5b above)
II.a:
II.c:
Katrina Little
Experiment #2
Page number 8
RESULTS:
CONCLUSIONS (QUESTIONS):
1) Can the logic be simplified in any way?
A: Yes, refer to figure (8) for proof.
PDW’ +PD’W +PDW
 factor out P: P(DW’ +D’W +WD)
 by using simplification theorem #9 XY +XY’ = X on the last two terms
leaves:
 P(DW’ +W)
 by simplification theorem #11D XY’ + Y =X +Y leaves:
 P(D + W) = PD +PW
 therefore, A = PD +PW
PDW D’ W’ PDW’ PD’W PDW A = PDW’ + PD’W
+ PDW
000 1 1 0 0 0 0
001 1 0 0 0 0 0
010 0 1 0 0 0 0
011 0 0 0 0 0 0
100 1 1 0 0 0 0
101 1 0 0 1 0 1
110 0 1 1 0 0 1
111 0 0 0 0 1 1
Figure (7)
Figure 8
D
P
W
A
Figure 9
Figure (8)
Katrina Little
Experiment #2
Page number 9
2) How would the controller logic be simplified if the power is always on?
A: If you refer to figure 7, the power is always on ONLY in the last four columns
(for this design plan). Since there are four rows, included in the results with the
power on (three of which have 1’s and one of which has a zero), it would be
easier to write the function for the alarm using the one 0 using SOP.
A(PDW) = (P’ + D +W)
Therefore, the logic would be simplified to one (3bit) OR gate and an inverter for
the power. Refer to figure 9.
3) Have you met all requirements of this lab (Design Specification plan)?
A: Yes.
4) How should your design be tested?
A: The design was tested on the BASYS(1) board after it was programmed
successfully with the generated BIT file for both parts I & II of the test plan. The
results of the designs were found by moving the switches on the BASYS(1)
board to every different combinational bit of P, D, and W as seen in figure 7
above. The results for BOTH parts agreed with the design specification plan. The
alarm sounds ONLY when the power is set to on AND, either a window or door is
open, or both the window and door are open. These three representations are
shown at PDW = 101, 110, and 111 on the truth table. You can easily see that
the alarm is set to 1 (triggered) at these three points on the truth table.
5) The function is represented by the ORing in terms associated with the 1’s in the
truth table. Can an expression for A be found which is derived by the ANDing of
terms associated with the 0’s in the truth table?
A:
Yes it can. To write an expression using the zeroes would mean using “product
of sums” (POS) instead of “sum of products.” Using this method would be more
complicated because there are more zeroes than ones on the truth table.
Katrina Little
Experiment #2
Page number 10
Typically, the general consensus is to use whichever method has the least
numbers. (I.e. use POS if there are less zeroes or SOP if there are less ones.)
Therefore, using POS, the expression for the alarm becomes: NOTE: when using
POS opposed to SOP you want your equation to equal zero.
A(PWS) = (P+D+W)(P+D+W’)(P+D’+W)(P+D’+W’)(P’+D+W)
It can easily be seen that this expression is much more complicated than the one
that was used by “ORing” the terms together.
6) Write the Boolean expression describing a burglar alarm, which also sounds
when a sensor has been crossed.
A: The same will be true for the power here. The power will have to be ON in
ALL cases.
Therefore, adding a sensor component, the possible situations that will trigger
the alarm are as follows:
Power Door Window Sensor Alarm
ON CLOSED CLOSED OPEN ON
ON CLOSED OPEN CLOSED ON
ON CLOSED OPEN OPEN ON
ON OPEN CLOSED CLOSED ON
ON OPEN CLOSED OPEN ON
ON OPEN OPEN CLOSED ON
PLEASE NOTE: NOW THAT THERE ARE NOW 4 COMPONENTS ( BITS).
THEREFORE, TO TEST THIS CONFIGURATION OF THE ALARM SYSTEM,
THE TRUTH TABLE WILL NEED TO HAVE FOUR BITS.
Figure 10: Modified logical thinking of burglar alarm system with added sensor
Katrina Little
Experiment #2
Page number 11
P D W S A
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
Writing the Boolean Expression using the ones from the table gives:
A(P,D,W,S) = PD’W’S +PD’WS’ + PD’WS + PDW’S’ +PDW’S +PDWS’ +PDWS
 Factoring out P gives:
 P(D’W’S + D’WS’ + D’WS + DW’S’ + DW’S + DWS’ + DWS)
 Term 1 and term 7 will cancel out.
 Term 2 and term 5 will cancel out.
 Term 3 and term 4 will cancel out.
 Which simply leaves : DWS
Therefore, the Boolean expression for the burglar alarm WITH the added sensor
is:
A(P,D,W,S) = PDWS.
Adding the extra component (sensor) actually simplifies the logic of the system.
Figure 11: the corresponding partial
truth table (showing only possible
ways to make alarm sound)

More Related Content

What's hot

boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplificationUnsa Shakir
 
Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter Katrina Little
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
VLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALUVLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALUSachin Kumar Asokan
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logicDeepak John
 
Instrumentation Lab. Experiment #3 Report: Operational Amplifiers
Instrumentation Lab. Experiment #3 Report: Operational AmplifiersInstrumentation Lab. Experiment #3 Report: Operational Amplifiers
Instrumentation Lab. Experiment #3 Report: Operational Amplifiersmohammad zeyad
 
Gate ee 2007 with solutions
Gate ee 2007 with solutionsGate ee 2007 with solutions
Gate ee 2007 with solutionskhemraj298
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoderUnsa Shakir
 
Explain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth TableExplain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth Tableelprocus
 
Gate ee 2005 with solutions
Gate ee 2005 with solutionsGate ee 2005 with solutions
Gate ee 2005 with solutionskhemraj298
 
Lag lead compensator design in frequency domain 7th lecture
Lag lead compensator design in frequency domain  7th lectureLag lead compensator design in frequency domain  7th lecture
Lag lead compensator design in frequency domain 7th lectureKhalaf Gaeid Alshammery
 
Two port networks (y parameters)
Two port networks (y parameters)Two port networks (y parameters)
Two port networks (y parameters)bhupendra kumar
 
Gate ee 2003 with solutions
Gate ee 2003 with solutionsGate ee 2003 with solutions
Gate ee 2003 with solutionskhemraj298
 

What's hot (20)

boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter Experiment 3 Low Pass Filter
Experiment 3 Low Pass Filter
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Two port network
Two port networkTwo port network
Two port network
 
VLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALUVLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALU
 
Adder Presentation
Adder PresentationAdder Presentation
Adder Presentation
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
Instrumentation Lab. Experiment #3 Report: Operational Amplifiers
Instrumentation Lab. Experiment #3 Report: Operational AmplifiersInstrumentation Lab. Experiment #3 Report: Operational Amplifiers
Instrumentation Lab. Experiment #3 Report: Operational Amplifiers
 
Gate ee 2007 with solutions
Gate ee 2007 with solutionsGate ee 2007 with solutions
Gate ee 2007 with solutions
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Explain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth TableExplain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth Table
 
decade counter
decade counterdecade counter
decade counter
 
Gate ee 2005 with solutions
Gate ee 2005 with solutionsGate ee 2005 with solutions
Gate ee 2005 with solutions
 
Lag lead compensator design in frequency domain 7th lecture
Lag lead compensator design in frequency domain  7th lectureLag lead compensator design in frequency domain  7th lecture
Lag lead compensator design in frequency domain 7th lecture
 
Home security alarm system
 Home security alarm  system  Home security alarm  system
Home security alarm system
 
Adder ppt
Adder pptAdder ppt
Adder ppt
 
Two port networks (y parameters)
Two port networks (y parameters)Two port networks (y parameters)
Two port networks (y parameters)
 
Gate ee 2003 with solutions
Gate ee 2003 with solutionsGate ee 2003 with solutions
Gate ee 2003 with solutions
 
4 bit add sub
4 bit add sub4 bit add sub
4 bit add sub
 

Similar to Lab 2-Simple Combinational Logic

Electronz_Chapter_12.pptx
Electronz_Chapter_12.pptxElectronz_Chapter_12.pptx
Electronz_Chapter_12.pptxMokete5
 
Matlab 3
Matlab 3Matlab 3
Matlab 3asguna
 
Programmable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-arrayProgrammable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-arrayJher Carlson Atasan
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptTimothy Paul
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptrickjones250264
 
Lattice Cryptography
Lattice CryptographyLattice Cryptography
Lattice CryptographyPriyanka Aash
 
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...IJERA Editor
 
White boxvsblackbox
White boxvsblackboxWhite boxvsblackbox
White boxvsblackboxsanerjjd
 
Arduino frequency counter
Arduino frequency counterArduino frequency counter
Arduino frequency counternasyith_hananur
 
Nand2 tetris 1and2
Nand2 tetris 1and2Nand2 tetris 1and2
Nand2 tetris 1and2Shuya Osaki
 
Report no.5(microprocessor)
Report no.5(microprocessor)Report no.5(microprocessor)
Report no.5(microprocessor)Ronza Sameer
 
Microcontroller based Integrated Circuit Tester
Microcontroller based Integrated Circuit TesterMicrocontroller based Integrated Circuit Tester
Microcontroller based Integrated Circuit TesterIJERA Editor
 

Similar to Lab 2-Simple Combinational Logic (20)

Switch Control and Time Delay - Keypad
Switch Control and Time Delay - KeypadSwitch Control and Time Delay - Keypad
Switch Control and Time Delay - Keypad
 
Electronz_Chapter_12.pptx
Electronz_Chapter_12.pptxElectronz_Chapter_12.pptx
Electronz_Chapter_12.pptx
 
Matlab 3
Matlab 3Matlab 3
Matlab 3
 
Programmable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-arrayProgrammable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-array
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.ppt
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.ppt
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.ppt
 
Lattice Cryptography
Lattice CryptographyLattice Cryptography
Lattice Cryptography
 
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
FPGA Implementation of A New Chien Search Block for Reed-Solomon Codes RS (25...
 
White boxvsblackbox
White boxvsblackboxWhite boxvsblackbox
White boxvsblackbox
 
Cse
CseCse
Cse
 
OSCh7
OSCh7OSCh7
OSCh7
 
OS_Ch7
OS_Ch7OS_Ch7
OS_Ch7
 
logic gates By ZAK
logic gates By ZAKlogic gates By ZAK
logic gates By ZAK
 
Verilog lab manual (ECAD and VLSI Lab)
Verilog lab manual (ECAD and VLSI Lab)Verilog lab manual (ECAD and VLSI Lab)
Verilog lab manual (ECAD and VLSI Lab)
 
Arduino frequency counter
Arduino frequency counterArduino frequency counter
Arduino frequency counter
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
 
Nand2 tetris 1and2
Nand2 tetris 1and2Nand2 tetris 1and2
Nand2 tetris 1and2
 
Report no.5(microprocessor)
Report no.5(microprocessor)Report no.5(microprocessor)
Report no.5(microprocessor)
 
Microcontroller based Integrated Circuit Tester
Microcontroller based Integrated Circuit TesterMicrocontroller based Integrated Circuit Tester
Microcontroller based Integrated Circuit Tester
 

More from Katrina Little

Electronics ii hand written formula sheets
Electronics ii hand written formula sheetsElectronics ii hand written formula sheets
Electronics ii hand written formula sheetsKatrina Little
 
Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator Katrina Little
 
MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart Katrina Little
 
MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems Katrina Little
 
Lab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and ApplicationsLab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and ApplicationsKatrina Little
 
Lab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt TriggersLab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt TriggersKatrina Little
 
Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators Katrina Little
 
Lab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage RegulatorsLab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage RegulatorsKatrina Little
 
Lab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational AmplifiersLab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational AmplifiersKatrina Little
 
Experiment 2, Diode Applications
Experiment 2, Diode ApplicationsExperiment 2, Diode Applications
Experiment 2, Diode ApplicationsKatrina Little
 
Experiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design ProjectExperiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design ProjectKatrina Little
 
Experiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal AmplifiersExperiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal AmplifiersKatrina Little
 
Experiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC AmplifiersExperiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC AmplifiersKatrina Little
 
Lab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB SimulationsLab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB SimulationsKatrina Little
 
RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams Katrina Little
 
Senior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cadSenior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cadKatrina Little
 
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations Katrina Little
 
Semiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheetsSemiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheetsKatrina Little
 
Photonics exams hand written formulas
Photonics exams hand written formulasPhotonics exams hand written formulas
Photonics exams hand written formulasKatrina Little
 
Linear control systems exam(s) hand written formula sheet
Linear control systems exam(s) hand written formula sheetLinear control systems exam(s) hand written formula sheet
Linear control systems exam(s) hand written formula sheetKatrina Little
 

More from Katrina Little (20)

Electronics ii hand written formula sheets
Electronics ii hand written formula sheetsElectronics ii hand written formula sheets
Electronics ii hand written formula sheets
 
Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator Embedded Systems Design of Hexidecimal Calculator
Embedded Systems Design of Hexidecimal Calculator
 
MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart MATLAB / Simulink: Inverted Pendulum on a Moving Cart
MATLAB / Simulink: Inverted Pendulum on a Moving Cart
 
MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems MATLAB / Simulink HW for Linear Control Systems
MATLAB / Simulink HW for Linear Control Systems
 
Lab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and ApplicationsLab 5 Report Precision Diodes and Applications
Lab 5 Report Precision Diodes and Applications
 
Lab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt TriggersLab 7 Report Voltage Comparators and Schmitt Triggers
Lab 7 Report Voltage Comparators and Schmitt Triggers
 
Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators Lab 4 Report Switching Voltage Regulators
Lab 4 Report Switching Voltage Regulators
 
Lab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage RegulatorsLab 3 Report Linear Voltage Regulators
Lab 3 Report Linear Voltage Regulators
 
Lab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational AmplifiersLab 2 Report More Linear Operational Amplifiers
Lab 2 Report More Linear Operational Amplifiers
 
Experiment 2, Diode Applications
Experiment 2, Diode ApplicationsExperiment 2, Diode Applications
Experiment 2, Diode Applications
 
Experiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design ProjectExperiment 6, 3-Stage BJT Amplifier Design Project
Experiment 6, 3-Stage BJT Amplifier Design Project
 
Experiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal AmplifiersExperiment 5, Transistor Small Signal Amplifiers
Experiment 5, Transistor Small Signal Amplifiers
 
Experiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC AmplifiersExperiment 4, Transistor AC Amplifiers
Experiment 4, Transistor AC Amplifiers
 
Lab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB SimulationsLab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
Lab 4 EEL 3552 Amplitude Modulation with MATLAB Simulations
 
RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams RC Circuit Transfer Functions with Bode Diagrams
RC Circuit Transfer Functions with Bode Diagrams
 
Senior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cadSenior design power supply pcb eagle_cad
Senior design power supply pcb eagle_cad
 
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
MATLAB: Output Voltage of Series RC Circuit utilizing Euler Approximations
 
Semiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheetsSemiconductors exam(s) hand written formula sheets
Semiconductors exam(s) hand written formula sheets
 
Photonics exams hand written formulas
Photonics exams hand written formulasPhotonics exams hand written formulas
Photonics exams hand written formulas
 
Linear control systems exam(s) hand written formula sheet
Linear control systems exam(s) hand written formula sheetLinear control systems exam(s) hand written formula sheet
Linear control systems exam(s) hand written formula sheet
 

Recently uploaded

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 

Lab 2-Simple Combinational Logic

  • 2. Katrina Little Experiment #2 Page number 2 OBJECTIVES:  Execution of a simple combinational logic circuit to further get acquainted with Xilinx’s ISE procedures.  Learn how to implement a design from nothing but a simple idea for a burglar system alarm. EQUIPMENT LIST:  FPGA BASYS1 board  Xilinx ISE program  Flash Drive  BIT file BLOCK DIAGRAM: DESIGN SPECIFICATION PLAN: The idea is to design a burglar alarm system. The alarm will need to sound if and only if the power of the alarm system is turned ON, and either a window or door has been opened. Also, the alarm should sound if a door and window are both open. To easily recognize the possible combinations required for the alarm to sound, please refer to Figure (2). Burglar Alarm Controller Power(P) Window (W) Door (D) Alarm (A) FIGURE (1)
  • 3. Katrina Little Experiment #2 Page number 3 Figure (2) DESIGN METHODOLOGY: From the design specification plan, techniques to create the system can be drawn by careful reasoning. Since the design specification says the power has to be on and either a window or door is open, appropriate gates can easily be established from the context of the plan. The truth table in FIG(3) gives a visual representation of what makes these conditions true. POWER WINDOW DOOR ON CLOSED OPEN ON OPEN CLOSED ON OPEN OPEN P W D A 1 0 1 1 1 1 0 1 1 1 1 1 INV ‘ AND + OR * Figure(3) Truth table that states the conditions to be met for the burglar alarm to sound. P, W, D, & A stand for power, window, door, and Alarm respectively. 1 signifies true. Which means open for W or D, on for P , and alarm triggered for A. 0 means closed for W or D. Note: this truth table is incomplete. Since there are 3 bits eight total combinations will need to be tested. Since the windows and doors can be one or zero we will need to use inverter gates for those two aspects only. To get every status combination of power, windows, and doors we will need three (3 bit) and gates (two of which the inverters will feed into). We will need one and gate with a window open and power on, one with a door open and power on, and lastly, one with the window/door open and power on. Finally, to get the final output (the alarm) to trigger, we will need one or gate that the three and gates will feed into. See Figure (5a) Figure (4): Operations of each gate
  • 4. Katrina Little Experiment #2 Page number 4 Interpreting the one’s from the truth table in Figure 3 you can write the alarm as a function of P, D, and W using “Sum of Products,” (SOP) as shown. A(PDW) = PW’D + PWD’ + PDW DETAILED SCHEMATIC DIAGRAM: INPUT/OUTPUT SWITCH PIN # LED # P SW0 36 D SW1 38 W SW2 29 A 15 0 P P P D D W W W A D Figure (5a) Figure (5a): (left) displays the design schematic for the alarm system. Figure 5b: (bottom left) is the Verilog language interpretation. Figure 6 (below) is the legend for the switch, pin, and led configuration for the input s and output of the function on the BASYS(1) board. Figure (6) ● ● ● module veriloglittlelab2(A, P, D, W); output A; input P; input D; input W; assign A = ((P&D&(~W))|(P&(~D)&W)|(P&D&W)); endmodule ● ● ● Figure(5b)
  • 5. Katrina Little Experiment #2 Page number 5 TEST PLAN (PROCEDURE): The test plan was broken into three parts essentially: I. Test the plan using the schematic capture tool. a. Generate a timing diagram (test bench) to represent all possible bit combinations. b. Set both the test bench and the simulation time to 2000 nanoseconds to allow enough time to cycle through all possible inputs. c. Simulate behavior model d. Generate a bit file and download to the BASYS board using the Diligent Export program. II. Test the plan using the Verilog language (Repeat steps a-d from part I.) III. Verify that the circuit design from parts I & II behave appropriately by checking when the LED was triggered on the BASYS board. (Which would be the output A). Refer to “Results Section.” I:
  • 7. Katrina Little Experiment #2 Page number 7 II: (see Fig 5b above) II.a: II.c:
  • 8. Katrina Little Experiment #2 Page number 8 RESULTS: CONCLUSIONS (QUESTIONS): 1) Can the logic be simplified in any way? A: Yes, refer to figure (8) for proof. PDW’ +PD’W +PDW  factor out P: P(DW’ +D’W +WD)  by using simplification theorem #9 XY +XY’ = X on the last two terms leaves:  P(DW’ +W)  by simplification theorem #11D XY’ + Y =X +Y leaves:  P(D + W) = PD +PW  therefore, A = PD +PW PDW D’ W’ PDW’ PD’W PDW A = PDW’ + PD’W + PDW 000 1 1 0 0 0 0 001 1 0 0 0 0 0 010 0 1 0 0 0 0 011 0 0 0 0 0 0 100 1 1 0 0 0 0 101 1 0 0 1 0 1 110 0 1 1 0 0 1 111 0 0 0 0 1 1 Figure (7) Figure 8 D P W A Figure 9 Figure (8)
  • 9. Katrina Little Experiment #2 Page number 9 2) How would the controller logic be simplified if the power is always on? A: If you refer to figure 7, the power is always on ONLY in the last four columns (for this design plan). Since there are four rows, included in the results with the power on (three of which have 1’s and one of which has a zero), it would be easier to write the function for the alarm using the one 0 using SOP. A(PDW) = (P’ + D +W) Therefore, the logic would be simplified to one (3bit) OR gate and an inverter for the power. Refer to figure 9. 3) Have you met all requirements of this lab (Design Specification plan)? A: Yes. 4) How should your design be tested? A: The design was tested on the BASYS(1) board after it was programmed successfully with the generated BIT file for both parts I & II of the test plan. The results of the designs were found by moving the switches on the BASYS(1) board to every different combinational bit of P, D, and W as seen in figure 7 above. The results for BOTH parts agreed with the design specification plan. The alarm sounds ONLY when the power is set to on AND, either a window or door is open, or both the window and door are open. These three representations are shown at PDW = 101, 110, and 111 on the truth table. You can easily see that the alarm is set to 1 (triggered) at these three points on the truth table. 5) The function is represented by the ORing in terms associated with the 1’s in the truth table. Can an expression for A be found which is derived by the ANDing of terms associated with the 0’s in the truth table? A: Yes it can. To write an expression using the zeroes would mean using “product of sums” (POS) instead of “sum of products.” Using this method would be more complicated because there are more zeroes than ones on the truth table.
  • 10. Katrina Little Experiment #2 Page number 10 Typically, the general consensus is to use whichever method has the least numbers. (I.e. use POS if there are less zeroes or SOP if there are less ones.) Therefore, using POS, the expression for the alarm becomes: NOTE: when using POS opposed to SOP you want your equation to equal zero. A(PWS) = (P+D+W)(P+D+W’)(P+D’+W)(P+D’+W’)(P’+D+W) It can easily be seen that this expression is much more complicated than the one that was used by “ORing” the terms together. 6) Write the Boolean expression describing a burglar alarm, which also sounds when a sensor has been crossed. A: The same will be true for the power here. The power will have to be ON in ALL cases. Therefore, adding a sensor component, the possible situations that will trigger the alarm are as follows: Power Door Window Sensor Alarm ON CLOSED CLOSED OPEN ON ON CLOSED OPEN CLOSED ON ON CLOSED OPEN OPEN ON ON OPEN CLOSED CLOSED ON ON OPEN CLOSED OPEN ON ON OPEN OPEN CLOSED ON PLEASE NOTE: NOW THAT THERE ARE NOW 4 COMPONENTS ( BITS). THEREFORE, TO TEST THIS CONFIGURATION OF THE ALARM SYSTEM, THE TRUTH TABLE WILL NEED TO HAVE FOUR BITS. Figure 10: Modified logical thinking of burglar alarm system with added sensor
  • 11. Katrina Little Experiment #2 Page number 11 P D W S A 1 0 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1 Writing the Boolean Expression using the ones from the table gives: A(P,D,W,S) = PD’W’S +PD’WS’ + PD’WS + PDW’S’ +PDW’S +PDWS’ +PDWS  Factoring out P gives:  P(D’W’S + D’WS’ + D’WS + DW’S’ + DW’S + DWS’ + DWS)  Term 1 and term 7 will cancel out.  Term 2 and term 5 will cancel out.  Term 3 and term 4 will cancel out.  Which simply leaves : DWS Therefore, the Boolean expression for the burglar alarm WITH the added sensor is: A(P,D,W,S) = PDWS. Adding the extra component (sensor) actually simplifies the logic of the system. Figure 11: the corresponding partial truth table (showing only possible ways to make alarm sound)