Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Logic Gate Simulator (academo.org)
87 points by zeroday28 on Feb 10, 2023 | hide | past | favorite | 27 comments


Heh if it was for my kid how about a modern version of Rocky's boots.

I learned this stuff around 10 playing that game and didn't even realize what I was learning cause it was fun.

But it definitely worked.. I aced every class I ever took that required logic right through college with ease. Both hardware courses, CS courses, and a philosophy course.

edit:

Here it is!

https://www.myabandonware.com/game/rockys-boots-cp

I may very well sit my child down in front of this next time he says he's bored with the typical kids coding things.



That's the commodore 64 version, the one I shared is the PC version.

It is the same game, but at least for me the C-64 version is running about 1/100th normal speed in Chrome so that doesn't work either.

The PC version just has an issue with the shift keys not working, which breaks the game as shift is used for fine movements.


Just wanted to chime in to say that it seems like all the puzzles are still solveable without the shift key. (I'm mid-way through the flip-flop section, perhaps there's moments you need it in the final level?) edit: I take it back, foiled by delay


Oh wow, this just unlocked an old memory for me. I had completely forgotten this game exists.

Like you, I had no idea what I was learning when I played it as a kid, but logic has always felt natural since as long as I can remember. Which apparently is a timespan that may have started with this game.


Too bad, the online version of this is actually broken.


Cycles seem to invoke undefined behavior instead of being outright disallowed.

For these sorts of things I tend to go to the circuit simulator[0].

Also, for a game that teaches about this stuff while still being incredibly fun, I highly recommend Turing Complete[1].

[0] http://www.falstad.com/circuit/circuitjs.html

[1] https://store.steampowered.com/app/1444480/Turing_Complete/


More recently, Sebastian Lague has revived a video series on digital circuits [1] and the software featured in the series is made available [2] with a full source code.

[1] https://www.youtube.com/watch?v=QZwneRb-zqA (2 years ago), and more recently: https://www.youtube.com/watch?v=hEDQpqhY2MA and https://www.youtube.com/watch?v=_3cNcmli6xQ

[2] https://sebastian.itch.io/digital-logic-sim


Ohhh I didn't realize that his software was available! That's really neat, his videos are great!


Falstad's circuit simulator helped me become the engineer I am today. It's an internet gem if you ask me



Do they have a mac version?


If you're referring to Turing Complete, yes it's available on Windows, Linux and Mac.


Logism is still a great program although it requires an old Java runtime environment, 1.5.0. Many schools still seem to use it however (development ended in 2014).

Perhaps its descendant is Digital?

https://github.com/hneemann/Digital


I cannot recommend Digital enough. It is quite new. Clearly inspired by Logisim but not derived from it.

It has support for switches like FETs and relays, and you can implement open collector logic with pull-up resistors.

It can analyze and reduce combinatorial logic. It can generate Verilog and VHDL output from a diagram. And, IMO best of all, you can implement individual components in Verilog/VHDL and plop them as graphical elements in your circuit; when you simulate, it will fire up iverilog or ghdl in the background and communicate with them transparently.

It's fast too; one of the demo circuits is a complete processor and it simulates it at around 300 kHz on my machine.


Logism is what I learned on and really liked it. Good to learn about alternatives, especially if logism is "complete" and isn't being ported to any newer runtimes.


There is also 'atanua':

https://github.com/jarikomppa/atanua .


If you're into logic gates and deep learning:

- Deep Differentiable Logic Gate Networks (https://arxiv.org/pdf/2210.08277.pdf)

- Video presentation: Deep Differentiable Logic Gate Networks (https://www.youtube.com/watch?v=VulM891DhI4)


This is great, relevant to me as I have been taking nand2tetris[1] which is about building a computer from the ground up. Would reco it to anyone who is curious and wants to learn more.

[1]https://www.nand2tetris.org/


https://nandgame.com might also be relevant to you.


I'll check it out, thanks!


This is clean but I prefer CircuitVerse[0] as using 0/1 seems to be a little easier on my brain. Also more options to build complex circuits.

[0] https://circuitverse.org/simulator


There's also https://www.khloch.de/en/locad-fuer-mac/ We used the MSDOS version in highschool. What a fun semester!


Check out Sebastian Lague’s Digital Logic Sim too. Comes with some of my favourite videos!

https://sebastian.itch.io/digital-logic-sim


Fairly primitive.

Missing 3,4,..N input gates, XNOR.

The next level would need sequential logic (FF's) and friends likes muxes.

After that, crossbars and tri-state buffers.

Get fancy with buffers, clocks, and visualizing propagation delay, setup and hold times.


I learned using Multimedia Logic.

https://www.softronix.com/mmlogic-downloads/


The XOR node behaves differently when partially connected than other nodes. XOR seems to only work when both inputs are connected. Other gates like NOT output power if the input is missing OR off.




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

Search: