RISC-V explained

RISC-V
Designer:University of California, Berkeley
Bits:32, 64, 128
Introduced:[1]
Version:
  • unprivileged ISA 20191213,
  • privileged ISA 20211203
Design:RISC
Type:Load–store
Encoding:Variable
Branching:Compare-and-branch
Endianness:Little
Page Size:4 KiB
Extensions:
  • M: Multiplication
  • A: Atomics – LR/SC & fetch-and-op
  • F: Floating point (32-bit)
  • D: Double (64-bit)
  • Q: Quad (128-bit)
  • Zicsr: Control and status register support
  • Zifencei: Load/store fence
  • C: Compressed instructions (16-bit)
  • J: Interpreted or JIT-compiled languages support
Open:Yes, royalty free
Gpr:
  • 16
  • 32
(Includes one always-zero register)
Fpr:
  • 32
(Optional. Width depends on available extensions)

RISC-V (pronounced "risk-five") is an open standard instruction set architecture (ISA) based on established reduced instruction set computer (RISC) principles. Like several other RISC ISA, including Amber (ARMv2), OpenPOWER, OpenSPARC / LEON, and OpenRISC, RISC-V is offered under royalty-free open-source licenses.[2]

RISC-V International members, like SiFive, Andes Technology, Alibaba's Damo Academy, or Akeana,[3] [4] are offering or have announced commercial Systems On a Chip (SoC) that incorporate one or more RISC-V compatible CPU cores. Mainline support for RISC-V was added to the Linux 5.17 kernel, in 2022, along with its toolchain.[5]

The project began in 2010 at the University of California, Berkeley. There are now members in over 70 countries contributing and collaborating to define RISC-V open specifications. RISC-V International, the non-profit managing RISC-V, is currently headquartered in Switzerland.[6] [7]

The instruction set architecture (ISA) is licensed under the BSD License. In July 2023, RISC-V, in its 64-bit variant called riscv64,[8] was included as an official architecture of the major Linux distribution Debian in its unstable version.[9] The goal of this project was "to have Debian ready to install and run on systems implementing a variant of the RISC-V ISA."[10]

Overview

As a RISC architecture, the RISC-V ISA is a load–store architecture. Its floating-point instructions use IEEE 754 floating-point. Notable features of the RISC-V ISA include: instruction bit field locations chosen to simplify the use of multiplexers in a CPU, a design that is architecturally neutral, and a fixed location for the sign bit of immediate values to speed up sign extension.

The instruction set is designed for a wide range of uses. The base instruction set has a fixed length of 32-bit naturally aligned instructions, and the ISA supports variable length extensions where each instruction can be any number of 16-bit parcels in length. Extensions support small embedded systems, personal computers, supercomputers with vector processors, and warehouse-scale parallel computers.

The instruction set specification defines 32-bit and 64-bit address space variants. The specification includes a description of a 128-bit flat address space variant, as an extrapolation of 32- and 64-bit variants, but the 128-bit ISA remains "not frozen" intentionally, because, there is still little practical experience with such large memory systems.

Unlike other academic designs which are typically optimized only for simplicity of exposition, the designers intended that the RISC-V instruction set be usable for practical computers. As of June 2019, version 2.2 of the user-space ISA and version 1.11 of the privileged ISA are frozen, permitting software and hardware development to proceed. The user-space ISA, now renamed the Unprivileged ISA, was updated, ratified and frozen as version 20191213. An external debug specification is available as a draft, version 0.13.2.

Rationale

CPU design requires design expertise in several specialties: electronic digital logic, compilers, and operating systems. To cover the costs of such a team, commercial vendors of processor intellectual property (IP), such as Arm Ltd. and MIPS Technologies, charge royalties for the use of their designs, patents and copyrights.[11] [12] [13] They also often require non-disclosure agreements before releasing documents that describe their designs' detailed advantages. In many cases, they never describe the reasons for their design choices.

RISC-V was begun with a goal to make a practical ISA that was open-sourced, usable academically, and deployable in any hardware or software design without royalties. Also, justifying rationales for each design decision of the project are explained, at least in broad terms. The RISC-V authors are academics who have substantial experience in computer design, and the RISC-V ISA is a direct development from a series of academic computer-design projects, especially Berkeley RISC. RISC-V was originated in part to aid all such projects.

To build a large, continuing community of users and thereby accumulate designs and software, the RISC-V ISA designers intentionally support a wide variety of practical use cases: compact, performance, and low-power real-world implementations without over-architecting for a given microarchitecture.[14] [15] The requirements of a large base of contributors is part of the reason why RISC-V was engineered to address many possible uses.

The designers' primary assertion is that the instruction set is the key interface in a computer as it is situated at the interface between the hardware and the software. If a good instruction set were open and available for use by all, then it can dramatically reduce the cost of software by enabling far more reuse. It should also trigger increased competition among hardware providers, who can then devote more resources toward design and less for software support.

The designers maintain that new principles are becoming rare in instruction set design, as the most successful designs of the last forty years have grown increasingly similar. Of those that failed, most did so because their sponsoring companies were financially unsuccessful, not because the instruction sets were technically poor. Thus, a well-designed open instruction set designed using well-established principles should attract long-term support by many vendors.

RISC-V also encourages academic usage. The simplicity of the integer subset permits basic student exercises, and is a simple enough ISA to enable software to control research machines. The variable-length ISA provides room for instruction set extensions for both student exercises and research, and the separated privileged instruction set permits research in operating system support without redesigning compilers. RISC-V's open intellectual property paradigm allows derivative designs to be published, reused, and modified.

History

The term RISC dates from about 1980. Before then, there was some knowledge (see John Cocke) that simpler computers can be effective, but the design principles were not widely described. Simple, effective computers have always been of academic interest, and resulted in the RISC instruction set DLX for the first edition of Computer Architecture: A Quantitative Approach in 1990 of which David Patterson was a co-author, and he later participated in the RISC-V origination. DLX was intended for educational use; academics and hobbyists implemented it using field-programmable gate arrays (FPGA), but it was never truly intended for commercial deployment. ARM CPUs, versions 2 and earlier, had a public-domain instruction set and are still supported by the GNU Compiler Collection (GCC), a popular free-software compiler. Three open-source cores exist for this ISA, but were never manufactured. While OpenRISC, OpenPOWER, and OpenSPARC / LEON cores are offered, by a number of vendors, and have mainline GCC and Linux kenrel support.[16] [17] [18]

Krste Asanović at the University of California, Berkeley, had a research requirement for an open-source computer system, and in 2010, he decided to develop and publish one in a "short, three-month project over the summer" with several of his graduate students. The plan was to aid both academic and industrial users.[19] David Patterson at Berkeley joined the collaboration as he was the originator of the Berkeley RISC, and the RISC-V is the eponymous fifth generation of his long series of cooperative RISC-based research projects at the University of California, Berkeley (RISC-I and RISC-II published in 1981 by Patterson, who refers[20] to the SOAR architecture[21] from 1984 as "RISC-III" and the SPUR architecture[22] from 1988 as "RISC-IV"). At this stage, students provided initial software, simulations, and CPU designs.

The RISC-V authors and their institution originally sourced the ISA documents[23] and several CPU designs under BSD licenses, which allow derivative works—such as RISC-V chip designs—to be either open and free, or closed and proprietary. The ISA specification itself (i.e., the encoding of the instruction set) was published in 2011 as open source,[24] with all rights reserved. The actual technical report (an expression of the specification) was later placed under a Creative Commons license to permit enhancement by external contributors through the RISC-V Foundation, and later RISC-V International.

A full history of RISC-V has been published on the RISC-V International website.

RISC-V Foundation and RISC-V International

Commercial users require an ISA to be stable before they can use it in a product that may last many years. To address this issue, the RISC-V Foundation was formed in 2015 to own, maintain, and publish intellectual property related to RISC-V's definition.[25] The original authors and owners have surrendered their rights to the foundation. The foundation is led by CEO Calista Redmond, who took on the role in 2019 after leading open infrastructure projects at IBM.[26]

The founding members of RISC-V were: Andes, Antmicro, Bluespec, CEVA, Codasip, Cortus, Esperanto, Espressif, ETH Zurich, Google, IBM, ICT, IIT Madras, Lattice, lowRISC, Microchip, MIT (Csail), Qualcomm, Rambus, Rumble, SiFive, Syntacore and Technolution.[27]

In November 2019, the RISC-V Foundation announced that it would relocate to Switzerland, citing concerns over U.S. trade regulations.[28] [29] As of March 2020, the organization was named RISC-V International, a Swiss nonprofit business association.[30]

, RISC-V International freely publishes the documents defining RISC-V and permits unrestricted use of the ISA for design of software and hardware. However, only members of RISC-V International can vote to approve changes, and only member organizations use the trademarked compatibility logo.[31]

Awards

Design

ISA base and extensions

RISC-V has a modular design, consisting of alternative base parts, with added optional extensions. The ISA base and its extensions are developed in a collective effort between industry, the research community and educational institutions. The base specifies instructions (and their encoding), control flow, registers (and their sizes), memory and addressing, logic (i.e., integer) manipulation, and ancillaries. The base alone can implement a simplified general-purpose computer, with full software support, including a general-purpose compiler.

