Repository navigation
Starting off
A (hopefully) comprehensive guide on how to use LGL (Logic Gate Lab) and its 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.
There are two primary ways to access the app.
- Use the latest version from the web here
- Download it to run on your device from the releases page
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)
To drag blocks around, switch to the move tool from the sidebar*.
The sidebar*. The cursor
represents select mode. Use this mode to interact with the menus. The link
represents connect mode. This functions similarly to the connector tool. The 4 way arrows
represents move mode. Use this mode to drag the blocks around.
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.
- Add two switches, one AND gate, and one lamp
- Use move mode
to drag them to organize - Hold
spaceand connect the inputs and outputs OR use the connect tool
. - 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
* Sidebar and its accompanying tools were introduced in version v1.1.0.
Logic gate lab, a project by EF0601. https://ef0601.github.io/Logic-gate-lab/
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.