ALL INTELLIGENCE
Hacker News AIT2·Open Source

Open Source Out-of-Order RISC-V Core Boots Mainline Linux 6.6

Original title: Show HN: Fursoy – Out-of-order RV64IMAFDV core in SystemVerilog (Linux 6.6)
58AI Score

Fursoy Slice-1 is a clean-slate 64-bit out-of-order superscalar RISC-V processor written in SystemVerilog, supporting RV64IMAFDV plus Zba/Zbb/Zicsr/Zifencei, and has booted mainline Linux 6.6.50 with BusyBox userspace under Sv39 virtual memory. Its microarchitecture features a 128-entry reorder buffer, a 160-entry physical integer register file and 8 branch checkpoints, with 500 MHz synthesis closure across 8 core blocks on Nangate 45nm.

Full Report

Contents2 sections

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/U privilege 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, 128 speculative 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, 48 vector physical registers).
    • Parallel-prefix 64-bit Kogge-Stone fursoy_s1_alu and fursoy_s1_branch_unit (single-cycle execution + carry-free target equality), 3-stage pipelined multiplier, and hardware divider.
  • Sv39 Virtual Memory & Non-Blocking Caches:
    • Dual-port Sv39 DTLB: 64-entry 4-way set-associative base TLB (16 sets, Tree-PLRU) + 8-entry 2 MiB / 1 GiB superpage CAM with 32-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 with SFENCE.VMA store-queue drain and D-cache clean synchronization.
    • L1I Cache (fursoy_s1_l1i): 16 KiB, 4-way set-associative (64 sets × 64 B), VIPT-safe with conservative next-line prefetcher and 2 I-MSHRs.
    • L1D Cache (fursoy_s1_l1d): 16 KiB, 4-way set-associative (64 sets × 64 B), 8-bank (PA[5:3]) non-blocking data cache with 16-entry Load Queue, 16-entry Store Queue, 4 MSHRs, and 2-entry Writeback Buffer.
  • 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 MiB DRAM interface (0x8000_0000), CLINT (0x0200_0000), PLIC (0x0C00_0000, 31 external 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):

ModuleTypeCellsDFFsArea (kGE)Baseline Arrival / WNSOptimized ArrivalOpt WNS @ 500 MHz
fursoy_s1_branch_unitComb3,28504.493.712 ns (-1.712 ns)0.629 ns+1.371 ns (MET)
fursoy_s1_csrSeq13,4381,68825.8122.776 ns (-21.120 ns)1.828 ns+0.133 ns (MET)
fursoy_s1_dtlbSeq50,4176,51599.8311.011 ns (-9.211 ns)1.249 ns+0.551 ns (MET)
fursoy_s1_itlbSeq36,2386,30477.124.057 ns (-2.102 ns)1.198 ns+0.602 ns (MET)
fursoy_s1_aguComb32100.662.301 ns (-0.301 ns)1.901 ns+0.099 ns (MET)
fursoy_s1_ptwSeq1,7653293.671.956 ns (+0.005 ns)0.948 ns+1.013 ns (MET)
fursoy_s1_decodeComb1,48901.920.875 ns (+1.125 ns)0.663 ns+1.337 ns (MET)
fursoy_s1_aluComb4,06605.933.823 ns (-1.823 ns)0.994 ns+1.006 ns (MET)
Total (8 Core Blocks)—111,01914,836219.43—8 / 8 METTNS = 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)