The standard extensions are specified to work with all of the standard bases, and with each other without conflict.

Many RISC-V computers might implement the compressed instructions extension to reduce power consumption, code size, and memory use. There are also future plans to support hypervisors and virtualization.

Together with the supervisor extension, S, an RVGC instruction set, which includes one of the RV base instruction sets, the G collection of extensions (which includes "I", meaning that the base is non-embedded), and the C extension, defines all instructions needed to conveniently support a general purpose operating system.

+ ISA base and extensions
NameDescriptionVersionStatusInstruction count
Base
Weak Memory Ordering 2.0
Base Integer Instruction Set, 32-bit 2.1 40
Base Integer Instruction Set (embedded), 32-bit, 16 registers 2.0 40
Base Integer Instruction Set, 64-bit 2.1 15
Base Integer Instruction Set (embedded), 64-bit 2.0
Base Integer Instruction Set, 128-bit 1.7 15
Extension
MStandard Extension for Integer Multiplication and Division 2.0 8
13
AStandard Extension for Atomic Instructions 2.1 11
22
FStandard Extension for Single-Precision Floating-Point 2.2 26
30
DStandard Extension for Double-Precision Floating-Point 2.2 26
32
ZicsrControl and Status Register (CSR) Instructions 2.0 6
ZifenceiInstruction-Fetch Fence 2.0 1
GShorthand for the IMAFD_Zicsr_Zifencei base and extensions
QStandard Extension for Quad-Precision Floating-Point 2.2 28
32
LStandard Extension for Decimal Floating-Point 0.0
CStandard Extension for Compressed Instructions 2.0 40
BStandard Extension for Bit Manipulation 1.0 43
JStandard Extension for Dynamically Translated Languages 0.0
TStandard Extension for Transactional Memory 0.0
PStandard Extension for Packed-SIMD Instructions 0.9.10
VStandard Extension for Vector Operations 1.0 187[33]
ZkStandard Extension for Scalar Cryptography 1.0.1 49
HStandard Extension for Hypervisor 1.0 15
SStandard Extension for Supervisor-level Instructions 1.124
ZamMisaligned Atomics 0.1
ZihintpausePause Hint 2.0
ZihintntlNon-Temporal Locality Hints 0.3
ZfaAdditional Floating-Point Instructions 1.0
ZfhHalf-Precision Floating-Point 1.0
ZfhminMinimal Half-Precision Floating-Point 1.0
ZfinxSingle-Precision Floating-Point in Integer Register 1.0
ZdinxDouble-Precision Floating-Point in Integer Register 1.0
ZhinxHalf-Precision Floating-Point in Integer Register 1.0
ZhinxminMinimal Half-Precision Floating-Point in Integer Register 1.0
ZmmulMultiplication Subset of the M Extension 1.0
ZtsoTotal Store Ordering 1.0
32-bit RISC-V instruction formats
FormatBit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Register/registerfunct7rs2rs1funct3rdopcode
Immediateimm[11:0]rs1funct3rdopcode
Storeimm[11:5]rs2rs1funct3imm[4:0]opcode
Branch[12]imm[10:5]rs2rs1funct3imm[4:1][11]opcode
Upper immediateimm[31:12]rdopcode
Jump[20]imm[10:1][11]imm[19:12]rdopcode
  • opcode (7 bits): Partially specifies one of the 6 types of instruction formats.
  • funct7 (7 bits) and funct3 (3 bits): These two fields extend the opcode field to specify the operation to be performed.
  • rs1 (5 bits) and rs2 (5 bits): Specify, by index, the first and second operand registers respectively (i.e., source registers).
  • rd (5 bits): Specifies, by index, the destination register to which the computation result will be directed.

To tame the combinations of functions that may be implemented, a nomenclature is defined to specify them in Chapter 27 of the current ratified Unprivileged ISA Specification. The instruction set base is specified first, coding for RISC-V, the register bit-width, and the variant; e.g., or . Then follows letters specifying implemented extensions, in the order of the above table. Each letter may be followed by a major optionally followed by "p" and a minor option number. It defaults to 0 if a minor version number is absent, and 1.0 if all of a version number is absent. Thus may be written as or more simply as . Underscores may be used between extensions for readability, for example .

The base, extended integer & floating-point calculations, with synchronization primitives for multi-core computing, are considered to be necessary for general-purpose computing, and thus we have the shorthand, "G".

A small 32-bit computer for an embedded system might be . A large 64-bit computer might be ; i.e., .

With the growth in the number of extensions, the standard now provides for extensions to be named by a single "Z" followed by an alphabetical name and an optional version number. For example, names the instruction-fetch extension. and name version 2.0 of the same. The first letter following the "Z" by convention indicates the most closely related alphabetical extension category, . Thus the Zam extension for misaligned atomics relates to the "A" standard extension. Unlike single character extensions, Z extensions must be separated by underscores, grouped by category and then alphabetically within each category. For example, .

Extensions specific to supervisor privilege level are named in the same way using "S" for prefix. Extensions specific to hypervisor level are named using "H" for prefix. Machine level extensions are prefixed with the three letters "Zxm". Supervisor, hypervisor and machine level instruction set extensions are named after less privileged extensions.

RISC-V developers may create their own non-standard instruction set extensions. These follow the "Z" naming convention, but with "X" as the prefix. They should be specified after all standard extensions, and if multiple non-standard extensions are listed, they should be listed alphabetically.

Profiles and platforms

Profiles and platforms for standard ISA choice lists are under discussion.

Register sets

Assembler mnemonics for RISC-V integer and floating-point registers, and their role in the first standard calling convention.
Register
name
Symbolic
name
Description Saved by
32 integer registers
x0 zeroAlways zero
x1 ra Caller
x2 sp Callee
x3 gp Global pointer
x4 tp
x5 t0 Temporary / alternate return address Caller
x6–7 t1–2 Temporaries Caller
x8 s0/fp Callee
x9 s1 Saved register Callee
x10–11 a0–1 Function arguments / return values Caller
x12–17 a2–7 Function arguments Caller
x18–27 s2–11 Saved registers Callee
x28–31 t3–6 Temporaries Caller
32 floating-point extension registers
f0–7 ft0–7 Floating-point temporaries Caller
f8–9 fs0–1 Floating-point saved registers Callee
f10–11 fa0–1 Floating-point arguments/return values Caller
f12–17 fa2–7 Floating-point arguments Caller
f18–27 fs2–11 Floating-point saved registers Callee
f28–31 ft8–11 Floating-point temporaries Caller

RISC-V has 32 integer registers (or 16 in the embedded variant), and when the floating-point extension is implemented, an additional 32 floating-point registers. Except for memory access instructions, instructions address only registers.

The first integer register is a zero register, and the remainder are general-purpose registers. A store to the zero register has no effect, and a read always provides 0. Using the zero register as a placeholder makes for a simpler instruction set.

Control and status registers exist, but user-mode programs can access only those used for performance measurement and floating-point management.

No instructions exist to save and restore multiple registers. Those were thought to be needless, too complex, and perhaps too slow.

Memory access

Like many RISC designs, RISC-V is a load–store architecture: instructions address only registers, with load and store instructions conveying data to and from memory.

Most load and store instructions include a 12-bit offset and two register identifiers. One register is the base register. The other register is the destination (for a load) or the source (for a store).

The offset is added to a base register to get the address. Forming the address as a base register plus offset allows single instructions to access data structures. For example, if the base register points to the top of a stack, single instructions can access a subroutine's local variables in the stack. Likewise the load and store instructions can access a record-style structure or a memory-mapped I/O device. Using the constant zero register as a base address allows single instructions to access memory near address zero.

Memory is addressed as 8-bit bytes, with instructions being in little-endian order, and with data being in the byte order defined by the execution environment interface in which code is running. Words, up to the register size, can be accessed with the load and store instructions.

RISC-V was originally specified as little-endian to resemble other familiar, successful computers, for example, x86. This also reduces a CPU's complexity and costs slightly less because it reads all sizes of words in the same order. For example, the RISC-V instruction set decodes starting at the lowest-addressed byte of the instruction. Big-endian and bi-endian variants were defined for support of legacy code bases that assume big-endianness. The privileged ISA defines bits in the and registers that indicate and, optionally, control whether M-mode, S-mode, and U-mode memory accesses other than instruction fetches are little-endian or big-endian; those bits may be read-only, in which case the endianness of the implementation is hardwired, or may be writable.

An execution environment interface may allow accessed memory addresses not to be aligned to their word width, but accesses to aligned addresses may be faster; for example, simple CPUs may implement unaligned accesses with slow software emulation driven from an alignment failure interrupt.

Like many RISC instruction sets (and some complex instruction set computer (CISC) instruction sets, such as x86 and IBM System/360 and its successors through z/Architecture), RISC-V lacks address-modes that write back to the registers. For example, it does not auto-increment.

RISC-V manages memory systems that are shared between CPUs or threads by ensuring a thread of execution always sees its memory operations in the programmed order. But between threads and I/O devices, RISC-V is simplified: it doesn't guarantee the order of memory operations, except by specific instructions, such as .

