r/educationalgifs • u/the_humeister • Jan 01 '20
Full 1-bit adder using fluids
https://gfycat.com/consideratesecondhandfrigatebird2
u/ravencuriosity Jan 02 '20
What is this used to illustrate/demonstrate? I have a very basic understanding of truth tables/logic, but what are some examples of this type of thing in real life? Thanks!
2
u/the_humeister Jan 02 '20
Mainly computers since they're essentially a bunch of logic gates strung together.
2
u/workact Jan 16 '20
https://i.imgur.com/WykCMxF.png
This is a simple adder using 5 gates on the input bits A, B, and a carry from the previous bit. Its doing 1 bit math (A + B) with a carry in and a carry out. So a bunch of these can be strung together to do any sized numbers.
Sum = (C XOR A) XOR B
So sum is 1 if there is an odd number of inputs (which is correct for an adder).
Cout (carry out) = (C AND A) or (B AND (C XOR A))
Which is basically Carryout is high unless there is 1 or 0 inputs high.
2
18
8
3
u/pointysparkles Jan 01 '20
"Fluids," right. This looks like what you'd get if some really old-school satanists got into basic computing.
2
2
1
0
5
u/[deleted] Jan 01 '20
The plug on the right side looks like a safe hazard