Logic gates out of dominoes
Software engineer Neil Fraser made a video that uses domino falls to simulate logic gates, the basic building blocks of digital circuits. Domino Domino Logic (neil.fraser.name, thanks Michelle Hlubinka and Robert Cook!)
the latest
latest episodes
OK, now that is cool.
Excellent! I'll take 1 CPU that works on domino gates, please!
Very interesting, but I was really interested in seeing how he managed a NOT gate.
@3: I think it would require a non-domino device; a timer that knocks over a domino after X seconds unless a falling domino pushes it's button.
could you not use a big loop of dominoes as a timer? Come on, people! It's only a matter of obtaining enough dominoes and the worlf is ours for the taking!
A NOT gate would have to be some sort of lever that STOOD UP a domino if one crashes into it.
No NAND gate?
Notice that you can implement NOT(x) as:
XOR(x, TRUE)
where you can obtain a TRUE signal by forking a falling domino-path to wherever you need one.
His XOR() has some serious subtleties in timing however...
ha! let's see him make a flip-flop.
#3: Hmmm ... what if every logical value were represented by TWO parallel streams of dominoes: a "false" path on the left, and a "true" path on the right, where we always guarantee that exactly one path is triggered for each boolean variable.
In this case, the NOT gate becomes easy: a little bridge which allows the left side to cross over and become the right side (and vice versa).
Then you'd just need to develop either an OR gate. The AND gate can be expressed in terms of NOT+OR:
A and B = not(not(A) or not(B))
And the XOR gate built likewise from that:
A xor B = (A and not(B)) or (B and not(A))
I imagine such a setup would make heavy use of staircases and elevated tracks ... ideally, with two colors of domino, one for the "false" track and one for the "true" track, so you could more-easily follow the logic.
A primitive "adder" circuit would be exceedingly beautiful...
O_O
These comments are all gibberish to me.
I'm just going to... back away... now.
Cool! Can we now build a Hofstadterian prime-number domino computer? (1, 2, 3).
Conceptually, making some sort of calculating machine with dominoes should not be any harder than this or this. Right?
Oh, wait, never mind, here it is...
As cool as that was, transistors >> dominoes.
Oh my, I'm being Boing Boinged. I was wondering why my home Internet connection was feeling a wee bit sluggish.
To answer your questions about NOT gates, yes it is possible. The catch (as with any logical system) is that you have to have a power input. All a NOT gate has to do is the signal backwashes the domino stack, so that power can't get through to the output.
The XOR actually contains one NOT gate. The formula used is: ((A or B) and not (A and B)
That's wonderful, Mr Shockley, but I can't see it being practical until someone starts manufacturing 2 mm dominoes.
Does Moore's Law hold for domino based computing devices?
Oh man, Omnivore, I don't even want to THINK about having to reset a billion 2mm dominoes every time I boot my computer.
if this video had been around, perhaps the US would never have gone in to Vietnam.
But can it run Zork yet?
That is a wonderful thing, thank you.
Nerdgasm, been a while since I had one of those...
gonna read some Neal Stephenson now while I've got that glow.
Brilliant. The fact that it is a video of a whole bunch of wordless gestures and movements (except for the labels on the gate illustrations, which are not really integral to the demonstration) seems to satisfy a constraint proposed by my dear old friend The Insidious Doctor Zed, a software architect who claims that all software engineers who are any good at their craft are essentially pre-verbal.
i don't know a thing about computer programing, but i'm a philosophy student so i've taken some basic logic classes and watching this switches my brain into logic-speak.
i love it!
Okay, remind me, how far away from a Turing complete machine are we now? If we use Genetic Programming techniques to implement the logic in a boolean-controlled tree structure, we have a theoretical Turing machine, yes?
Domino Doom - perhaps the slowest port of Doom ever.
I want to see someone do this with ants, like Hex.
with grains of sugar? Actually a bug-based computer ought to be pretty doable. Ants are going to react the same way to the same stimulus. You're right, the world needs this, if only for the puns.
I made exactly this sort of thing a few years ago, although I made things run off of a NOT and an OR. The OR was directly identical to his. The NOT involved essentially a "true" signal (as described by a few people here) that went over a bridge. The other signal collapsed the bridge in a way that prevented the true signal from continuing. It turns out that in general there are serious timing issues that one needs to take into account when combining gates. The best method is to make highly snaking paths at certain points to make sure that the true signals always come in much later then any possible collapses. This works better than his method since one then just needs order of magnitude timing rather than nearly exact timing for some gates.
You also in practice need to make additional bridges so that paths can cross each other without interferring. In practice this was one of the most difficult things to do efficiently and reliably since dominos falling off a bridge can trigger the path below if one isn't careful.
isnt the XOR gate cheating? i think he
got lucky with a race condition (?)
Sorta reminds me of this:
http://www.youtube.com/watch?v=n3wPBcmSb2U
Some dude at Portland State built an electromechanical computer out of relays. (There's actually a bunch of EM/relay computers on youtube/the internet if you look.)
XOR gate FTW!!!
I misread the title and thought it said, "Logic gates out of dummies."
I want to see the dummies!
Minor nit with the original post: they don't simulate logic gates, they are logic gates.
#16 Omnivore, #17 FNC, #18 Tonamel: If they were 2 nanometers you might have something. Tiny little things move a lot faster. Maybe reset them with static electricity. There are mechanical thingies being built with the same methods as electronic chips, so Moore's Law holds.