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

Programmer Humor

1502 readers
2 users here now

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] partial_accumen 22 points 8 months ago* (last edited 8 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 8 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.

[–] partial_accumen 4 points 8 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