AI Computing Systems (EE219)

School of Science and Technology (SIST), ShanghaiTech University

Shanghai Institute of Semiconductor Innovation (SISI)

Project

Introduction

Deploy an INT8 CNN based on the network introduced in Lab1 onto Rocket + Gemmini. Complete a layer sequencer, a memory-mapped I/O (MMIO) command protocol and CNN execution software written in C, then run the completed system in hardware simulation.

The network contains five convolutions, three fully connected layers, ReLU and max pooling. Operands and intermediate activations are signed INT8; accumulators and final outputs are signed INT32.

Project Overview

Project Tasks

Download the Project materials.

  • Task A: Layer sequencer. Schedule model execution using the supplied descriptors, which specify operations, tensor dimensions, memory addresses and execution parameters.
  • Task B: MMIO command protocol. Handle software start and completion requests and maintain controller status.
  • Task C: INT8 CNN execution software. Read descriptors, execute convolution and fully connected multiplication on Gemmini, apply integer requantization, and invoke Gemmini for ReLU and max pooling.
  • Task D: Complete-system verification. Run the completed A–C implementations together on Rocket + Gemmini. All intermediate and final results must match the supplied expected values exactly.

A/B and C can be developed independently. After completing them, run make check, then make JOBS=8 VERILATOR_THREADS=8 simulate for Task D.

Please refer to README.md for the detailed requirements and instructions.

Project Files

We provide the INT8 weights, quantization parameters, input and expected results, together with the Rocket processor, signed 4 x 4 output-stationary Gemmini engine, system integration and tests.

Complete the TODOs in the three files under student/. Preserve their names, packages, public interfaces and entry point, and keep the provided model data and checkers unchanged.

Extract the original Lab4 chipyard.tar.gz course package into Project/chipyard. Follow the Environment section in README.md before implementation or tests.

SYSTEM_SPEC contains the layer shapes, data layouts, quantization rules and MMIO register definitions.

Grading

Assessment

Task A: Layer sequencer20%
Task B: MMIO command protocol10%
Task C: INT8 CNN execution software35%
Task D: Complete-system verification15%
Report20%
Total100%

Submission

Prepare a report named <student-id>_project_report.pdf summarizing your hardware and software design, test results and Task D performance measurements.

Package the report and these three implementation files into a single <student-id>_project.tar.gz archive, preserving the student/ paths:

student/Lab1LayerSequencer.scala
student/Lab1Cifar10MMIO.scala
student/cnn_execution.c
<student-id>_project_report.pdf

Include additional source/header files and build changes used by your implementation, and any AI-use report required by the course. Exclude build outputs, the Chipyard checkout and generated simulator files.

Submit the archive through the course platform by the announced deadline.