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

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