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

Programmer Humor

1722 readers
1 users here now

founded 2 years ago
MODERATORS
 
top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 22 points 1 year ago* (last edited 1 year 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 1 year 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 1 year 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

[–] [email protected] 14 points 1 year ago

It should have some kind of latch where there are two things to push and you have to do them both, or just one or the other, or whatever.

[–] [email protected] 12 points 1 year ago

The OR gates only have 1 input for some reason. Otherwise very cool!

[–] [email protected] 5 points 1 year ago

I thought Logic Gate is the one with the two guardians and one always lies and the other speaks truth. Or is that Logical Gate? 🤔

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

Also provides steps for getting over it.

[–] [email protected] 3 points 1 year ago

The middle bar is a perfectly adequate step all by itself

[–] [email protected] 4 points 1 year ago

That brought back memories!

[–] [email protected] 3 points 1 year ago

redundant OR gates

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Cool but why does that AND gate gotta be like that?

[–] [email protected] 2 points 1 year ago

I could never have a gate like that. Nerds from everywhere would be showing up and taking pictures.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)
[–] [email protected] 0 points 1 year ago

All I remember is my professor, circa 2015 "DIAMOND, DECISION!"

[–] [email protected] 0 points 1 year ago

Looks illogical to me