Skip to the content
PCBKitNew board
2 layers41 × 35.5 mmFlags, the printed circuit board in 3D

8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

Size
41 × 35.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
51
Pads
100
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 9.0 (file 20241229)
Created
21 Jul 2025
Updated
5 Jun 2026

Overview

Flags is an open-source printed circuit board by tmarhguy, from the tmarhguy/alu repository on GitHub, published under the MIT licence. It is a 2-layer board of 41 × 35.5 mm with 26 parts on 51 nets.

Its parts include 24 transistors and 2 connectors. It belongs with the retro computing and games boards of this library.

README

schematics/kicad/boards/flags/README.md

Flags Generation Board

Comparison and status flag generation


Function

Generate 4 flags for ALU status and comparison:

  • LESS: A < B (magnitude comparison)
  • EQUAL: A == B (equality check)
  • POSITIVE: OUT > 0 (positive result)
  • COUT: Carry out (from adder)

Schematic

![Flags Schematic](../../../../media/schematics photos svg/flags.svg) Flags generation circuit


Flag Implementations

EQUAL Flag (~100T)

Function: Detect A == B

Logic:

text
EQUAL = ~((A[7] XOR B[7]) | (A[6] XOR B[6]) | ... | (A[0] XOR B[0]))

Implementation:

  • 8× XOR gates (96T)
  • 8-input NOR gate (16T)

LESS Flag (~120T)

Function: Detect A < B

Logic: Cascaded priority comparison (MSB first)

Implementation: ~120T comparator logic

POSITIVE Flag (~20T)

Function: Detect OUT > 0

Logic:

text
NOT_ZERO = OUT[7] | ... | OUT[0]
POSITIVE = ~OUT[7] & NOT_ZERO

COUT Flag (0T)

Function: Pass carry from adder

Implementation: Direct wire


Signals

Inputs:

  • A[7:0], B[7:0] - For comparison
  • OUT[7:0] - For POSITIVE detection
  • COUT_IN - From adder

Outputs:

  • LESS, EQUAL, POSITIVE, COUT

Last Updated: 2026-01-16

Parts

26
QtyValueFootprintReferences
12NMOSPackage_TO_SOT_SMD:TSOT-23Q201, Q210, Q211, Q212, Q213, Q214, Q215, Q216, Q301, Q304, Q401, Q404
12PMOSPackage_TO_SOT_SMD:TSOT-23Q202, Q203, Q204, Q205, Q206, Q207, Q208, Q209, Q302, Q303, Q402, Q403
1Conn_01x12_PinConnector_Harwin:Harwin_Gecko-G125-FVX1205L0X_2x06_P1.25mm_VerticalJ101
1Conn_01x16_PinConnector_Harwin:Harwin_Gecko-G125-MVX1605L0X_2x08_P1.25mm_VerticalJ102

Questions

How big is the Flags PCB?

It measures 41 × 35.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Flags use?

26 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Flags KiCad files?

From the tmarhguy/alu repository on GitHub, at the commit this page was made from: the board is schematics/kicad/boards/flags/flags.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Flags design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

More from tmarhguy/alu

12
  • 2 layers110 × 117 mmAdd sub, the printed circuit board in 3D

    Add sub

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    200 parts48MIT
  • 2 layers101 × 68 mmLed panel 1, the printed circuit board in 3D

    Led panel 1

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    131 parts48MIT
  • 2 layers78.5 × 68.5 mmLed panel 2, the printed circuit board in 3D

    Led panel 2

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    129 parts48MIT
  • 2 layers98.5 × 95.5 mmMain logic, the printed circuit board in 3D

    Main logic

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    122 parts48MIT
  • 2 layers59 × 63 mmMain control, the printed circuit board in 3D

    Main control

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    42 parts48MIT
  • 2 layers43.5 × 50.5 mmLed panel 3, the printed circuit board in 3D

    Led panel 3

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    35 parts48MIT
  • 2 layers77.5 × 43 mmGate xnor 2in, the printed circuit board in 3D

    Gate xnor 2in

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    19 parts48MIT
  • 2 layers72 × 42.5 mmGate xor 2in, the printed circuit board in 3D

    Gate xor 2in

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    19 parts48MIT
  • 2 layersGate and 4in, the printed circuit board in 3D

    Gate and 4in

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    10 parts48MIT
  • 2 layers42.5 × 32.5 mmGate and 2in, the printed circuit board in 3D

    Gate and 2in

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    9 parts48MIT
  • 2 layers57.5 × 36 mmGate or 2in, the printed circuit board in 3D

    Gate or 2in

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    9 parts48MIT
  • 2 layers18.5 × 32.8 mmGate nand 2in, the printed circuit board in 3D

    Gate nand 2in

    tmarhguy/alu

    8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests

    7 parts48MIT

Similar boards

  • 2 layers57.3 × 19 mm11ua, the printed circuit board in 3D

    11ua

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    26 parts990GPL-3.0
  • 2 layers98 × 59.5 mmMCP23017 PCB, the printed circuit board in 3D

    MCP23017 PCB

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    26 parts915
  • 2 layers142.9 × 98.5 mmCantor MX, the printed circuit board in 3D

    Cantor MX

    diepala/cantor

    Cantor keyboard, a 42 key diodeless split keyboard.

    26 parts756GPL-3.0
  • 2 layers103.8 × 50 mmGalagino pcb set, the printed circuit board in 3D

    Galagino pcb set

    harbaum/galagino

    A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32

    26 parts558
  • 2 layers20.3 × 34.8 mmL0 ESP32, the printed circuit board in 3D

    L0 ESP32

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    26 parts546MIT
  • 2 layers40.6 × 50.8 mmWALTsm, the printed circuit board in 3D

    WALTsm

    google/walt

    A device for measuring latency of physical sensors and outputs on phones and computers

    26 parts474Apache-2.0
  • 2 layers158.5 × 75 mmDoj v2, the printed circuit board in 3D

    Doj v2

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    26 parts463