Skip to the content
4 layers106.4 × 95 mmIsavideo, the printed circuit board in 3D

This is a modified version of the Graphics Gremlin ISA CGA/MDA graphics card to include a HDMI port.

Size
106.4 × 95 mm
Copper layers
4
Thickness
1.6 mm
Parts
142
Nets
287
Pads
909
Tracks, vias
2,186, 255
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
28 Oct 2024
Updated
31 Oct 2024

Overview

Isavideo is an open-source printed circuit board by ianhan, from the ianhan/graphics-gremlin-gizmo repository on GitHub. It is a 4-layer board of 106.4 × 95 mm with 142 parts on 287 nets, routed with 2,186 tracks and 255 vias.

It is built around the ICE40HX4K-TQ144, 74HCT125PW and ADA4891-3ARZ, with the SST26VF080A-104I/SN, TFP410PAP and 74ALVC164245DL among its other parts. Its parts include 53 resistors, 43 capacitors, 12 ICs, 8 connectors and 3 diodes. It belongs with the interfaces and adapters boards and the FPGA and CPLD boards of this library.

Main components

10

README

README.md

Graphics Gremlin HDMI

This is a modified version of the Graphics Gremlin ISA CGA/MDA graphics card to include a HDMI port. This is still based on the same Lattice ICE40HX4K FPGA.

(A production run has been made for this board. You can contact explit[at]mailbox[dot]org if you wish to purchase a unit.)

The latest revision now displays CGA colour 6 brown correctly. Since this project builds on the original project, it carries over some emulation inaccuracies in demos like 8088MPH and other applications.

Top view of board including the metal bracket.

Left is the original Graphics Gremlin, right is my modified design.

Demo videos

Changes from original project

  • Hardware changes
    • Added HDMI port by removing the RGBI DE9 port. Port positions adjusted to ease trace routing.
    • Added TI TFP410 DVI transmitter (HDMI is compatible with DVI). HDMI is independent of the VGA/Composite output.
    • Test points for inputs to DVI transmitter.
    • Replaced the 3.3VDC 1A linear regulator with 3A as TFP410 is power hungry at up to 1A.
    • Added pin headers for power.
    • Added LED power indicators for 5V and 3.3V.
    • 2-layer -> 4-layer board to ease routing.
  • HDL code changes
    • Selectable MDA colours (HDMI only)
    • Removed normal MDA bitstream as there is no more RGBI port.
    • Added CGA 70Hz mode.
    • Added CGA 60Hz overscan mode for demo and debug purposes.
    • Modified Scandoubler code to support Display Enable signal as required by DVI chip but not VGA.

Readme of the original Graphics Gremlin project can be found here.

How to replicate this board and use it?

  1. Fabrication guidelines

  2. Flashing FPGA bitstream

  3. Testing the board

  4. Usage guide below:

Switches position

Switches 1 and 2 for MDA

These colours are applicable for the HDMI section only.

12MDA colour
openopenGreen
openclosedYellow
closedopenWhite
closedclosedRed

Sample of the different colours when testing the card on my 486 PC.

Switches 1 and 2 for CGA

SwitchCGA
1closed=composite mode. open=VGA mode
2closed=thin font. open=normal font

Note that VGA and Composite cannot be used simultaneously. No change from original Graphics Gremlin. HDMI will work on all modes.

Switches 3 and 4

34BitstreamFunction
openopenBitstream 0MDA 70Hz
openclosedBitstream 1CGA 70Hz
closedopenBitstream 2CGA 60Hz
closedclosedBitstream 3CGA 60Hz with overscan

CGA 60 and 70Hz

After internal scandoubling, the CGA 60Hz will produce a 640x400x60Hz output suitable for most VGA monitors. While this works for the HDMI LCD monitors I have tested, it is technically below the DVI specification of a minimum of 640x480x60Hz and 25.175Mhz pixel clock.

To meet the specification in case some monitors insist, I have added another mode CGA 70Hz which will produce 640x400 at 70Hz. (Actually 71Hz due to precision limitations of clock multiplying) This 70Hz is however not compatible with composite displays including the one inside IBM5155.

CGA 60Hz with overscan

The CGA overscan bitstream will show the overscan sections beyond the usual display area just short of Hsync and Vsync. Overscan is used in some demos like Area 5150. However not all HDMI monitors can accept this signal and/or display this properly.

I notice that while a monitor may initially accept this mode, tendency is it will randomly throw you display errors later.

The purpose of this mode is just for debug and demo purposes.

Development info

Directory structure

