mwelling / ICE-V-Wireless

Combined ESP32C3 and iCE40 FPGA board

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notice

Repository moved to an org for easier collaboration. https://github.com/ICE-V-Wireless

ICE-V Wireless

Combined ESP32C3 and iCE40 FPGA board

Abstract

This project combines an Espressif ESP32-C3-MINI-1 (which includes 4MB of flash in the package) with a Lattice iCE40 FPGA (either an iCE5LP4k or iCE40UP5k or other pin an package-compatible devices) to allow WiFi and Bluetooth control of the FPGA. ESP32 and FPGA I/O is mostly uncommitted except for the pins used for SPI communication between ESP32 and FPGA. Several of the ESP32C3 GPIO pins are available for additonal interfaces such as serial, ADC, I2C, etc.

This project comprises both hardware, firmware, gateware and host-side communication utilities.

Hardware

The hardware design is provided as schematic and layout in KiCAD 6 format. The design provides:

  • Three standard PMOD connectors spaced to accomodate dual-PMOD modules with all eight signal pins directly connected to the FPGA.
  • Additional I/O connector with seven ESP32C3 GPIO lines and one FPGA line, along with power and ground connections.
  • USB-C connector for power, programming and JTAG debugging.
  • LiPo Battery operation and charging.
  • PCB antenna for WiFi and Bluetooth.

Firmware

The ESP32 firmware is written in C with the ESP-IDF V5.0 toolchain and libraries. Initially it provides a TCP socket interface over WiFi with the following features:

  • Initial loading of the FPGA configuration at powerup from a SPIFFS filesystem contained in the ESP32C3HN4 flash.
  • WiFi socket-based "instant" loading of configurations direct to the FPGA.
  • WiFi socket-based updating of the configuration stored in SPIFFS.
  • WiFi socket-based monitor/control of the FPGA design via SPI.

Gateware

The iCE40 FPGA gateware provided is a simple design that demonstrates basic SPI monitor/control via SPI with a flashing LED. More advanced designs are possible.

Host-side Utilities

A command-line Python script is provided to communicate over TCP sockets with the ESP32C3 which supports the features outlined in the Firmware section above.

About

Combined ESP32C3 and iCE40 FPGA board

License:MIT License


Languages

Language:HTML 60.9%Language:Verilog 25.4%Language:C 10.6%Language:Python 1.0%Language:Roff 0.9%Language:Makefile 0.7%Language:Assembly 0.4%Language:CMake 0.1%