Example #1
0
 def performGateLogic(self):
     sum = XorGate.performGateLogic(self)
     carry = AndGate.performGateLogic(self)
     return (sum, carry)
Example #2
0
 def performGateLogic(self):
     if AndGate.performGateLogic(self) == 1:
         return 0
     else:
         return 1
Example #3
0
 def halfader(self, a, b):
     s = XorGate(a, b)
     c = AndGate(a, b)
     return (s,c)
Example #4
0
 def performGateLogic(self):
     if AndGate.performGateLogic(self) == 1:
         return 0
     else:
         return 1