WiSilicon

RISC-V、RVV、NPU IP
與車用 SoC ASIC
RISC-V, RVV and NPU IP, and automotive SoC ASIC

慧承電子(WiSilicon)自行開發 RISC-V CPU、RVV 向量引擎與 NPU 矩陣引擎,並以這些 IP 為核心設計車用 SoC ASIC。每一項規格都附可重跑的驗證證據。 WiSilicon builds its own RISC-V CPUs, RVV vector engines and NPU matrix engines, and designs automotive SoC ASICs around them. Every figure comes with verification evidence you can re-run.

SoC floorplan: automotive SoC containing a RISC-V host CPU, an RVV vector engine and a 256-MAC NPU matrix engine 車用 SoC ASICAutomotive SoC ASIC PLIC / Timer / UART / GPIO / Shared memory AXI4 fabric RISC-V CPU Host core RV32IM(F/C) Fetch Decode Execute RVV 向量引擎RVV vector engine Zve32x, LMUL mf8 – m8 NPU 矩陣引擎NPU matrix engine 256 MAC, int8 → int32 ITCM / DTCM DMA Command queue

晶片平面示意圖。點選區塊可跳到對應的產品;紫色區塊裡的 256 個點就是 256 個 MAC。 Schematic floorplan. Select a block to jump to that product; the 256 dots in the violet block are the 256 MACs.

四項產品與服務Four product lines

三項 IP 可以單獨授權,也可以整合成一顆 SoC 交付。 Each IP can be licensed on its own, or delivered integrated as one SoC.

RISC-V CPU IP

Magpie M1、M1A 與 M6Magpie M1, M1A and M6

RV32IMC 的 M-mode 嵌入式 CPU,四級依序管線,含分支預測與 JTAG 除錯。可以只交付核心,也可以交付含 AXI、記憶體與 boot ROM 的運算子系統,FPGA 與 ASIC 流程都有。 An RV32IMC M-mode embedded CPU with a 4-stage in-order pipeline, branch prediction and JTAG debug. Delivered as a core, or as a compute subsystem with AXI, memory and boot ROM, with both FPGA and ASIC flows.

  • RV32IMC_Zicsr_Zifencei,可選 A 與 PMP, optional A and PMP
  • riscv-arch-test 74/74
  • CoreMark 2.690/MHz
  • 699.30 MHz,TSMC 28HPC+ 合成結果, TSMC 28HPC+ synthesis
  • Magpie M6:雙核 RV64GC,模擬中開機 SMP Linux: dual-core RV64GC, boots SMP Linux in simulation

RVV 向量引擎RVV vector engine

標準 RISC-V 向量擴充Standard RISC-V vector extension

依標準 RVV Zve32x 實作的整數向量單元,處理逐元素運算:activation、bias、requantize 與 pooling。因為是標準 ISA,現有的編譯器與函式庫可以直接使用。 An integer vector unit built to standard RVV Zve32x. It handles element-wise work: activation, bias, requantize and pooling. Because it is standard ISA, existing compilers and libraries work as they are.

  • Zve32x,整數全指令, full integer set
  • LMUL mf8 – m8 全組合 full grid
  • 逐 commit 與 Spike 比對Per-commit lockstep against Spike

NPU 矩陣引擎NPU matrix engine

邊緣 AI 推論加速Edge AI inference acceleration

256 個 MAC 組成的矩陣引擎,負責 matmul 與卷積這類沿著收縮軸累加的運算。搭配純量核心與向量引擎,跑開源的 int8 TFLM 推論路徑,結果與 TFLM 逐位元相同。 A 256-MAC matrix engine for matmul and convolution, the operations that accumulate along a contraction axis. Together with the scalar core and vector engine it runs the open-source int8 TFLM inference path with bit-exact results.

  • 256 MAC, int8 → int32
  • TFLM FC / MLP / CNN / MobileNet blockTFLM FC / MLP / CNN / MobileNet block
  • Gemma-3 270M decoder layer 已驗證decoder layer verified
  • TCM、雙向 DMA、command queueTCM, bidirectional DMA, command queue
  • Magpie M5A:FPGA 實機 150 MHz 執行 Gemma3-270M: runs Gemma3-270M on FPGA at 150 MHz

