Skip to the content
2 layers10.5 × 31 mmGate inv 1bit, the printed circuit board in 3D

Gate inv 1bit

tmarhguy/alu48

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

Size
10.5 × 31 mm
Copper layers
2
Thickness
1.6 mm
Parts
4
Nets
4
Pads
8
Tracks, vias
8, 0
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
21 Jul 2025
Updated
5 Jun 2026

Overview

Gate inv 1bit 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 10.5 × 31 mm with 4 parts on 4 nets, routed with 8 tracks and 0 vias.

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

4
QtyValueFootprintReferences
1NMOSPackage_TO_SOT_THT:TO-92L_Inline_WideQ2
1NOT_INTestPoint:TestPoint_Pad_D2.0mmTP1
1NOT_OUTTestPoint:TestPoint_Pad_D2.0mmTP2
1PMOSPackage_TO_SOT_THT:TO-92L_Inline_WideQ1

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 layers41 × 35.5 mmFlags, the printed circuit board in 3D

    Flags

    tmarhguy/alu

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

    26 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

Similar boards

  • 2 layers18.5 × 26 mm24g2usb rp2350zero, the printed circuit board in 3D

    24g2usb rp2350zero

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    4 parts1.7kApache-2.0
  • 2 layers116 × 33 mm966595-1 and 963356-1, the printed circuit board in 3D

    966595-1 and 963356-1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    4 parts1.2k
  • 2 layers19 × 18 mmDaughter board, the printed circuit board in 3D

    Daughter board

    hackclub/OnBoard

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

    4 parts915
  • 2 layers24.8 × 24.8 mmNrf24 breakout, the printed circuit board in 3D

    Nrf24 breakout

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    4 parts803MIT
  • 2 layers26 × 20 mmCap chain, the printed circuit board in 3D

    Cap chain

    drandyhaas/KiCadRoutingTools

    A set of Python/Rust tools to aid routing in KiCad

    4 parts744MIT
  • 2 layers34.7 × 20 mmXG Station Power MSI, the printed circuit board in 3D

    XG Station Power MSI

    osy/XG_Mobile_Station

    Open source eGPU dock for ROG Ally and ROG Flow

    4 parts712CC-BY-4.0
  • 2 layers20.3 × 24.5 mmJack power input, the printed circuit board in 3D

    Jack power input

    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.

    4 parts546MIT

Questions

How big is the Gate inv 1bit PCB?

It measures 10.5 × 31 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Gate inv 1bit use?

4 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 Gate inv 1bit KiCad files?

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

Can I use the Gate inv 1bit 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).