Skip to the content
2 layers100 × 68 mmFirst fpga pcb, the printed circuit board in 3D

FPGA dev board based on Lattice iCE40 8k

Size
100 × 68 mm
Copper layers
2
Thickness
1.6 mm
Parts
70
Nets
151
Pads
428
Tracks, vias
1,071, 85
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
30 Dec 2019
Updated
3 Aug 2020

Overview

First fpga pcb is an open-source printed circuit board by mattvenn, from the mattvenn/first-fpga-pcb repository on GitHub. It is a 2-layer board of 100 × 68 mm with 70 parts on 151 nets, routed with 1,071 tracks and 85 vias.

It is built around the IS25LP016D-JBLE, TLV73312PDBV and TLV73333PDBV. Its parts include 22 capacitors, 13 resistors, 9 connectors, 5 diodes and 4 ICs. It belongs with the fPGA and programmable logic boards and the FPGA and CPLD boards of this library.

Main components

3

README

README.md

Aim

  • Make my first PCB with an FPGA
  • Keep it super simple and cheap
  • Configured by on-board FLASH or direct with a Raspberry Pi
  • 6 PMODs, 2 buttons, 2 LEDs, FLASH for configuration bitstreams.

There is also an ECP5 version of this board: https://github.com/mattvenn/basic-ecp5-pcb

What a Lattice iCE40 FPGA needs

  • A clock input. Has to be provided by an oscillator, it doesn't have a crystal driver.
  • 1.2v core supply for the internal logic.
  • 2.5v non volatile memory supply. Can be provided via a voltage drop over a diode from 3.3v.
  • IO supply for the IO pins, different banks of IO can have different supplies. This design uses 3.3v for all banks.
  • Get configured over SPI interface. This can be done directly by a microcontroller or a computer, or the bitstream can be programmed into some FLASH, and the FPGA will read it at boot. If FLASH isn't provided then the bitstream needs to be programmed at every power up or configuration reset.
  • Decoupling capacitors for each IO bank.

PCB

board

BOM

  • FPGA iCE40-HX4K-TQ144 (8k accessible with Icestorm tools)
  • 3.3v reg TLV73333PDBVT
  • 1.2v reg TLV73312PDBVT
  • 12MHz oscillator SIT2001BI-S2-33E-12.000000G
  • 16MB FLASH IS25LP016D-JBLE (optional).

Test

See the test program. This makes a nice pulsing effect on LED2, and LED1 is the slow PWM clock. The buttons increase or decrease pulsing speed.

text
make prog

Yosys and NextPNR are used to create the bitstream and then it's copied to the Raspberry Pi specified by PI_ADDR in the Makefile.

Fomu-Flash is used to flash the SPI memory, or program the FPGA directly.

HW V3: bfcbcf7

  • fixed mistakenly removed pullups on io2/3 on SPI flash. This made the system vulnerable to noise while FPGA was reading flash.

HW V2: 444ba78

  • removed a few unnecessary pullups on SPI lines - introduced a fault see HW V3.
  • connect 4 general purpose pins between Pi & FPGA
  • connect additional CS1 pin for SPI comms with Pi
  • breakout all Pi pins on separate pins
  • shrink board in y axis slightly for even holes and to fit larger Pi boards
  • Allow an I2C connection between Pi & FPGA, broken out on pmod p3:
    • Place optional 4k7 pullup resistors R1&R2
    • Setup bitbanged I2C on Raspi on gpios 20 & 21 (pins 38 & 40)
  • used FOMU programming pins so default FOMU programming app will work

HW V1: d9c7cdf

Errata

  • didn't expose a 2nd CS pin so can't communicate with SPI without removing flash

My fork of Fomu-Flash is used for programming. Fomu-Flash should be able to reconfigure the pins used with -g, but I couldn't get this to work, so I hard-coded the right pins in this fork.

Inspiration

Reference

Parts

