geekcowboy.neta florea.xyz revival

Learning electronics

Digital logic simulators in 2026: Logisim-evolution, Digital, CircuitVerse and Falstad, and a 4-bit adder tested on all 512 inputs

Six logic simulators checked against their own release pages, with what each is good at and what bites. Then a worked exercise in Digital, from a half adder to a 4-bit ripple-carry adder with a 512-row test, and how to get from the screen to 74HC chips on a breadboard or to an FPGA.

By florea.xyz ·

A logic simulator lets you wire gates and flip-flops on a screen and flip the inputs, with no chips to fry. It is the cheapest bench there is for learning digital electronics, and the good ones do something a breadboard cannot: check a circuit against a whole truth table in a second.

Six simulators, side by side

Each row was checked on 27 November 2026 against the project’s own release page or repository.

Tool Runs on Licence Latest version Best at
Logisim-evolution Windows, macOS, Linux (installers include Java; the plain jar needs Java 21) GPL-3.0 5.1.0, 26 November 2026 courses, a huge parts library, FPGA boards
Digital anything with Java 8 or newer; unzip and run GPL-3.0 0.31, 3 September 2024 testing circuits, analysis, HDL export
CircuitVerse browser; early desktop build 0.0.1 MIT no numbered releases (hosted service) classes: groups, assignments, grading
Falstad’s CircuitJS1 browser; offline builds for Windows, macOS, Linux GPL-2.0 5.0.6ts, offline builds of 22 November 2026 analog and digital in one picture
Nand to Tetris web IDE browser MIT no numbered releases (code changed 23 November 2026) building a computer from Nand up
LogicSim3 Java GPL-3.0 3.4, June 2020 nothing new: unmaintained

Logisim-evolution is the busy one: four releases since September 2025, the latest on 26 November 2026. You get subcircuits, a chronogram (a timing diagram), components written in VHDL, test vectors from text files, a long list of 74xx chips (5.1.0 alone added twenty) and FPGA boards. 5.1.0 also imports Verilog, through Yosys if you have it installed. Caveats: the macOS app is not signed (first launch: right-click, Open), and package-manager builds other than the Snap are not the developers’ own, so check the version before reporting a bug.

Digital, by Helmut Neemann, was written from scratch after Logisim and is the best of the bunch at proving a circuit works. A test case is a text table of inputs and expected outputs, with loops for exhaustive tests, run from the toolbar or the command line. It also turns a circuit into a truth table, K-map and expressions and back, has a 74xx library, and exports VHDL or Verilog with the test cases as an HDL test bench. Caveats: the last release is from September 2024 (small fixes continue on its main branch, “planned as v0.32”), and by design you cannot edit a running simulation: stop, change, start again.

CircuitVerse is free, runs in the browser and is built around the classroom. A teacher makes a group, sets assignments with a deadline, can switch off elements the students may not use, and grades in the site (grades go in only after the deadline). It links into Moodle, Canvas and Sakai over LTI, has a testbench, exports Verilog and turns Verilog into a circuit. You can build without an account; saving to a dashboard needs one. Caveat: your class depends on a hosted service, and the desktop build is at version 0.0.1.

Falstad’s circuit simulator is an analog simulator that also does logic, with animated current flowing through the parts. It is the one to open when the question is why: its examples include a TTL NAND gate and a CMOS flip-flop at transistor level, next to adders and counters drawn as gates. It also has subcircuits and custom logic chips defined by pattern tables. Caveat: its documentation covers neither test vectors nor HDL export; for a big digital design, use one of the first two.

Nand to Tetris is a course rather than a sandbox: you write chips in its own small HDL, starting from a given Nand gate (Not, And, Or, Xor, Mux in project 1, then half adder, full adder and a 16-bit adder in project 2), all the way to a computer. The project recommends its web IDE now; the Java desktop tools are kept “mainly for backward compatibility”. Caveat: its HDL is not Verilog or VHDL.

LogicSim: Andreas Tetzl’s Java simulator stopped at 2.4 in January 2009. His page is still up, with the download, and points to LogicSim3, a 2020 rewrite by Peter Gabriel whose last release, 3.4, is from June 2020. LogicSim3 cannot open LogicSim 2 files and its manual is German only. Fine for gates and flip-flops; for anything new, pick one of the above.

The advice: Digital for teaching yourself, because the tests make you honest; Logisim-evolution if your course uses it or you want an FPGA board list; CircuitVerse for running a class; Falstad next to any of them, when you want to see what a gate is made of.

Worked exercise: from a half adder to a 4-bit adder, in Digital

Unzip Digital.zip from the releases page and start Digital.sh on Linux or Digital.jar on Windows and macOS. Parts come from the Components menu; right-click a part (control-click on a Mac) to set its label. Labels matter: tests find signals by name.

Step 1: a half adder

Adding two bits gives a sum bit and a carry: S is A XOR B, Co is A AND B.

A B S Co
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1

Place two inputs (Components, IO, Input) labelled A and B, an XOr and an And (Components, Logic), and two outputs labelled S and Co. Wire A and B to both gates, the XOr to S, the And to Co, and save it as halfAdder.dig. Then add Components, Misc., Test case, open its properties and type the truth table:

A B   S Co
0 0   0 0
0 1   1 0
1 0   1 0
1 1   0 1

