Sources and licenses
Every encoding, name and description on these pages is generated from three openly licensed RISC-V International repositories. The text was reformatted from AsciiDoc to HTML; no encodings or descriptions were written by hand. Where a source has no description, the page says “encoding only”.
Sources
- riscv-opcodes, commit
d403f0cacf1f650635013dfcb386082c6afb299c: instruction encodings (extensions/rv*, ratified extensions only; theunratified/folder is not used), bit-field positions (arg_lut.csv), field labels and CSR numbers (csrs.csv,csrs32.csv). License: BSD-3-Clause, Copyright (c) 2022 RISC-V International. - The RISC-V Instruction Set Manual (riscv-isa-manual), commit
8bb925f2dda1d7fa7c9a80537d50062f6cc5cebe: the privileged specification’s CSR address allocation and CSR listing tables (src/priv/csrs.adoc), and the chapters linked from every page. License: Creative Commons Attribution 4.0 International. “The RISC-V Instruction Set Manual”, editors Andrew Waterman and Krste Asanović, RISC-V International; a derivative of Volume I: User-Level ISA Version 2.1 (©2010-2017 Andrew Waterman, Yunsup Lee, David Patterson, Krste Asanović) and Volume II: Privileged Architecture Version 1.9.1 (©2010-2017 Andrew Waterman, Yunsup Lee, Rimas Avižienis, David Patterson, Krste Asanović). Changes: tables and text reformatted to HTML; hpmcounter-style rows elided with an ellipsis in the listing were expanded from their neighbouring rows. - riscv-unified-db, commit
af3eaf91a20d19d6d4ead9110f1ba3fb56a8035c: instruction, CSR and extension names, descriptions, assembly syntax, CSR fields and IDL operation pseudocode (spec/std/isa/). License: BSD-3-Clause-Clear, Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries, and RISC-V UnifiedDB contributors; descriptions imported from the ISA manual remain CC BY 4.0. Conditional text written as ERB templates in the database is shown with labels such as “When H is implemented:”, or with the database’s condition quoted verbatim (for example “WhenMXLEN == 64:”); descriptions that depend on templates beyond that are left out.
What each page contains
- 1284 instruction and pseudo-op pages: 1014 with a riscv-unified-db description, 190 encoding-only instructions, 80 encoding-only pseudo-ops.
- 460 CSR pages: 415 with a riscv-unified-db description, 26 with the privileged spec listing text only, 19 address only.
- 65 extension listings and an A to Z index.
RISC-V is a registered trademark of RISC-V International. This reference is not affiliated with or endorsed by RISC-V International.
riscv-opcodes license (BSD-3-Clause)
Copyright (c) 2022 RISC-V International Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
riscv-unified-db license (BSD-3-Clause-Clear)
SPDX-License-Identifier: BSD-3-Clause-Clear Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.