Justin JU

研究与作品档案Research & project archive

研究Research

2026.05–08May–Aug 2026

从 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.

从华工微电子到香港城市大学 CALASFrom microelectronics at SCUT to CALAS

在华南理工大学取得微电子科学与工程工学学士学位后,我通过香港城市大学青岛研究院的 3 + 1 + X 项目加入 CALAS,在 Ray C. C. Cheung 教授指导下攻读 MPhil。入组时,我关注数字硬件设计、嵌入式系统和物联网设备的硬件安全。After my BEng in Microelectronic Science and Engineering at SCUT, I joined CALAS through the CityUHK Qingdao Research Institute’s 3 + 1 + X MPhil programme, supervised by Prof. Ray C. C. Cheung. My interests on joining the lab were digital hardware design, embedded systems and hardware security for IoT devices.

个人经历 · 实习From my own records · internship

我也曾在深圳陨墨星人工智能有限公司实习。I also interned at Shenzhen Yunmoxing (深圳陨墨星人工智能有限公司).

同一矩阵乘法,两种数据流One matrix multiplication, two dataflows

我在同一 Gemmini 配置上改变方阵阶数,对比权重驻留和输出驻留。每种配置重复三次,共 30 次测量。64×64 方阵相乘时,两种数据流的核内执行时间分别是 2,791 和 4,609 周期。I varied the square matrix size on one Gemmini configuration and timed weight-stationary and output-stationary execution. Three runs per configuration gave 30 measurements. At size 64×64, the kernels took 2,791 and 4,609 cycles respectively.

方阵阶数与核内执行周期Matrix order and kernel cycles
权重驻留(WS)Weight-stationary (WS)输出驻留(OS)Output-stationary (OS)
方阵阶数 NMatrix order N
查看五种规模的原始数值Read the five measured sizes
方阵乘法核内执行周期,每种配置重复三次Square multiplication kernel cycles, three runs per configuration
NWSOS
165691,061
329281,719
642,7914,609
966,3339,880
12811,15518,775

一次复用怎样计数?What counts as one reuse?

我把 DAIL 文献中的动作定义与 Gemmini 的命令和事件逐一对应。在 64³ 方阵案例里,B 矩阵复用和 C 矩阵累加恰好都是 48 次。改用 32×48×64 的非方阵后,两项分别是 12 次和 18 次,这个对照揭示了它们各自在数什么。I traced the action definitions in DAIL to Gemmini commands and events. Reuse of matrix B and accumulation into C both occurred 48 times in the 64³ case. With a 32×48×64 multiplication, the counts became 12 and 18. Changing the shape exposed what each counter was measuring.

怎样核对事件与结果How I checked the events

七次功能运行覆盖 5,475 个输出元素。我用主机端独立校验,并从源码和配置重建日志缺少的维度。这里记录的是操作次数。Seven functional runs covered 5,475 output elements. I checked the results independently on the host and recovered dimensions absent from the trace using the source and configuration. These measurements count operations.

2026.11–12Nov–Dec 2026

BERT FFN 的时间花在哪里?Where does a BERT feed-forward block spend its time?

我在同一输入的首个分块上比较主机端浮点激活和定点查表。计时从 Gemmini 矩阵投影延伸到主机激活,浮点激活时权重驻留的整段用时为 294,745 周期。I compared floating-point host activation with a fixed-point lookup table on the first tile of the same input. The timing window included the Gemmini matrix projections and host activation. With floating-point activation, the weight-stationary run took 294,745 cycles overall.

浮点激活时,输出驻留(OS)的整段用时更短。换用定点查表后,权重驻留(WS)用了 77,998 周期,OS 用了 78,301 周期。单看矩阵投影,两次都是 WS 更快。这个比较限于该输入的首个分块和对应构建。With floating-point activation, output-stationary (OS) finished the full window sooner. With the lookup table, weight-stationary (WS) took 77,998 cycles and OS took 78,301. WS was faster for the matrix projections in both runs. These comparisons apply to the first tile of this input and the builds tested.

速度变化后的数值复核Checking the numerical change

我随后对同一句输入的八个分块逐元素检查。有 34 个激活值与参考不同,共检查 8,192 个,最大绝对偏差为一个 INT8 量化单位。这个误差测量针对激活张量。I then checked eight tiles of the same input element by element. Of 8,192 activation values, 34 differed from the reference, by at most one INT8 quantization step. This comparison measures error in the activation tensor.