A instruction guarantees that the results of predecessor operations are visible to successor operations of other threads or I/O devices. can guarantee the order of combinations of both memory and memory-mapped I/O operations. E.g. it can separate memory read and write operations, without affecting I/O operations. Or, if a system can operate I/O devices in parallel with memory, doesn't force them to wait for each other. One CPU with one thread may decode as .

Some RISC CPUs (such as MIPS, PowerPC, DLX, and Berkeley's RISC-I) place 16 bits of offset in the loads and stores. They set the upper 16 bits by a load upper word instruction. This permits upper-halfword values to be set easily, without shifting bits. However, most use of the upper half-word instruction makes 32-bit constants, like addresses. RISC-V uses a SPARC-like combination of 12-bit offsets and 20-bit set upper instructions. The smaller 12-bit offset helps compact, 32-bit load and store instructions select two of 32 registers yet still have enough bits to support RISC-V's variable-length instruction coding.

Immediates

RISC-V handles 32-bit constants and addresses with instructions that set the upper 20 bits of a 32-bit register. Load upper immediate loads 20 bits into bits 31 through 12. Then a second instruction such as can set the bottom 12 bits. Small numbers or addresses can be formed by using the zero register instead of .

This method is extended to permit position-independent code by adding an instruction, that generates 20 upper address bits by adding an offset to the program counter and storing the result into a base register. This permits a program to generate 32-bit addresses that are relative to the program counter.

The base register can often be used as-is with the 12-bit offsets of the loads and stores. If needed, can set the lower 12 bits of a register. In 64-bit and 128-bit ISAs, and sign-extend the result to get the larger address.

Some fast CPUs may interpret combinations of instructions as single fused instructions. or are good candidates to fuse with,, loads or stores.

Subroutine calls, jumps, and branches

RISC-V's subroutine call (jump and link) places its return address in a register. This is faster in many computer designs, because it saves a memory access compared to systems that push a return address directly on a stack in memory. has a 20-bit signed (two's complement) offset. The offset is multiplied by 2, then added to the PC (program counter) to generate a relative address to a 32-bit instruction. If the resulting address is not 32-bit aligned (i.e. evenly divisible by 4), the CPU may force an exception.

RISC-V CPUs jump to calculated addresses using a jump and link-register, instruction. is similar to, but gets its destination address by adding a 12-bit offset to a base register. (In contrast, adds a larger 20-bit offset to the PC.)

's bit format is like the register-relative loads and stores. Like them, can be used with the instructions that set the upper 20 bits of a base register to make 32-bit branches, either to an absolute address (using) or a PC-relative one (using for position-independent code). (Using a constant zero base address allows single-instruction calls to a small (the offset), fixed positive or negative address.)

RISC-V recycles and to get unconditional 20-bit PC-relative jumps and unconditional register-based 12-bit jumps. Jumps just make the linkage register 0 so that no return address is saved.

RISC-V also recycles to return from a subroutine: To do this, 's base register is set to be the linkage register saved by or . 's offset is zero and the linkage register is zero, so that there is no offset, and no return address is saved.

Like many RISC designs, in a subroutine call, a RISC-V compiler must use individual instructions to save registers to the stack at the start, and then restore these from the stack on exit. RISC-V has no save multiple or restore multiple register instructions. These were thought to make the CPU too complex, and possibly slow. This can take more code space. Designers planned to reduce code size with library routines to save and restore registers.

RISC-V has no condition code register or carry bit. The designers believed that condition codes make fast CPUs more complex by forcing interactions between instructions in different stages of execution. This choice makes multiple-precision arithmetic more complex. Also, a few numerical tasks need more energy. As a result, predication (the conditional execution of instructions) is not supported. The designers claim that very fast, out-of-order CPU designs do predication anyway, by doing the comparison branch and conditional code in parallel, then discarding the unused path's effects. They also claim that even in simpler CPUs, predication is less valuable than branch prediction, which can prevent most stalls associated with conditional branches. Code without predication is larger, with more branches, but they also claim that a compressed instruction set (such as RISC-V's set C) solves that problem in most cases.

Instead, RISC-V has short branches that perform comparisons: equal, not-equal, less-than, unsigned less-than, greater-than or equal and unsigned greater-than or equal. Ten comparison-branch operations are implemented with only six instructions, by reversing the order of operands in the assembler. For example, branch if greater than can be done by less-than with a reversed order of operands.

The comparing branches have a twelve-bit signed range, and jump relative to the PC.

Unlike some RISC architectures, RISC-V does not include a branch delay slot, a position after a branch instruction that can be filled with an instruction that is executed whether or not the branch is taken. RISC-V omits a branch delay slot because it complicates multicycle CPUs, superscalar CPUs, and long pipelines. Dynamic branch predictors have succeeded well enough to reduce the need for delayed branches.

On the first encounter with a branch, RISC-V CPUs should assume that a negative relative branch (i.e. the sign bit of the offset is "1") will be taken. This assumes that a backward branch is a loop, and provides a default direction so that simple pipelined CPUs can fill their pipeline of instructions. Other than this, RISC-V does not require branch prediction, but core implementations are allowed to add it. RV32I reserves a "HINT" instruction space that presently does not contain any hints on branches; RV64I does the same.

Arithmetic and logic sets

RISC-V segregates math into a minimal set of integer instructions (set I) with add, subtract, shift, bitwise logic and comparing-branches. These can simulate most of the other RISC-V instruction sets with software. (The atomic instructions are a notable exception.) RISC-V integer instructions lacks the count leading zero and bit-field operations normally used to speed software floating-point in a pure-integer processor, However, while nominally in the bit manipulation extension, the ratified Zbb, Zba and Zbs extensions contain further integer instructions including a count leading zero instruction.

The integer multiplication instructions (set M) include signed and unsigned multiply and divide. Double-precision integer multiplies and divides are included, as multiplies and divides that produce the high word of the result. The ISA document recommends that implementors of CPUs and compilers fuse a standardized sequence of high and low multiply and divide instructions to one operation if possible.

The floating-point instructions (set F) include single-precision arithmetic and also comparison-branches similar to the integer arithmetic. It requires an additional set of 32 floating-point registers. These are separate from the integer registers. The double-precision floating point instructions (set D) generally assume that the floating-point registers are 64-bit (i.e., double-width), and the F subset is coordinated with the D set. A quad-precision 128-bit floating-point ISA (Q) is also defined. RISC-V computers without floating-point can use a floating-point software library.

RISC-V does not cause exceptions on arithmetic errors, including overflow, underflow, subnormal, and divide by zero. Instead, both integer and floating-point arithmetic produce reasonable default values, and floating-point instructions set status bits. Divide-by-zero can be discovered by one branch after the division. The status bits can be tested by an operating system or periodic interrupt.

Atomic memory operations

RISC-V supports computers that share memory between multiple CPUs and threads. RISC-V's standard memory consistency model is release consistency. That is, loads and stores may generally be reordered, but some loads may be designated as acquire operations which must precede later memory accesses, and some stores may be designated as release operations which must follow earlier memory accesses.

The base instruction set includes minimal support in the form of a instruction to enforce memory ordering. Although this is sufficient (provides acquire and provides release), combined operations can be more efficient.

The atomic memory operation extension supports two types of atomic memory operations for release consistency. First, it provides general purpose load-reserved and store-conditional instructions. performs a load, and tries to reserve that address for its thread. A later store-conditional to the reserved address will be performed only if the reservation is not broken by an intervening store from another source. If the store succeeds, a zero is placed in a register. If it failed, a non-zero value indicates that software needs to retry the operation. In either case, the reservation is released.

The second group of atomic instructions perform read-modify-write sequences: a load (which is optionally a load-acquire) to a destination register, then an operation between the loaded value and a source register, then a store of the result (which may optionally be a store-release). Making the memory barriers optional permits combining the operations. The optional operations are enabled by acquire and release bits which are present in every atomic instruction. RISC-V defines nine possible operations: swap (use source register value directly); add; bitwise and, or, and exclusive-or; and signed and unsigned minimum and maximum.

A system design may optimize these combined operations more than and . For example, if the destination register for a swap is the constant zero, the load may be skipped. If the value stored is unmodified since the load, the store may be skipped.

The IBM System/370 and its successors including z/Architecture, and x86, both implement a compare-and-swap instruction, which tests and conditionally updates a location in memory: if the location contains an expected old value, replaces it with a given new value; it then returns an indication of whether it made the change. However, a simple load-type instruction is usually performed before the to fetch the old value. The classic problem is that if a thread reads (loads) a value A, calculates a new value C, and then uses to replace A with C, it has no way to know whether concurrent activity in another thread has replaced A with some other value B and then restored the A in between. In some algorithms (e.g., ones in which the values in memory are pointers to dynamically allocated blocks), this ABA problem can lead to incorrect results. The most common solution employs a double-wide instruction to update both the pointer and an adjacent counter; unfortunately, such an instruction requires a special instruction format to specify multiple registers, performs several reads and writes, and can have complex bus operation.

