# RISC-V

**RISC-V**（读作“risk-five”）是一种开放标准指令集架构（ISA），基于既有的[精简指令集计算机](https://www.edgepedia.org/zh/reduced-instruction-set-computer)（RISC）原则。<sup>[1](https://docs.riscv.org/)</sup> 该ISA由一个所有实现都必须包含的基础整数ISA，以及建立在该基础之上的可选扩展构成，由RISC-V国际基金会——一个全球性非营利标准组织——负责开发、批准和维护。<sup>[2](https://riscv.github.io/riscv-isa-manual/snapshot/spec/index.html)</sup><sup> • </sup><sup>[3](https://riscv.org/about/faq/)</sup> 该ISA及其已批准的扩展在开放许可证下免收版税，因此任何人都可以在此基础上构建开源或专有处理器、软件和服务，而无需为指令集本身支付费用。<sup>[4](https://riscv.org/about/)</sup>

| 关键事实 | 详情 |
|---|---|
| 类型 | 基于RISC原则的开放标准ISA；免版税，且在永久开放许可证下开放<sup>[1](https://docs.riscv.org/)</sup><sup> • </sup><sup>[4](https://riscv.org/about/)</sup> |
| 起源 | 2010年5月由克斯特·阿萨诺维奇教授及研究生李允燮和安德鲁·沃特曼在加州大学伯克利分校并行计算实验室启动；首版手册于2011年5月13日发布<sup>[4](https://riscv.org/about/)</sup> |
| 结构 | 基础整数ISA（RV32I、RV32E、RV64I、RV64E或RV128I）加上可选的字母命名扩展，如M、A、F、D、C和V<sup>[2](https://riscv.github.io/riscv-isa-manual/snapshot/spec/index.html)</sup> |
| 治理 | RISC-V基金会于2015年成立，拥有36个创始成员；自2020年3月起在瑞士注册为RISC-V国际基金会<sup>[4](https://riscv.org/about/)</sup><sup> • </sup><sup>[3](https://riscv.org/about/faq/)</sup> |
| 应用基线 | RVA23配置文件于2024年10月21日批准，使向量扩展和虚拟机监控器扩展成为64位应用处理器的强制要求<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> |
| 软件支持 | Linux内核、GCC、LLVM和Debian 13（首个官方Debian riscv64版本）支持该架构<sup>[6](https://www.debian.org/releases/trixie/riscv64/ch02s01.en.html)</sup> |
| 采用预测 | 预计到2030年，RISC-V处理器将占全球市场的近四分之一（Omdia研究）<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> |

## 设计：基础ISA加模块化扩展

最核心的设计决策是模块化。一个RISC-V ISA由一个基础整数ISA和可选扩展组成；基础部分有意保持精简，仅包含为编译器、汇编器、链接器和操作系统提供适用目标平台所需的指令，并作为可构建更定制化处理器ISA的框架。<sup>[2](https://riscv.github.io/riscv-isa-manual/snapshot/spec/index.html)</sup> 一个ISA字符串以RV32I、RV32E、RV64I、RV64E或RV128I之一开头，其名称表明基础整数ISA支持多少位地址空间；附加的标准扩展被分配保留字母，例如“Q”代表四精度浮点，“C”代表16位压缩指令格式。<sup>[7](https://docs.riscv.org/reference/isa/unpriv/rv32.html)</sup> 压缩格式从一开始就内建于编码方案中，而非后来添加，但它并非强制性的，基础RV32I ISA使用的编码空间不到32位指令字的1/8。<sup>[8](https://riscv.github.io/riscv-isa-manual/snapshot/spec/)</sup>

模块化也是演进的机制：新指令作为可选扩展添加，而不是发布整个ISA的新版本，这使得一个规范能够覆盖广泛的应用范围并提高软件复用性。<sup>[9](https://doi.org/10.2514/1.I010735)</sup> 该标准定义了一个“通用”子集（G），包含IMAFD扩展，作为通用计算系统所需的最小集合。<sup>[9](https://doi.org/10.2514/1.I010735)</sup>

## 配置文件

由于实现可以选择不同的扩展组合，RISC-V国际基金会定义了配置文件，规定哪些ISA特性是强制或可选的，为软件开发人员提供共同目标。<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> 强制扩展可以假定存在，而可选扩展可以在运行时发现并由优化的中间件、库和应用程序加以利用。<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> 应用配置文件的主版本为在上一主版本同系列配置文件上运行的软件提供向前二进制兼容性。<sup>[10](https://riscv.atlassian.net/wiki/spaces/WPMU/pages/462258208/RISC-V%2BProfile%2BPolicy)</sup>

**RVA23**是应用处理器的核心配置文件。它于2024年10月21日批准，统一了运行标准二进制操作系统发行版中富操作系统栈的RISC-V 64位应用处理器的实现。<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> 其两个标志性强制组件是向量扩展——加速包括AI/ML、密码学和压缩在内的数学密集型工作负载——和虚拟机监控器扩展——为企业工作负载启用虚拟化。<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> 该配置文件是Android RISC-V ABI的基线要求。<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> 对于服务器，已批准的服务器SoC规范要求应用处理器hart（RISC-V中的单个硬件CPU核心）支持RVA23S64 ISA配置文件。<sup>[11](https://github.com/riscv-non-isa/riscv-server-platform/blob/main/server_platform_requirements.adoc)</sup> 微控制器配置文件（RVM）于2025年处于草案阶段，预计2026年批准。<sup>[12](https://riscv.org/wp-content/uploads/2026/01/RISC-V-Annual-Report-2025.pdf)</sup>

## 向量扩展

它向基础标量RISC-V ISA添加32个向量寄存器和七个非特权CSR（vstart、vxsat、vxrm、vcsr、vtype、vl和vlenb），旨在32位指令编码空间内为数据并行执行提供通用支持。<sup>[13](https://docs.riscv.org/reference/isa/unpriv/v-st-ext)</sup>

与固定宽度SIMD设计不同，RVV使用向量长度无关的编程模型：每个hart定义两个实现参数，ELEN（以位为单位的最大元素大小，至少为8且为2的幂）和VLEN（单个向量寄存器中的位数，为不大于2<sup>16</sup>的2的幂），相同的代码可在不同寄存器长度的机器上运行。<sup>[13](https://docs.riscv.org/reference/isa/unpriv/v-st-ext)</sup> 用于嵌入式用途的较小扩展带有“Zve”前缀，而用于应用处理器的较大单字母V扩展要求最小VLEN为128位；“Zvl”扩展进一步提高最小向量长度。<sup>[14](https://docs.riscv.org/reference/isa/extensions/vector/_attachments/riscv-v-spec.pdf)</sup> 向量密码学规范（Zvkned、Zvknh[ab]、Zvkg、Zvksed、Zvksh及相关扩展）建立在向量寄存器之上，并要求密码学专用指令具有数据无关的执行延迟。<sup>[15](https://docs.riscv.org/reference/isa/unpriv/vector-crypto.html)</sup>

## 特权架构与安全

特权规范定义了标准特权级别：机器模式（M-Mode）、监督者模式（S-Mode）和用户模式（U-Mode），将较高特权软件与较低特权软件分离。<sup>[16](https://github.com/riscv/riscv-security-model/blob/main/specification/src/chapter3.adoc)</sup> 虚拟机监控器扩展将S-Mode扩展为虚拟机监控器扩展监督者模式（HS-Mode）和面向客户机的虚拟监督者模式（VS-Mode），并将U-Mode扩展为虚拟用户模式（VU-Mode）；客户机隔离通过两阶段地址转换和保护来实施。<sup>[16](https://github.com/riscv/riscv-security-model/blob/main/specification/src/chapter3.adoc)</sup> 物理内存访问由PMP/Smepmp机制和物理内存属性（PMA）管理，后者捕获固有硬件属性，如只读ROM区域和不可缓存设备区域，并在每次物理访问时由PMA检查器检查。<sup>[16](https://github.com/riscv/riscv-security-model/blob/main/specification/src/chapter3.adoc)</sup>

[控制流完整性](https://www.edgepedia.org/zh/control-flow-integrity)由两个非特权扩展解决：Zicfilp为前向边CFI提供着陆垫，Zicfiss为后向边CFI提供影子栈，均建立在ISA的调用、返回和间接跳转约定之上。<sup>[17](https://github.com/riscv/riscv-isa-manual/blob/main/src/unpriv/cfi.adoc)</sup> ISA的形式化可执行模型维护在Sail RISC-V项目中。<sup>[18](https://github.com/riscv/sail-riscv)</sup>

## 历史与治理

该指令集于2010年5月作为加州大学伯克利分校并行计算实验室（Par Lab）的一部分启动，该实验室由[大卫·帕特森](https://www.edgepedia.org/zh/david-patterson-computer-scientist)教授领导，指令集的发起者为克斯特·阿萨诺维奇教授和研究生李允燮、安德鲁·沃特曼。<sup>[4](https://riscv.org/about/)</sup> 该名称纪念先前的伯克利RISC项目（RISC-I、RISC-II等），“V”是罗马数字五，代表第五次此类努力。<sup>[3](https://riscv.org/about/faq/)</sup> 描述该指令集的第一份出版物是并行计算实验室报告《RISC-V指令集手册，第一卷：基础用户级ISA》（EECS-2011-62），由安德鲁·沃特曼、李允燮、大卫·帕特森和克斯特·阿萨诺维奇撰写，日期为2011年5月13日。<sup>[4](https://riscv.org/about/)</sup> 指令手册的第一版于2011年5月出版。<sup>[12](https://riscv.org/wp-content/uploads/2026/01/RISC-V-Annual-Report-2025.pdf)</sup>

早期里程碑迅速跟进：2011年，采用意法半导体捐赠的28纳米FDSOI工艺技术完成了RISC-V芯片的首次流片；2014年发表论文论证免费开放指令集的理由；2015年1月举办首届RISC-V研讨会；同年晚些时候RISC-V基金会成立，拥有36个创始成员。<sup>[4](https://riscv.org/about/)</sup> 这些项目中没有申请与RISC-V相关的专利，ISA编码在技术报告发表时实际上已进入公有领域，报告文本后来置于知识共享许可证下。<sup>[4](https://riscv.org/about/)</sup> 2020年3月，RISC-V国际协会将其注册地迁至瑞士，董事会称此决定旨在确保该开放标准的生态系统持续增长。<sup>[3](https://riscv.org/about/faq/)</sup> 如今该组织在70个国家拥有超过4500名成员，其社区已增长至超过16000名工程师。<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup> 2025年，它获得ISO/IEC JTC 1 PAS提交者地位，这是迈向正式国际标准化的一步。<sup>[12](https://riscv.org/wp-content/uploads/2026/01/RISC-V-Annual-Report-2025.pdf)</sup>

规范本身是公开开发的。《RISC-V指令集手册》分为第一卷（非特权架构）、第二卷（特权架构）和第三卷（配置文件），在知识共享署名4.0国际许可证下授权，并维护在公共GitHub仓库中，通过议题机制接收对规范的反馈。<sup>[19](https://github.com/riscv/riscv-isa-manual)</sup><sup> • </sup><sup>[3](https://riscv.org/about/faq/)</sup>

## 软件生态系统

主流软件支持已经成熟。GCC和LLVM都实现了RISC-V目标，LLVM旨在跟踪基础ISA和扩展的最新批准版本。<sup>[20](https://llvm.org/docs/RISCVUsage.html)</sup> Linux内核记录了RISC-V启动要求，包括通过RISCV_EFI_BOOT_PROTOCOL进行UEFI启动。<sup>[21](https://www.kernel.org/doc/html/latest/arch/riscv/boot.html)</sup> Debian GNU/Linux 13提供了Debian针对64位小端RISC-V架构（riscv64）的首个官方版本，自2023年7月起Debian仓库一直是该移植的官方软件包仓库。<sup>[6](https://www.debian.org/releases/trixie/riscv64/ch02s01.en.html)</sup><sup> • </sup><sup>[22](https://wiki.debian.org/RISC-V/)</sup>

## 行业采用

采用已扩展到多个垂直领域。2025年3月，[英飞凌科技](https://www.edgepedia.org/zh/infineon-technologies)——全球汽车微控制器市场领导者，拥有28.5%的市场份额（TechInsights，2001年至2023年）——宣布将在其[AURIX](https://www.edgepedia.org/zh/infineon-aurix)品牌下推出基于RISC-V的新汽车微控制器系列，成为首家宣布汽车RISC-V MCU系列的半导体供应商。<sup>[23](https://www.infineon.com/press-release/2025/infatv202503-067)</sup> 在数据中心和HPC领域，服务器SoC和启动要求规范已批准，RISC-V服务器平台规范预计于2026年底正式批准，UEFI于2025年5月发布的ACPI 6.6首次包含原生RISC-V支持。<sup>[12](https://riscv.org/wp-content/uploads/2026/01/RISC-V-Annual-Report-2025.pdf)</sup> 2025年Scaleway推出了首批基于RISC-V的云实例。<sup>[12](https://riscv.org/wp-content/uploads/2026/01/RISC-V-Annual-Report-2025.pdf)</sup>

**AI和HPC势头**在2025年加速。英伟达在2025年中国RISC-V峰会上宣布，其CUDA软件平台将在CPU侧与RISC-V兼容，使RISC-V能够作为基于CUDA的系统的主处理器，这一角色传统上由x86或Arm核心担任。<sup>[24](https://www.tomshardware.com/pc-components/gpus/nvidias-cuda-platform-now-supports-risc-v-support-brings-open-source-instruction-set-to-ai-platforms-joining-x86-and-arm)</sup> 在欧洲，EuroHPC JU于2025年3月正式启动DARE，这是一个以RISC-V为中心的HPC/AI计划，由[巴塞罗那超级计算中心](https://www.edgepedia.org/zh/barcelona-supercomputing-center)协调，获得1.2亿欧元欧盟资金加国家共同资助，在为期六年、持续至2030年的框架伙伴关系下运行。<sup>[12](https://riscv.org/wp-content/uploads/2026/01/RISC-V-Annual-Report-2025.pdf)</sup> Omdia研究预测，到2030年RISC-V处理器将占全球市场的近四分之一。<sup>[5](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)</sup>

## References

1. [RISC-V Ratified Specifications Library, RISC-V International](https://docs.riscv.org/)
2. [The RISC-V Instruction Set Manual (snapshot), riscv-isa-manual](https://riscv.github.io/riscv-isa-manual/snapshot/spec/index.html)
3. [FAQ, RISC-V International](https://riscv.org/about/faq/)
4. [About RISC-V, RISC-V International](https://riscv.org/about/)
5. [RISC-V Announces Ratification of the RVA23 Profile Standard, RISC-V International (October 21, 2024)](https://riscv.org/blog/risc-v-announces-ratification-of-the-rva23-profile-standard/)
6. [Debian GNU/Linux 13 Installation Guide, Supported Hardware (riscv64)](https://www.debian.org/releases/trixie/riscv64/ch02s01.en.html)
7. [RISC-V ISA: RV32 and RV64 base chapters, docs.riscv.org](https://docs.riscv.org/reference/isa/unpriv/rv32.html)
8. [The RISC-V Instruction Set Manual (snapshot), riscv.github.io](https://riscv.github.io/riscv-isa-manual/snapshot/spec/)
9. [Leveraging the Openness and Modularity of RISC-V in Space, Journal of Aerospace Information Systems](https://doi.org/10.2514/1.I010735)
10. [RISC-V Profile Policy, RISC-V Tech Hub](https://riscv.atlassian.net/wiki/spaces/WPMU/pages/462258208/RISC-V%2BProfile%2BPolicy)
11. [RISC-V Server Platform requirements, riscv-non-isa GitHub](https://github.com/riscv-non-isa/riscv-server-platform/blob/main/server_platform_requirements.adoc)
12. [RISC-V Annual Report 2025, RISC-V International](https://riscv.org/wp-content/uploads/2026/01/RISC-V-Annual-Report-2025.pdf)
13. ["V" Standard Extension for Vector Operations, Version 1.0, docs.riscv.org](https://docs.riscv.org/reference/isa/unpriv/v-st-ext)
14. [Standard Vector Extensions (riscv-v-spec), docs.riscv.org](https://docs.riscv.org/reference/isa/extensions/vector/_attachments/riscv-v-spec.pdf)
15. [Cryptography Extensions: Vector Instructions, Version 1.0, docs.riscv.org](https://docs.riscv.org/reference/isa/unpriv/vector-crypto.html)
16. [RISC-V security building blocks, riscv-security-model specification](https://github.com/riscv/riscv-security-model/blob/main/specification/src/chapter3.adoc)
17. [Control-flow integrity extensions (Zicfilp, Zicfiss), riscv-isa-manual](https://github.com/riscv/riscv-isa-manual/blob/main/src/unpriv/cfi.adoc)
18. [Sail RISC-V model, GitHub](https://github.com/riscv/sail-riscv)
19. [riscv-isa-manual repository, GitHub](https://github.com/riscv/riscv-isa-manual)
20. [User Guide for RISC-V Target, LLVM](https://llvm.org/docs/RISCVUsage.html)
21. [RISC-V Kernel Boot Requirements, The Linux Kernel documentation](https://www.kernel.org/doc/html/latest/arch/riscv/boot.html)
22. [RISC-V, Debian Wiki](https://wiki.debian.org/RISC-V/)
23. [Infineon brings RISC-V to the automotive industry, Infineon press release (March 6, 2025)](https://www.infineon.com/press-release/2025/infatv202503-067)
24. [Nvidia's CUDA platform now supports RISC-V, Tom's Hardware (July 2025)](https://www.tomshardware.com/pc-components/gpus/nvidias-cuda-platform-now-supports-risc-v-support-brings-open-source-instruction-set-to-ai-platforms-joining-x86-and-arm)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Embedded & soft processors › Soft processors & open hardware › RISC-V

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/risc-v

English original: https://www.edgepedia.org/risc-v
