Built to order

Digital Logic Circuit Simulator Desktop App with Gates and Flip-Flops

This project builds a desktop digital logic circuit simulator where you place AND, OR, NOT, XOR, NAND and NOR gates, wire them together and toggle inputs to watch outputs and truth tables update. It also includes SR, D, JK and T flip-flops with clock control, circuit save and load, and ready-made half adder, full adder, 4-bit counter. Gates evaluate in topological order, and any unconnected input is flagged as 0 with a visible warning, so wrong results stay traceable. Suitable for B.E./B.Tech final-year projects in Computer Science, IT and Electronics & Telecommunication.

Chat on WhatsApp — get a quotation

Computer / IT JavaScriptNode.jsCSSGitElectronHTML5 CanvasJSON circuit filesSoftware
Digital Logic Circuit Simulator Desktop App with Gates and Flip-Flops — project thumbnail preview
More project photos (2)

The problem

A digital logic circuit simulator desktop app is a program that lets a student build logic circuits on screen — placing gates, wiring them together and toggling inputs — and watch the outputs change, without touching a breadboard. This project builds exactly that: a desktop app with six gate types, four flip-flop types, truth tables, a clock and examples such as a half adder, a full adder and a 4-bit counter. Digital electronics is usually taught with breadboards and 74xx chips, where one loose wire can waste a lab session and every truth table has to be worked out by hand. The simulator removes that friction: a circuit that takes an hour to wire can be assembled in minutes, and every input combination can be checked against a truth table, while an unconnected input is flagged instead of silently giving a wrong output. Because the app runs the same Boolean logic as the chips, the learning transfers to the lab.

This is a built-to-order software project: the complete desktop app source code, the working demo and the complete viva kit (report, PPT, Q&A) are prepared fresh for you.

Builder note from the demo build: the simulator evaluates gates in topological order — a gate is only computed after all of its inputs are known — and the first version of the demo let unconnected inputs float silently, which produced outputs that looked plausible but were wrong; the shipped build treats every unconnected input as 0 and flags it in the build-notes panel, because the single most common beginner mistake is a forgotten wire.

SYSTEM FLOW

5 components 4 connections

Live flow
Drag to explore
100%
userInput switches

A, B and Cin toggled by the student

How it works

Building a circuit in this simulator follows four visible stages: place a gate, connect it, simulate it and observe the result. The student picks a gate from the palette and clicks on the canvas to place it, then drags a wire from one gate's output to another gate's input to connect them. The simulator then evaluates the whole circuit in topological order — a gate is computed only after all of its inputs are known — and repeats the pass until every output is stable, which takes 2 passes for the half adder in the demo. Outputs appear as lit LEDs and as 0/1 values, wires change colour with the signal, and the truth-table panel recomputes for every input combination. For sequential circuits, the clock button steps the flip-flops one edge at a time, so the student watches the 4-bit counter advance and the D flip-flop capture its input exactly on the rising edge.

  1. Pick a gate (AND, OR, NOT, XOR, NAND or NOR) or a flip-flop (SR, D, JK or T) from the palette and click on the canvas to place it.
  2. Drag from a gate's output port to another gate's input port to draw a wire; the wire turns green when it carries logic 1.
  3. Click an input circle to toggle it between 0 and 1; every downstream gate re-evaluates immediately.
  4. Read the outputs on the LED circles and check the truth-table panel, which the simulator computes by running every input combination.
  5. For flip-flops, press the clock pulse button: each flip-flop samples its inputs and updates its stored bit only on that rising edge.
  6. Load a ready-made example — half adder, full adder, D flip-flop or 4-bit counter — to study a working circuit, or save the circuit to a JSON file to reopen it later.

Tech stack:

  • JavaScript
  • Electron
  • HTML5 Canvas
  • Node.js
  • JSON circuit files
  • CSS
  • Git

Comparison

Aspect This logic simulator Breadboard + 74xx ICs Generic online simulator
Building a circuit Drag gates, click to wire Physical wiring, loose wires Varies, often no save
Truth tables Computed live for every input combination Worked out by hand Usually shown, sometimes static
Flip-flops SR, D, JK and T with clock control Needs clock wiring and extra chips Often only a D flip-flop
Mistakes Unconnected inputs flagged on screen Silent wrong output Rarely flagged
Cost to experiment Free, unlimited circuits ICs, wires and breadboard per build Free tier limits apply
Parameter Value
Gate types 6 — AND, OR, NOT, XOR, NAND, NOR
Flip-flop types 4 — SR, D, JK, T
Truth-table rows (3-input circuit) 8 rows (computed live)
Counter states 16 states (4-bit, 0–15)
Gates per circuit Up to 40 gates (design target)
Simulated gate delay 10 ns per gate level (simulated value, not measured)
Clock Manual pulse + auto-run at approximately 1 pulse per second (design value)
Circuit file format JSON save/load
Platform Windows, macOS and Linux via Electron (design target)
Demo Single-file HTML demo, runs offline in a browser

Project features