車用 SoC ASICAutomotive SoC ASIC

客製晶片設計Custom silicon design

以自有的 CPU、向量與 NPU IP 為核心,替車用應用設計 SoC ASIC。從架構規格、RTL、驗證到合成與時序收斂,由同一個團隊負責。 SoC ASICs for automotive applications, built around our own CPU, vector and NPU IP. One team carries the work from architecture spec through RTL and verification to synthesis and timing closure.

  • 自有 IP,不依賴第三方 CPU 授權Our own IP, no third-party CPU licence
  • AXI4 匯流排、PLIC、周邊整合AXI4 fabric, PLIC and peripheral integration
  • TSMC 28nm 合成流程已建立TSMC 28nm synthesis flow in place

看 Magpie SoC RoadmapSee the Magpie SoC roadmap

參考設計:Magpie M3VReference design: Magpie M3V

一顆可合成的雙核 RISC-V SoC:host CPU 透過 AXI 驅動自建的 NPU domain。 A synthesizable two-core RISC-V SoC: a host CPU drives a self-built NPU domain over AXI.

引擎Engine 負責的工作Work 介面Interface
純量Scalar 迴圈、位址產生、分支、下指令Loops, address generation, branches, issuing commandsRV32IM(F)
向量Vector ReLU、bias、rescale、poolingReLU, bias, rescale, poolingRVV Zve32x
矩陣Matrix matmul、卷積、QKᵀMatmul, convolution, QKᵀ自訂命令Custom command
~460 MHz
完整 npu_top 在 TSMC28 的合成時序,由 166.7 MHz 提升 2.8 倍Full npu_top synthesis timing on TSMC28, up 2.8× from 166.7 MHz
−50%
同一次改版減少的 cell 面積Cell area removed in the same rework
1.8×
strip streaming 讓 DDR 權重傳輸由 2.86 提升到 5.27 B/cyc(校準延遲模型)DDR weight transfer with strip streaming, 2.86 to 5.27 B/cyc on the calibrated latency model
bit-exact
int8 推論結果與 TFLM 逐位元相同int8 inference results match TFLM bit for bit
Magpie-M3V two-core SoC architecture: NPU domain with scalar RV32IMF core, RVV vector engine, 256-MAC matrix engine, ITCM/DTCM and DMA, plus host cpu_m1, PLIC, shared memory and peripherals on a shared AXI4 fabric
Magpie M3V 雙核 SoC 架構。點圖可放大。Magpie M3V two-core SoC architecture. Select to enlarge.

NPU 關鍵架構與技術:Magpie M5ANPU architecture and key techniques: Magpie M5A

雙發射 RV32IMF CPU 搭配 16×16 int8 GEMV NPU 的 SoC。已在 AMD ZCU104 FPGA 上以 150 MHz 實機執行 Gemma3-270M 聊天推論,並完成 TSMC 28HPC+ 邏輯合成。 An SoC pairing a dual-issue RV32IMF CPU with a 16×16 int8 GEMV NPU. It runs Gemma3-270M chat inference on an AMD ZCU104 FPGA at 150 MHz, and has been through TSMC 28HPC+ logic synthesis.