Mamba-2 解码中的状态放置Where should the state live during Mamba-2 decoding?

我先用 240 B 合成状态,在两步解码的 RTL 仿真中单独观察状态搬运。逐步回写用了 719 周期,让状态留在片上用了 552 周期。首页交互图展示的就是这次实验。I first isolated state movement in a two-step RTL simulation with 240 bytes of synthetic state. Writing back at each step took 719 cycles. Keeping the state on chip took 552. The interactive diagram on the homepage shows this run.

随后我把矩阵投影也纳入计时。在 16 头合成负载中,交换两种策略的运行顺序后,片上驻留分别节省 1,348 和 1,549 周期。同策略对照的最大波动为 450 周期。I then included matrix projections in the timing window. On a synthetic 16-head workload, keeping the state resident saved 1,348 or 1,549 cycles depending on which policy ran first. The largest same-policy control difference was 450 cycles.

48 头反例与真实层的验证进度A 48-head counterexample and the real-layer check

48 头实验中,我让第一次投影临时借用尚未装入状态的暂存行。换一种热身方式,这个方案由慢 2,553 周期变为快 3,006 周期。这促使我把热身条件和执行次序一起记录。In the 48-head experiment, the first projection borrowed scratchpad rows before they held state. A change in warm-up turned a 2,553-cycle loss into a 3,006-cycle gain. I now record the warm-up policy alongside the execution order.

真实 Mamba-2 130M 第 0 层的 FP32 状态占 768 KiB,卷积缓存另占 28 KiB。这套 Gemmini 的暂存区容量为 256 KiB。两步数值比较已在 CPU 上完成,混合精度映射已通过 Spike 数值自检;真实层的 RTL 执行时间仍待验证。The real first mixer of Mamba-2 130M has 768 KiB of FP32 state plus 28 KiB of convolution cache. This Gemmini configuration has a 256 KiB scratchpad. I completed the two-step numerical comparison on the CPU and checked the mixed-precision mapping in Spike. Real-layer RTL timing is still open.

2026.11–12Nov–Dec 2026

从十二篇选读到一次组会报告From a twelve-paper reading guide to a lab seminar

11 月,我把 FPGA 与 AI 的十二篇优先选读整理进七个主题,从器件与数据流读到动态推理和硬件设计工具。12 月 1 日的 CALAS 组会上,我用 BERT FFN 讨论了一个测量问题:怎样把主机激活和加速器投影放进同一个计时窗口?In November I organized twelve FPGA and AI readings around seven themes, from devices and dataflow to dynamic inference and hardware design tools. At the CALAS seminar on 1 December, I used a BERT feed-forward tile to ask how one timing window could capture both host activation and accelerator projections.

十二篇核心选读与资料规模The twelve readings and the collection

截至 2026 年 11 月 26 日,检索库收录 247 条研究记录、79 张阅读卡和 37 份重点原文审读。以下十二篇是阅读路线的起点。On 26 November 2026, the searchable collection held 247 research records, 79 reading cards, and 37 in-depth source reviews. These twelve papers are the starting points for the reading guide.

  1. VTR 8 (PDF)
  2. FPGA HLS Today
  3. Roofline (PDF)
  4. FINN-R
  5. hls4ml
  6. BISMO
  7. ATHEENA
  8. ESDA
  9. MLPerf Tiny
  10. FlightLLM
  11. LightMamba
  12. HLSyn

工程作品Engineering work

v0.1.1

AIHome

我把本机的智能体和技能配置整理成看板。AIHome 读取 AGENTS.md 和 SKILL.md,支持拖动卡片分组和查看依赖关系。v0.1.1 用 96 项 Chromium 端到端测试检查浏览器里的操作。I built a local workspace that turns AGENTS.md and SKILL.md files into cards. I can group agents and skills on a board or trace their dependencies in a graph. The v0.1.1 release included 96 Chromium end-to-end tests.

后续界面更新Later interface updates

后来我加入本地凭据管理,让几个智能体工具可以切换 API 服务商,并为这个界面补上中英文。I later added a local credential manager for switching API providers across agent tools, with a Chinese and English interface.

