

First fpga pcb
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
3IS25LP016D-JBLE
SOIC-8-208mil100,000 cycles 133MHz 16Mbit 2.3V~3.6V 20 Years 200us 5uA Power-on reset、Hardware write protection、Software write protection、Write enable latch SPI SOIC-8-208mil NOR FLASH ROHSISSINOR FLASHTLV73312PDBV
SOT-23-5-40℃~+125℃@(Tj) 1 1.2V 120uVrms 125mV@(300mA) 300mA 34uA 5.5V 50dB Fixed Positive Under Voltage Lockout、Over Current Protection、Over Temperature Protection、Enable SOT-23-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSTexas InstrumentsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsTLV73333PDBV
SOT-23-5-40℃~+125℃@(Tj) 1 125mV@(300mA) 28uVrms 3.3V 300mA 34uA 5.5V 50dB@(1kHz) Fixed Positive Under Voltage Lockout、Over Current Protection、Over Temperature Protection、Enable SOT-23-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSTexas InstrumentsVoltage Regulators - Linear, Low Drop Out (LDO) Regulators
README
README.mdAim
- 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
- Schematic
- OHSPark project or Gerbers
- Cheap, 2 layer board. Probably not so good for fast signals.
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.
make progYosys 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
- https://github.com/OLIMEX/iCE40HX1K-EVB/blob/master/iCE40HX1K-EVB_Rev_B.pdf
- https://github.com/icebreaker-fpga/icebreaker/blob/master/hardware/v1.0e/icebreaker-sch.pdf
- icestick
Reference
- Family datasheet: http://www.latticesemi.com/view_document?document_id=49312
- Programming/FLASH spec: http://www.latticesemi.com/view_document?document_id=46502
- Pinout: http://www.latticesemi.com/view_document?document_id=49383
Parts
70| Qty | Value | Footprint | References |
|---|---|---|---|
| 17 | 100n | Capacitor_SMD:C_0805_2012Metric | C1, C2, C3, C4, C5, C6, C7, C8, C10, C11, C16, C17, C18, C19, C20, C23 +1 |
| 8 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R2, R3, R4, R5, R8, R10, R11 |
| 6 | Conn_02x06_Odd_Even | Connector_PinSocket_2.54mm:PinSocket_2x06_P2.54mm_Horizontal | J3, J4, J5, J6, J7, J8 |
| 5 | 200R | Resistor_SMD:R_0805_2012Metric | R6, R9, R12, R13, R14 |
| 4 | 1u | Capacitor_SMD:C_0805_2012Metric | C12, C13, C14, C15 |
| 4 | LED | LED_SMD:LED_0805_2012Metric | D1, D3, D4, D5 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_Pad | H1, H2, H3, H4 |
| 3 | L | Inductor_SMD:L_0805_2012Metric | L1, L2, L3 |
| 2 | Conn_02x20_Odd_Even | Connector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_Vertical | J2, J9 |
| 2 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1, SW2 |
| 1 | 1.2v | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | TP6 |
| 1 | 2.5v | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | TP8 |
| 1 | 3.3v | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | TP7 |
| 1 | CP | Capacitor_SMD:CP_Elec_5x5.4 | C21 |
| 1 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_Vertical | J1 |
| 1 | D | Diode_SMD:D_0805_2012Metric | D2 |
| 1 | IS25LP016D-JBLE | Package_SO:SOIC-8_5.23x5.23mm_P1.27mm | U2 |
| 1 | Q_NMOS_GSD | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | SiT2001B | Package_TO_SOT_SMD:SOT-23-5 | X1 |
| 1 | TLV73312PDBV | Package_TO_SOT_SMD:SOT-23-5 | U3 |
| 1 | TLV73333PDBV | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | clock | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | TP5 |
| 1 | gbin3 | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | TP1 |
| 1 | gbin4 | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | TP2 |
| 1 | iCE40-HX4K-TQ144 | Package_QFP:TQFP-144_20x20mm_P0.5mm | U1 |
Similar boards
- 2 layers97.6 × 74.6 mm

- 4 layers51 × 23 mm

- 2 layers141 × 150 mm

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 mm

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 mm

- 2 layers118.2 × 73 mm

- 2 layers35.6 × 18.8 mm

Samd51 micropython 9
gnilsson2/YAPP_Box_KiCad_Generator
Generate Openscad boxes from KiCad PCB files.
22 partsMIT - 4 layers100 × 100 mm

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.