Logicarium

Logicarium Documentation

A node-based logic gate editor and simulator

Welcome to the Logicarium documentation! Build digital logic circuits visually or through code.

New to Logicarium?

Start with the Quick Start guide to build your first circuit in under 60 seconds.

Getting Started

Scripting

Libraries & Files

Resources


Quick Reference

Built-in Gates

GateInputsOutputsDescription
AND21Output HIGH if both inputs HIGH
NOT11Inverts the input
In01Interactive input (switch/button)
Out10Visual output (LED)

Basic Syntax

// Define a node
Type name @ x, y [flags]

// Connect nodes
source.out -> target.in

// Define a custom gate
define GateName(in1, in2) -> (out1):
  out1 = in1 AND in2
end

Functional Completeness

With just AND and NOT, you can build any digital circuit:

// OR gate using De Morgan's Law
define OR(a, b) -> (out):
  na = NOT a
  nb = NOT b
  t = na AND nb
  out = NOT t
end

// From here, build XOR, MUX, adders, even a CPU!

On this page