Skip to content

About

4-layer STM32F401 + iCE40 FPGA embedded controller featuring SDIO, controlled-impedance PCB design, bare-metal firmware, RTL, and SI/PI analysis.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

71 Commits

Folders and files

Repository files navigation

Embedded Controller with FPGA Co-Processor

A 4-layer embedded controller integrating an STM32F401 microcontroller, Lattice iCE40 FPGA co-processor, and microSD (4-bit SDIO). The project demonstrates hardware/software partitioning, controlled-impedance PCB design, bare-metal firmware, FPGA RTL, and signal/power integrity analysis.

Project Overview

This system is an FPGA-assisted data acquisition platform. The FPGA implements deterministic parallel data capture and buffering, while the STM32 handles system control, the synchronous MCU to FPGA interface, higher-level processing, and the microSD SDIO interface.

The project was completed as a design, firmware, RTL, and simulation portfolio project. The PCB was not fabricated, so target-board hardware functionality has not been physically validated.

PCB Layout

Completed PCB layout with top and bottom routing

Completed four-layer PCB layout showing the combined top- and bottom-layer routing.

Key Features

  • STM32F401 (LQFP64) – bare-metal / register-level firmware
  • Lattice iCE40UP5K – Parallel Data Capture Engine (Verilog)
  • 4-bit SDIO microSD interface
  • 4-layer PCB with 50 Ω controlled-impedance routing target
  • Multi-rail power architecture (3.3 V + 1.2 V)
  • Simplified 3.3 V rail load-step analysis in PSpice
  • 22 Ω source series termination and return-path-aware layout
  • MCU to FPGA synchronous 4-bit interface with FPGA interrupt signaling

Repository Structure

  • hardware/ — Schematic, PCB layout, stackup, and design evidence
  • firmware/ — STM32F401 bare-metal firmware
  • fpga/ — Verilog RTL, self-checking testbench, and simulation results
  • simulation/ — PSpice power-rail analysis and results
  • docs/ — System architecture and technical documentation
  • project-management/ — Requirements, milestones, and project status

Tools Used

  • OrCAD Capture / PCB Editor
  • OrCAD PSpice
  • STM32CubeIDE (register-level)
  • Icarus Verilog + GTKWave
  • Git / GitHub

FPGA Verification

The Parallel Data Capture Engine was verified using a self-checking Verilog testbench with Icarus Verilog. GTKWave was used to inspect the simulated capture and interrupt behavior.

FPGA parallel capture and interrupt waveform

Simulation waveform showing parallel data capture and FPGA interrupt behavior.

Power Integrity Analysis

A simplified PSpice load-step model was used to evaluate the 3.3 V rail under a 20 mA to 200 mA transient load. The simulation produced approximately 36 mV of voltage droop.

3.3 V rail load-step waveform

PSpice load-step simulation of the 3.3 V rail.

Results Summary

  • Completed 4-layer schematic and PCB layout with 0 unrouted connections and 0 DRC errors
  • Calculated and constrained 50 Ω single-ended routing for SDIO and MCU to FPGA interfaces
  • Implemented STM32 register-level UART, SDIO initialization, and MCU to FPGA interface firmware
  • Implemented and verified the FPGA Parallel Data Capture Engine using a self-checking Verilog testbench
  • Simulated a simplified 3.3 V rail load step in PSpice, showing approximately 36 mV of voltage droop from a 20 mA to 200 mA load transition
  • Documented PCB stackup, schematics, routing, FPGA verification, and power-rail analysis

Skills Covered

  • 4-layer PCB design and stackup definition
  • Controlled impedance (50 Ω microstrip) calculation and constraint setup
  • Signal integrity fundamentals (return paths, source termination, and trace-length considerations)
  • Multi-rail power architecture and basic power integrity analysis (PSpice)
  • Schematic capture and netlist management in OrCAD
  • Bare-metal / register-level STM32 firmware development
  • Register-level SDIO initialization
  • FPGA RTL design in Verilog
  • Self-checking testbench development and simulation (Icarus Verilog + GTKWave)
  • MCU to FPGA hardware/software co-design and interfacing
  • Technical documentation and repository organization

About

4-layer STM32F401 + iCE40 FPGA embedded controller featuring SDIO, controlled-impedance PCB design, bare-metal firmware, RTL, and SI/PI analysis.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages