
Saintcon2019TopBoard
compukidmike/Saintcon2019
There is also a video of my badge talk at Saintcon https://www.youtube.com/watch?v=MAhJ2WoN14

PCB combining Raspberry Pi Pico and iCE40 FPGA
Pico hx is an open-source printed circuit board by dan-rodrigues, from the dan-rodrigues/pico-hx repository on GitHub. It is a 4-layer board of 80.7 × 65.8 mm with 75 parts on 181 nets, routed with 795 tracks and 112 vias.
It is built around the ICE40HX1K-TQ144 and MIC5504-1.2YM5-TR. Its parts include 20 capacitors, 13 resistors, 9 diodes, 9 connectors and 4 ICs. It belongs with the fPGA and programmable logic boards and the RP2040 and FPGA and CPLD boards of this library.
This is an FPGA board that combines an iCE40 HX FPGA with the Raspberry Pi Pico. The Pico can program the FPGA over USB using a script included in this repo and then interact with it using GPIO.

Pictured is an included DVI demo. First, the RP2040 was programmed with the USB software which then exposes a USB programmer device to the host. Then, the FPGA configuration containing the DVI test pattern config was uploaded from the host to the RP2040, which then programmed the FPGA, which then displayed the test pattern on screen. This DVI PMOD was used.

GBIN inputsRUN button for PicoAll iCE40 configuration pins are routed to the RP2040 GPIO so the details of how or when it is programmed are up to the software. The included software in this repo will make the Pico present itself is a USB device with these interfaces:
stdout is sent to the CDC UART for convenience.The pico exposes one pin that can directly output a clock from one of its PLLs with an optional divider. In the demo software, the USB PLL (48MHz) is divided by 4 to output a 12MHz clock for the FPGA. On the FPGA side, the GBIN5 pin is used for clock input so that the SB_PLL40_2F_PAD can be used.
There is only a 1.2v regulator on the board as the Pico provides a 3.3v output. The 2V5_VPP input is tied to 3.3v as the NVCM isn't used in this project.
The 10 GPIOs connected to the FPGA and 4 GPIOs connected to the SD card slot are in consecutive order, so PIO can be used.
A demo that displays several test patterns controlled by BTN-A and blinks the LEDs in succession can be found in rtl/demo.
cd rtl/demo
make progIt's assumed that the pico-sdk is installed and the required environment variables are set.
cd software
mkdir build
cd build
cmake ..
makeThe software can then be flashed using picotool for example. Default behaviour of the software is to immediately flash the iCE40 with an included bitstream that runs a counter with output to the 8 user LEDs.
It's assumed that the OSS FPGA toolchain is installed which includes yosys and nextpnr-ice40.
After the Pico software is flashed, it's ready to program the iCE40 using a custom USB driver script. The script is written in Python3 and requires pyusb.
pip3 install pyusbIt can then be programmed with similar usage to iceprog. The programmer script is picoprog.py.
./picoprog.py bitstream.bit| Qty | Value | Footprint | References |
|---|---|---|---|
| 15 | 100nF | Capacitor_SMD:C_0603_1608Metric | C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C17, C18 |
| 9 | 2.2k | Resistor_SMD:R_0603_1608Metric | R4, R5, R6, R7, R8, R9, R10, R11, R12 |
| 8 | 33R | Resistor_SMD:R_Array_Convex_4x0603 | RN1, RN2, RN3, RN4, RN5, RN6, RN7, RN8 |
| 8 | LED | LED_SMD:LED_0603_1608Metric | D0, D1, D2, D3, D4, D5, D6, D7 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3_DIN965 | H1, H2, H3, H4 |
| 3 | 10k | Resistor_SMD:R_0603_1608Metric | R2, R3, R13 |
| 2 | 10uF | Capacitor_SMD:C_0603_1608Metric | C16, C19 |
| 2 | 1uF | Capacitor_SMD:C_0603_1608Metric | C1, C2 |
| 1 | BTN_B | Button_Switch_SMD:SW_SPST_PTS645 | SW3 |
| 1 | BTN_R | Button_Switch_SMD:SW_SPST_PTS645 | SW4 |
| 1 | 100R | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 10nF | Capacitor_SMD:C_0603_1608Metric | C20 |
| 1 | 5V_AB | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J8 |
| 1 | 5V_CD | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J9 |
| 1 | BTN_A | Button_Switch_SMD:SW_SPST_PTS645 | SW2 |
| 1 | ICE40HX1K-TQ144 | Package_QFP:TQFP-144_20x20mm_P0.5mm | U2 |
| 1 | LED_B | LED_SMD:LED_0603_1608Metric | D8 |
| 1 | MIC5504-1.2YM5 | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | Micro_SD | Connector_Card:microSD_HC_Hirose_DM3D-SF | J3 |
| 1 | PMOD_A | PMOD:PMOD_Double_Mirrored | J1 |
| 1 | PMOD_B | PMOD:PMOD_Double_Mirrored | J2 |
| 1 | PMOD_C | PMOD:PMOD_Double_Mirrored | J4 |
| 1 | PMOD_D | PMOD:PMOD_Double_Mirrored | J5 |
| 1 | PSRAM | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | Pico | RPi_Pico:RPi_Pico_SMD_TH | U1 |
| 1 | RP_SWD | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J7 |
| 1 | RUN | Button_Switch_SMD:SW_SPST_PTS645 | SW1 |
| 1 | TP_1V2 | TestPoint:TestPoint_Pad_D2.0mm | TP1 |
| 1 | TP_3V3 | TestPoint:TestPoint_Pad_D2.0mm | TP2 |
| 1 | TP_5V | TestPoint:TestPoint_Pad_D2.0mm | TP3 |
| 1 | TP_GND | TestPoint:TestPoint_Pad_D2.0mm | TP4 |
| 1 | UART | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J6 |

compukidmike/Saintcon2019
There is also a video of my badge talk at Saintcon https://www.youtube.com/watch?v=MAhJ2WoN14


FPGAwars/icezum
:star2: IceZUM Alhambra: an Arduino-like Open FPGA electronic board

ironsteel/apple-ice
Apple II expansion prototyping board based on the ICE40 FPGA


mokus0/m2-ice40
A M.2 3042 B-key card with an ICE40 FPGA. Currently intended for a specific application, but could easily be used for more general purposes.


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.
It measures 80.7 × 65.8 mm and has 4 copper layers, 1.6 mm thick.
75 parts, built around the ICE40HX1K-TQ144 and MIC5504-1.2YM5-TR. 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.
From the dan-rodrigues/pico-hx repository on GitHub, at the commit this page was made from: the board is pcb/pico-hx.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask dan-rodrigues before reusing the design.