The / alternative is more efficient. It usually requires only one memory load, and minimizing slow memory operations is desirable. It's also exact: it controls all accesses to the memory cell, rather than just assuring a bit pattern. However, unlike, it can permit livelock, in which two or more threads repeatedly cause each other's instructions to fail. RISC-V guarantees forward progress (no livelock) if the code follows rules on the timing and sequence of instructions: 1) It must use only the I subset. 2) To prevent repetitive cache misses, the code (including the retry loop) must occupy no more than 16 consecutive instructions. 3) It must include no system or fence instructions, or taken backward branches between the and . 4) The backward branch to the retry loop must be to the original sequence.

The specification gives an example of how to use the read-modify-write atomic instructions to lock a data structure.

Compressed subset

The standard RISC-V ISA specifies that all instructions are 32 bits. This makes for a particularly simple implementation, but like other RISC processors with 32-bit instruction encoding, results in larger code size than in instruction sets with variable-length instructions.

To compensate, RISC-V's 32-bit instructions are actually 30 bits; of the opcode space is reserved for an optional (but recommended) variable-length compressed instruction set, RVC, that includes 16-bit instructions. As in ARM Thumb and MIPS16, the compressed instructions are simply alternative encodings for a subset of the larger instructions. Unlike the ARM or MIPS compressed sets, space was reserved from the start so there is no separate operating mode. Standard and compressed instructions may be intermixed freely. (Extension letter is C.)

Because (like Thumb-1 and MIPS16) the compressed instructions are simply alternate encodings (aliases) for a selected subset of larger instructions, the compression can be implemented in the assembler, and it is not essential for the compiler to even know about it.

A prototype of RVC was tested in 2011. The prototype code was 20% smaller than an x86 PC and MIPS compressed code, and 2% larger than ARM Thumb-2 code. It also substantially reduced both the needed cache memory and the estimated power use of the memory system.

The researcher intended to reduce the code's binary size for small computers, especially embedded computer systems. The prototype included 33 of the most frequently used instructions, recoded as compact 16-bit formats using operation codes previously reserved for the compressed set. The compression was done in the assembler, with no changes to the compiler. Compressed instructions omitted fields that are often zero, used small immediate values or accessed subsets (16 or 8) of the registers. is very common and often compressible.

Much of the difference in size compared to ARM's Thumb set occurred because RISC-V, and the prototype, have no instructions to save and restore multiple registers. Instead, the compiler generated conventional instructions that access the stack. The prototype RVC assembler then often converted these to compressed forms that were half the size. However, this still took more code space than the ARM instructions that save and restore multiple registers. The researcher proposed to modify the compiler to call library routines to save and restore registers. These routines would tend to remain in a code cache and thus run fast, though probably not as fast as a save-multiple instruction.

Standard RVC requires occasional use of 32-bit instructions. Several nonstandard RVC proposals are complete, requiring no 32-bit instructions, and are said to have higher densities than standard RVC.[34] [35] Another proposal builds on these, and claims to use less coding range as well.[36]

Embedded subset

An instruction set for the smallest embedded CPUs (set E) is reduced in other ways: Only 16 of the 32 integer registers are supported. All current extensions may be used; a floating-point extension to use the integer registers for floating-point values is being considered. The privileged instruction set supports only machine mode, user mode and memory schemes that use base-and-bound address relocation.

Discussion has occurred for a microcontroller profile for RISC-V, to ease development of deeply embedded systems. It centers on faster, simple C-language support for interrupts, simplified security modes and a simplified POSIX application binary interface.[37]

Correspondents have also proposed smaller, non-standard, 16-bit RV16E ISAs: Several serious proposals would use the 16-bit C instructions with 8 × 16-bit registers.[35] [34] An April fools' joke proposed a very practical arrangement: Utilize 16 × 16-bit integer registers, with the standard EIMC ISAs (including 32-bit instructions.) The joke was to use bank switching when a 32-bit CPU would be clearly superior with the larger address space.[38]

Privileged instruction set

RISC-V's ISA includes a separate privileged instruction set specification, which mostly describes three privilege levels plus an orthogonal hypervisor mode., version 1.12 is ratified by RISC-V International.

Version 1.12 of the specification supports several types of computer systems:

  1. Systems that have only machine mode, perhaps for simple embedded systems,
  2. Systems with both machine mode (for a simple supervisor) and user-mode to implement relatively secure embedded systems,
  3. Systems with machine-mode, supervisor mode (for operating system) and user-modes for typical operating systems.

These correspond roughly to systems with up to four rings of privilege and security, at most: machine, hypervisor, supervisor and user. Each layer also is expected to have a thin layer of standardized supporting software that communicates to a more-privileged layer, or hardware.

The ISA also includes a hypervisor mode that is orthogonal to the user and supervisor modes.[39] The basic feature is a configuration bit that either permits supervisor-level code to access hypervisor registers, or causes an interrupt on accesses. This bit lets supervisor mode directly handle the hardware needed by a hypervisor. This simplifies the implementation of hypervisors that are hosted by an operating system. This is a popular mode to run warehouse-scale computers. To support non-hosted hypervisors, the bit can cause these accesses to interrupt to a hypervisor. The design also simplifies nesting of hypervisors, in which a hypervisor runs under a hypervisor, and if necessary it lets the kernel use hypervisor features within its own kernel code. As a result, the hypervisor form of the ISA supports five modes: machine, supervisor, user, supervisor-under-hypervisor and user-under-supervisor.

The privileged instruction set specification explicitly defines hardware threads, or harts. Multiple hardware threads are a common practice in more-capable computers. When one thread is stalled, waiting for memory, others can often proceed. Hardware threads can help make better use of the large number of registers and execution units in fast out-of-order CPUs. Finally, hardware threads can be a simple, powerful way to handle interrupts: No saving or restoring of registers is required, simply executing a different hardware thread. However, the only hardware thread required in a RISC-V computer is thread zero.

Interrupts and exceptions are handled together. Exceptions are caused by instruction execution including illegal instructions and system calls, while interrupts are caused by external events. The existing control and status register definitions support RISC-V's error and memory exceptions, and a small number of interrupts, typically via an "advanced core local interruptor" (ACLINT).[40] For systems with more interrupts, the specification also defines a platform-level interrupt controller (PLIC) to coordinate large number of interrupts among multiple processors. Interrupts always start at the highest-privileged machine level, and the control registers of each level have explicit forwarding bits to route interrupts to less-privileged code. For example, the hypervisor need not include software that executes on each interrupt to forward an interrupt to an operating system. Instead, on set-up, it can set bits to forward the interrupt.

Several memory systems are supported in the specification. Physical-only is suited to the simplest embedded systems. There are also four UNIX-style virtual memory systems for memory cached in mass-storage systems. The virtual memory systems support MMU with four sizes, with addresses sized 32, 39, 48 and 57 bits. All virtual memory systems support 4 KiB pages, multilevel page-table trees and use very similar algorithms to walk the page table trees. All are designed for either hardware or software page-table walking. To optionally reduce the cost of page table walks, super-sized pages may be leaf pages in higher levels of a system's page table tree. SV32 is only supported on 32-bit implementations, has a two-layer page table tree and supports 4 MiB superpages. SV39 has a three level page table, and supports 2 MiB superpages and 1 GiB gigapages. SV48 is required to support SV39. It also has a 4-level page table and supports 2 MiB superpages, 1 GiB gigapages, and 512 GiB terapages. SV57 has a 5-level page table and supports 2 MiB superpages, 1 GiB gigapages, 512 GiB terapages and 256 TiB petapages. Superpages are aligned on the page boundaries for the next-lowest size of page.

Bit manipulation

Some bit-manipulation ISA extensions were ratified in November 2021 (Zba, Zbb, Zbc, Zbs).[41] The Zba, Zbb, and Zbs extensions are arguably extensions of the standard I integer instructions: Zba contains instructions to speed up the computation of the addresses of array elements in arrays of datatypes of size 2, 4, or 8 bytes (sh1add, sh2add, sh3add), and for 64 (and 128) bit processors when indexed with unsigned integers (add.uw, sh1add.uw, sh2add.uw, sh3add.uw and slli.uw). The Zbb instructions contains operations to count leading, trailing 0 bits or all 1 bits in a full and 32 word operations (clz, clzw, ctz, ctzw, cpop, cpopw), byte order reversion (rev8), logical instructions with negation of the second input (andn,orn, xnor), sign and zero extension (sext.b, sext.h, zext.h) that could not be provided as special cases of other instructions (andi, addiw, add.wu), min and max of (signed and unsigned) integers, (left and right) rotation of bits in a register and 32-bit words (rori,roriw, ror, rorw, rol, rolw), and a byte wise "or combine" operation which allows detection of a zero byte in a full register, useful for handling C-style null terminated strings functions. The Zbs extension allows setting, getting, clearing, and toggling individual bits in a register by their index (bseti, bset, bexti, bext, bclri, bclr, binvi,binv).

The Zbc extension has instructions for "carryless multiplication", which does the multiplication of polynomials over the Galois field GF(2) (clmul, clmulh, clmulr). These are useful for cryptography and CRC checks of data integrity.