The strongest parts of this logic circuit simulator are its six gate types with live evaluation, its four clocked flip-flops, its computed truth tables and its ready-made example circuits. The gate palette covers AND, OR, NOT, XOR, NAND and NOR, and every gate output updates the moment an input changes, with wires coloured green for logic 1 and grey for logic 0 so the signal flow is visible at a glance. The flip-flops — SR, D, JK and T — are genuinely clocked: they only change state on a rising clock edge, exactly like the real devices. Truth tables are not typed in by hand; the app computes them by running the simulator for every input combination, so the table always matches the circuit. The examples — half adder, full adder, D flip-flop and 4-bit counter — load in one click and give the student a working circuit to study before building their own.

  • [Six gate types with drag-and-drop wiring] AND, OR, NOT, XOR, NAND and NOR gates can be placed on the canvas and wired by dragging from an output to an input. Outputs update the moment an input toggles, and wires show green for logic 1 and grey for logic 0.
  • [Four clocked flip-flops: SR, D, JK and T] Each flip-flop stores one bit and changes state only on a rising clock edge. The D flip-flop captures its input on the edge, JK toggles when J and K are both 1, and SR flags its forbidden S = R = 1 combination instead of hiding it.
  • [Live truth tables computed by the simulator] The truth-table panel is generated by running the circuit for every input combination — 4 rows for a 2-input circuit, 8 rows for a 3-input circuit — so the table always matches the circuit on screen.
  • [Manual and auto clock with pulse control] The clock can be pulsed one edge at a time to step through a counter, or run automatically at approximately 1 pulse per second so the 4-bit counter visibly counts from 0 to 15.
  • [Ready-made example circuits] A half adder, a full adder, a D flip-flop with clock and a 4-bit synchronous counter load in one click, each with its own computed truth table or live state display.
  • [Save and load circuits] Circuits can be saved to a JSON file and reloaded later, so a student can build a circuit in one session and demonstrate it in the next without rebuilding it.
  • [Unconnected-input guard and invalid-state flag] Any input left unwired is treated as 0 and flagged in the build-notes panel, and an SR flip-flop driven with S = R = 1 shows an invalid-state warning instead of a misleading output.

What is included

  • Complete desktop app source code (Electron + JavaScript simulator engine)
  • Working single-file web demo of the simulator with 4 example circuits
  • Gate and flip-flop truth-table reference sheets
  • Project report PDF (background, Boolean algebra, methodology, screenshots, limitations)
  • PPT presentation for final review
  • Viva Q&A preparation document (gates, truth tables, flip-flops, counters, 74xx IC mapping)

Limitations & prerequisites

  • The simulator models ideal logic only — it does not simulate real propagation delays, fan-out limits, voltage levels or power draw of physical chips.
  • Gate delay shown in the app is a simulated value (10 ns per gate level), not a measured figure from any real IC.
  • The desktop app is a teaching simulator, not an EDA tool — it has no Verilog/VHDL export, timing analysis or PCB layout.
  • Circuits are limited to the six gate types and four flip-flop types in the palette; there is no analogue or mixed-signal simulation.
  • Save files use a JSON format specific to this app and cannot be opened in other simulators.
  • The demo runs in a browser with circuits kept in memory; the full desktop build is needed for file save and load.

Frequently Asked Questions

What does the logic circuit simulator actually do?

It is a desktop app that lets you build digital logic circuits on screen: place AND, OR, NOT, XOR, NAND and NOR gates, connect them with wires, toggle inputs and watch outputs and truth tables update live, with SR, D, JK and T flip-flops and a clock for sequential circuits. The demo runs the same engine in a browser, so the viva demonstration works even without installing the desktop build, and the report explains the Boolean algebra behind every gate.

How are the truth tables generated?

Every truth table in the app is computed by actually running the simulator for each input combination — 4 rows for a 2-input circuit and 8 rows for a 3-input circuit — instead of being typed in from a textbook, so the table always matches the circuit on screen. The full adder's 8-row table shows Sum = A XOR B XOR Cin and Cout = AB + Cin(A XOR B), which the student can verify row by row against the standard full-adder truth table.

Which flip-flops are included and how does the clock work?

All four standard flip-flop types are included — SR, D, JK and T — and each one changes state only on a rising clock edge, exactly like the real device, with the D flip-flop capturing its input, JK toggling when both inputs are 1, and T toggling when T is 1. The SR flip-flop flags its forbidden S = R = 1 input instead of hiding it, and the clock can be pulsed one edge at a time or run automatically at approximately 1 pulse per second.

Can circuits be saved and reused?

Yes — any circuit can be saved to a JSON file that records every gate, flip-flop, wire and input value, and reloaded later for further work or for the viva demonstration, so nothing has to be rebuilt from scratch in a later session. The four ready-made examples (half adder, full adder, D flip-flop and 4-bit counter) are supplied as saved circuits, so the student starts from a working circuit rather than an empty canvas.

Does it replace breadboard lab work?

No — the simulator prepares for breadboard work rather than replacing it, because it is where a circuit is designed and its truth table verified quickly, while the breadboard is where the same circuit is built with real 74xx chips to learn wiring. The report includes the IC mapping (7400 NAND, 7402 NOR, 7404 NOT, 7408 AND, 7432 OR, 7486 XOR) so the simulated gates can be matched to physical chips.

Is this project suitable for a final-year project?

Yes — it fits Computer Science, IT and Electronics & Telecommunication programmes, because it covers Boolean algebra and combinational design through the adders, sequential design through the flip-flops and counter, and software engineering through the simulator engine itself: topological evaluation, event-driven updates and a save format the student designed. The working demo gives the guide something concrete to test in the review, and the report documents every design decision.

Components & software requirements
  • JavaScript
  • Electron
  • HTML5 Canvas
  • Node.js
  • JSON circuit files
  • CSS
  • Git

Comparison

Aspect This logic simulator Breadboard + 74xx ICs Generic online simulator
Building a circuit Drag gates, click to wire Physical wiring, loose wires Varies, often no save
Truth tables Computed live for every input combination Worked out by hand Usually shown, sometimes static
Flip-flops SR, D, JK and T with clock control Needs clock wiring and extra chips Often only a D flip-flop
Mistakes Unconnected inputs flagged on screen Silent wrong output Rarely flagged
Cost to experiment Free, unlimited circuits ICs, wires and breadboard per build Free tier limits apply
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation