Skip to the content
2 layers56 × 38 mmVideoULA Programmer, the printed circuit board in 3D

VideoULA Programmer

kgl2001/VideoULA_V03

VideoULA replacement for BBC Micro - 44 pin ATF1504AS version

Size
56 × 38 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
34
Pads
55
Tracks, vias
78, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Sep 2026
Updated
4 Sep 2026

Overview

VideoULA Programmer is an open-source printed circuit board by kgl2001, from the kgl2001/VideoULA_V03 repository on GitHub. It is a 2-layer board of 56 × 38 mm with 10 parts on 34 nets, routed with 78 tracks and 0 vias.

Its parts include 2 connectors, 1 resistor, 1 IC and 1 switch. It belongs with the interfaces and adapters boards of this library.

README

README.md

VideoULA V03 — BBC Micro Video ULA Replacement

44-pin Atmel ATF1504AS CPLD Version

This repository contains the hardware design and firmware for the VideoULA V03, a drop-in replacement for the VC2069 Video ULA (IC6) in the Acorn BBC Micro Model B and Master 128.


Project Overview

The original BBC Micro Video ULA (IC6) is a custom ASIC that is no longer manufactured. Failed or missing ULAs result in a non-functional machine. This project provides a modern replacement using a CPLD and a small external SRAM for palette storage.

There are three hardware versions of this replacement, each in a separate repository:

VersionCPLDMacrocellsToolRepository
V01Xilinx XC9572XL-10-VQ4472ISE 14.7VideoULA_V01
V02Xilinx XC9572XL-10-VQ6472ISE 14.7VideoULA_V02
V03Atmel ATF1504AS-10AU4464Quartus 13.0 SP1This repo

All three versions share the same 28-pin DIP footprint as the original ULA and are pin-compatible with the BBC Micro motherboard.


V03 Hardware

  • CPLD: Atmel ATF1504AS-10AU44 (64 macrocells, 5V) — still in production
  • SRAM: ISSI IS62C256AL-45TLI (32K×8, 5V, TSOP-28, 45ns) — only locations 0-15 and bits 0-3 used
  • Oscillator: 48MHz SMD oscillator (3225 package, 5V) — optional in 16MHz mode
  • Clock buffer: 74LVC1G17 (SOT-23) — Schmitt trigger buffer on 16MHz CLK_IN
  • No LDO required — everything runs at 5V

Key differences from V01/V02

  • 5V CPLD — ATF1504AS operates at 5V throughout, no LDO required
  • Higher output voltage — 5V logic outputs directly compatible with Master 128 custom ICs requiring higher logic 1 voltage; no output clock buffering needed
  • Still in production — ATF1504AS is actively manufactured by Microchip, unlike the obsolete XC9572XL
  • 64 macrocells — slightly fewer than the XC9572XL's 72, but sufficient for the design (52/64 used in 48MHz build)
  • Quartus 13.0 SP1 — uses Altera/Intel Quartus instead of Xilinx ISE
  • Separate CLK_16M and CLK_48M GCK pins — no solder bridge needed to switch modes

Hardware Revisions

RevisionStatusChanges
Rev01PCB designed, not yet built or testedInitial release

Firmware

The firmware is written in Verilog and built using Altera Quartus 13.0 SP1. The same Verilog source file (src/VideoULA.v) is shared between V02 and V03.

The Quartus project targets the EPM7064STC44-10 device — the Altera MAX7000S equivalent of the ATF1504AS, which Quartus supports natively. The .pof output is converted to a .jed file using the pof2jed utility for programming the ATF1504AS.

Operating Modes

Two firmware builds are required — one per operating mode. Both CLK_16M and CLK_48M are wired to dedicated GCK pins, so no hardware changes are needed to switch modes — simply reprogram the CPLD with the appropriate .jed file.