Done well, a more specialised bit-manipulation subset can aid cryptographic, graphic, and mathematical operations. Further instructions that have been discussed include instructions to shift in ones, a generalized bit-reverse, shuffle and crossbar permutations, bit-field place, extract and deposit pack two words, bytes or halfwords in one register, CRC instructions, bit-matrix operations (RV64 only), conditional mix, conditional move, funnel shifts. The criteria for inclusion documented in the draft were compliant with RISC-V philosophies and ISA formats, substantial improvements in code density or speed (i.e., at least a 3-for-1 reduction in instructions), and substantial real-world applications, including preexisting compiler support. Version 0.93 of the bit-manipulation extension includes those instructions;[42] some of them are now in version 1.0.1 of the scalar and entropy source instructions cryptography extension.[43]

Packed SIMD

Packed-SIMD instructions are widely used by commercial CPUs to inexpensively accelerate multimedia and other digital signal processing. For simple, cost-reduced RISC-V systems, the base ISA's specification proposed to use the floating-point registers' bits to perform parallel single instruction, multiple data (SIMD) sub-word arithmetic.

In 2017 a vendor published a more detailed proposal to the mailing list, and this can be cited as version 0.1.[44], the efficiency of this proposed ISA varies from 2x to 5x a base CPU for a variety of DSP codecs.[45] The proposal lacked instruction formats and a license assignment to RISC-V International, but it was reviewed by the mailing list.[44] Some unpopular parts of this proposal were that it added a condition code, the first in a RISC-V design, linked adjacent registers (also a first), and has a loop counter that can be difficult to implement in some microarchitectures.

Vector set

The proposed vector-processing instruction set may make the packed SIMD set obsolete. The designers hope to have enough flexibility that a CPU can implement vector instructions in a standard processor's registers. This would enable minimal implementations with similar performance to a multimedia ISA, as above. However, a true vector coprocessor could execute the same code with higher performance.[46]

, the vector extension is at version 1.0.[47] It is a conservative, flexible design of a general-purpose mixed-precision vector processor, suitable to execute compute kernels. Code would port easily to CPUs with differing vector lengths, ideally without recompiling.[46]

In contrast, short-vector SIMD extensions are less convenient. These are used in x86, ARM and PA-RISC. In these, a change in word-width forces a change to the instruction set to expand the vector registers (in the case of x86, from 64-bit MMX registers to 128-bit Streaming SIMD Extensions (SSE), to 256-bit Advanced Vector Extensions (AVX), and AVX-512). The result is a growing instruction set, and a need to port working code to the new instructions.

In the RISC-V vector ISA, rather than fix the vector length in the architecture, instructions (and) are available which take a requested size and sets the vector length to the minimum of the hardware limit and the requested size. So, the RISC-V proposal is more like a Cray's long-vector design or ARM's Scalable Vector Extension. That is, each vector in up to 32 vectors is the same length.

The application specifies the total vector width it requires, and the processor determines the vector length it can provide with available on-chip resources. This takes the form of an instruction with four immediate operands, specifying the number of vector registers of each available width needed. The total must be no more than the addressable limit of 32, but may be less if the application does not require them all. The vector length is limited by the available on-chip storage divided by the number of bytes of storage needed for each entry. (Added hardware limits may also exist, which in turn may permit SIMD-style implementations.)[46]

Outside of vector loops, the application can zero the number of requested vector registers, saving the operating system the work of preserving them on context switches.[46]

The vector length is not only architecturally variable, but designed to vary at run time also. To achieve this flexibility, the instruction set is likely to use variable-width data paths and variable-type operations using polymorphic overloading.[46] The plan is that these can reduce the size and complexity of the ISA and compiler.[46]

Recent experimental vector processors with variable-width data paths also show profitable increases in operations per: second (speed), area (lower cost), and watt (longer battery life).[48]

Unlike a typical modern graphics processing unit, there are no plans to provide special hardware to support branch predication. Instead, lower cost compiler-based predication will be used.[46] [49]

External debug system

There is a preliminary specification for RISC-V's hardware-assisted debugger. The debugger will use a transport system such as Joint Test Action Group (JTAG) or Universal Serial Bus (USB) to access debug registers. A standard hardware debug interface may support either a standardized abstract interface or instruction feeding.[50] [51]

, the exact form of the abstract interface remains undefined, but proposals include a memory mapped system with standardized addresses for the registers of debug devices or a command register and a data register accessible to the communication system.[50] Correspondents claim that similar systems are used by Freescale's background debug mode interface (BDM) for some CPUs, ARM, OpenRISC, and Aeroflex's LEON.[50]

In instruction feeding, the CPU will process a debug exception to execute individual instructions written to a register. This may be supplemented with a data-passing register and a module to directly access the memory. Instruction feeding lets the debugger access the computer exactly as software would. It also minimizes changes in the CPU, and adapts to many types of CPU. This was said to be especially apt for RISC-V because it is designed explicitly for many types of computers. The data-passing register allows a debugger to write a data-movement loop to RAM, and then execute the loop to move data into or out of the computer at a speed near the maximum speed of the debug system's data channel.[50] Correspondents say that similar systems are used by MIPS Technologies MIPS, Intel Quark, Tensilica's Xtensa, and for Freescale Power ISA CPUs' background debug mode interface (BDM).[50]

A vendor proposed a hardware trace subsystem for standardization, donated a conforming design, and initiated a review.[52] [53] The proposal is for a hardware module that can trace code execution on most RISC-V CPUs. To reduce the data rate, and permit simpler or less-expensive paths for the trace data, the proposal does not generate trace data that can be calculated from a binary image of the code. It sends only data that indicates "uninferrable" paths through the program, such as which conditional branches are taken. To reduce the data rates, branches that can be calculated, such as unconditional branches, are not traced. The proposed interface between the module and the control unit is a logic signal for each uninferrable type of instruction. Addresses and other data are to be provided in a specialized bus attached to appropriate data sources in a CPU. The data structure sent to an external trace unit is a series of short messages with the needed data. The details of the data channel are intentionally not described in the proposal, because several are likely to make sense.

Implementations

The RISC-V organization maintains a list of RISC-V CPU and SoC implementations.[54] Due to trade wars and possible sanctions that would prevent China from accessing proprietary ISAs, as of 2023 the country was planning to shift most of its CPU and MCU architectures to RISC-V cores.[55]

In 2023, the European Union was set to provide 270 million euros within a so-called Framework Partnership Agreement (FPA) to a single company that was able and willing to carry out a RISC-V CPU development project aimed at supercomputers, servers, and data centers.[56] The European Union's aim was to become independent from political developments in other countries and to "strengthen its digital sovereignty and set standards, rather than following those of others."[57]

Existing

Existing proprietary implementations include:

In development

Open source

Many open-sourced RISC-V CPU designs exist, including:

Software

A normal problem for a new instruction set is both a lack of CPU designs and of software, which limit its usability and reduce adoption.[19] RISC-V already has a large number of CPU hardware designs. RISC-V software, on the other hand, includes toolchains, operating systems, e.g. Linux, middleware and design software.

Available RISC-V software tools include a GNU Compiler Collection (GCC) toolchain (with GDB, the debugger), an LLVM toolchain, the OVPsim simulator (and library of RISC-V Fast Processor Models), the Spike simulator, and a simulator in QEMU (RV32GC/RV64GC). JEP 422: Linux/RISC-V Port is already integrated into mainline OpenJDK repository. Java 21+ Temurin OpenJDK builds for RISC-V are available from Adoptium.

Operating system support exists for the Linux kernel, FreeBSD, NetBSD, and OpenBSD but the supervisor-mode instructions were unstandardized before version 1.11 of the privileged ISA specification, so this support is provisional. The preliminary FreeBSD port to the RISC-V architecture was upstreamed in February 2016, and shipped in FreeBSD 11.0.

Ports of the Debian[134] [135] and Fedora[136] Linux distributions, and a port of Haiku,[137] are stabilizing (all only support 64-bit RISC-V, with no plans to support 32-bit version). In June 2024, Hong Kong company DeepComputing announced the commercial availability of the first RISC-V laptop in the world to run the popular Linux operating system Ubuntu in its standard form ("out of the box").[138] "As RISC-V is becoming a competitive ISA in multiple markets, porting Ubuntu to RISC-V to become the reference OS [operating system] for early adopters was a natural choice," Ubuntu-developer Canonical stated in June 2024.[139]

A port of Das U-Boot exists.[140] UEFI Spec v2.7 has defined the RISC-V binding and a TianoCore port has been done by HPE engineers and is expected to be upstreamed. There is a preliminary port of the seL4 microkernel.[141] [142] Hex Five released the first Secure IoT Stack for RISC-V with FreeRTOS support.[143] Also xv6, a modern reimplementation of Sixth Edition Unix in ANSI C used for pedagogical purposes in MIT, was ported. Pharos RTOS has been ported to 64-bit RISC-V[144] (including time and memory protection). Also see Comparison of real-time operating systems.

A simulator exists to run a RISC-V Linux system on a web browser using JavaScript.[145] [146] [147]

QEMU supports running (using binary translation) 32- and 64-bit RISC-V systems (e.g. Linux) with many emulated or virtualized devices (serial, parallel, USB, network, storage, real time clock, watchdog, audio), as well as running RISC-V Linux binaries (translating syscalls to the host kernel). It does support multi-core emulation (SMP).[148]

