Skip to content
EF0601 edited this page Jul 13, 2026 · 2 revisions

Starting off

A (hopefully) comprehensive guide on how to use LGL (Logic Gate Lab) and its applications.

Applications

LGL, or Logic Gate Lab, was created to help with computer science (such as boolean algebra). It focuses on components that are used to build a computer, allowing users to create complex logic circuits. It has since then expanded to incorporate the decimal system, not just the binary system.

Opening the app

There are two primary ways to access the app.

  1. Use the latest version from the web here
  2. Download it to run on your device from the releases page

Basic controls

To add a block, open the menu (Window > menu) or press m. Click the name of the block you wish to add to add.

To connect an output to an input, use the connector tool by holding space. While holding space, press two inouts to connect them. Data will flow from the input to output. Alternatively, use the connect tool from the sidebar.

Important: In LGL, the inputs are above the title of the block. The outputs are below the title of the block. The binary-decimal and decimal-binary convertors are exceptions. See the picture below: (yellow are inputs, and blue are outputs)

Inputs and outputs

To drag blocks around, switch to the move tool from the sidebar*.

Sidebar

The sidebar*. The cursor Cursor icon represents select mode. Use this mode to interact with the menus. The link Connect tool icon represents connect mode. This functions similarly to the connector tool. The 4 way arrows Drag tool icon represents move mode. Use this mode to drag the blocks around.

Example

Let's simulate an AND gate to try out LGL. We will use switches to change the inputs of the AND gate, and a lamp for the output.

  1. Add two switches, one AND gate, and one lamp
  2. Use move mode Drag tool icon to drag them to organize
  3. Hold space and connect the inputs and outputs OR use the connect tool Connect tool icon.
  4. Test. The lamp should only light up when the output of the AND gate is 1 (true). This only happens if both switches are on.
v1-1-2-starting-off-demo.mov

Notes

* Sidebar and its accompanying tools were introduced in version v1.1.0.

Logic Gate Lab Wiki

Use this wiki to learn more about the components and circuits you can make in LGL (Logic Gate Lab). This wiki is a work-in-progress, and I plan on explaining each logic component and mechanism in the simulation.

Try LGL with no downloads on the web.

Problems or feedback? Submit them on the Github issues page.

Contribute or check out the source code on GitHub.

Clone this wiki locally