this post was submitted on 04 Jun 2024
483 points (98.6% liked)

Programmer Humor

1350 readers
1 users here now

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 5 months ago* (last edited 5 months ago) (1 children)

The inversions on both inputs to the NAND gates bothers me. Wouldn't inverting both inputs as well a the output turn a NAND back into an AND gate?

[–] [email protected] 7 points 5 months ago (1 children)

A NAND gate with two inverted inputs is equivalent to an OR gate. The ouput is only false when both inputs are false.

[–] [email protected] 4 points 5 months ago (1 children)

You're right, it doesn't seem like it should but that checks out:

11 1

01 1

01 1

00 0