

Condition Control
a custom 16bit cpu
- Size
- 100 × 100 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 16
- Nets
- 55
- Pads
- 129
- Tracks, vias
- 331, 23
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 8.0 (file 20240108)
- Created
- 9 Jun 2024
- Updated
- 20 Oct 2024
Overview
Condition Control is an open-source printed circuit board by Shmerlard, from the Shmerlard/SH8 repository on GitHub. It is a 2-layer board of 100 × 100 mm with 16 parts on 55 nets, routed with 331 tracks and 23 vias.
It is built around the 74LS04PC and 74LS32SC. Its parts include 8 ICs and 4 connectors.
Main components
2README
README.mdThe shmerlard 16
hi, my name is elad and Im an electrical engineering student in Ben gurion university. I designed a small 16bit cpu, with a mix of jdh8, src, msp430 and the Hack computer. this is still a work in progress, but so far it works.
I used logisim for the logic design, draw.io for the diagrams.
in order to see the working cpu in logisim: you need to build version 3.9.0 from source here, then just open the .circ file.
Specs
- a common 16-bit data and address bus
- a total of 128kB of usable memory
- 6 GP register (up to 14 available)
- modular design for easy troubleshooting
- port for outside connections
Contents
- Registers
- Instruction Register
- Program Counter
- ALU
- Control Unit
- Memory Registers
- Condition Logic
- Shift Control
- Gallery
Instruction set
0x00: NOP
0x01: MOV Ra/#, Rb | Ra/# -> Rb
0x02: ST Ra/#, Rb/# | Ra/# -> M[Rb]/
0x03: PUSH Ra/# | Ra/# -> @SP; SP--
0x04: POP Ra | SP++; @SP -> Ra
0x05: ADD Ra/#, Rb | Ra/# + Rb -> Rb
0x06: ADDC Ra/#, Rb | Ra/# + Rb + c -> Rb
0x07: SUB Ra/#, Rb | Rb - Ra/# -> Rb
0x08: CMP Ra/#, Rb | Rb - Ra/#
0x09: SHR Ra/#, Rb | SHR Rb (Ra/# times) -> Rb
0x0A: SHL
0x0B: RRC Ra/#, Rb | RRC Rb (Ra/# times) -> Rb
0x0C: RLC
0x0D: AND Ra/#, Rb | Ra/# AND Rb -> Rb
0x0E: OR Ra/#, Rb | Ra/# OR Rb -> Rb
0x0F: XOR Ra/#, Rb | Ra/# XOR Rb -> Rb
0x10: NOT
0x11: CALL DST | PC -> @SP; DST -> PC; SP-- -> SP;
0x12: RET
0x13: JMP DST | DST -> PCfor more simulated instructions see: Simulated Instructions
Registers
0: SP/REG0 : STACK pointer
1: SR/REG1 : Status register
2: REG2 : GP Input
3: REG3 : GP Output
4: REG3 : GP
5: REG4 : GP
6: REG5 : GP
7: REG6 : GPMemory
the memory ranges from 0x0000 to 0xFFFF.
the memory is mapped in the following way:
0x0000 - 0x7FFF: GP ROM (32KiB ROM)
0x8000 - 0xBFFF: GP RAM (16KiB RAM)
0xC000 - 0xCFFF: VRAM (4KiB RAM) #CURRENTLY NOT IN USE#
0xD000 - 0xFFFF: NOT IN USE (12KiB UNUSED)Instruction format
The instruction register is a 16-bit register
the format is XXXX-XUMM-SSSS-DDDD
X = the opcode of the instruction
U = Currently not in use
M = indicates the addressing mode
S = indicates the source register
D = indicates the destination register(see addressing modes) for more info
Full diagram
for the full gallery go to Gallery

Parts
16| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | MountingHole_Pad | MountingHole:MountingHole_2.2mm_M2_DIN965_Pad | H1, H2, H3, H4 |
| 3 | 74LS04 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U1, U3, U8 |
| 2 | 74LS08 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U4, U6 |
| 2 | 74LS32 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U5, U7 |
| 2 | Conn_01x02_Socket | Connector_JST:JST_XH_S2B-XH-A-1_1x02_P2.50mm_Horizontal | J3, J4 |
| 1 | 74LS138 | Package_DIP:DIP-16_W7.62mm_Socket_LongPads | U2 |
| 1 | Conn_01x03_Socket | Connector_JST:JST_XH_S3B-XH-A-1_1x03_P2.50mm_Horizontal | J2 |
| 1 | Conn_01x04_Socket | Connector_JST:JST_XH_S4B-XH-A-1_1x04_P2.50mm_Horizontal | J1 |
More from Shmerlard/SH8
9- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

- 2 layers100 × 100 mm

Similar boards
- 2 layers237.5 × 102.9 mm

Instruction
jes/scamp-cpu
A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.
112 parts301Unlicense - 2 layers370.8 × 298.5 mm

8 Bit Computer
The-Invent0r/8-bit-Computer-PCB
These are the KiCAD files for my 8-Bit Computer.
323 parts142 - 2 layers134.6 × 208.3 mm

- 2 layers114.3 × 106.7 mm

- 2 layers407 × 184 mm

TRS-80-Model I G E1
RetroStack/TRS-80-Model-I-G-E1
Hardware Replica of the TRS-80 Model I Revision G
230 parts57MIT - 4 layers337.6 × 105.7 mm

ISA CGA
hkzlab/CGA_Redux
The Color Graphics Adapter Redux board is a more or less faithful clone of the original IBM CGA, based on the original schematics
170 parts56 - 2 layers350 × 224.3 mm

- 2 layers100 × 100 mm

Questions
How big is the Condition Control PCB?
It measures 100 × 100 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Condition Control use?
16 parts, built around the 74LS04PC and 74LS32SC. 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 Condition Control KiCad files?
From the Shmerlard/SH8 repository on GitHub, at the commit this page was made from: the board is KiCad/Condition_Control/Condition_Control.kicad_pcb and its schematic KiCad/ALU/ALU_Extra/ALU_Extra.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Condition Control design in my own project?
Its repository states no licence, so its author keeps all rights: ask Shmerlard before reusing the design.