The Creator simulator is portable and allows the user to learn various assembly languages of different processors (Creator has examples with an implementation of RISC-V and MIPS32 instructions).[149] [150] [151] [152] [153]

The extensible educational simulator WepSIM implements a (microprogrammed) subset of RISC-V instructions (RV32I+M) and allows the execution of subroutines in assembly.[154] [155]

Several languages have been applied to creating RISC-V IP cores including a Scala-based hardware description language, Chisel,[156] which can reduce the designs to Verilog for use in devices, and the CodAL processor description language which has been used in to describe RISC-V processor cores and to generate corresponding HDKs (RTL, testbench and UVM) and SDKs.[157] The RISC-V International Compliance Task Group has a GitHub repository for RV32IMC.

Development tools

See also

Further reading

External links

Notes and References

  1. Asanović . Krste . Krste Asanović . Patterson . David A. . David A. Patterson (computer scientist) . August 6, 2014 . Instruction Sets Should Be Free: The Case For RISC-V . UCB/EECS-2014-146 . EECS Department, University of California, Berkeley.
  2. Web site: Frequently Asked Questions (FAQ) – RISC-V International . 2024-08-20 . en-US.
  3. Web site: published . Anton Shilov . 2024-03-20 . Alibaba claims it will launch a server-grade RISC-V processor this year . 2024-08-19 . Tom's Hardware . en.
  4. Web site: Connatser . Matthew . 2024-08-13 . Akeana debuts RISC-V CPU designs on $100M budget, longs for an Arm wrestle . 2024-08-19 . The Register.
  5. Web site: 2022 . Linux 5.17 Adds Support For “The First Usable, Low-Cost RISC-V Platform” Michael Larabel, Phoronix – RISC-V International . 2024-08-20 . en-US.
  6. Web site: About RISC-V, RISC-V International is the global non-profit home of the open standard RISC-V Instruction Set Architecture (ISA) . RISC-V International .
  7. Web site: RISC-V To Move HQ to Switzerland Amid Trade War Concerns . 28 November 2019 . EE Times Europe .
  8. Web site: RISC-V - Debian Wiki . 2024-08-13 . wiki.debian.org.
  9. Web site: riscv64 is now an official architecture . 2024-08-13 . lists.debian.org.
  10. Web site: RISC-V - Debian Wiki . 2024-08-13 . wiki.debian.org.
  11. Web site: A long look at how ARM licenses chips: Part 1 . Demerjian . Chuck . August 7, 2013 . SemiAccurate.
  12. Web site: How ARM licenses its IP for production: Part 2 . Demerjian . Chuck . August 8, 2013 . SemiAccurate.
  13. Web site: Wave Computing Closes Its MIPS Open Initiative with Immediate Effect, Zero Warning. 2019-11-15.
  14. Web site: Celio . Christopher . Love . Eric . riscv-sodor: educational microarchitectures for risc-v isa . GitHub . Regents of the University of California . 2019-10-25.
  15. Web site: Celio . Christopher . CS 152 Laboratory Exercise 3 . UC Berkeley . Regents of the University of California . 12 February 2015 . https://web.archive.org/web/20150212211808/http://www-inst.eecs.berkeley.edu/~cs152/sp14/handouts/lab3.pdf . 12 February 2015 . dead.
  16. Web site: CPU Architectures — The Linux Kernel documentation . 2024-08-20 . docs.kernel.org.
  17. Web site: published . Aleksandar Kostovic . 2021-07-12 . Libre-SOC Releases First Non-IBM OpenPOWER Chip in Decade . 2024-08-20 . Tom's Hardware . en.
  18. Nguyen . Phuc-Vinh . Tran . Thi-Thu-Trang . Diep . Phuoc-Loc . Le . Duc-Hung . September 2018 . A Low-Power ASIC Implementation of Multi-Core OpenSPARC T1 Processor on 90nm CMOS Process . IEEE Xplore . IEEE . 95–100 . 10.1109/MCSoC2018.2018.00027 . 978-1-5386-6689-0.
  19. Web site: Instruction Sets Should be Free . Asanović . Krste . Krste Asanović . U.C. Berkeley Technical Reports . Regents of the University of California . 15 November 2016.
  20. Chen . Tony . David . Patterson . David Patterson (computer scientist) . 2016-01-24 . RISC-V . University of California at Berkeley . UCB/EECS-2016-6 .
  21. Samples . Alan Dain . Klein . Mike . Foley . Pete . 1985 . SOAR Architecture . University of California, Berkeley . UCB/CSD-85-226 .
  22. Hill . Mark Donald . . December 1985 . SPUR: A VLSI Multiprocessor Workstation . University of California, Berkeley . UCB/CSD-86-273 .
  23. Web site: The RISC-V Instruction Set Manual, Volume I: Base User-Level ISA . Asanović . Krste . Krste Asanović . U.C. Berkeley Technical Reports . Regents of the University of California . 13 May 2011.
  24. News: Hruska . Joel . 21 August 2014 . RISC rides again: New RISC-V architecture hopes to battle ARM and x86 by being totally open source . ExtremeTech.
  25. News: A new blueprint for microprocessors challenges the industry's giants . 2019-10-03 . The Economist . 2019-11-10 . 0013-0613.
  26. Web site: Design Automation Conference. 2021-02-06. dac.com.
  27. Web site: Members . 2023-08-01 . RISC-V International . en-US.
  28. News: 2019-11-26 . U.S.-based chip-tech group moving to Switzerland over trade curb fears . en . . 2019-11-26.
  29. Web site: Cheung . Sunny . December 15, 2023 . Examining China's Grand Strategy For RISC-V . 2023-12-18 . China Brief . . en-US.
  30. Web site: RISC-V History - RISC-V International . RISC-V International . 2020-05-14.
  31. Web site: Branding Guidelines – RISC-V International . 2024-06-23 . en-US.
  32. The Linley Group Announces Winners of Annual Analysts' Choice Awards . The Linley Group . 12 January 2017 . 21 January 2018.
  33. Web site: Vector Extension . November 2021 . RISC-V International .
  34. Web site: Brussee . Rogier . A Complete 16-bit RVC . Google Groups . RISC-V Foundation . 18 July 2019.
  35. Web site: Proposal: Xcondensed, [a] ... Compact ... 16 bit standalone G-ISA ]. Brussee . Rogier . RISC-V ISA Mail Server . Google Groups . 10 November 2016.
  36. Web site: Phung . Xan . Improved Xcondensed . Google Groups . RISC-V Foundation . 18 July 2019.
  37. Web site: The RISC-V Microcontroller Profile . Ionescu . Liviu . GitHub . 5 April 2018.
  38. Proposal: RV16E . Barros . Cesar . RISC-V ISA Developers . 1 April 2018 . 2 April 2018.
  39. Proposal for Virtualization without H mode . Bonzini . Paolo . Waterman . Andrew . RISC-V ISA Developers . 24 February 2017.
  40. Web site: riscv-aclint/riscv-aclint.adoc at main · riscv/riscv-aclint . 2024-01-02 . GitHub . en.
  41. Web site: Bit-Manipulation ISA-extensions . November 2021 . RISC-V International .
  42. Web site: Wolf. Claire. 2021-01-10. RISC-V Bitmanip Extension Document Version 0.93. 9 March 2021. GitHub. RISC-V Foundation.
  43. Web site: 2022-02-18. RISC-V Cryptography Extensions Volume I Scalar & Entropy Source Instructions. . 2023-01-28.
  44. Web site: Instruction Summary for a "P" ISA Proposal . Google Groups . ANDES Technologies . 13 January 2020.
  45. Web site: Su . Charlie . Comprehensive RISC-V Solutions for AIoT . RISC-V Content . RISC-V Foundation . 30 June 2018 . 28 January 2023.
  46. Web site: RISC-V Vector Extension Proposal . Schmidt . Colin . Ou . Albert . Lee . Yunsup . Asanović . Krste . Krste Asanović . RISC-V . Regents of the University of California . 14 March 2016.
  47. Web site: Release Vector Extension 1.0, frozen for public review · riscv/Riscv-v-spec . GitHub.
  48. Web site: A Case for MVPs: Mixed-Precision Vector Processors . Ou . Albert . Nguyen . Quan . Lee . Yunsup . Asanović . Krste . Krste Asanović . UC Berkeley EECS . Regents of the University of California . 14 March 2016 . https://web.archive.org/web/20160315090613/http://www.eecs.berkeley.edu/~yunsup/papers/hwacha-mvp-prism2014.pdf . 15 March 2016 . dead.
  49. Web site: Exploring the Design Space of SPMD Divergence Management on Data-Parallel Architectures . Lee . Yunsup . Grover . Vinod . Krashinsky . Ronny . Stephenson . Mark . Keckler . Stephen W. . Asanović . Krste . Krste Asanović . Berkeley's EECS Site . Regents of the University of California . 14 March 2016 . https://web.archive.org/web/20160315090618/http://www.eecs.berkeley.edu/~yunsup/papers/predication-micro2014.pdf . 15 March 2016 . dead.
  50. Web site: RISC-V Run Control Debug . Bradbury . Alex . Wallentowitz . Stefan . Google Docs . RISC-V Foundation . 20 January 2017.
  51. Web site: RISC-V Debug Group > poll results . Newsome . Tim . Google Groups, RISC-V Debug Group . RISC-V Foundation . 20 January 2017.
  52. Web site: McGooganus . riscv-trace-spec . GitHub . 13 January 2020.
  53. Web site: Dahad . Nitin . UltraSoC Tackles RISC-V Support Challenge by Donating Trace Encoder . EE Times . Aspencore . 13 January 2020.
  54. Web site: RISC-V Cores and SoC Overview . RISC-V . 5 October 2019 . 25 September 2019.
  55. Web site: China Is All In on a RISC-V Future . 8 January 2024 . 2024-05-07.
  56. Web site: online . heise . 2022-12-21 . 270 Millionen Euro für CPUs und Beschleuniger: EuroHPC fördert RISC-V-Technik . 2024-08-13 . heise online . de.
  57. Web site: 2020-02-19 . A Europe fit for the digital age - European Commission . 2024-08-13 . commission.europa.eu . en.
  58. Web site: D1 . 2021-09-30.
  59. Web site: RISC-V International Members . RISC-V International . 2021-01-22.
  60. Web site: At CES2022 Bouffalo Shows its Matter Turnkey Solution. www.eetimes.com. 17 January 2022 . 2022-01-20.
  61. Web site: CloudBEAR. 2018-10-16.
  62. Web site: Codasip announces RISC-V processor cores providing multi-core and SIMD capabilities. 2021-02-09. www.newelectronics.co.uk. 23 December 2020. https://web.archive.org/web/20201223193035/https://www.newelectronics.co.uk/electronics-news/codasip-announces-risc-v-processor-cores-providing-multi-core-and-simd-capabilities/232807/. dead.
  63. Book: 3.6.2 Ultra-Low-Power Co-Processor . ESP32-S2 Family Datasheet V1.1 . 2020 . Espressif Systems . 2020-06-09.
  64. Web site: ESP32-C3 Family Datasheet V0.4 . 2020 . Espressif Systems . 2020-12-27.
  65. Web site: Manners . David . 2021-06-08 . Fraunhofer licensing fault-tolerant RISC core for safety-critical applications . 2022-04-13 . Electronics Weekly . en.
  66. Web site: GigaDevice Unveils The GD32V Series With RISC-V Core in a Brand New 32-bit General Purpose Microcontroller. www.gigadevice.com. 23 August 2019. 2019-08-29. 29 August 2019. https://web.archive.org/web/20190829184033/https://www.gigadevice.com/press-release/gigadevice-unveils-the-gd32v-series-with-risc-v-core-in-a-brand-new-32bit-general-purpose-microcontroller/. dead.
  67. Web site: Sipeed Longan Nano - RISC-V GD32VF103CBT6 Development Board. www.seeedstudio.com. en. 2019-08-29.
  68. Web site: Kleidermacher . Dave . Seed . Jesse . Barbello . Brandon . 2021-10-27 . Pixel 6: Setting a new standard for mobile security . https://web.archive.org/web/20211027171805/https://security.googleblog.com/2021/10/pixel-6-setting-new-standard-for-mobile.html . 2021-10-27 . 2023-02-12 . Google Security Blog.
  69. Web site: GreenWaves GAP8 is a Low Power RISC-V IoT Processor Optimized for Artificial Intelligence Applications . CNXSoft: Embedded Systems News . 2018-03-04. 27 February 2018 .
  70. News: AI Comes to Sensing Devices . Yoshida . Junko . EE Times . 2018-02-26 . 2018-07-10.
  71. GreenWaves Technologies Announces Availability of GAP8 Software Development Kit and GAPuino Development Board . 2018-05-22.
  72. Web site: IMG RTXM-2200 CPU . 2023-09-30 . Imagination . en-GB.
  73. Web site: MIPS Rolls Out Its First RISC-V Processor Core – It's a Big 'Un . 9 January 2023 . Leibson . Steven . EEJournal.
  74. Web site: MIPS discloses first RISC-V chips coming in Q4 2022 . 11 May 2022 . Robinson . Dan . The Register.
  75. Web site: Seagate Develops Own RISC-V Cores for Storage Controllers . Shilov . Anton . 9 December 2020 . Tom's Hardware.
  76. Web site: HiFive1 . SiFive . 2018-07-10 . 26 February 2017 . https://web.archive.org/web/20170226212908/https://www.sifive.com/products/hifive1/ . dead .
  77. Web site: Hi-Five1: Open-source Arduino-Compatible Development Kit . SiFive . Crowd Supply . 2 December 2016.
  78. Web site: FU540 SoC CPU . SiFive . 2018-10-24 . FU540 . https://web.archive.org/web/20181005225710/https://www.sifive.com/chip-designer#fu540 . 5 October 2018 . dead.
  79. News: Horwitz . Josh . 23 March 2023 . Chinese search giant Baidu invests in RISC-V chip technology startup StarFive . Reuters.
  80. Web site: Sharwood . Simon . 27 March 2023 . Chinese web giant Baidu backs RISC-V for the datacenter . The Register.
  81. Web site: Syntacore . 2018-12-11.
  82. Web site: SCR1 is a high-quality open-source RISC-V MCU core in Verilog . GitHub . Syntacore . 2020-01-13.
  83. Web site: RISC-V workshop proceedings . 2023-01-28. 11 December 2016 .
  84. Web site: WinChipHead (WCH).
  85. Web site: CH32V003 . WCH-IC . 2023-07-10.
  86. Web site: the-10-cent-risc-v-processor-ch32v003. EEvblog . 2023-07-10.
  87. Web site: Manners. David. 23 November 2016. Codasip and UltraSoC Combine on RISC-V. 23 November 2016. Electronics Weekly. Metropolis International Group, Ltd..
  88. News: Desikan. Shubashree. 2018-08-06. IIT-Madras powers up a desi chip. en-IN. The Hindu. 2020-09-25. subscription. 0971-751X.
  89. Web site: Meet India's Atmanirbhar Microprocessor chip 'Moushik', meant for IoT devices. 2020-09-25. WION. 24 September 2020 . en.
  90. Web site: Dobberstein . Laura . India's homebrew RISC-V CPU debuts in cheap dev board . 2024-03-06 . The Register . en.
  91. Ashenden . Peter . 9 November 2016 . Re: [isa-dev] RISC V ISA for embedded systems ]. At ASTC (www.astc-design.com), we have an implementation of RV32EC as a synthesizable IP core intended for small embedded applications, such as smart sensors and IoT. . RISC-V ISA Developers. 10 November 2016.
  92. Web site: C-DAC announces Tech Conclave 2019. The Times of India. 2019-04-12. https://web.archive.org/web/20190517221350/https://timesofindia.indiatimes.com/home/education/news/c-dac-announces-tech-conclave-2019/articleshow/68650294.cms. 17 May 2019. dead.
  93. Web site: Sharwood. Simon. 19 August 2020. India selects RISC-V for semiconductor self-sufficiency contest: Use these homegrown cores to build kit. 2021-07-09. The Register. en.
  94. Web site: 9 July 2021. VEGA MICROPROCESSORS. 9 July 2021. Vega Processor - CDAC. https://web.archive.org/web/20210709185343/https://vegaprocessors.in/vega.html. 9 July 2021. dead.
  95. Web site: NOEL-V Processor . Cobham Gaisler . 14 January 2020.
  96. Web site: Esperanto exits stealth mode, aims at AI with a 4,096 core 7nm RISC-V monster . wikichip.org . 2 January 2018. January 2018 .
  97. Web site: Esperanto ET-SoC-1 1092 RISC-V AI Accelerator Solution at Hot Chips 33. 24 August 2021.
  98. Web site: PULPino GitHub project . GitHub . 2 February 2018.
  99. Web site: PULP Platform . PULP Platform . 2 February 2018.
  100. Web site: Accelerator Stream . European Processor Initiative (EPI) . 22 February 2020.
  101. Web site: How the European Processor Initiative is Leveraging RISC-V for the Future of Supercomputing . RISC-V International News . RISC-V International . Calista . Redmond . 28 January 2023.
  102. Web site: Halfacree. Gareth. 10 June 2021. RISC-V boffins lay out a plan for bringing the architecture to high-performance computing. 2021-07-09. The Register. en.
  103. Web site: 24 September 2020. IIT Madras Develops and Boots up MOUSHIK Microprocessor for IoT Devices. 2021-07-09. IIT Madras.
  104. Joe . Xie . July 2016 . NVIDIA RISC V Evaluation Story . 4th RISC-V Workshop . https://ghostarchive.org/varchive/youtube/20211113/gg1lISJfJI0. 2021-11-13 . live. Youtube.
  105. Web site: 27 January 2021. RV64X: A Free, Open Source GPU for RISC-V. 9 February 2021. EETimes.
  106. Web site: SiFive Announces First RISC-V OoO CPU Core: The U8-Series Processor IP. Andrei. Frumusanu. October 30, 2019. Anandtech.
  107. Gwennap. Linley. Ventana Develops RISC-V Chiplet. Microprocessor Report. December 13, 2021.
  108. Web site: RISC-V Chiplet Startup Raises $38m, Targets Data Center Compute. Nitin. Dahad. September 6, 2021. EE Times.
  109. Web site: rocket-chip . Asanović . Krste . Krste Asanović . etal. GitHub . RISC-V International . 11 November 2016.
  110. Web site: riscv-boom . Celio . Christopher . GitHub . Regents of the University of California . 29 March 2020.
  111. https://github.com/OpenXiangShan/XiangShan XiangShan
  112. https://www.cnx-software.com/2021/07/05/xiangshan-open-source-64-bit-risc-v-processor-rival-arm-cortex-a76/ XiangShan open-source 64-bit RISC-V processor to rival Arm Cortex-A76
  113. Web site: Halfacree . Gareth . 2021-07-06 . Chinese chip designers hope to topple Arm's Cortex-A76 with XiangShan RISC-V design . 2024-08-13 . The Register.
  114. Web site: online . heise . 2021-06-30 . Offengelegter RISC-V-Chip aus China soll an ARM Cortex-A76 heranreichen . 2024-08-13 . c't Magazin . de.
  115. Web site: Brown . Eric . 2021-12-08 . Two 64-bit RISC-V cores debut: StarFive Dubhe and CAS Nanhu . 2024-08-13 . LinuxGizmos.com.
  116. Web site: Examining China’s Grand Strategy For RISC-V . 2024-08-13 . jamestown.org . en-US.
  117. Web site: 研究布局 . 2024-08-13 . damo.alibaba.com.
  118. Web site: Tech to the Future . 2024-08-13 . damo.alibaba.com.
  119. Web site: 28 July 2019 . China's Alibaba is making a 16-core, 2.5 GHz RISC-V processor . 2019-07-30 . www.techspot.com.
  120. Web site: 20 October 2021 . Alibaba open sources four RISC-V cores: XuanTie E902, E906, C906 and C910 . 2021-10-20.
  121. Web site: Examining China’s Grand Strategy For RISC-V . 2024-08-13 . jamestown.org . en-US.
  122. Web site: Wolf . Claire . PicoRV32 - A Size-Optimized RISC-V CPU . GitHub . 27 February 2020.
  123. Web site: MIPT-MIPS: Cycle-accurate pre-silicon simulator of RISC-V and MIPS CPUs . GitHub.
  124. Web site: MIPS syscall functions available in MARS . 2023-05-28 . courses.missouristate.edu.
  125. Web site: Kindgren . Olof . SERV - The serial RISC-V CPU . GitHub . 25 September 2023.
  126. Web site: Kindgren . Olof . 29 December 2022 . SERV: 32-bit is the New 8-bit . 25 September 2023 . YouTube . RISC-V Foundation . Video, 2:38.
  127. Web site: Halfacree . Gareth . 14 June 2022 . CoreScore Benchmark Sees New Record with 10,000 RISC-V Cores on One FPGA . 25 September 2023 . fossi-foundation.org . FOSSi Foundation.
  128. Web site: PULP: Parallel Ultra Low Power . Traber . Andreas . etal. ETH Zurich, University of Bologna . 5 August 2016.
  129. Web site: Shilov. Anton. Western Digital Rolls-Out Two New SweRV RISC-V Cores For Microcontrollers. 2021-02-09. www.anandtech.com.
  130. Web site: Shilov. Anton. Western Digital Reveals SweRV RISC-V Core, Cache Coherency over Ethernet Initiative. 2019-05-23. www.anandtech.com.
  131. Web site: 2019-01-28. Western Digital Releases SweRV RISC-V Core Source Code. live. https://web.archive.org/web/20190521224239/https://abopen.com/news/western-digital-releases-swerv-risc-v-core-source-code/. 2019-05-21. AB Open. en-US.
  132. Nolting . Stephan. neorv32 . GitHub . 2022 . 10.5281/zenodo.7030070 . 9 September 2021.
  133. Web site: Upton . Eben . 8 August 2024 . Raspberry Pi Pico 2, our new $5 microcontroller board, on sale now . 8 August 2024.
  134. Web site: Debian GNU/Linux port for RISC-V 64 . Montezelo . Manuel . Google Groups . 19 July 2018.
  135. Web site: RISC-V - Debian Wiki . 2024-08-13 . wiki.debian.org.
  136. Web site: Architectures/RISC-V . Fedora Wiki . Red Hat . 26 September 2016.
  137. Web site: Booting our RISC-V images . Haiku Project . 4 March 2023 . en . 7 November 2021.
  138. Web site: Connatser . Matthew . World's first RISC-V laptop with Ubuntu preloaded touts AI smarts and octa-core chip . 2024-08-19 . The Register.
  139. Web site: 2024-06-13 . World’s first RISC-V Laptop gets a massive upgrade and equips with Ubuntu . 2024-08-19 . canonical.com.
  140. Web site: U-Boot port on RISC-V 32-bit is available . Begari . Padmarao . Google Groups . Microsemi . 15 February 2017.
  141. Web site: RISC-V, seL4 . Almatary . Hesham . seL4 Documentation . Commonwealth Scientific and Industrial Research Organisation (CSIRO) . 13 July 2018.
  142. Web site: heshamelmatary . Almatary . Hesham . GitHub . 13 July 2018.
  143. Web site: MultiZone Secure IoT Stack, the First Secure IoT Stack for RISC-V . Hex Five Security . Hex Five Security, Inc. . 3 Mar 2019. 22 February 2019 .
  144. Web site: Pharos. SourceForge. en. 1 Apr 2020.
  145. Web site: ANGEL is a Javascript RISC-V ISA (RV64) Simulator that runs riscv-linux with BusyBox.. RISCV.org. 17 January 2019. 11 November 2018. https://web.archive.org/web/20181111215351/https://riscv.org/software-tools/riscv-angel/. dead.
  146. Web site: Lee. Yunsup. 2014-03-05. Boot RISC-V Linux in your web browser!. 2020-09-04. RISC-V International. en-US.
  147. Web site: ANGEL – RISC-V. 2020-09-04. riscv.org.s3-website-us-west-1.amazonaws.com. https://web.archive.org/web/20201201124529/http://riscv.org.s3-website-us-west-1.amazonaws.com/angel/index.html. 1 December 2020. dead.
  148. Web site: Documentation/Platforms/RISCV . QEMU Wiki . 2020-05-07.
  149. CREATOR: An Educational Integrated Development Environment for RISC-V Programming. May 29, 2024. 10.1109/ACCESS.2024.3406935 . en. IEEE Access . Camarmas-Alonso . Diego . Garcia-Carballeira . Felix . Del-Pozo-Punal . Elias . Mateos . Alejandro Calderon . 1–17 . 2169-3536. free .
  150. CREATOR: Simulador didáctico y genérico para la programación en ensamblador. CREATOR: Didactic and generic simulator for assembly programming. Diego. Camarmas-Alonso. Felix. Garcia-Carballeira. Elias. Del-Pozo-Puñal. Alejandro Calderon. Mateos. XXXI Jornadas de Paralelismo (JP20/21). Malaga. 23 July 2021. Spanish. 10.5281/zenodo.5130302.
  151. A new generic simulator for the teaching of assembly programming . October 2021 . 10.1109/CLEI53233.2021.9640144 . subscription . 21 December 2021 . IEEE . Cartago, Costa Rica . es. August 2, 2022. 2021 XLVII Latin American Computing Conference (CLEI) . Camarmas-Alonso . Diego . Garcia-Carballeira . Felix . Del-Pozo-Punal . Elias . Mateos . Alejandro Calderon . 1–9 . 978-1-6654-9503-5 . 245387555 .
  152. CREATOR Web with RISC-V example: https://creatorsim.github.io/creator/?example_set=default_rv&example=e12
  153. CREATOR source code on GitHub: https://github.com/creatorsim/creator
  154. Web site: WepSIM with RISC-V_im example . WepSIM.
  155. Web site: WepSIM homepage .
  156. Web site: Chisel: Constructing Hardware in a Scala Embedded Language. 12 February 2015. UC Berkeley. Regents of the University of California.
  157. Web site: Codasip Studio. 2021-02-19. Codasip. en-US.
  158. Web site: RISC-V Debugger. www.lauterbach.com TRACE32 Debugger for RISC-V.
  159. Web site: Lauterbach and SiFive Bring TRACE32 Support for High-Performance RISC-V Cores. www.sifive.com.
  160. Web site: TRACE32 supports SiFive's RISC-V trace. www.lauterbach.com. 6 March 2021. 2 June 2022. https://web.archive.org/web/20220602223446/https://www.lauterbach.com/frames.html?news_514.html. dead.
  161. Web site: SEGGER Adds Support for SiFive's Coreplex IP to Its Industry Leading J-Link Debug Probe . 2017-09-19.
  162. Web site: PR: SEGGER Embedded Studio supports RISC-V architecture . 2017-11-23.
  163. Web site: PR: SEGGER presents RTOS, stacks, middleware for RISC-V . 2017-12-08.
  164. Web site: Dahad . Nitin . 2020-06-23 . Siemens Acquires UltraSoC for SoC Lifecycle Product Suite . 2023-07-12 . EE Times.