text
|-- fab: Gerbers, BOM and PDF schematic
|-- images: Images used in this repo
|-- isa-video: Kicad Design files
|-- verilog: Updated Verilog code to support HDMI
|-- vga_display_status: Vivado project to process ICE40 FPGA output to DVI transmiter that runs on my Mimas A7 FPGA board.
|-- 3d-bracket: Step and STL file for a 3D-printable bracket

Verilog Toolchain

To compile the project, I used the following open source tool-chain on my Ubuntu running on WSL on Windows 11.

bash
sudo apt install libftdi-dev cmake

sudo apt install build-essential libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libboost-filesystem-dev libboost-iostreams-dev libeigen3-dev

sudo apt install tclsh clang tcl-dev libreadline-dev bison flex

# Icestorm
git clone https://github.com/YosysHQ/icestorm.git icestorm
cd icestorm
make -j$(nproc)
sudo make install
cd ..

# NextPNR
git clone https://github.com/YosysHQ/nextpnr nextpnr
cd nextpnr
cmake -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local .
make -j$(nproc)
sudo make install
cd ..

# Yosys
git clone https://github.com/YosysHQ/yosys.git yosys
cd yosys
make -j$(nproc)
sudo make install

To program the bitstream to the board, I used iceprog -p from OSS CAD Suite. Follow the flash instructions.

Code compilation

In my Ubuntu WSL:

bash
cd verilog
mkdir build
make
bash
# Program my provided bitstream
iceprog -p isavideo.binm

# Program newly compiled bitstream
iceprog -p build/isavideo.binm

Special handling for brown colour

The PCB and code treats the palette value "I:0 R:1 G:1 B:0" specially to produce a brown instead of dark yellow as per the CGA standard.

verilog
// video[1] is the original green value
assign hdmi_grn = video[1] ^ (hdmi_red & video[1] & (hdmi_blu ^ 1) & (hdmi_int ^ 1));
assign hdmi_grn_int = hdmi_int ^ (hdmi_red & video[1] & (hdmi_blu ^ 1) & (hdmi_int ^ 1));

This is done using the above boolean logic to lower the green value by using the dedicated hdmi_green_int pin. This logic is provided by @spbnick.

My IBM 5155 running the CGA Compatibility Tester displaying the colour palatte.

Testing with Mimas A7 (Xilinx Artix 7)

As part of my testing, I also made a small FPGA test project using another FPGA board Mimas A7 based on the Xilinx Artix 7.

The FPGA test board reads the raw RGBI, HS, VS, DE and CLK signals that are given to the DVI transmitter and displays the output using its own HDMI output.

The code is heavily based on the HDMI_FPGA project by Dominic Meads and runs on Vivado 2023.

Releases

  • 2.1 (9 Aug 2021): Initial release for GG (HDMI)
  • 2.2 (17 Sept 2023): Extra Green control line for TFP410
  • 2.3 (13 Oct 2023): Corrected VGA port footprint bug
  • 2.4 (4 Jan 2024): Kicad 7.10, cleaned up schematic errors, removed unused traces, update pcb symbols and 3D models, cleaned up BOM. (No functional difference with 2.3)

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See https://creativecommons.org/licenses/by-sa/4.0/.

Parts