48MHz Mode (recommended)
  • Uses the onboard 48MHz oscillator as the master clock
  • Generates all BBC clock outputs (8/4/2/1MHz, CRTC, 6MHz) internally
  • Provides clean, phase-locked 6MHz output for the SAA5050 teletext chip (tD ≈ 20ns ✓)
  • Works reliably on all machines from cold power-up
  • Build: uncomment `define CLK_48MHZ in VideoULA.v
16MHz Mode
  • Uses the BBC motherboard's 16MHz clock as the master clock (via Schmitt trigger buffer)
  • The 48MHz oscillator is optional in 16MHz mode:
    • Not fitted: BBC's existing 6MHz circuit drives the SAA5050 as normal
    • Fitted: CPLD generates clean phase-locked 6MHz output (connect via IC37 replacement board)
  • Build: uncomment `define CLK_16MHZ in VideoULA.v

Quartus Build Instructions

  1. Open Altera Quartus 13.0 SP1
  2. Open VideoULA.qpf
  3. Select the operating mode by uncommenting the appropriate define in src/VideoULA.v
  4. Run Start Compilation (Ctrl+L)
  5. Convert the output .pof file to .jed using pof2jed
  6. Program the ATF1504AS using the V03 programmer board (see below)

Programming the ATF1504AS

Unlike V01 and V02, the V03 board does not have an onboard JTAG connector. This is because the ATF1504AS shares its JTAG pins with I/O pins used by the BBC Micro bus interface — they cannot be used for JTAG programming while the board is installed in the computer.

To program the V03 board, a dedicated programmer board is required. This programmer:

  • Accepts the V03 VideoULA board as a plug-in module
  • Is powered from the BBC Micro auxiliary power socket (Molex +5V/+12V connector)
  • Has a switch to select between normal I/O mode and JTAG programming mode
  • Has a standard JTAG header for connection to a compatible JTAG programmer (e.g. running ATMISP)

The KiCAD design files for the programmer board and FreeCAD design files for a suitable enclosure are included in this repository.

Programming procedure:

  1. Remove the V03 board from the BBC Micro
  2. Insert the V03 board into the programmer
  3. Connect the programmer to the BBC Micro auxiliary power socket
  4. Connect a JTAG programmer to the JTAG header on the programmer board
  5. Set the switch to JTAG programming mode
  6. Program the .jed file using ATMISP or compatible software
  7. Set the switch back to I/O mode
  8. Remove the V03 board from the programmer and reinstall in the BBC Micro

Quartus Warning Suppression

The following warnings are suppressed in the .qsf and are expected/harmless:

MessageReason
15705Unused clock port pin assignment (expected when only one clock mode is built)
20028Parallel compilation not licensed — informational only
199027Output file format — .pof is generated correctly
332174, 332049Timing analysis informational messages
335095TimeQuest latch analysis — no latches in design

SRAM Wiring

The external SRAM stores the 16-entry colour palette (4 bits per entry):

SRAM PinConnection
A0-A3CPLD SRAM_ADDR[0:3]
A4-A14GND (tie low)
D0-D3CPLD SRAM_DATA[0:3] (bidirectional)
D4-D7Leave unconnected
/WECPLD SRAM_nWE
/OEGND (always output enabled)
/CSGND (always selected)

6MHz Clock for Mode 7 (Teletext)

  • 48MHz mode: CLK_6M pin provides clean phase-locked 6MHz (tD ≈ 20ns ✓). Connect to SAA5050 via IC37 replacement board.
  • 16MHz mode, oscillator fitted: CLK_6M provides clean phase-locked 6MHz, self-correcting every 1µs. Connect via IC37 replacement board.
  • 16MHz mode, oscillator not fitted: CLK_6M output ignored. BBC motherboard's existing 6MHz circuit used as normal.

PCB Design Notes

The PCB has been designed using KiCAD V10 as a 2-layer board. It can easily be changed to a 4-layer board with GND/Power planes on the inner layers if signal integrity is a concern.

