Clemente36 downloadsDraw logic gate circuits and generate truth tables from a simple text code block.
Draw logic circuits, truth tables, Karnaugh maps, and timing diagrams straight from a plain-text code block.
(a,b) AND (c)
(c,b) XOR (d)
(d) NOT (y)

@help — drop @help into a block for a full in-app reference with live examples.One gate per line: (inputs) GATE (output).
(a,b) XOR (sum)
(a,b) AND (carry)
Signals no gate drives are the inputs; signals nothing uses are the outputs. Names may contain letters, digits, and _. Comments start with # or //.
Directives (at the top of a block):
| Directive | Effect |
|---|---|
@help |
Show the reference above the circuit. |
@hide table / @show kmap |
Toggle table, expr, diagram, kmap, timing. |
@simplify structural (or @reduce) |
Draw a reduced circuit. Methods: structural, best, sop, pos, nand, nor, off. |
@bubbles |
Bubble-pushing view; click a gate to flip it by hand. |
@compact |
Merge truth-table rows that don't depend on some inputs (shown as X). |
@delay 0.5 / @delay random / @delay off |
Per-gate delay (0–30 s, or random 0–5 s). |
@timing-graph / @timing-animation / @timing-both |
Delay on, with the chosen timing view. |
The separate Logic Graph – Image Import extension turns a picture of a circuit into a block, entirely on your device. Install both plugins to use it; this plugin works fully without it. See that extension's README for details.
<vault>/.obsidian/plugins/<id>/.(You only need the import extension if you want to import from images.)
I'll respond as soon as I can.
If Logic Graph saves you time, you can buy me a coffee or support the project on Patreon — it genuinely helps and keeps the plugin free for everyone.