142
QtyValueFootprintReferences
231uCapacitor_SMD:C_0603_1608MetricC1, C10, C11, C13, C14, C15, C16, C17, C20, C21, C22, C23, C24, C25, C26, C27 +7
1310KPassive:RESC1608X55R1, R2, R3, R4, R5, R8, R9, R14, R15, R20, R23, R24, R27
90.1uFCapacitor_SMD:C_0603_1608MetricC35, C36, C37, C38, C39, C40, C41, C42, C43
910kResistor_SMD:R_0603_1608MetricR35, R38, R40, R41, R43, R44, R47, R49, R50
7DNIResistor_SMD:R_0603_1608MetricR34, R36, R37, R39, R46, R48, R53
64.7uCapacitor_SMD:C_0603_1608MetricC3, C5, C6, C12, C18, C19
6604Passive:RESCAV80P320X160X70-8RN1, RN2, RN3, RN4, RN5, RN6
510Passive:RESC1608X55R6, R7, R10, R25, R26
575Passive:RESC1608X55R16, R17, R18, R19, R31
4300Passive:RESCAV80P320X160X70-8RN7, RN8, RN9, RN10
310uF 16VCapacitor_SMD:C_0603_1608MetricC32, C33, C34
3237Passive:RESC1608X55R28, R29, R30
374ALVC164245Active:TSSOP50P810X120-48U3, U4, U5
3BLM18RK601SN1Dlibraries:BEADC1608X95NFL1, FL2, FL3
3FiducialFiducials:Fiducial_1mm_Dia_2mm_OuterFID1, FID2, FID3
2100Passive:RESC1608X55R21, R22
210uF 16VCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C4
21200Resistor_SMD:R_0603_1608MetricR32, R42
2YellowLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1, D2
10Resistor_SMD:R_0603_1608MetricR33
110029449-111RLFlibraries:HDMI_A_Amphenol_10029449-111J4
110MHzPassive:XTAL320X250X120-4X1
114.318MHzPassive:XTAL320X250X120-4X2
11AResistor_SMD:R_1206_3216MetricF1
11KPassive:RESC1608X55R13
12200Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR12
133kResistor_SMD:R_0603_1608MetricR52
1510Resistor_SMD:R_0603_1608MetricR51
15kResistor_SMD:R_0603_1608MetricR45
174HCT125Active:TSOP65P640X110-14U11
1ADA4891-3Active:SOP127P620X175-14U6
1AP2114HA-1.2Active:SOT230P700X170-3U9
1APX803S00-29SA-7Active:SOT95P230X117-3U10
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ7
1Conn_02x06_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x06_P2.54mm_VerticalJ8
1Conn_ISA_8bitConn:BUS_PC_8BITJ5
1DB15_Female_HighDensity_MountingHoleslibraries:23117631J2
1DNIPassive:RESC1608X55R11
1GreenLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD3
1ICE40HX4K-TQ144Active:TSQFP50P2200X2200X160-144U1
1IS61WV5128BLL-10KLIActive:SOJ127P1118X376-36U7
1LD1085D2T33RPackage_TO_SOT_SMD:TO-263-2U8
1LOGOISAVideo:gremlinG***
1LOGOISAVideo:graphics_gremlinG***
1MNT_KEYSTONE_9200Conn:MNT_KEYSTONE_9200MH1
1PJRAN1X1U04Xlibraries:SWITCHCRAFT_PJRAN1X1U04XJ3
1PROGConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ1
1RFMODConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1SST26VF080A-104I/SNActive:SOP127P620X175-8U2
1SW_DIP_x04Switch:SW_DIP254P762X635-8SW1
1TFP410PAPlibraries:TFP410_ThermalViasU12

Similar boards

  • 2 layers106.4 × 95 mmIsavideo, the printed circuit board in 3D

    Isavideo

    schlae/graphics-gremlin

    Open source retro ISA video card

    99 parts582CC-BY-SA-4.0
  • 4 layers180.3 × 211.3 mmFor real 486, the printed circuit board in 3D

    For real 486

    Xeraster/32bit_486_motherboard

    A completely DIY 486 motherboard. Even the chipset is a DIY fpga thing. This version has a 32 bit front side bus and a 16 bit ISA bis

    256 parts18GPL-3.0
  • 4 layers72 × 75 mmNrf52480 Dev board, the printed circuit board in 3D

    Nrf52480 Dev board

    brendena/Nordic_Pebble_Steel

    The goal of this project is to replace the main motherboard in the pebble steel with newer parts. Specifically the cpu will be a Nordic NRF52840.

    75 parts9
  • 2 layers97.8 × 75 mmPicotronix, the printed circuit board in 3D

    Picotronix

    5aji/picotronix

    Raspberry Pi Pico board to drive Tektronix 603/604 vector displays.

    46 parts
  • 6 layers135 × 90 mmAnalog Calc V2, the printed circuit board in 3D

    Analog Calc V2

    NiclasBaumgart/AnalogCalculationCircuit

    370 parts
  • 2 layers100 × 25 mmTEENSY 4.0 AUDIO TOOLKIT, the printed circuit board in 3D

    TEENSY 4.0 AUDIO TOOLKIT

    JayShoe/TEENSY_4.0_AUDIO_TOOLKIT

    The Teensy 4.0 Audio Toolkit Shield is an open source project for learning about, designing, and rapid-prototyping custom Audio PCBs using the Teensy Audio Library.

    58 parts10
  • 2 layers37.1 × 67.1 mmPmod composite, the printed circuit board in 3D

    Pmod composite

    gardners/pmod-composite

    PMOD composite output board for FPGAs

    40 parts5

Questions

How big is the Isavideo PCB?

It measures 106.4 × 95 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Isavideo use?

142 parts, built around the ICE40HX4K-TQ144, 74HCT125PW, ADA4891-3ARZ and SST26VF080A-104I/SN. 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 Isavideo KiCad files?

From the ianhan/graphics-gremlin-gizmo repository on GitHub, at the commit this page was made from: the board is isa-video/isavideo.kicad_pcb and its schematic isa-video/RAM.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Isavideo design in my own project?

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