#20 3+ input XOR gate bug

closed
nobody
Simulator (6)
5
2011-06-28
2011-05-26
Anonymous
No

When the XOR gate in KTechLab has more than 2 inputs, it only returns true when 1 input is true. If 3 inputs or 5 inputs are true, it returns false, when it should return true. (I did not test more than 5 inputs, as it is unlikely that such a gate would ever be used.)

XOR gates with more than 2 inputs are supposed to return true when an odd number of inputs are true.

Note that XNOR gates behave similarly.

Discussion

  • Nobody/Anonymous

    XOR bug image 3,4, and 5 input XORs

     
  • Zoltan P

    Zoltan P - 2011-05-31

    Confirmed. I will post patch here when I create a fix for it.

     
  • Zoltan P

    Zoltan P - 2011-05-31
    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • Zoltan P

    Zoltan P - 2011-06-14

    I should set up this automatic bug closing stuff to 1 month at least.

    Related to the bug, we had an interesting discussion on IRC about it.
    There is a debate if a multiple input XOR should output logical 1 if the number of logic 1 on inputs is odd, or when only 1 logic input is 1. The latter functionality is actually implemented.
    I will come back with a description of where this behavior should be changed.

     
  • Zoltan P

    Zoltan P - 2011-06-14
    • status: closed --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks