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.
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.
Completed four-layer PCB layout showing the combined top- and bottom-layer routing.
- 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
hardware/— Schematic, PCB layout, stackup, and design evidencefirmware/— STM32F401 bare-metal firmwarefpga/— Verilog RTL, self-checking testbench, and simulation resultssimulation/— PSpice power-rail analysis and resultsdocs/— System architecture and technical documentationproject-management/— Requirements, milestones, and project status
- OrCAD Capture / PCB Editor
- OrCAD PSpice
- STM32CubeIDE (register-level)
- Icarus Verilog + GTKWave
- Git / GitHub
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.
Simulation waveform showing parallel data capture and FPGA interrupt behavior.
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.
PSpice load-step simulation of the 3.3 V rail.
- 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
- 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


