Skip to the content
2 layers233.4 × 280 mmCft board0, the printed circuit board in 3D

Cft board0

alexiosc/cft6

The CFT homebrew minicomputer

Size
233.4 × 280 mm
Copper layers
2
Thickness
1.6 mm
Parts
299
Nets
472
Pads
2,202
Tracks, vias
6,463, 1,866
Pours
5
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
15 Aug 2019
Updated
5 Mar 2022

Overview

Cft board0 is an open-source printed circuit board by alexiosc, from the alexiosc/cft repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 233.4 × 280 mm with 299 parts on 472 nets, routed with 6,463 tracks and 1,866 vias.

It is built around the 74HC541D, 74HCT541D and 74LVC1G125, with the 74AC541SC, 74ACT245M and 74LVC1G17Z among its other parts. Its parts include 110 capacitors, 85 ICs, 53 resistors, 11 diodes and 3 connectors.

Main components

12

README

README.md

CFT Logo

The CFT Home-Brew 16-bit Mini-Computer

The CFT is a home-designed, home-built mini-computer made from scratch.

I've designed and built the instruction set, data path, processor, computer, software stack, cross-assembler, emulator, software toolchain and even some of the tools needed to do all this. You can call this a ‘fantasy mini’.

This project has been going since approximately 2001, in my Copious Free Time.

Audience

There isn't one, so I couldn't tell you what it's like. This project has been online since 2005 and it's been noticed by four or five people. Not quite enough for statistics.

This is a personal project, and the repository is made public as a curiosity. Expect everything to be wrong, broken, or dangerous.

Why?

Because it's fun.

To see how it's done.

To recall Those Heady Times.

To prove to myself I can do this.

What?

The CFT is a long-term project built in my Copious Free Time. (a term used, as always, sarcastically, hence the name) It's a homebrew, self-designed, self-built Sixties-style 16-bit mini computer built out of 74-family integrated circuits. Check out the ChangeLog for the current status.

There may possibly be more stuff to look at, at https://www.bedroomlan.org/cft.

The project consists of:

  • The CFT processor.
  • Peripherals and cards, some implementing extensions to the CFT instruction set.
  • A front panel with blinkenlights.
  • A case for the lot.
  • Documentation for everything, including the website and this.
  • A cross-toolchain for working on the computer from a PC.

The CFT Processor

  • A 4 MHz clock. (250ns processor cycle)
  • 16-bit word length. No byte access.
  • 24-bit memory address bus.
  • 16-bit I/O bus shared with the address bus. (the lower 1,024 addresses are easier to use)
  • All instructions are exactly one 16-bit word long.
  • Some instructions follow the PDP-8 ‘microcoded’ format with bitfields cotrolling combinations of actions. Bitwise negation, two's complement negation and incrementation are the same instruction with slightly different options.
  • A relatively simple instruction set inspired by the PDP-8. This has moved on to something slightly more reminiscent of a modern processor.
  • Microcoded design.
  • Accumulator based architecture.
  • Four user-accessible 16-bit registers with increment and decrement. Only the Accumulator (AC) is general purpose.
  • PDP-8 style magic addresses working like auto-increment or auto-decrement index registers, or stack pointers.

Peripherals

I originally sat down with Eagle CAD and went crazy with it. I had 50 sheets of schematics for boards, all with a three-letter designator:

  • MEM: A memory board with 512 KWords of RAM and 512 KWords of ROM.
  • TTY: A quadruple serial board including both DCE and DTE connections, and a TTL one for an FTDI USB adaptor.
  • INT: 8-interrupt controller board.
  • IDE: Twin IDE bus interface for up to four drives.
  • RTC: A real-time card with some NVRAM and three or six programmable timers.
  • ETH: An offloaded Ethernet interface using the WIZ812 chip.
  • KBD: A PS/2 Keyboard interface in pure discrete logic.
  • PSG: A sound board with one or two AY-3-8910 chips and a SpeakJet® speech synthesiser.
  • PFP: A Programmer's Front Panel capable of debugging microcode as well as full machine code.
  • DEB: A DEBugging card to help diagnose problems with the hardware using a remote controller. (this was basically a simple, slow, specialised logic analyser)
  • FDC: A Floppy Drive Controller for up to four drives, including 8-inch 50-pin ones.
  • GIO: General Purpose I/O board including some digital I/O, two Atari-style digital joystick ports, a unidirectional parallel printer port, four user-controllable LEDs on the front panel (the PFP already had 16) and (on a whim) a cassette tape interface.
  • MBU: processor extension to allow 21-bit memory addressing (up to 2 MWords).
  • µCB: processor extension to allow multiple versions of microcode to co-exist. (I had spare space in the Microcode ROMs)
  • VDU: a graphics card that does text at 80×25 and 40×25, and graphics at combinations of 160, 320, 640 columns and 100, 200, 400 rows with 64 colours.

