从 RISC-V 协处理器到片上暂存区From a RISC-V coprocessor to on-chip storage
我把 4×4 INT8 乘加阵列通过 NICE 接入蜂鸟 E203。交付时,16 项 RTL 回归和 7 项软件驱动的整机仿真回归全部通过。I connected a 4×4 INT8 multiply–accumulate array to the Hummingbird E203 through NICE. The final design passed all 16 RTL regression tests and all seven software-driven full-system simulation tests.
5 月 9 日,我在 A7-100T 上运行 LeNet-5,十张指定 MNIST 图像的预测都与标签一致。On 9 May I ran LeNet-5 on the A7-100T. Predictions for all ten selected MNIST images matched their labels.
译码修复、板上计时与 NICE v2 验证Decoder fix, board timings and NICE v2 tests
NICE 指令借用 rs2 字段传递向量索引,索引 0 恰好与零寄存器 x0 编码相同。当时的优化固件避开了这种情况。我在板测前修正了译码和软件宏。The NICE instruction’s rs2 field carries a vector index. Index zero shared its encoding with register x0, a case the optimised firmware happened to avoid. I corrected the decoder and software macros before testing on the board.
同一块板上,我还用一个 3×3 INT8 卷积核处理 4×4 输入。CPU 参考实现用了 1,516 周期,加速路径用了 287 周期,两路的四个输出都与预期一致。On the same board, I also timed one 3×3 INT8 convolution kernel on a 4×4 input. The CPU reference took 1,516 cycles and the accelerator took 287. Both produced the four expected outputs.
8 月的 NICE v2 原型让我从计算转向数据搬运。它支持能力查询、对齐的单字载入、两个各容纳 16 个字的暂存区,以及状态查询。我在 Python 模型和 RTL 仿真中验证这一版原型,完成了 7 项参考测试、19 项既有 RTL 回归和 16 项 v2 定向检查。The August NICE v2 prototype shifted my focus from computation to moving data. It implements capability discovery, aligned single-word loads into two 16-word scratchpad banks, and status queries. I verified this version with a Python reference model and RTL simulation, running seven reference tests, 19 existing RTL regressions and 16 targeted v2 RTL checks.