开源乱序 RISC-V 处理器成功启动 Linux 6.6
Fursoy Slice-1 是一个用 SystemVerilog 从零实现的 64 位乱序超标量 RISC-V 处理器,支持 RV64IMAFDV 及 Zba/Zbb/Zicsr/Zifencei 扩展,并已在 Sv39 虚拟内存下成功启动主线 Linux 6.6.50 与 BusyBox 用户态。其微架构包含 128 项重排序缓冲、160 项物理整数寄存器堆与 8 个分支检查点,并在 Nangate 45nm 工艺下完成 8 个核心功能块 500 MHz 综合收敛。
报道正文
本文目录2 个章节
Fursoy Slice-1
A 64-bit Out-of-Order Superscalar RISC-V Processor (RV64IMAFDV + Zba + Zbb + Zicsr + Zifencei) booting mainline Linux 6.6.50 and BusyBox userspace under Sv39 virtual memory.
Fursoy Slice-1 (fursoy_s1_core / fursoy_s1_soc) is a clean-slate 64-bit out-of-order superscalar RISC-V processor implemented in SystemVerilog, featuring Sv39 demand paging, machine/supervisor/user privilege separation, cycle-exact hardware performance telemetry, and 500 MHz Nangate 45nm standard-cell synthesis closure across 8 core functional blocks.
Microarchitecture Highlights
- 2-Wide Superscalar OoO Core (
fursoy_s1_core):- 2-wide fetch, decode, register rename, and in-order retirement (
M/S/Uprivilege modes,medeleg/mideleg,WFI,MRET/SRET). - 128-entry Reorder Buffer (
ROB_DEPTH = 128) with 4-bit wrap-safe epoch tags and precise exception/interrupt flush recovery. - 160-entry Physical Integer Register File (
PRF_SIZE = 160,128speculative free-list entries) plus 8 branch checkpoints (NUM_CHECKPOINTS = 8) for single-cycle speculative RAT rollback. - Dedicated issue queues: 32-entry Integer IQ (
INT_IQ_DEPTH = 32), 32-entry Memory IQ (MEM_IQ_DEPTH = 32), FP IQ (FPRF_SIZE = 64), and decoupled 8-entry Vector IQ (VLEN = 256,ELEN = 64,48vector physical registers). - Parallel-prefix 64-bit Kogge-Stone
fursoy_s1_aluandfursoy_s1_branch_unit(single-cycle execution + carry-free target equality), 3-stage pipelined multiplier, and hardware divider.
- 2-wide fetch, decode, register rename, and in-order retirement (
- Sv39 Virtual Memory & Non-Blocking Caches:
- Dual-port Sv39 DTLB:
64-entry 4-way set-associative base TLB (16sets, Tree-PLRU) +8-entry 2 MiB / 1 GiB superpage CAM with32-entry Translation Request Table (TRT_DEPTH = 32). - Sv39 ITLB:
64-entry 4-way set-associative base TLB +8-entry superpage CAM. - Shared Hardware PTW (
fursoy_s1_ptw): Walks Sv39 page tables with non-destructive L1D dirty snoop coherency so page-table writes sitting dirty in L1D are observed directly without eviction, paired withSFENCE.VMAstore-queue drain and D-cache clean synchronization. - L1I Cache (
fursoy_s1_l1i):16 KiB, 4-way set-associative (64sets ×64 B), VIPT-safe with conservative next-line prefetcher and2I-MSHRs. - L1D Cache (
fursoy_s1_l1d):16 KiB, 4-way set-associative (64sets ×64 B), 8-bank (PA[5:3]) non-blocking data cache with16-entry Load Queue,16-entry Store Queue,4MSHRs, and2-entry Writeback Buffer.
- Dual-port Sv39 DTLB:
- SoC & Peripherals (
fursoy_s1_soc):- 5-to-1 Priority Crossbar: Core MMIO > PTW walks > L1I refills > L1D refills > L1D dirty writebacks, with anti-starvation fairness and unmapped-aperture bus error trapping.
- Platform Devices:
256 MiBDRAM interface (0x8000_0000),CLINT(0x0200_0000),PLIC(0x0C00_0000,31external sources),16550 UART(0x1000_0000), and custom minimal SBI v2.0 M-mode firmware (Base,TIME,SRST,DBCN).
Physical Synthesis & STA (Nangate 45nm @ 500 MHz)
Evaluated standalone across 8 core functional blocks using Yosys 0.33 + sv2v v0.0.13 + OpenSTA 3.1.0 on NangateOpenCellLibrary (45nm Typical, 1.10V, 25C) targeting 500 MHz (2.000 ns clock period) (tools/run_s1_synth.py --run-synth, full report in build/synth/s1_synth_report.json):
| Module | Type | Cells | DFFs | Area (kGE) | Baseline Arrival / WNS | Optimized Arrival | Opt WNS @ 500 MHz |
|---|---|---|---|---|---|---|---|
fursoy_s1_branch_unit | Comb | 3,285 | 0 | 4.49 | 3.712 ns (-1.712 ns) | 0.629 ns | +1.371 ns (MET) |
fursoy_s1_csr | Seq | 13,438 | 1,688 | 25.81 | 22.776 ns (-21.120 ns) | 1.828 ns | +0.133 ns (MET) |
fursoy_s1_dtlb | Seq | 50,417 | 6,515 | 99.83 | 11.011 ns (-9.211 ns) | 1.249 ns | +0.551 ns (MET) |
fursoy_s1_itlb | Seq | 36,238 | 6,304 | 77.12 | 4.057 ns (-2.102 ns) | 1.198 ns | +0.602 ns (MET) |
fursoy_s1_agu | Comb | 321 | 0 | 0.66 | 2.301 ns (-0.301 ns) | 1.901 ns | +0.099 ns (MET) |
fursoy_s1_ptw | Seq | 1,765 | 329 | 3.67 | 1.956 ns (+0.005 ns) | 0.948 ns | +1.013 ns (MET) |
fursoy_s1_decode | Comb | 1,489 | 0 | 1.92 | 0.875 ns (+1.125 ns) | 0.663 ns | +1.337 ns (MET) |
fursoy_s1_alu | Comb | 4,066 | 0 | 5.93 | 3.823 ns (-1.823 ns) | 0.994 ns | +1.006 ns (MET) |
| Total (8 Core Blocks) | — | 111,019 | 14,836 | 219.43 | — | 8 / 8 MET | TNS = 0.00 ns |
Note: Total standard-cell area across these 8 standalone blocks is
175,106.74 um^2(NAND2_X1 = 0.798 um^2). Full-SoC place-and-route and SRAM macro compilation are not yet executed.
(注:更多技术实现细节与完整 API 文档请查阅原项目 README)