70
QtyValueFootprintReferences
17100nCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C4, C5, C6, C7, C8, C10, C11, C16, C17, C18, C19, C20, C23 +1
810kResistor_SMD:R_0805_2012MetricR1, R2, R3, R4, R5, R8, R10, R11
6Conn_02x06_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x06_P2.54mm_HorizontalJ3, J4, J5, J6, J7, J8
5200RResistor_SMD:R_0805_2012MetricR6, R9, R12, R13, R14
41uCapacitor_SMD:C_0805_2012MetricC12, C13, C14, C15
4LEDLED_SMD:LED_0805_2012MetricD1, D3, D4, D5
4MountingHole_PadMountingHole:MountingHole_3.2mm_M3_PadH1, H2, H3, H4
3LInductor_SMD:L_0805_2012MetricL1, L2, L3
2Conn_02x20_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ2, J9
2SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2
11.2vTestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmTP6
12.5vTestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmTP8
13.3vTestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmTP7
1CPCapacitor_SMD:CP_Elec_5x5.4C21
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_VerticalJ1
1DDiode_SMD:D_0805_2012MetricD2
1IS25LP016D-JBLEPackage_SO:SOIC-8_5.23x5.23mm_P1.27mmU2
1Q_NMOS_GSDPackage_TO_SOT_SMD:SOT-23Q1
1SiT2001BPackage_TO_SOT_SMD:SOT-23-5X1
1TLV73312PDBVPackage_TO_SOT_SMD:SOT-23-5U3
1TLV73333PDBVPackage_TO_SOT_SMD:SOT-23-5U4
1clockTestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmTP5
1gbin3TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmTP1
1gbin4TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmTP2
1iCE40-HX4K-TQ144Package_QFP:TQFP-144_20x20mm_P0.5mmU1

Similar boards

  • 2 layers97.6 × 74.6 mmFpga board, the printed circuit board in 3D

    Fpga board

    kevinroshann/fpga_board

    48 parts
  • 4 layers51 × 23 mmMini, the printed circuit board in 3D

    Mini

    es-ude/elasticai.hardware

    Schematics and Board design for ElasticNodeHardware

    78 parts4MIT
  • 2 layers141 × 150 mmMidiori, the printed circuit board in 3D

    Midiori

    fabPlane/x68000-midi

    X68000 MIDI and 8 MB RAM expansion card: Gowin GW1NR-9, YM3802-compatible gateware in Amaranth, and a universal I/O slot breakout. CC0.

    45 partsCC0-1.0
  • 4 layers100 × 68 mmBasic ecp5-pcb, the printed circuit board in 3D

    Basic ecp5-pcb

    mattvenn/basic-ecp5-pcb

    Reference design for Lattice ECP5 FPGA. Featuring Raspberry Pi interface and 6 PMODs

    75 parts144CC0-1.0
  • 2 layers103.9 × 43.5 mmCps2 digiav, the printed circuit board in 3D

    Cps2 digiav

    marqs85/cps2_digiav

    CPS2 digital AV interface

    146 parts49
  • 2 layers118.2 × 73 mmPCEHD, the printed circuit board in 3D

    PCEHD

    wifiber/PCEHD

    PC Engine HDMI

    165 parts7
  • 2 layers35.6 × 18.8 mmSamd51 micropython 9, the printed circuit board in 3D

    Samd51 micropython 9

    gnilsson2/YAPP_Box_KiCad_Generator

    Generate Openscad boxes from KiCad PCB files.

    22 partsMIT
  • 4 layers100 × 100 mmRPI RP2040-MINIMAL R3-S1, the printed circuit board in 3D

    RPI RP2040-MINIMAL R3-S1

    thegamer3-141/16bit_transistor_computer

    A 16-bit computer built from discrete transistors, inspired by Ben Eater's famous 8-bit breadboard computer project.

    81 parts

Questions

How big is the First fpga pcb PCB?

It measures 100 × 68 mm and has 2 copper layers, 1.6 mm thick.

What parts does the First fpga pcb use?

70 parts, built around the IS25LP016D-JBLE, TLV73312PDBV and TLV73333PDBV. 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 First fpga pcb KiCad files?

From the mattvenn/first-fpga-pcb repository on GitHub, at the commit this page was made from: the board is hardware/first-fpga-pcb.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the First fpga pcb design in my own project?

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