The currently planned peripherals are much more modest in scope, but they also morphed quite a bit. The processor can now do 24-bit addressing natively, the current microcode uses all of the available ROM space and a bunch of cards have joined forces. The current state of affairs looks like this:

  • MEM: (tentative design) 512 kWords or 1 MWord of RAM, 512 KWords of ROM. Multiple cards can be installed. If density allows, there'll be more chip sockets for RAM.
  • INT: 8 interrupt controller board.
  • DFP: a big card containing both a remote debugging system and front panel drivers.
  • TTY: serial port card, possibly colocated with…
  • IDE: one or two IDE sockets for two or four IDE drives. (or CF cards, but I like the possibility of having some clunky old drive)
  • SND: MIDI sound output. Possibly collocated with…
  • VDU: a graphics card that does text at 80×30 and 40×30, and graphics at combinations of 160, 320, 640 columns and 120, 240, 480 rows using 64 colours. The new VDU card fits inside a CPLD and also includes a PS/2 interface.
  • RTC: Real-time clock, timers.

I've built the MEM and DFP boards to pre-2019 specs and the computer was working on them.

The 2019 redesign goes for proper PCBs for everything, so things are taking a little extra time.

Front Panel

I was really proud of the front panel before the 2019 redesign, it worked great and showed the computer's entire status. There's support for up to 160 lights, 31 switches and two keylocks for that PDP-8 feel.

The downside was the wiring: there were no fewer than five 50-wire ribbon cables going to this crazy bastard.

The 2019 redesign keeps the layout, but can no longer display as much of the computer's status on the front panel. I'm working on it. On the upside, it now serialises data transmission and only a single 40-pin cable is needed.

To cut costs, the original front panel was made out of eight modules, each with up to 20 LEDs. The new front panel is made out of four modules, each with up to 40 LEDs. Each module daisy-chains to the next.

Switches are mounted on a separate plate and wired to a break-out board, or the closest front panel modules on the 2019 version.

The Case

Two words: wood paneling. Well, and a black acrylic front piece. The rest will depend on how big the card cage gets, but I'll scratch make the case out of sheet aluminium and wood.

Documentation

There's just too much of it. The documentation was initially in LaTeX and got up to 500 pages before I gave that up and started converting it to HTML.

The 2019 redesign will need a redo of most of this, sadly, but the current documents for hardware that's currently around are available at https://www.bedroomlan.org/hardware/cft/book/.

Software and Hardware Tools

I had to make my own tools for some of this, and wanted to make my own for some other parts.

Hardware tools include Flashprog, a zero-parts flash programmer with a modern serial interface. The interface formed the basis of the DEB and DFP cards' remote debugging interface and I'm quite happy with it.

Software tools include:

  • The Microcode Assembler, also available on Github as https://github.com/alexiosc/mcasm.
  • The CFT Assembler, written purely in Python and roughly based on PDP-8 Assemblers, but with some modern extras like namespaces and simple macros.
  • Too many emulators to speak of!
    • A basic microcode-level emulator in Python to verify the original design. This one is dead and buried, but still in the repository.
    • A Verilog emulator used to verify the hardware.
    • A C emulator that's fast enough to run software on.
    • A Javascript microcode-level emulator that runs on the web. It's very slow, but it shows how the front panel works.
    • A newer JS-based emulator meant to me much faster. Still largely in the works, because I prefer the C-based emulator for testing.
  • A testing framework that can run test suites on any emulator we can use.
  • A basic Operating System for the CFT.
  • A self-documenting Forth interpreter written in Assembly and Forth.

Parts