AIHome Agent Board 查看 AIHome 看板原图,图中有四张智能体与技能卡片Open the original AIHome screenshot, showing four agent and skill cards on the board
v1.7.0

MoneyNote

输入「午餐花了 35」,应用会先在本机识别金额和类别,再请你确认入账。基础记账可以离线使用。导入账单时可以查重,已有记录也能备份和恢复。Type a lunch expense and the app uses local rules to suggest an amount and category before you confirm it. Basic entry works offline. Bill import includes duplicate detection, and records can be backed up and restored.

筛选、月度对比与桌面版Filtering, monthly comparisons and desktop

账单积累后,翻查明细成了新问题。我在 v1.7.0 中把筛选移到数据库索引上,用虚拟滚动呈现长列表,还能比较本月、上月和去年同月的支出。我也用 Tauri 2 做了可独立启动的桌面版。As ledgers grew, I moved filtering into database indexes and added virtual scrolling for long lists in v1.7.0. The monthly view compares spending with the previous month and the same month a year earlier. I also added a standalone desktop shell with Tauri 2.

MoneyNote 查看 MoneyNote 记账原图,演示用自然语言记录午餐和交通支出Open the original MoneyNote screenshot showing natural-language lunch and transit entries
v1.7.0

日规 RiguiRigui

日规把一句日程描述变成日历上的安排。接入自选 AI 服务后可以用自然语言创建日程。应用在本机保存记录、检查时间冲突,还可以导出 ICS 文件。v1.7.0 为渐进式网页应用(PWA)加入离线支持。Rigui turns a scheduling request into a calendar entry using an AI provider of your choice. It stores events on the device, checks for conflicts, and exports them in ICS format. In v1.7.0 I added offline support for the progressive web app (PWA).

分页面加载与离线实现Page loading and offline implementation

在 v1.7.0 中,我还把不同页面的代码拆开加载。In v1.7.0 I also split the code by route so pages can load separately.

Rigui 查看日规手机月历原图,含按月切换和添加日程入口Open the original Rigui mobile month view with month navigation and an add-event button

Windows ROCm 工作流工具包ComfyUI workflows on Windows ROCm

我整理了 AMD 显卡上安装 ComfyUI、验证工作流和复查输出的步骤。在 RX 9070 XT 16 GB 上,Flux 4B 以 512 × 512 像素、4 步采样生成图像。首次冷运行用时 22.22 秒,随后两次热运行分别为 3.05 和 3.04 秒。I documented how to install ComfyUI, validate workflows and check outputs on AMD hardware. On an RX 9070 XT with 16 GB of VRAM, a 512 × 512 Flux 4B image at four sampling steps took 22.22 seconds on a cold run. The next two warm runs took 3.05 and 3.04 seconds.

LTX-2.3 视频测试LTX-2.3 video test

,我用公开工作流测试 LTX-2.3 图生视频。在同一张卡上,包含冷启动和模型切换的整次运行用时 840.6 秒,得到 2.04 秒的 H.264 视频(512 × 704,24 fps)。我用 OpenCV 读出了全部 49 帧,又用 FFmpeg 完整解码了一遍。On I tested the public LTX-2.3 image-to-video workflow on the same card. The run took 840.6 seconds including a cold start and model switch and produced 2.04 seconds of H.264 video at 512 × 704 and 24 fps. OpenCV read all 49 frames, and FFmpeg decoded the full stream.

v0.1.0

AIUsageTracker Desktop

我在 rygel 的 AIUsageTracker v2.4.6 上制作了 Windows 桌面面板、Codex 离线用量对账和便携包。面板分别显示读数和更新时间,方便追查本地记录与采集历史之间的差额。截图使用合成示例数据。I added a Windows dashboard, offline Codex usage reconciliation, and portable packaging to rygel’s AIUsageTracker v2.4.6. Separate timestamps help explain differences between local readings and collection history. The screenshot uses synthetic data.

首个 Windows x64 面板包 v0.1.0 于 发布,附 SHA-256 校验文件。The first Windows x64 dashboard package, v0.1.0, shipped on with a SHA-256 checksum.

额度采样怎样归档How quota samples are archived

