Introduction
Build a standalone FPGA system that recognizes a digit or letter from a camera image. Train a recognition model and deploy it on the AXU4EVB-P.
The board boots PetaLinux from an SD card and shows live camera video through HDMI. Pressing the PS user button captures the character inside the aiming frame; the display shows the captured image, prediction, and recognition time while live video continues. The finished system must operate with the development computer disconnected.
Read IMPORTANT.md in the project package before connecting cables or powering on the board.
Project Overview
Project Tasks
- Train and export a model. Train a model for digit and letter recognition, and export the parameters needed by the board.
- Deploy the network on PL. Integrate the full Lab4 Rocket + Gemmini subsystem, or use an accelerator of your own design. All neural-network operators must run on the PL accelerator; ARM handles the input and output of the whole network.
- Complete the application. Replace the supplied random recognition function with your implementation. Keep the camera, shutter, display, timing, and USB evaluation working, with automatic startup from SD.
The camera demonstration uses character cards with a white background. The separate USB accuracy test uses 100 images, including backgrounds with patterns and objects. The full test set is not public; the provided examples may or may not appear in it.
For the character list, detailed tasks, and operating instructions, refer to README.md in the project package.
Provided Materials
Download the project package (.tgz) from Link 1 or Link 2.
- Camera/HDMI reference hardware, Linux boot files, and a starter SD image.
- Application source with live video, PS-button capture, result display, timing, and an interface for your recognition code.
- Automatic USB evaluation for exFAT/FAT32 drives, ten labeled example images, build scripts, and x86_64 Linux development tools.
The starter demo returns random characters. Implement and deploy your own trained model through the supplied interface.
Develop on x86_64 Linux. For setup, build commands, and board operation, refer to README.md in the project package.
Grading
| Model training and export | 20% |
| Accelerator deployment | 35% |
| Standalone camera/USB integration | 25% |
| Recognition accuracy | 10% |
| Report and usage instructions | 10% |
| Total | 100% |
Submission
Submit one archive named <student-id>_fpga.tar.gz through Gradescope. The deadline and late policy will be announced on the course platform.
sources/: application, hardware, firmware, and driver sources, including the build scripts and any other system files your implementation needs.model/: the trained model or parameters used on the board, including required weights and quantization parameters.sd.img.zst: your final bootable SD image, compressed with Zstandard.report.pdf: your model and training data, accelerator/application implementation, recognition results, and execution time.USAGE.md, if your changes alter the documented build, SD-writing, startup, or operating procedure: explain how to build and use your submission.
Keep build caches, installed tools, and copied Chipyard environments out of the archive.
We encourage the use of AI and LLMs for this project. Please submit the prompts you used when debugging and optimizing your design. The AI report is mandatory and must be submitted through the separate Gradescope submission entry.
For complete submission requirements and packaging commands, refer to the Submission section of README.md in the project package. If you change the documented project layout, build process, or file locations, adjust the commands and check that your archive contains all required files.