每拍 256 個 MAC 的 output-stationary 陣列Output-stationary array, 256 MACs per cycle
16 個 row 各負責一個輸出元素,每個 row 一拍做 16 個 int8 × int8 乘法,經 4 組部分和與加法樹累加成 int32。Each of 16 rows owns one output element and does 16 int8 × int8 multiplies per cycle, summed through 4 partial sums and an adder tree into int32.
權重雙緩衝Double-buffered weights
計算目前 16 列的同時預載下一批權重,MAC 陣列不必停下來等記憶體。The next batch of weights loads while the current 16 rows compute, so the MAC array never waits on memory.
直接讀 llama.cpp 的 Q8_0 權重Reads llama.cpp Q8_0 weights directly
硬體自行拆解 Q8_0 block(每 32 個 int8 權重配一個 fp16 scale),模型檔不需要另外轉檔。Hardware unpacks the Q8_0 block (one fp16 scale per 32 int8 weights), so the model file needs no conversion.
NPU 自己搬資料The NPU moves its own data
以最長 256 拍的 AXI burst 從 DDR 讀權重、把結果寫回 DDR,並與 D-cache 輪流共用同一個 AXI master。It reads weights from DDR in AXI bursts of up to 256 beats, writes results back to DDR, and shares one AXI master with the D-cache by round-robin.
硬體還原浮點 scaleFloating-point scale restored in hardware
每個 block 的 int32 內積在 NPU 內乘回權重與 activation 的 scale,輸出直接是 fp32。Each block’s int32 dot product is multiplied back by the weight and activation scales inside the NPU, so the output is fp32.
Magpie M5A NPU dataflow: DDR weights pass through npu_dma and npu_wload into double-buffered weight banks; a 16-row by 16-lane int8 MAC array multiplies them with the activation buffer; npu_scale applies scaling and outputs in MMIO or DDR mode
Magpie M5A NPU 資料流。點圖可放大。Magpie M5A NPU dataflow (labels in Chinese). Select to enlarge.
Gemma3-270M chat demo: the processing system handles tokenizer and sampling, the RISC-V core runs the 18 decoder layers, and every large GEMV goes to the NPU
LLM 推論分工:tokenizer 與取樣在 PS,decoder 在 RISC-V 核心,大型 GEMV 交給 NPU。LLM inference split: tokenizer and sampling on the PS, decoder on the RISC-V core, large GEMVs on the NPU.
150 MHz
ZCU104 FPGA 實機頻率,CPU、FPU 與 NPU 組態皆時序收斂On-board frequency on the ZCU104 FPGA, timing met with CPU, FPU and NPU
≈3.2 tok/s
Gemma3-270M Q8_0 decode 實測;同一顆核心純軟體約 0.012 tok/sMeasured Gemma3-270M Q8_0 decode; the same core in pure software manages about 0.012 tok/s
≈758 MHz
完整 SoC 在 TSMC 28HPC+ 的合成頻率(尚未 P&R)Full-SoC synthesis frequency on TSMC 28HPC+ (before P&R)
1.73 mm²
SoC 合成面積,NPU 與其權重 SRAM 佔 51.9%SoC synthesis area; the NPU and its weight SRAM take 51.9%
2.124
CoreMark/MHz,11 級雙發射 RV32IMF 核心實機量測CoreMark/MHz measured on board for the 11-stage dual-issue RV32IMF core
347 / 347
ACT4 arch-test 全數通過(base 89、B 180、F 78)ACT4 arch-tests passed (base 89, B 180, F 78)

我們怎麼驗證How we verify

正確與否由比對結果決定,而不是「看起來對」或 lint 通過。 Correctness is decided by comparison results, not by “looks right” or a clean lint.

逐 commit 與 Spike 比對Per-commit lockstep with Spike

RTL 每一筆 commit 的結果都與 Spike ISS 對照,向量 CSR 也在比對範圍內。Every commit the RTL retires is compared against the Spike ISS, vector CSRs included.

逐位元的 golden 資料Bit-accurate golden data

矩陣運算對照 NumPy golden,推論結果對照 TFLM。換傳輸路徑不能改變任何一個位元組。Matrix math is checked against a NumPy golden and inference against TFLM. Changing the transport path may not change a single byte.

一行指令重跑Re-run with one command

核心流程只用開源工具:Verilator、Spike 與 RISC-V GCC。沒有執行過的 gate 不會標成通過。The core flow uses only open-source tools: Verilator, Spike and RISC-V GCC. A gate that has not run is never marked as passed.

聯絡我們Contact

想評估 IP 授權或討論車用 SoC ASIC 專案,歡迎與我們聯繫。 Get in touch to evaluate an IP licence or discuss an automotive SoC ASIC project.

慧承電子股份有限公司
302 新竹縣竹北市台元二街 12 號 6 樓之 7
WiSilicon Electronics
6F-7, No. 12, Taiyuan 2nd St., Zhubei City, Hsinchu County 302, Taiwan

聯絡人Contact yifi.lee@wisilicon.com
電話Phone 03-5550309

在 Google 地圖開啟Open in Google Maps