How hourfa/riscv-fpga-iot-teaching-kit works
This repository is a RISC-V/FPGA teaching kit whose substantial runtime product branches are camera/video I/O, face detection and recognition, and CNN acceleration. The user-facing flow is image or camera input through detection and recognition to displayed or saved results; LAB4 also supports hardware-accelerated inference. The README documents accelerator RTL capabilities, but RTL source files are absent from the supplied tree, so that subsystem is represented at its documented directory. Some LAB2/LAB4 stage implementations were not excerpted; edges to them are limited to documented or indexed relationships.
Main entry points: cam.c Camera Controller · benchmark_compare.c SW/HW Benchmark · Stage_1_Face_Detection_Image_Processing/main.c Face Pipeline CLI · LAB4/main.c Live Face App
Components 23
Camera and Video I/O
- Camera Controller
software/LAB3/cam.c - OV5640 Sensor
software/LAB3/ov5640.c - I²C Control
software/LAB3/i2c_ctrl.c - VDMA Driver
software/LAB3/vdma.c - Framebuffer
software/LAB3/framebuffer.c
Face Pipeline
- Face Pipeline CLI
software/LAB2/Stage_1_Face_Detection_Image_Processing/main.c - Face Detection
software/LAB2/Stage_1_Face_Detection_Image_Processing/stage1_face_detection.c - Face Recognition
software/LAB2/Stage_1_Face_Detection_Image_Processing/stage2_face_recognition.c - Image Preprocessing
software/LAB2/Stage_1_Face_Detection_Image_Processing/preprocess_image.py - Quantized Model Data
software/LAB2/Stage_2_Face_Recognition_Model_CASIA/c_quantized_model/quantized_model.c - Live Face App
software/LAB4/main.c - Face Detection Stage
software/LAB4/stage1_face_detection.c - Recognition Stage
software/LAB4/stage2_face_recognition.c - Software CNN
software/LAB4/stage2_software.c
Accelerator Software
- Inference Test App
software/LAB4/Acc/main.c - CNN Model Runtime
software/LAB4/Acc/cnn_model.c - Accelerator Driver
software/LAB4/Acc/accel_driver.c - SW/HW Benchmark
software/LAB4/benchmark_compare.c
Accelerator RTL
- CNN Accelerator RTL
hardware/ai_accelerator
Other components
- Operator
- Image Input
- RISC-V SoC
- Framebuffer Display
Connections 25
- Operator → Camera Controller: configures
software/LAB3/cam.c - Camera Controller → OV5640 Sensor: controls
software/LAB3/cam.c - OV5640 Sensor → I²C Control: accesses registers
software/LAB3/ov5640.c - Camera Controller → VDMA Driver: initializes
software/LAB3/cam.c - Camera Controller → Framebuffer: initializes
software/LAB3/cam.c - Camera Controller → Framebuffer Display: outputs video
README.md - Image Input → Face Pipeline CLI: provides image
software/LAB2/Stage_1_Face_Detection_Image_Processing/main.c - Face Pipeline CLI → Face Detection: detects faces
software/LAB2/Stage_1_Face_Detection_Image_Processing/main.c - Face Pipeline CLI → Face Recognition: recognizes faces
README.md - Image Preprocessing → Face Pipeline CLI: prepares input
- Face Recognition → Quantized Model Data: uses model data
- Operator → Live Face App: starts
software/LAB4/main.c - Live Face App → Face Detection Stage: runs detection
README.md - Live Face App → Recognition Stage: runs recognition
README.md - Recognition Stage → Software CNN: uses software inference
- Recognition Stage → Quantized Model Data: uses model data
- Operator → Inference Test App: starts inference
software/LAB4/Acc/main.c - Inference Test App → CNN Model Runtime: invokes inference
software/LAB4/Acc/main.c - CNN Model Runtime → Accelerator Driver: issues accelerator operations
- Accelerator Driver → CNN Accelerator RTL: controls accelerator
README.md - CNN Accelerator RTL → RISC-V SoC: integrates with
README.md - Operator → SW/HW Benchmark: runs comparison
software/LAB4/benchmark_compare.c - SW/HW Benchmark → CNN Model Runtime: runs hardware inference
software/LAB4/benchmark_compare.c - SW/HW Benchmark → Software CNN: runs software inference
software/LAB4/benchmark_compare.c - SW/HW Benchmark → Accelerator Driver: loads hardware data
software/LAB4/benchmark_compare.c