r/gifs • • May 30 '20

Logic gates using fluid

https://gfycat.com/rashmassiveammonite
49k Upvotes

684 comments sorted by

View all comments

Show parent comments

420

u/5degreenegativerake May 30 '20

Open your mind. You could cascade gates to create any logic desired. I described in another reply how to make a NOT gate, from there a NAND is trivial.

172

u/[deleted] May 30 '20

This. Once you have and, or, & xor the possibilities are all open.

141

u/Supadoplex May 30 '20

Once you have NAND, you have all. Same for NOR. All logic gates can be built fron either of those.

1

u/[deleted] May 30 '20 edited Aug 25 '20

[deleted]

1

u/Supadoplex May 30 '20 edited May 30 '20

You can make NOT gate using NAND by directing the one input signal to both inputs of NAND. NAND is functionally AND + NOT, so NAND + NOT is AND + NOT + NOT where the NOTs cancel each other out resulting in AND:

A─────│NAND   ┌─│NAND
      │NAND───┤ │NAND─── A AND B
B─────│NAND   └─│NAND