HACKER Q&A
📣 applestone

Are there any open source RISC-V processors that I can buy and use?


As of now there are some places which offer small RISC-V processers, such as the StarFive JH7110 (used in DeepComputing DC-ROMA), however when I went to the website it said the CPU was proprietary. Are there any fully open source RISC-V CPUs that are not just hardware simulations that I can actually buy?


  👤 camel-cdr Accepted Answer ✓
XuanTie open sourced their C910 [1] and C906 core [2], excluding the xtheadvector support. You can get SBCs with them for quite cheap: C910: Lichee Pi 4A, C906: MangoPi Mq pro

How much of the implementation used in actual silicon overlap with their open source cores isn't clear. I was able to figure out where some non-standard CSR bits are located [3].

Personal, I wouldn't recommend buying them, especially not because they are open source. While source code has been published, the source code looks partially generated and at least for a software dev like me, very hard to read.

I would recommend waiting for the RuyiBook [4], which will contain the second generation of the OpenXiangShan core [5], which is developed fully in the open on GitHub. From the information available, it seems likely that it will become available this year and that it would then be the highest performing RISC-V processor generally available. See my old comment for benchmarks I ran in the RTL simulation: https://news.ycombinator.com/item?id=41331786#41331968 The only unfortunate thing it that it will likely lack support for the vector extension.

I hope they follow my suggestion of shipping the processor source code with the default Linux install.

[1] https://github.com/T-head-Semi/openc910

[2] https://github.com/XUANTIE-RV/openc906

[3] https://github.com/camel-cdr/rvv-d1?tab=readme-ov-file#enabl...

[4] https://milkv.io/ruyibook

[5] https://github.com/OpenXiangShan/XiangShan

See also, slides on the XiangShanV2 microarchitecture: https://raw.githubusercontent.com/OpenXiangShan/XiangShan-do...


👤 duskwuff
RP2350 (Raspberry Pi Pico 2) has two Hazard3 cores, which is open-source at: https://github.com/Wren6991/Hazard3

👤 jononor
What kind of performance level? RISC-V spans from 15 cent microcontrollers with 32 kB of RAM to multi-core systolic arrays with gigabytes of RAM...

👤 6SixTy
There aren't a whole lot of RISC-V processors that abide by the strictest definition of "fully open source" that are that interesting. There's GPU silicon, encode/decode, sometimes a DSP, maybe even random elements like a memory interface that aren't open source. Strip those out and it's just kind of a text mode only computer or micro controller.

👤 ElectRabbit
WCH is quiet famous for their Risc-V microcontrollers.