JLCPCB Fabrication

The board design includes a 5×5mm silkscreen box on the underside of the PCB. This is used by JLCPCB to position a QR code serial number. When ordering from JLCPCB:

  • Select Specify position in the QR code / 2D barcode options during the ordering process
  • If this option is not selected, JLCPCB will print the 5×5mm silkscreen box as-is and attempt to place the QR code at a different location of their choosing

If not using JLCPCB, the chosen fabricator will likely print the 5×5mm box as a plain white square on the PCB. To avoid this, remove the silkscreen box from the PCB design and regenerate the Gerber files before submitting.

Assembly

A combined CPL (Component Placement List) and BOM (Bill of Materials) Excel file is included in the Gerbers folder. This can be used directly with the JLCPCB PCBA (PCB Assembly) service.

Note that the JLCPCB Economy PCBA process only assembles components on one side of the PCB. Select the top side for assembly — this leaves only the SRAM and its associated decoupling capacitor to be hand soldered to the underside of the board.


Known Limitations

  • SCART/HDMI adapter compatibility: Some SCART→HDMI display adapters may show minor pixel artefacts with non-standard screen modes. RGBtoHDMI and direct CRT connections are not affected.

Compatibility

Designed for BBC Micro Model B and Master 128. The 5V CPLD outputs are directly compatible with the higher logic 1 voltage required by some Master 128 custom ICs.


Credits

  • Ken Lowe — PCB design, Verilog development and testing
  • hoglet (Stardot forums) — Clock architecture analysis, DRAM timing analysis, community testing
  • Stardot community — Testing, feedback and suggestions

Licence

Hardware: Creative Commons BY-SA 4.0

Firmware: MIT Licence

Parts

10
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_2.7mm_M2.5_ISO14580H1, H2, H3, H4
11KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1Conn_01x04VideoULA:conn_hdd_15-24-4441J1
1JTAG_IDCConnector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_VerticalJ2
1SW_SPDTVideoULA:SW_SS12D00SW1
1SkidogVideoULA:skidog_invG1
1VC2069 SocketPackage_DIP:DIP-28_W15.24mm_SocketIC1

More from kgl2001/VideoULA_V03

1
  • 2 layers17.8 × 35.6 mmVideoULA, the printed circuit board in 3D

    VideoULA

    kgl2001/VideoULA_V03

    VideoULA replacement for BBC Micro - 44 pin ATF1504AS version

    19 parts

Similar boards

  • 2 layers57 × 55.2 mmLogicAnalyzer, the printed circuit board in 3D

    LogicAnalyzer

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    10 parts5.1kGPL-3.0
  • 2 layers32.2 × 15.4 mmProtector, the printed circuit board in 3D

    Protector

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    10 parts4.3kMIT
  • 2 layers26 × 18 mmConn, the printed circuit board in 3D

    Conn

    yaqwsx/KiKit

    Automation tools for KiCAD

    10 parts2.1kMIT
  • 2 layers44.3 × 30.5 mmLime2-SATA RevA, the printed circuit board in 3D

    Lime2-SATA RevA

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    10 parts1.5k
  • 2 layers17.8 × 43.2 mmNano Adapter, the printed circuit board in 3D

    Nano Adapter

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    10 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    10 parts1kGPL-3.0

Questions

How big is the VideoULA Programmer PCB?

It measures 56 × 38 mm and has 2 copper layers, 1.6 mm thick.

What parts does the VideoULA Programmer use?

10 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 VideoULA Programmer KiCad files?

From the kgl2001/VideoULA_V03 repository on GitHub, at the commit this page was made from: the board is KiCAD Files/Rev01 - Programmer/VideoULA_Programmer.kicad_pcb and its schematic KiCAD Files/Rev01 - Programmer/VideoULA_Programmer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the VideoULA Programmer design in my own project?

Its repository states no licence, so its author keeps all rights: ask kgl2001 before reusing the design.