AGENT SKILL

risc-v

RISC-V ISA (RV32I, RV32E, standard extensions M, A, F, D, C), privileged architecture, CSR registers, and toolchains

License 许可
MIT
最近更新
2026-11-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
risc-v
risk
low
source
https://github.com/Mr-Nobody-Anonymous/All-skills
license
MIT
version
1.0.0
category
embedded
description
RISC-V ISA (RV32I, RV32E, standard extensions M, A, F, D, C), privileged architecture, CSR registers, and toolchains
imported_at
2026-09-20
source_path
awesome_skills/embedded/risc-v/SKILL.md
source_repository
Mr-Nobody-Anonymous/All-skills
disable-model-invocation
false

03 SKILL.md 正文

RISC-V Embedded Architecture

Scope

Covers the open, modular RISC-V instruction set architecture, standard extensions, control and status registers (CSRs), and embedded firmware development.

ISA Specifications

  • Base ISA (RV32I): 32-bit word size, 32 registers ($x0-x31$, $x0$ hardwired to 0).
  • Standard Modular Extensions:
    • M: Integer multiplication and division hardware.
    • A: Atomic memory operations (load-reserved / store-conditional).
    • F / D: Single / double precision IEEE 754 floating point.
    • C: Compressed 16-bit instructions (reduces code size by $25-30%$).
  • Privilege Levels: Machine Mode (M-mode, highest, mandatory), Supervisor Mode (S-mode, OS), User Mode (U-mode).

Tools & Standards

  • Toolchains: riscv64-unknown-elf-gcc, Spike simulator, QEMU, OpenSBI.
  • Standards: RISC-V Instruction Set Manual (Volume I: Unprivileged, Volume II: Privileged).

04 同仓库更多 Skills