This document describes designing and implementing EX-OR and EX-NOR gates using Python. It defines EX-OR and EX-NOR gates, provides their truth tables and symbols. It also presents Python programs to simulate EX-OR and EX-NOR gates. The document concludes that the output of the EX-OR gate is inverted in the EX-NOR gate.
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
dpsd.pptx
1. Design and implementation of EX-OR A
EX-NOR Gates using python
Presented By:
S.DEVENDRAN-- 713620104007
F.DHIPTHI VERONICA-- 71362010400
G.ESWAR-- 713620104009
CS8351
Digital Principles And System
Designing
4. ABSTRACT
EX-OR and EX-NOR gate plays an important
role in digital systems including arithmetic and
encryption circuits. It proposes a combination of EX-OR
and EX-NOR gate using 6-transistors for low power
applications. The simulation results demonstrate the
delay, power consumption and power-delay product
(PDP) at different supply voltages ranging from 0.6V to
1.2V. The results show that the proposed design has
lower power dissipation and has a full voltage swing.
5. LOGIC GATES
A logic gate is an idealized model of computation
or physical electronic device implementing a Boolean
function, a logical operation performed on one or more
binary inputs that produces a single binary output.
TYPES:
• AND EX-NOR
• OR NOR
• NOT NAND
• EX-OR
6. Advantages of Logic Gates
• Logic gates are quick yet use low energy.
• Logic gates don't get overworked.
• Logic ‘1’ and Logic ‘0’ can be easily
distinguished.
• Logical Operations are performed using
Boolean Algebra which makes the circuit
design more economical and simple.
7. Disadvantages of Logic Gates
• Operating Voltage is limited.
• Time delay occurs between input and
output.
8. EX-OR GATE
• The IC number is 7486.
• The output of XOR Gate is'High' if either of
the inputs is 'High'.
• The output is 'Low' if both the inputs are
'High' or if both the inputs are 'Low'.
11. Program to implement EX-OR Gate
def XOR (a, b):
if a != b:
return 1
else:
return 0
if __name__=='__main__':
print(XOR(5, 5))
print("+---------------+----------------+")
print(" | XOR Truth Table | Result |")
print(" A = False, B = False | A XOR B =",XOR(False,False)," | ")
print(" A = False, B = True | A XOR B =",XOR(False,True)," | ")
print(" A = True, B = False | A XOR B =",XOR(True,False)," | ")
print(" A = True, B = True | A XOR B =",XOR(True,True)," | ")
13. EX-NOR
• The output of XNOR Gate is ‘High’
if both the inputs are ‘High’ or if
both the inputs are ‘Low’.
• The output is ‘Low’ if either of the
input is ‘Low’
16. Program to implement EX-NOR
Gate
def XNOR(a,b):
if(a == b):
return 1
else:
return 0
if __name__=='__main__':
print(XNOR(1,1))
print("+---------------+----------------+")
print(" | XNOR Truth Table | Result |")
print(" A = False, B = False | A XNOR B =",XNOR(False,False)," | ")
print(" A = False, B = True | A XNOR B =",XNOR(False,True)," | ")
print(" A = True, B = False | A XNOR B =",XNOR(True,False)," | ")
print(" A = True, B = True | A XNOR B =",XNOR(True,True)," | ")
18. CONCLUSION
That means the output of the XOR
gate is inverted in the XNOR gate. In the
XOR gate operation, the output is only 1
when only one input is 1. The output is
logical 0 when both inputs are the same,
meaning they are either 1 or 0. But in the
XNOR gate, the inverse is true.
19. Reference
• G.O’Regan, Guide to Discrete Mathematics.
• J.L. Ackrill, Aristotle the Philosopher.
(Clarendon Press Oxford, 1994
• G. Boole, An Investigation into the Laws of
Thought. Dover Publications. 1958.(First
published in 1854)
• D. McHale, Boole. (Cork University Press, 1985)