[HN Gopher] Logic Gate Simulator
       ___________________________________________________________________
        
       Logic Gate Simulator
        
       Author : unobatbayar
       Score  : 63 points
       Date   : 2023-02-09 07:10 UTC (1 days ago)
        
 (HTM) web link (academo.org)
 (TXT) w3m dump (academo.org)
        
       | patching-trowel wrote:
       | Check out Sebastian Lague's Digital Logic Sim too. Comes with
       | some of my favourite videos!
       | 
       | https://sebastian.itch.io/digital-logic-sim
        
       | ben7799 wrote:
       | 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.
        
         | ben7799 wrote:
         | Too bad, the online version of this is actually broken.
        
         | haswell wrote:
         | 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.
        
         | Brendinooo wrote:
         | https://archive.org/details/Rockys_Boots_1984_TLC is this the
         | same thing?
        
           | ben7799 wrote:
           | 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.
        
             | howLongHowLong wrote:
             | 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
        
       | [deleted]
        
       | davidhay wrote:
       | 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/
        
         | bazoom42 wrote:
         | https://nandgame.com might also be relevant to you.
        
           | davidhay wrote:
           | I'll check it out, thanks!
        
       | molsongolden wrote:
       | 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
        
       | photochemsyn wrote:
       | 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
        
         | billfruit wrote:
         | There is also 'atanua':
         | 
         | https://github.com/jarikomppa/atanua .
        
         | retrac wrote:
         | 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.
        
         | glasss wrote:
         | 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.
        
       | dpflan wrote:
       | 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)
        
       | ballenf wrote:
       | 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.
        
       | junon wrote:
       | 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/
        
         | hummus_bae wrote:
         | [dead]
        
         | ZyanWu wrote:
         | Falstad's circuit simulator helped me become the engineer I am
         | today. It's an internet gem if you ask me
        
         | lifthrasiir wrote:
         | 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
        
           | junon wrote:
           | Ohhh I didn't realize that his software was available! That's
           | really neat, his videos are great!
        
       | ck45 wrote:
       | There's also https://www.khloch.de/en/locad-fuer-mac/ We used the
       | MSDOS version in highschool. What a fun semester!
        
       ___________________________________________________________________
       (page generated 2023-02-10 23:01 UTC)