299
QtyValueFootprintReferences
85100nFalexios:C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1001, C1003, C1004, C1005, C1006, C1014, C1101, C1102, C1104, C1105, C1201, C1202, C1301, C1302, C1303, C1401 +69
314.7kΩalexios:R_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1001, R1002, R1004, R1005, R1014, R1016, R1101, R1102, R1201, R1401, R1501, R1601, R1602, R1604, R1605, R1606 +15
1874HC541alexios:DIP-20_W7.62mm_SocketU403, U407, U409, U410, U605, U608, U1102, U1105, U1201, U1202, U1301, U1303, U1801, U1802, U1803, U1804 +2
1074HC574alexios:DIP-20_W7.62mm_SocketU402, U406, U408, U604, U1101, U1104, U1302, U1705, U1706, U1707
9100Ωalexios:R_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderR921, R923, R1007, R1008, R1009, R1010, R1011, R1012, R1405
9120pFalexios:C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderC921, C923, C1007, C1008, C1009, C1010, C1011, C1012, C1405
947µFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1, C2, C3, C4, C5, C6, C7, C8, C9
874HC193alexios:DIP-16_W7.62mm_SocketU201, U203, U206, U208, U301, U303, U306, U308
874HCT541alexios:DIP-20_W7.62mm_SocketU202, U204, U205, U207, U302, U304, U305, U307
716V8alexios:DIP-20_W7.62mm_SocketU601, U602, U901, U1401, U1610, U1611, U1901
6680Ωalexios:R_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderR602, R901, R902, R904, R1402, R1404
6LED_ALTalexios:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD601, D901, D902, D903, D1402, D1404
574HC74alexios:DIP-14_W7.62mm_SocketU606, U902, U904, U1402, U1603
5CUS520alexios:SOD-323D1001, D1004, D1501, D1502, D1503
410kΩResistor_THT:R_Array_SIP9RN601, RN1301, RN1601, RN1602
430Ωalexios:R_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1003, R1015, R1017, R1019
310kΩResistor_THT:R_Array_SIP6RN1603, RN1701, RN1702
310µFalexios:C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1711, C1712, C1713
374LVC1G125alexios:SOT-23-5_HandSolderingU906, U907, U1006
3AT27C020alexios:PLCC32U1701, U1702, U1703
210kΩalexios:R_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderR601, R1603
21kΩalexios:Potentiometer_Bourns_67WRV901, RV902
222pFalexios:C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderC920, C922
274AC541alexios:DIP-20_W7.62mm_SocketU501, U503
274AC74alexios:DIP-14_W7.62mm_SocketU1403, U1404
274ACT245alexios:DIP-20_W7.62mm_SocketU909, U910
274HC139alexios:DIP-16_W7.62mm_SocketU1003, U1506
274HC251alexios:DIP-16_W7.62mm_SocketU1501, U1505
2SolderJumper_3_Bridged23alexios:SolderJumper-3_P1.3mm_Bridged23_RoundedPad1.0x1.5mmJP1601, JP1603
10Ωalexios:R_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1018
110kΩResistor_THT:R_Array_SIP5RN1201
11μFalexios:C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1016
147µFalexios:C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1002
16116SA15TPGalexios:DIP-24_W7.62mm_SocketU603
174AC08alexios:DIP-14_W7.62mm_SocketU1502
174AC157alexios:DIP-16_W7.62mm_SocketU1005
174AC161alexios:DIP-16_W7.62mm_SocketU1902
174AC191alexios:DIP-16_W7.62mm_SocketU1004
174AC257alexios:DIP-16_W7.62mm_SocketU1704
174AC32alexios:DIP-14_W7.62mm_SocketU1503
174HC138alexios:DIP-16_W7.62mm_SocketU401
174HC14alexios:DIP-14_W7.62mm_SocketU903
174HC590alexios:DIP-16_W7.62mm_SocketU1001
174HC85alexios:DIP-16_W7.62mm_SocketU1601
174HC86alexios:DIP-14_W7.62mm_SocketU1504
174LVC1G17alexios:SOT-23-5_HandSolderingU1002
1CFT-2021-Peripheral-Busalexios:DIN41612_B_3x32_HorizontalP2
1CFT-2021-Processor-Busalexios:DIN41612_B_3x32_HorizontalP1
1CXO_DIP8alexios:Oscillator_DIP-8-socketX1
1C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderalexios:C_SMD_0805_2012Metric_Pad1.15x1.40mm_HandSolderSPARE
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_HorizontalJ1001
1DIP-20_W7.62mm_Socketalexios:DIP-20_W7.62mm_SocketSPARE
1LOGOalexios:CFTG***
1SolderJumper_3_Bridged12alexios:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP1602
1tactile_switchButton_Switch_THT:SW_Tactile_SPST_Angled_PTS645Vx39-2LFSSW1001