上游 Monitor 精简额度历史之前,面板的集成程序会把原始采样归档到本机 SQLite,方便回查当时的读数。Before the upstream Monitor thins its quota history, the integration archives the original samples in a local SQLite database so earlier readings remain available.

AIUsageTracker Desktop 查看 Windows 用量面板的合成数据演示原图Open the original Windows usage dashboard showing synthetic demo data

早期工具与硬件集成Earlier tools and hardware integration

我先用 skillhub 管理本机的技能注册表,再用 skill-sync 通过本地 Git 仓库在多个智能体工具之间同步技能。TokenTicker(ccswitch-usage-widget)则把 CC Switch 的用量记录画成桌面悬浮图。这三个仓库都已归档。I used skillhub to maintain a local skill registry and skill-sync to share skills across agent tools through a local Git repository. TokenTicker (ccswitch-usage-widget) plotted CC Switch usage in a floating desktop window. All three repositories are archived.

硬件方面,我在上游蜂鸟 E203 的派生仓库中做 SoC 集成,自己的协处理器与板测记录放在加速器项目里。For hardware integration I worked in a fork of the Hummingbird E203 SoC. My coprocessor design and FPGA verification records live in the accelerator project.

早期工具版本与 E203 来源Earlier releases and E203 sources

课程与校园Coursework & campus

在第二台 GPU 上复现图像超分辨率Reproducing super-resolution on a second GPU

在 EE5438 团队项目中,我负责用 RX 9070 XT 和 ROCm 独立复现 DIV2K 图像的二倍超分辨率实验。我与使用 RTX 5070 的队友对齐训练、裁边和逐图评测协议。在 80 张内部验证图像上,双三次插值和三种学习方法的平均峰值信噪比(PSNR)在两台设备上相差均小于 0.02 dB。For our EE5438 team project, I independently reproduced 2× super-resolution on DIV2K using an RX 9070 XT with ROCm. My teammate used an RTX 5070. We matched training, border cropping, and per-image evaluation. On 80 internal validation images, mean peak signal-to-noise ratio (PSNR) differed by less than 0.02 dB across devices for bicubic interpolation and each of three learned methods.

一个复现结果One reproduced result

三种学习方法各用三个随机种子训练。D2 模型在我的设备上获得 33.8297 ± 0.0046 dB,队友记录的是 33.8371 ± 0.0146 dB。Each learned method was trained with three seeds. D2 reached 33.8297 ± 0.0046 dB on my device, compared with 33.8371 ± 0.0146 dB in my teammate’s run.

Flowers-17:预训练改变了多少个预测?Flowers-17: how many more flowers did transfer learning classify correctly?

我在同一份 Flowers-17 划分上比较随机初始化与 ImageNet 迁移学习。用 1,020 张图训练后,两条路线在 340 张评估图像上分别正确分类 325 张和 335 张。这 340 张图也用于选择模型,因此这组数字描述的是选模集表现。I compared training from random initialization with ImageNet transfer learning on the same Flowers-17 split. After training on 1,020 images, the selected models correctly classified 325 and 335 of the 340 evaluation images respectively. I used those same 340 images for model selection, so these scores describe selection-set performance.

铭诚书院的两份寒假作业Two pieces of winter coursework at Mingcheng College

在 2024–2025 年度寒假「五个一」作业优秀学生公示中,我的名字分别列在「2025 新年规划」和「节目观后感」两栏。Mingcheng College’s 2024–25 winter coursework list recognised two of my submissions, a plan for the new year and a reflection on a television programme. The two categories appear on pages 1 and 2 of the notice.

从微电子看新能源转型An undergraduate perspective on the energy transition

大三时,铭诚书院刊出了我的《观〈这就是中国〉新能源转型专题后感——微电子视角下的中国引领与全球未来》。我从功率半导体、传感器和边缘计算谈起,讨论充电设施和新能源设备对器件、测量与控制提出的要求。我的署名文章在合集的第 01 篇。In my third year at SCUT, Mingcheng College published my reflection on a television programme about the energy transition. I looked at what charging infrastructure demands of power semiconductors, sensors and edge processors. My essay appears first in the collection, under my Chinese name, 巨嘉兴.

「湾区筑梦」粤港青年大学生创新创意体验营A Guangdong–Hong Kong student innovation camp

