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