← All projects

Completed coursework · EE 171 · May 2026

One board.
Two inference paths.

ARM + FPGA neural-network inference on the PYNQ-Z2. A hands-on study of software execution, a FINN hardware accelerator, and what makes a performance comparison meaningful.

PlatformPYNQ-Z2
WorkloadMNIST digit inference
StatusCoursework complete

The project in plain language

No engineering background needed.

01

The goal

See how a small development board could recognize a handwritten number using two different computing methods.

02

How it works

I ran one version on the board’s general-purpose processor and another using a prebuilt accelerator on its reconfigurable chip. I checked their answers and timed 100 repetitions.

03

What was achieved

For the pictured 7, the processor version answered 8 and the accelerator answered 7. The models had different training conditions, so these results do not prove that one kind of chip is better or faster.

01 / The experiment

From image to prediction.

I executed two inference workflows on the same development board: a software path on its ARM processor and a FINN overlay on its FPGA programmable logic. I recorded single-inference timing and averages over 100 runs, then compared the predictions with the sample’s known label.

Software path

ARM CPU

MNIST image → software neural-network execution → predicted digit and timing.

Hardware path

FINN FPGA

MNIST image → loaded FINN overlay → predicted digit and timing.

The screenshots show a dataset of 10,000 images at 28 × 28 pixels and sample index 0, whose true label is 7. The report’s isolated 23 × 23 dimension is a transcription error; the displayed execution output shows 28 × 28.

02 / Recorded results

Timing and correctness.

Recorded execution times for the demonstrated workflows; different model-training conditions.
Execution pathSingle runMean of 100 runsPrediction for 7
ARM CPU1.395652 ms1.354163 ms8 — incorrect
FINN FPGA1.936685 ms1.881511 ms7 — correct

03 / Execution evidence

See the actual outputs.

Original screenshots from the coursework demonstration. Select an image to inspect the full-resolution output.

04 / Engineering reflection

A baseline for better experiments.

Demonstrated experience

Running ARM and FPGA inference workflows, loading a FINN overlay, checking prediction output, collecting repeat timings, and documenting experimental limitations. These materials establish overlay use and evaluation, rather than authorship of the accelerator architecture or model training.

Next validation steps

Use matched trained models and consistent preprocessing; define timing boundaries and warm-up; evaluate a representative test set; and measure latency variation, throughput, resource usage, and power before drawing broader conclusions.

Cryptography was considered but not implemented in this coursework. No hardware limit for cryptographic computation was measured. Homomorphic encryption is a separate future research effort.