我入选了铭诚书院公布的 10 人体验营名单。书院后来以「湾区筑梦 广深行」为题记录这次交流。走访广州和深圳的科技企业时,我带着相机记录沿途见闻。I was one of ten students selected by Mingcheng College for its Guangdong–Hong Kong innovation camp. The college later featured the Guangzhou and Shenzhen trip on its website. I brought my camera along on our visits to technology companies in the two cities.

2024.03–06Mar–Jun 2024

ESP32 与 4G 远程控制An ESP32 remote-control subsystem over 4G

在华工《电子系统设计》课程中,我带队搭建全栈物联网系统,负责技术方案和任务分配。我开发了基于 ESP32 的 4G 远程控制子系统,用 C 编写核心固件和传感器驱动,把设备端接入团队的系统。I led the full-stack IoT project in SCUT’s Electronic System Design course, planned the technical approach, and divided the work. I developed the ESP32-based 4G remote-control subsystem and wrote its core firmware and sensor drivers in C to connect the devices to our system.

“大湾区杯”金融数学建模Financial mathematical modelling in the Greater Bay Area Cup

我与李昀致、单天宇组队代表华南理工大学参赛,获得第四届“大湾区杯”粤港澳金融数学建模竞赛本科组优胜奖。获奖名单第 10 页第 304 项列出了我们三人的名字。I represented SCUT on a three-person team in the fourth Greater Bay Area Cup financial mathematical modelling competition. Our team received an undergraduate merit award (优胜奖). Entry 304 on page 10 of the official results lists all three of us.

带着相机参加「青春汕尾行」Field photography in Shanwei

7 月 7 日,我入选铭诚书院「青春汕尾行」实践团,随队到汕尾海丰拍摄。书院名单列出了 11 位成员。我们获评学校优秀实践团队,并在广东省暑期「三下乡」活动中获评省级优秀团队。我也获得了学校的社会实践先进个人表彰。On 7 July I was selected for Mingcheng College’s 11-member Shanwei field team. I photographed our trip to Haifeng. The team received recognition from SCUT and an outstanding team award in Guangdong’s summer community service programme. SCUT also recognised my individual contribution.

Smart dog 团队项目The Smart dog team project

大一时,我和单天宇、李昀致、丁煜宁一起做了 Smart dog。4 月 1 日,我们在微电子学院《工程导论实践 I》成果展上用英语展示作品,获得当届唯一一组一等奖。Three classmates and I built Smart dog in our first year. On 1 April we presented it in English at the School of Microelectronics’ introductory engineering showcase. Ours was the only team awarded first prize.

2022–20252022–2025

海报、微电影与随队摄影Posters, short films, and field photography

在学生创新俱乐部,我为 2023 年五四青年节和大创推介会设计海报。制作微电影时,我带领剧本组,把场景画成分镜,随后负责多机位素材的剪辑和调色。At the Student Innovation Club I designed posters for Youth Day and the student innovation project showcase in 2023. On our short film I led the writing team, storyboarded scenes, and directed post-production, including multicamera editing and colour grading.

2022–20252022–2025

学生工作与个人荣誉Student leadership and recognition

华南理工大学 2022、2023 两个年度的校级优秀共青团员公示都在铭诚书院一栏列有我的名字。SCUT listed me under Mingcheng College in its Outstanding Communist Youth League Member notices for both 2022 and 2023.

2025 年 4 月 9 日,铭诚书院将我列入 2024 年度校优秀共青团员拟推荐名单。On 9 April 2025, Mingcheng College listed me among its nominees for the university’s 2024 award.

个人记录 · 学生工作与其他荣誉From my own records · student roles and other honours

2022 年秋至 2025 年 6 月,我担任微电子二班班长。2023 年 9 月至 2025 年 6 月,我负责学生创新俱乐部资讯传媒部。I served as class representative for Microelectronics Class 2 from autumn 2022 to June 2025 and headed the Student Innovation Club’s media team from September 2023 to June 2025.

  • 2022–2023 学年 · 铭诚书院优秀学生干部2022–23 · Outstanding Student Leader, Mingcheng College
  • 2023 年 · 华南理工大学学生创新俱乐部活动积极分子2023 · Recognition for active participation, SCUT Student Innovation Club
  • 2023–2024 学年 · 华南理工大学军训先进个人2023–24 · Individual recognition for military training, SCUT