Skip to content
Huan Lin

Huan Lin

Integrated circuits & computer architecture · CGRA compilation / FPGA timing closure / inference performance modelling

Photo of Huan Lin

I am a master’s student at Fudan University’s School of Integrated Circuits and Micro-Nano Electronics, with a bachelor’s degree in physics from the same university.

My research is on compilation and mapping for reconfigurable architectures: a unified compiler framework for CGRAs, routing-feedback-driven DFG transformations, and carrying that approach across to post-route timing closure on FPGAs. More recently I have been working on analytical performance modelling for LLM inference.

On the engineering side I like turning repetitive analysis and validation into tools. PACT is that instinct applied to timing optimisation; GPROXY is the same instinct on the server side.

huan@lin.pubGitHubWeChat lh860598

Concurrent threads

  • LLVM-based recursion elimination plugin for HLSDec 2022 – Mar 2023
  • Unified compilation and mapping for spatial and temporal CGRAsSep 2024 – present
  • GPROXY: a multi-protocol LLM API gateway in RustJan 2026 – present
  • PACT: agentic post-route timing optimisation for FPGAsMar 2026 – Jun 2026
  • Agilex Chip · Reconfigurable vector unit and runtime integrationMar 2026 – Jun 2026
  • CGRA architecture and compiler toolchain for post-quantum cryptographyJun 2026 – present
  • Huawei · Analytical performance estimation for Ascend LLM inferenceJul 2026 – Oct 2026

Publications

1

Projects

GPROXYAuthor · maintainer

2026-01 – present

A multi-protocol LLM API gateway written in Rust, speaking OpenAI / Anthropic / Gemini

RustAxumTokioSeaORMWASM

Repository

PACTFirst author

2026-03 – 2026-06

An agentic post-route timing optimiser for FPGAs, with the design checkpoint as its state

PythonVivadoRapidWrightLLM Agent

Repository

Research

PACT: agentic post-route timing optimisation for FPGAsFPT 2026 · first author

Mar 2026 – Jun 2026
  • Treated the Vivado design checkpoint as the optimisation state: localised ECOs planned from physical-design evidence, every candidate gated on legality and timing, with rollback and recording.
  • Wrapped Vivado and RapidWright into typed actions — critical-net rerouting, driver replication, local replacement, logic restructuring, region constraints, global fallback.
  • Across 35 UltraScale+ checkpoints: +22.30% geometric-mean Fmax, versus 15.14% for DATuner and 9.78% for a general-purpose Codex agent; 6.4× faster than DATuner at $0.16 per DCP, 24.5× cheaper.

CGRA architecture and compiler toolchain for post-quantum cryptography

Jun 2026 – present
  • Accelerated three Chinese post-quantum KEMs — Aigis-1024, PolarLAC-256 and Scloud+-256 — on one shared reconfigurable CGRA: hardware/software partitioning from per-function cycle profiles, 26 C kernels mapped into 75 CGRA configurations covering NTT, polynomial and matrix multiply, and packing.
  • Tuned the array and runtime for KEMs — NTT resident on chip across all seven stages (Aigis decaps 252k → 130k cycles), whole task chains submitted to a hardware queue, shared Keccak units, Scloud+'s 1184×1184 matrix generated row by row instead of stored (2.8 MB saved; per-request CPU work from ~300M to under 0.5M cycles), and eight interleaved request contexts.
  • In cycle-accurate RTL simulation of the full SoC (Rocket CPU + 8×32 CGRA), all three algorithms meet the single-engine target for keygen, encaps and decaps (Aigis 5000 / PolarLAC 4000 / Scloud+ 1000 ops/s); decaps reaches 5583 / 4289 / 1025 ops/s, byte-exact against the reference implementations.
  • 40 nm LP synthesis (pre-layout): 346 → 499.75 MHz by cutting critical paths, array power 2.53 → 0.89 W with clock gating; 16.3 mm² of CGRA versus 21.0 mm² for three dedicated HLS ASICs, about 22% smaller.

Unified compilation and mapping for spatial and temporal CGRAs

Sep 2024 – present
  • Extended a spatial CGRA into a multi-context temporal architecture, reworking the LLVM compiler, hardware generator and mapper together, with spatio-temporal reuse of the configuration and cache register files.
  • Found that functionally equivalent DFGs with identical compute and I/O node counts can still differ markedly in throughput, purely because of their connection structure.
  • Built mapping-driven compiler optimisation that traces routing conflicts and congestion back to the DFG and picks semantics-preserving graph transformations to lower II and raise mapping success.

LLVM-based recursion elimination plugin for HLS

Dec 2022 – Mar 2023
  • Built an LLVM source-to-source plugin that flattens directly recursive functions into iterative form, compatible with Bambu HLS.
  • Kept the design modular, leaving hooks for indirect recursion and more complex call graphs; validated as a prototype.

Internships

Analytical performance estimation for Ascend LLM inferenceHuawei

Jul 2026 – Oct 2026
  • Benchmarked the team's existing performance-analysis framework, then led a next-generation analytical estimator to replace it — first end-to-end on DeepSeek V4-Pro, then across several major model families, with results aligned to the original framework.
  • Calibrated model configs, operator characteristics and execution behaviour from model datasheets; added DDR/SSD second-tier buffer performance and capacity modelling, concurrent inference, prefix caching and expert-weight offloading, analysing TTFT, TPOT, memory and throughput across prefill and decode.
  • Shipped a visual web interface and offline deployment so the team uses it for design comparison and capacity planning. Mentor's overall rating — Excellent.

Reconfigurable vector unit and runtime integrationAgilex Chip

Mar 2026 – Jun 2026
  • Designed a programmable vector unit around an internal special-function IP, carrying the CGRA's configurable routing and configuration registers over to the vector datapath so that many special functions share one runtime-configured unit.
  • Worked on NPU runtime bring-up and instruction interfaces — instruction definitions, call constraints, validation cases — and packaged the repetitive debug flow into an LLM skill.

Awards

Top 4 of 66FPL 2026 Optimization Contest

2026
  • Placed 4th of 66 teams in the post-route FPGA optimisation track, with a cash prize.
  • Positive Fmax improvement on all 7 benchmarks, averaging 56.1 MHz and peaking at 85.4 MHz.

Talks & service

  • Presenting PACT at FPT 2026. The paper site collects the method, per-design results on all 35 checkpoints, slides and the reproducible artifact.

Education

M.S. in Electronic Information, School of Integrated Circuits and Micro-Nano ElectronicsFudan University

Sep 2024 – Jun 2027

B.S. in Physics, Department of PhysicsFudan University

Sep 2018 – Jun 2023

Skills

Architecture & RTL
Verilog, Chisel. RTL design and module-level verification; familiar with RISC-V, NPU, FPGA, and CGRA architectures, and with reasoning about PEs, on-chip memory, NoCs, compute parallelism, and bandwidth constraints.
Compilers
C/C++, LLVM. DFG extraction and transformation, compilation and mapping for spatial and temporal CGRAs, scheduling and place-and-route, instruction and runtime interface work.
EDA
Design Compiler, Vivado, RapidWright, VTR/VPR, Bambu HLS. RTL synthesis, SDC constraints, timing and area report analysis, post-route timing optimisation, localised ECO, and flow automation.
Software
Python, Rust, Linux, Git, Docker. Async services, REST APIs, streaming data, database access, and multi-protocol interface work; comfortable with Axum and Tokio. Extensive documentation experience.
Languages
Chinese (native), English (CET-6, 522).