The first line names the signals; each row sets the inputs and states the outputs. Run it with the test button in the toolbar: green cells match. The carry is called Co rather than C because in a test row a C means “pulse the clock here”, which you will want later for counters.

Step 2: a full adder

A full adder also takes a carry in, Ci. Make fullAdder.dig in the same folder and add two half adders from Components, Custom. The first adds A and B; the second adds that sum and Ci, and its sum is S. Either half adder can produce a carry, never both, so Co is the two carries through an Or. In equations: S = A ⊕ B ⊕ Ci, and Co = A·B + Ci·(A ⊕ B). The test is the eight-row truth table:

A B Ci   S Co
0 0 0    0 0
0 0 1    1 0
0 1 0    1 0
0 1 1    0 1
1 0 0    1 0
1 0 1    0 1
1 1 0    0 1
1 1 1    1 1

Step 3: four full adders in a row

In rcAdder.dig, place nine inputs (Ci, A3 to A0, B3 to B0), five outputs (Co, S3 to S0) and four full adders. Bit 0’s adder takes A0, B0 and Ci; each Co feeds the next adder’s Ci, and the last one is the output Co. The carry ripples up, as in pencil-and-paper addition: hence ripple-carry.

Nobody types 512 rows, so the test generates them:

Ci A3 A2 A1 A0 B3 B2 B1 B0   Co S3 S2 S1 S0
# every pair of 4-bit numbers, with carry-in 0 and 1: 512 rows
loop(a,16)
  loop(b,16)
    0 bits(4,a) bits(4,b)   bits(5,a+b)
    1 bits(4,a) bits(4,b)   bits(5,a+b+1)
  end loop
end loop

bits(4,a) spreads the number a over four columns, most significant first, so it fills A3 to A0. bits(5,a+b) fills Co and S3 to S0: the fifth bit of the sum is the carry out. Lines starting with # are comments.

The same tests run without the window, which is how a teacher checks a pile of submissions:

$ java -cp Digital.jar CLI test rcAdder.dig
unnamed: passed

(“unnamed”: the test case has no label.) The exit status is 0 on a pass and 1 on a fail. Add -tests solution.dig to check the circuit against the test cases of another file, such as your model answer.

What to check

  • All 512 rows pass, not just the sums you tried by clicking.
  • The test can fail. Swap two wires on purpose and run it again. For this article, a copy of the test above with a wrong expectation for Ci = 1 reported failed (50%), and -verbose printed every wrong cell as E: 0 / F: 1: expected, found.
  • The slow path. 1111 + 0001 sends a carry through all four stages. Digital gives every part the same delay, but on real chips that chain sets the speed limit, which is why the 74HC283 below has “fast carry”.
  • The algebra. Analysis, on the menu bar, builds the truth table and expressions from your full adder; compare them with the equations in step 2.

From the screen to real chips

The four-bit adder needs eight XOR gates, eight AND gates and four OR gates: five quad-gate chips, every gate used. For one full adder, one of each chip is enough. Status checked on TI’s product pages on 27 November 2026:

Part (DIP-14 or DIP-16) What it is One full adder Four bits TI, 27 November 2026
SN74HC86N 4 × 2-input XOR 1 2 active, in stock
SN74HC08N 4 × 2-input AND 1 2 active, in stock
SN74HC32N 4 × 2-input OR 1 1 active, in stock
CD74HC283E 4-bit binary full adder with fast carry – 1, instead of all five active, but TI recommends “an alternate” for new designs; out of stock at TI

The three gate chips share one pinout: VCC on pin 14, GND on pin 7, gates on pins 1 and 2 into 3, 4 and 5 into 6, 9 and 10 into 8, 12 and 13 into 11. Pin 1 is next to the notch or dot. Digital’s library has the 7408, 7432 and 7486 with these pin numbers, VCC and GND included: rebuild the adder from them on screen, then copy the wiring pin for pin.

On the breadboard:

  • 5 V, from a USB supply or an Arduino’s 5 V pin. All four chips above run from 2 to 6 V, with an absolute maximum of 7 V: a 9 V battery straight on the rail is well past that.
  • A 100 nF capacitor from pin 14 to pin 7 of every chip, as close as you can get it. TI recommends 0.1 µF.
  • No floating inputs. TI’s datasheets say unused inputs must be held at VCC or GND; an open CMOS input picks up whatever is nearby. Each input gets a 10 kΩ resistor to GND and a switch to 5 V; inputs of unused gates go straight to GND.
  • LEDs through 1 kΩ to GND: about 3 mA with a red LED that drops 2 V. The datasheet specifies HC outputs at 4 mA on a 4.5 V supply, not at 20.
  • Debug with a meter. First 5 V between pins 14 and 7 of each chip; then set the inputs of a failing row from your test and follow the signal gate by gate.

Or to an FPGA

Digital exports the circuit as VHDL or Verilog. For Digilent’s Basys 3, an AMD Artix-7 board, it also writes the pin constraints file; you build the bitstream and program the board in AMD’s Vivado. Logisim-evolution has around thirty boards in its list, the Basys 3 and Terasic’s DE0 and DE10-Lite among them, and runs Vivado, Quartus or ISE for you once you have installed them and set their paths. CircuitVerse exports Verilog for other simulators and FPGA tools, but makes no bitstream itself. Board prices were not checked for this article.

Sources