You are on page 1of 6

LOGIC GATE

Topic

LOGIC GATE AND TRUTH TABLE

Submitted By A Q IB
Submitted To
Roll Number:

JA V E D

FAWAD JAVED

14090819-025

if all inputs are LOW.the truth table is . the output is LOW. the ANDoperation is written as X = A . For a 2-input gate.B or X = AB . For a 2-input gate.LOGIC GATE The AND Gate:- Thus. The AND gate produces a HIGH output when all inputs areHIGH. the truth table is INPUT OUTPUT B 0 X 0 0 1 0 1 0 0 1 1 1 A 0 EXAMPLE:-A Seat Belt Alarm System: And gate is used in autompobile THE OR GATE The OR gate produces a HIGH output if any input is HIGH. otherwise. the output is LOW.

circut shown in figure.if tank A or B are above one quarter full. the OR operation is written as X = A + B. otherwise. the output is LOW. the NAND A B X operation is written as X = A . For a 2-input gate. The OR operation is shown with a plus sign (+) between. Thus.LOGIC GATE inputs A B 0 0 0 1 1 0 1 1 output X 0 1 1 1 the variables.) 0 0 1 0 1 1 1 0 1 1 1 0 EXAMPLE: Nand gate with two inputs is connected to tank level sensor and its output is connected to indicator panel . the truth table is The NAND operation is shown with a dot between the INPUT OUTPUT variables and an overbar covering them. when any window or room is open the alarm is on . if all inputs are HIGH.B (Alternatively. Thus. X = AB.the led is on The NAND gate is particularly useful because it is a “universal” gate – all other basic gates can be constructed from NAND gates THE NOR GATE: The NOR gate produces a LOW output if any input is HIGH. the truth table is . For a 2-input gate. the output is HIGH. Using OR gate THE NAND GATE The NAND gate produces a LOW output when all inputs are HIGH. EXAMPLE:- An alarm system that attach one room and two windows .

which produce a LOW output to turn on the LED waring display. it can be written with a circled plus sign between the variables as X = A + B. Symbol is shown EXAMPLE: POWER IS Applied to the circuit when the “gear down” switch is activated use a NOR Gate as shown in the figure . Thus.one NOR gate is operate as negative AND to detect a Low from each of three landing gear sensor. the NOR operation is written as X = A + B. THE EXCLUSIVE OR GATE : The XOR gate produces a HIGH output only when both inputs are at opposite logic levels. The truth table is The XOR operation is written as X = AB + AB.LOGIC GATE INPU T A B 0 0 OUTPU T X 1 0 1 1 0 0 0 1 0 1 The NOR operation is shown with a plus sign (+) between the variables and an overbar covering them. Sensor is dected by the NOR Gate . INPU T A B 0 0 0 1 1 0 1 1 OUTPU T X 0 1 1 0 Notice that the XOR gate will produce a HIGH only when exactly one input is HIGH.A Failur either one of the . EXAMPLE: The output of the circuit is connected to the input an XOR gate as shown in figure . Alternatively.

the XNOR operation can be shown with a circled dot between the variables.LOGIC GATE circuit produce a different output . indicating a failure in one of the circuit. Thus.This condition produce a HIGH on the output of XOR gate . EXAMPLE: . Logic symbol for XNOR gate as shown. which cause the XOR input to be at opposite level . The truth table is INPUT A B 0 0 OUTPUT X 1 0 1 1 0 0 1 1 0 1 The XNOR operation shown as X = AB + AB. it can be shown as X = A . Alternatively. B. GATE: The XNOR gate produces a HIGH output only when both inputs are at the same logic level. THE INVERTER: Truth table of inverter INPUT OUTPUT A X LOW (0) HIGH (1) EXAMPLE: SEE HIGH EXAMPLE OF THE EXCLUSIVE-NOR LOW(0) (1) THE BELOW XNOR GATE.

LOGIC GATE THE output waveform for the XOR gate and XNOR gate given the input waveform A and B as shown in figure. NOTICE that the XNOR output is high only when both input are same. .