Examples

Loads into the active layer (existing elements are kept).

Half Adder

A + B → Sum, Carry (gate-level)

arith
6 nodes · 6 wires

Full Adder

A + B + Cin → Sum, Cout

arith
6 nodes · 5 wires

2:1 Multiplexer

S=0 → Y=D0, S=1 → Y=D1

mux
5 nodes · 4 wires

4-bit Adder

A[3:0] + B[3:0] + Cin → S[3:0], Cout

arith
15 nodes · 14 wires

3:8 Decoder

EN + A[2:0] → Y[7:0]

enc
13 nodes · 12 wires

8:3 Priority Encoder

I[7:0] → O[2:0] + GS

enc
13 nodes · 12 wires

4-bit Counter

CLOCK → Q[3:0] (counts up)

seq
9 nodes · 8 wires

ALU (1-bit)

Op: 00=ADD 01=AND 10=OR 11=XOR

arith
8 nodes · 7 wires

SR Latch

S=Set, R=Reset → Q, ~Q

seq
5 nodes · 4 wires

SR Latch from NOR gates

Two cross-coupled NORs: S sets, R resets, S=R=0 holds

seq
6 nodes · 6 wires

Gated D Latch from NANDs

E=1: Q follows D · E=0: Q holds — four NANDs and an inverter

seq
9 nodes · 11 wires

D Flip-Flop from gates

Master-slave: two latches with opposite enables — switch CLK to see the edge

seq
15 nodes · 21 wires

Divide-by-4 from two blocks

One DIV2 block placed twice — each copy keeps its own flip-flop

seq
5 nodes · 4 wires

D Latch

EN=1 → Q follows D

seq
5 nodes · 4 wires

D Flip-Flop

CLK rising edge → Q = D

seq
5 nodes · 4 wires

JK Flip-Flop

J=1,K=0→Set · J=0,K=1→Reset · J=K=1→Toggle

seq
6 nodes · 5 wires

4-bit Register

CLK latches D[3:0] → Q[3:0]

seq
10 nodes · 9 wires

4-bit Shift Register

CLK shifts SI into Q[3:0]

seq
7 nodes · 6 wires

4:1 Multiplexer

S[1:0]: 00→I0 01→I1 10→I2 11→I3

mux
8 nodes · 7 wires

Full Subtractor

A - B - Bin → Diff, Bout

arith
6 nodes · 5 wires

4-bit Comparator

A[3:0] vs B[3:0] → EQ, GT, LT

arith
12 nodes · 11 wires

Binary → Gray Code

B[3:0] → G[3:0]

enc
9 nodes · 8 wires

Parity Checker

A[3:0] → ODD, EVN

enc
7 nodes · 6 wires

7-Segment Display

BCD 4-bit → visual digit 0–9

io
5 nodes · 4 wires

Tri-state Bus

Two TRIBUFs share one wire — enable one at a time

io
7 nodes · 6 wires

Divide-by-2 (Toggle)

D flip-flop with D = NOT Q — halves the clock

seq
4 nodes · 4 wires

Ripple Counter

4 T flip-flops, each clocked by the previous ~Q

seq
10 nodes · 12 wires

Loadable Register

REG4 + a MUX per bit: Load=1 takes new data, Load=0 holds

seq
15 nodes · 21 wires

4-bit LFSR

SHIFT4 with SI = XNOR(Q2, Q3) — 15 states

seq
7 nodes · 8 wires

Decade (BCD) Counter

CNT4 reset by AND(Q1, Q3) — counts 0–9 on a SEG7

seq
5 nodes · 9 wires

Two-digit Counter 00–99

Ones reset pulse clocks the tens

seq
8 nodes · 18 wires

Serializer (UART core)

REG4 → MUX4 stepped by CNT4 → TX wire → SHIFT4 (edit D0–D3)

seq
16 nodes · 21 wires