Mechanical Logic Gates
What sort of mechanical logic gates can be constructed? I saw someone build a few in Garry's Mod, and I'd like to figure out how to build a few myself.
I've heard of people building NOT, AND and OR gates physically with things like Legos, but those use gears. Basically, I want to know what I can build in Garry's Mod. So, pulley's, weights, wheels, et cetera can be used, but no gears, electrical components, or fluids.
It may not even be possible, but its still worth an attempt.
I've heard of people building NOT, AND and OR gates physically with things like Legos, but those use gears. Basically, I want to know what I can build in Garry's Mod. So, pulley's, weights, wheels, et cetera can be used, but no gears, electrical components, or fluids.
It may not even be possible, but its still worth an attempt.
Comments
I'm pretty sure that with a few basic logic gates you can do aritmetic.
looks waaaaay too complicated to build more than 1 or 2 in garry's mod. you'd be running at 10 fps...
THEY TERRIFY ME.
Basically, you have three basic logic gates, each which has a specific function:
NOT, represented by ~
NOT takes an input, then provides whatever it isn't. A will be our input, and Q our output. Bellow is what is called a Truth Table. Keep in mind that Boolean logic uses Binary.
A | Q
0 | 1
1 | 0
OR, represented by v.
OR returns true if one or both of its inputs is true. A will be our first input, B our second, and Q out output.
A | B | Q
0 | 0 | 0
1 | 0 | 1
0 | 1 | 1
1 | 1 | 1
AND, represented by ^.
AND returns true only if both of its inputs are true.
A | B | Q
0 | 0 | 0
1 | 0 | 0
0 | 1 | 0
1 | 1 | 1
From these three you can construct more complicated gates, such as NAND (NOT AND), NOR (NOT OR) and XOR (eXclusively OR).
Edit: Using these, you can build very simple computational devices such as a single bit adder, which you can connect to more single bit adders, until you have a very simple calculator. And once you can do basic arithmatic, you're on your way to building a CPU.
You'd have to remove friction, gravity, etc. All useless <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
You'd have to remove friction, gravity, etc. All useless <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
but you'll need to join a lot of different gates together just to make a simple 1 bit adder (yes... just adding 1's and 0's) . if you want to add 4 bits, you'll need to put 4 of these together...
a simple 1 bit full adder circuit (http://www.rwc.uc.edu/koehler/comath/images/fulladd.jpg) requires
3 NOT gates
6 AND gates
2 NAND gates
3 OR gates
not really practical to build in gmod cause the welds, cables and pulleys take a LOT of cpu power to process, and you'll be doing tons of welds just to make a gate, so forget about building even simple calculators in gmod
it's quite remarkable when you think about how little common folks know about how cpus work, and it takes so much design just to make a calculator that adds a couple of bits, let alone decimals, and complex math like square roots
1 bit adder with a carry: 1 xor gate and 1 and gate
edit: also these are not the most basic components in modern computing, nmos and pmos transistors are.
1 bit adder with a carry: 1 xor gate and 1 and gate
edit: also these are not the most basic components in modern computing, nmos and pmos transistors are. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
No wait conductors, semiconductors and insulators are... no wait atoms are. wait... no... electrons and nukleons... ah well quarks and electrons... strings?