Menu

#377 XOR gate in pgflibraryshapes.gates.logic.IEC.code.tex allows only 2 legs

v1.0 (example)
closed-invalid
nobody
logic gates (1)
1
2018-12-23
2015-12-23
No

The xor gate IEC in the file pgflibraryshapes.gates.logic.IEC.code.tex (starting at line 477) does not support 3 or more legs although all the other gates do.

I'm not sure if this is a bug or a conscious decision, but simply setting the according constant from 2 to 1024 (as is the case for the other gates) seems to resolve the problem.

Discussion

  • Stefan Pinnow

    Stefan Pinnow - 2018-12-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
    -The XOR gate in the file pgflibraryshapes.gates.logic.IEC.code.tex (starting at line 477) does not support 3 or more legs although all the other gates do.
    +The `xor gate IEC` in the file `pgflibraryshapes.gates.logic.IEC.code.tex` (starting at line 477) does not support 3 or more legs although all the other gates do.
    
     I'm not sure if this is a bug or a conscious decision, but simply setting the according constant from 2 to 1024 (as is the case for the other gates) seems to resolve the problem.
    
    • status: open --> closed-invalid
     
  • Stefan Pinnow

    Stefan Pinnow - 2018-12-23

    I am pritty sure that this is done by intention. The corresponding manual section one can read the number of allowed inputs for each of the gates and for xor gate IEC and xnor gate IEC it is explicitly written that two inputs (only) are allowed.

    I can follow this "decision" when I read https://en.wikipedia.org/w/index.php?title=XOR_gate&oldid=874532784#More_than_two_inputs. Hopefully you agree that the decision for two inputs (only) was most likely on purpose.