Pythonic Virtual Machine
XOR Class Reference

Detailed Description

XOrGate.png
schema

Truth table for a XOr Gate

in1 in2 out
0 0 0
0 1 1
1 0 1
1 1 0
  • Initialisation parameters:
    • pushed = True|False push the output buffer immediately if True.
    • factors = number of input channels. Default is 2.
  • Input channels:
    • in1, in2, ... = incoming signal
  • Output channels:
    • out = in_1 $ \oplus $ in_2 $ \oplus $ ... $ \oplus $ in_x

Inherits Circuit.

Additional Inherited Members

- Public Attributes inherited from Circuit
 name
 Name of the circuit. More...
 
 enabled
 if it is working... More...
 
 machine
 Reference to the virtual machine to which this circuit belongs. More...
 
 pushed
 Push output buffer at the end of Update. More...
 
 I
 Dictionary of input channels.
 
 O
 Dictionary of output channels.
 
 cCoreID
 index of circuit in cCore
 

Documentation for pyVAFM
Generated on Wed Feb 8 2017 10:13:49 for pyVAFM by doxygen 1.8.9.1