The 280 most common of 299 parts.

More from alexiosc/cft

12
  • 2 layers233.4 × 280 mmProtoboard, the printed circuit board in 3D

    Protoboard

    alexiosc/cft

    The CFT homebrew minicomputer

    8,208 parts6GPL-3.0
  • 2 layers233.4 × 280 mmCft board1, the printed circuit board in 3D

    Cft board1

    alexiosc/cft

    The CFT homebrew minicomputer

    269 parts6GPL-3.0
  • 2 layers233.4 × 280 mmCft dfp, the printed circuit board in 3D

    Cft dfp

    alexiosc/cft

    The CFT homebrew minicomputer

    227 parts6GPL-3.0
  • 4 layers622.7 × 375.7 mmCft ctl, the printed circuit board in 3D

    Cft ctl

    alexiosc/cft

    The CFT homebrew minicomputer

    215 parts6GPL-3.0
  • 4 layers131.9 × 164.6 mmCft ctl dip, the printed circuit board in 3D

    Cft ctl dip

    alexiosc/cft

    The CFT homebrew minicomputer

    215 parts6GPL-3.0
  • 2 layers131.9 × 164.6 mmTic layout1, the printed circuit board in 3D

    Tic layout1

    alexiosc/cft

    The CFT homebrew minicomputer

    184 parts6GPL-3.0
  • 2 layers99.7 × 143.4 mmCft front panel-1951, the printed circuit board in 3D

    Cft front panel-1951

    alexiosc/cft

    The CFT homebrew minicomputer

    164 parts6GPL-3.0
  • 2 layers131.9 × 164.6 mmCft bus, the printed circuit board in 3D

    Cft bus

    alexiosc/cft

    The CFT homebrew minicomputer

    152 parts6GPL-3.0

Similar boards

  • 2 layers160 × 100 mmColor, the printed circuit board in 3D

    Color

    Noah1989/loopmicro

    An 8-bit microcomputer for the 21st century

    78 parts2MIT
  • 2 layersVideoBoard, the printed circuit board in 3D

    VideoBoard

    Cptscorcher/Excallibur-64

    A reimagining of the seminal Excalibur 64 Computer

    126 partsGPL-3.0
  • 2 layers101.6 × 83.8 mmZ80DevBoard, the printed circuit board in 3D

    Z80DevBoard

    dbuchwald/Z80DevBoard

    Simple Z80 based prototyping and development board designed as extension to Arduino Mega 2560

    39 parts3MIT
  • 2 layers88.9 × 88.9 mmByteMachine, the printed circuit board in 3D

    ByteMachine

    c0pperdragon/ByteMachine

    A generic main board to build 8-bit computers

    46 parts20
  • 4 layers324.3 × 185.6 mmGriffin, the printed circuit board in 3D

    Griffin

    bradgrantham/griffin

    An M68000 homebrew SBC. See the design notes.

    305 partsApache-2.0
  • 2 layersBreadBin, the printed circuit board in 3D

    BreadBin

    c0pperdragon/BreadBin

    A CPU made of 7400 logic on breadboards - inside a bread bin ;-)

    45 parts18
  • 2 layers70 × 99 mmCC1, the printed circuit board in 3D

    CC1

    etherkit/CC1

    CC1 CW QRP Transceiver

    209 parts11
  • 2 layers172.7 × 108.6 mmClementina hardware, the printed circuit board in 3D

    Clementina hardware

    fran150/clementina-hardware

    KiCad schematic for Clementina, a 3.3V W65C02S computer with a Raspberry Pi Pico 2 W (MIA) handling video, audio, storage and I/O.

    48 partsGPL-3.0

Questions

How big is the Cft board0 PCB?

It measures 233.4 × 280 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Cft board0 use?

299 parts, built around the 74HC541D, 74HCT541D, 74LVC1G125 and 74AC541SC. 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 Cft board0 KiCad files?

From the alexiosc/cft repository on GitHub, at the commit this page was made from: the board is kicad/cft/cft-board0/cft-board0.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cft board0 design in my own project?

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