<story><title>Logic.ly – Digital logic simulator for teaching logic gates and digital circuits</title><url>https://logic.ly/demo</url></story><parent_chain></parent_chain><comment><author>scotteh</author><text>In a similar vein, NandGame (&lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;nandgame.com&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;nandgame.com&amp;#x2F;&lt;/a&gt;) is an online game where the challenge is to progressively build a microprocessor, starting from simple logic gates.&lt;p&gt;Show HN thread from a couple of years ago: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;news.ycombinator.com&amp;#x2F;item?id=17508151&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;news.ycombinator.com&amp;#x2F;item?id=17508151&lt;/a&gt;</text></comment>
<story><title>Logic.ly – Digital logic simulator for teaching logic gates and digital circuits</title><url>https://logic.ly/demo</url></story><parent_chain></parent_chain><comment><author>compumike</author><text>(Disclosure: I wrote the simulation engine that powers CircuitLab, a mixed-mode [i.e. analog+digital combined] circuit simulator, so this builds on the digital-only logic simulation concept.)&lt;p&gt;If you find it fun to play with digital logic, you should first look at combinational logic, and then add some registers and get clocked logic with memory &amp;#x2F; registers. Once you&amp;#x27;ve got that down, I&amp;#x27;d recommend two next steps:&lt;p&gt;1. Look at some simple circuits that combine analog and digital. For example, [1] a digital 4-bit counter made up of four half-adders. (It&amp;#x27;s called a half adder because it only adds two bits A+B, producing a value 0, 1, or 2. In contrast, a full adder adds three bits A+B+C, producing a value 0, 1, 2, or 3.) The four output bits of the 4-bit counter are connected to a simple op-amp and resistor based digital-to-analog converter (DAC). This helps you understand that we have lots of ways of representing signals, and in engineering practice we combine these modalities to useful effect.&lt;p&gt;2. Instead of merely using software to model circuits, understand that circuits are a great way to model all sorts of real-world problems. You may have heard of &amp;quot;analog computers&amp;quot; [2] which predate digital ones, and were used for modeling all sorts of engineering problems. You may now use a circuit simulator to model mechanical systems, thermal systems, or even the spread of COVID-19. I&amp;#x27;ve done the latter here [3], using a few capacitors and current sources to implement the differential equations of an epidemic. Because you can define current sources algebraically (i.e. the current can be proportional to other currents and voltages in the circuit), you can easily take advantage of the simulator&amp;#x27;s underlying ability to simulate arbitrary systems of differential equations. I&amp;#x27;ve explained the COVID-19 model here [4] as previously discussed on HN.&lt;p&gt;[1] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.circuitlab.com&amp;#x2F;editor&amp;#x2F;53xa3r&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.circuitlab.com&amp;#x2F;editor&amp;#x2F;53xa3r&amp;#x2F;&lt;/a&gt;&lt;p&gt;[2] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;en.wikipedia.org&amp;#x2F;wiki&amp;#x2F;Analog_computer&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;en.wikipedia.org&amp;#x2F;wiki&amp;#x2F;Analog_computer&lt;/a&gt;&lt;p&gt;[3] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.circuitlab.com&amp;#x2F;editor&amp;#x2F;zubfhu8p3q3v&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.circuitlab.com&amp;#x2F;editor&amp;#x2F;zubfhu8p3q3v&amp;#x2F;&lt;/a&gt;&lt;p&gt;[4] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.circuitlab.com&amp;#x2F;blog&amp;#x2F;2020&amp;#x2F;05&amp;#x2F;28&amp;#x2F;surprising-covid-19-strategy-how-to-reduce-economic-damage&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.circuitlab.com&amp;#x2F;blog&amp;#x2F;2020&amp;#x2F;05&amp;#x2F;28&amp;#x2F;surprising-covid-...&lt;/a&gt;</text></comment>