lab 1 (DLD)...
lab 1 (DLD)...
Submitted to:
Submitted by:
Fatima Naveed
Roll no:
DSAI241103170
Logic Gates:
Logic gates are classified into three;
Basic logic gates
Universal logic gates
Exclusive logic gates
Basic logic gates
These logic gates include AND, OR, NOT gates.
1.AND GATE:
An AND gate is a digital logic gate with two or more
inputs and one output that performs logical conjunction. The
output of AND gate will only be true when all the input is
true.
Application:
Used in security systems where multiple conditions
need to be met before the system can be activated.
For example;
In a bank’s vault, the AND gate ensures that both the
combination lock and the biometric scanner must be
activated simultaneously to open the vault.
BOLEEAN EXPRESSION:-
A.B
2.OR Gate:
. An OR logic gate is a digital logic gate that
implements logical disjunction. The OR gate outputs true if
any of its input is true otherwise false.
Application:
Used in alarm system where anyone of the multiple
sensors can trigger the alarm.
3.NOT Gate:
A NOT gate is a logical gate. Each note
gate has only one input signal. Logically with NOT gates,
the input and output swap, so if input is 1 the output will be
0.
Application:
Used in control systems where a signal needs to be
inverted. Like in home for light on and off.
Application:
Used in digital circuits where multiple signals need to be
combined and inverted.in a digital multiplexer, the NOR gate
is used to select one of input signals.
Boolean expression:
A+B=Q
Application:
Used in digital circuits where to signals needed to be
compared and their equlity need to be checked. Like in
digital encoder.
BOOLEAN EXPRESSION:
Y=A⊙B
2.XOR Gate:
An XOR gate is a digital logic gate that give
a true output when the number of true input is odd. A
same input result is 0.
Application:
Use din digital circuits where two signals need to be
compared. Like in binary numbers.