Latest / Science & hardware

rv

github.com · Open source · Quiet

Small 32-bit RISC-V CPU core written in C89

Visit github.com ↗Share

  • risc v cpu core
  • risc v emulator c
  • small cpu core
  • riscv32 core
  • c cpu emulator
Stars
632
Forks
27
Open issues
3
Last commit
Releases
1
Found
3 years ago

GitHub figures as of . They are context, not a ranking.

rv is a 32-bit RISC-V CPU core written in a compact codebase of C89. Its small size makes it easy to read and study, which suits people learning how processors work. The repository is the main thing to explore.

Repository description on GitHub: “32-bit RISC-V CPU in ~800 lines of C89”

What it does

  • RV32IMAC_Zicsr RISC-V core with M-mode and S-mode
  • Boots RISC-V Linux and passes the supported riscv-tests
  • Simple C API with two functions and a memory callback, with no allocations

Good for

  • Study how a RISC-V CPU core works in a small C codebase
  • Embed the core in an emulator through its memory callback

Suits: Students and engineers learning how processors work.

Worth knowing: Targets only the RV32IMAC_Zicsr instruction set with M-mode and S-mode

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw rv on , when mnurzia posted it to Show HN. The oldest published release on GitHub is v1.0.1, dated . Its first tagged release came 305 days after it was found.

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 190 points, 83 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 190 points, 83 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: mnurzia/rv
  2. Found: mnurzia posted it to Show HN. Show HN
  3. Release v1.0.1
  4. Day-7 check recorded by Kip (details)
  5. Day-30 check recorded by Kip (details)

Quick answers

When was rv released?
Its first tagged release on GitHub is dated 10 Apr 2024. Kip found it on Show HN on 10 Jun 2023.
Is rv open source?
Its source is public on GitHub at mnurzia/rv under the MIT licence.
What does rv run on?
Library.
Is rv free?
It is open source, so the code is free to read and run; check the licence for terms.
Is rv still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorymnurzia/rv
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-36270150. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Science & hardware

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.