Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Wired Logic – a pixel-based logic simulator (github.com/martinkirsche)
176 points by mkirsche on Jan 31, 2016 | hide | past | favorite | 15 comments



If you like this, you will love: http://www.zachtronics.com/kohctpyktop-engineer-of-the-peopl...

an IC design game set in Soviet Russia.


That was interesting. I'd love to see a CMOS version.


Awesome! have a gif of a working calculator? Reminds me of the way that people would build digital electronics in the 'powder-toy' genre of games. Was that an inspiration for this project?


Looks similar to Wireworld[1], although the rules are different

1: https://en.wikipedia.org/wiki/Wireworld


Yeah, this was indeed inspired by Wireworld and its frustrating timing constraints.


why did you choose the number 6 for maxCharge?


The larger the number the slower the simulation will run. But a numer that is too low will force you to include repeaters everywhere. So 6 seamed to be reasonable.


Now all we need is a Verilog to GIF compiler.


The part about crossing wires creating a transistor is actually conceptually very similar to what real IC layouts look like, although in the latter there are multiple layers and only the bottom two - polysilicon and diffusion - interact to create transistors:

http://wiki.nesdev.com/w/index.php/Visual_circuit_tutorial


Reminds me of John von Neumann's 29 state cellular automata [1], which he used to build a universal constructor [2], but that historic rule made it much harder to cross signals. (You could easily modify the rule to make that easier, but then it wouldn't be historically accurate, which is what makes it so interesting: he designed the rule and the universal constructor in his extremely powerful mind and on ordinary paper!) It's able to create and destroy wires, to the extent that it can actually build other machines and even replicate itself.

[1] https://en.wikipedia.org/wiki/Von_Neumann_cellular_automaton

[2] https://en.wikipedia.org/wiki/Von_Neumann_universal_construc...


This is fantastic! Would be great to get it running in canvas.


you can now draw your own circuit at http://martinkirsche.github.com/wired-logic/


Reminds me a bit of this: https://en.wikipedia.org/wiki/Wireworld


Very cool. It reminds redstone circuits from Minecraft.


building simulations is the strength of computation assisted intuition




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: