sail-riscv VS riscv-isa-manual

Compare sail-riscv vs riscv-isa-manual and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
sail-riscv riscv-isa-manual
9 41
390 3,293
2.6% 2.3%
8.2 9.7
8 days ago 2 days ago
Coq TeX
GNU General Public License v3.0 or later Creative Commons Attribution 4.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

sail-riscv

Posts with mentions or reviews of sail-riscv. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-28.
  • How to improve the RISC-V specification
    9 projects | news.ycombinator.com | 28 Apr 2024
    I've been doing a lot of work with Sail (not SAIL btw) and I'm not sure I agree with the points about it.

    There's already a way to extract functions into asciidoc as the author noted. I've used it. It works well.

    The liquid types do take some getting used to but they aren't actually used in most of the code; mostly for utility function definitions like `zero_extend`. If you look at the definition for simple instructions they can be very readable and practically pseudocode:

    https://github.com/riscv/sail-riscv/blob/0aae5bc7f57df4ebedd...

    A lot of instructions are more complex or course but that's what you get if you want to precisely define them.

    Overall Sail is a really fantastic language and the liquid types really help avoid bugs.

    The biggest actual problems are:

    1. The RISC-V spec is chock full of undefined / implementation defined behaviour. How do you capture that in code, where basically everything is defined. The biggest example is probably WARL fields which can do basically anything. Another example is decomposing misaligned accesses. You can decompose them into any number of atomic memory operations and do them in any order. E.g. Spike decomposes them into single byte accesses. (This problem isn't really unique to Sail tbf).

    2. The RISC-V Sail model doesn't do a good job of letting you configure it currently. E.g. you can't even set the spec version at the moment. This is just an engineering problem though. We're hoping to fix it one day using riscv-config which is a YAML file that's supposed to specify all the configurable behaviour about a RISC-V chip.

    I definitely agree about the often wooly language in the spec though. It doesn't even use RFC-style MUST/SHOULD/MAY terms.

  • RISC-V Vector benchmark results
    4 projects | news.ycombinator.com | 11 Nov 2023
    The official formal specification of the Vector Extension has just been merged into the Golden RISC-V model:

    https://github.com/riscv/sail-riscv/commit/c90cf2e6eff5fa4ef...

  • Cascade: CPU Fuzzing via Intricate Program Generation
    3 projects | news.ycombinator.com | 23 Oct 2023
    the retired instruction counters when written by software.

    Funnily enough the Sail model had this bug too! https://github.com/riscv/sail-riscv/issues/256

  • Arm’s Cortex A510: Two Kids in a Trench Coat
    1 project | news.ycombinator.com | 2 Oct 2023
    > loose specification of the RISC-V ISA.

    This is being worked on with the Sail model [1]. In order for a RISC-V extension to be ratified it ought to be implemented in Sail. The understanding is also that the RISC-V ISA manual should be built with code snippets from the Sail model (similar to how the Arm Arm is build from ASL definition). The main issue is a lack of people willing and able to write Sail for RISC-V. But that is beginning to change, since RISC-V member companies are increasingly use Sail. As an example, the RISC-V exception type is defined in [2]. Is that precise enough for you?

    [1] https://github.com/riscv/sail-riscv

    [2] https://github.com/riscv/sail-riscv/blob/master/model/riscv_...

  • RISC-V CPU formal specification F# edition
    6 projects | news.ycombinator.com | 28 Jul 2023
    >it allows to formally verify the correctness of a particular ISA

    That must be hypothetical. Functionalness of the language doesn't make anything that is written in it automatically subject to formal verification. (mechanized or pen and paper). What kind of correctness properties does it actually allow to formally verify? I understand if it was the F* language, which is a full blown dependently typed proof checker, but with F#, which is defined by the implementation and 300 page English spec, I don't think you can verify anything interesting. As far as I know F# itself doesn't have mechanized formal semantics and its type system could be unsound.

    https://github.com/mit-plv/riscv-coq and https://github.com/riscv/sail-riscv (don't know how complete they are) approaches actually allow to formally (mechanically) verify riscv properties.

  • 64-bit Arm ∩ 64-bit RISC V
    2 projects | /r/asm | 7 Jun 2023
  • C++17 RISC-V RV32/64/128 userspace emulator library
    5 projects | news.ycombinator.com | 18 Nov 2022
  • Starting up with RISC-V
    3 projects | /r/RISCV | 4 Feb 2022
    I guess you will also use Spike and the Sail model for RISC-V.
  • Areas to contribute in RISC-V RTL verification
    5 projects | /r/RISCV | 6 Mar 2021
    Doing something leveraging the SAIL model would be valuable, as that's the official formal model: https://github.com/rems-project/sail-riscv

riscv-isa-manual

Posts with mentions or reviews of riscv-isa-manual. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-28.
  • The Improved RISC-V Specification (latest WIP draft)
    1 project | news.ycombinator.com | 28 Apr 2024
    https://github.com/riscv/riscv-isa-manual/releases

    Regarding the recent "How to improve the RISC-V specification" post [0], I just wanted to point out, that the latest draft manual is already a great improvement. (see link above)

    It includes a lot of the newly ratified extensions: bitmanip,zicond,vector,vector crypto, ...

    And there are a bunch of included SAIL definitions for bitmanip and zicond, but other instructions are still missing the SAIL code. Most notably, the SAIL definitions from the RV32I/RV64I base isa are also missing.

    I asked for the further SAIL integration plans here: https://github.com/riscv/riscv-isa-manual/issues/1369

    Here is an example SAIL snippet from cpopw:

        let bitcount = 0;
  • How to improve the RISC-V specification
    9 projects | news.ycombinator.com | 28 Apr 2024
    I encourage you to look at the newest isa manual draft on github: https://github.com/riscv/riscv-isa-manual/releases

    It includes the more recently extensions, and e.g. the bitmanip instructions all have associated pseudo code.

    Here is e.g. the code for cpopw:

        let bitcount = 0;
  • Need help with designing a basic RISC V processor?
    5 projects | /r/RISCV | 21 Jun 2023
  • The legend of “x86 CPUs decode instructions into RISC form internally”
    6 projects | news.ycombinator.com | 18 Jun 2023
    I tried searching the spec [1] for "overflow" and here is what it says at page 17:

    > We did not include special instruction-set support for overflow checks on integer arithmetic operations in the base instruction set, as many overflow checks can be cheaply implemented using RISC-V branches.

    > For general signed addition, three additional instructions after the addition are required

    Is this "cheap", replacing 1 instruction with four? According to some old mainframe era research (cannot find link now), addition is the most often used instruction and they suggest that we should replace each one with four?

    Their "rationale" is not rational at all. It doesn't make sense.

    Overflow check should be free (no additional instructions required), otherwise we will see the same story we have seen for last 50 years: compiler writers do not want to implement checks because they are expensive; language designers do not want to use proper arithmetic because it is expensive. As a result, there will be errors and vulnerabilities. A vicious circle.

    [1] https://github.com/riscv/riscv-isa-manual/releases/download/...

  • 64-bit Arm ∩ 64-bit RISC V
    2 projects | /r/asm | 7 Jun 2023
  • Beginner question: F extension
    1 project | /r/RISCV | 30 Mar 2023
  • Riscv Ghidra Instruction Manual
    2 projects | /r/ghidra | 11 Mar 2023
    Why not use the actual release PDF instead from their github? https://github.com/riscv/riscv-isa-manual
  • How would I go about designing an 8-bit RISC-V CPU? Is it possible?
    1 project | /r/RISCV | 2 Mar 2023
    https://github.com/riscv/riscv-isa-manual/releases/download/Priv-v1.12/riscv-privileged-20211203.pdf Part 2
  • Have to convert a C language code into RISC-V MIPS
    2 projects | /r/RISCV | 9 Feb 2023
    If you don't want to cheat then read the RISC-V ISA manual: https://github.com/riscv/riscv-isa-manual/releases/download/Ratified-IMAFDQC/riscv-spec-20191213.pdf
  • How does a computer understand machine language?
    1 project | /r/ComputerEngineering | 4 Feb 2023
    Yeah you are on the right track. Processors are designed on top of an Instruction Set Architecture (ISA). For an example you can look on top of the RISC-V specifications:https://github.com/riscv/riscv-isa-manual/releases/download/Ratified-IMAFDQC/riscv-spec-20191213.pdf (possible PDF download)

What are some alternatives?

When comparing sail-riscv and riscv-isa-manual you can also consider the following projects:

litmus-tests-riscv - RISC-V architecture concurrency model litmus tests

riscv-elf-psabi-doc - A RISC-V ELF psABI Document

riscv-isa-sim - Spike, a RISC-V ISA Simulator

riscv-emulator-docker-image

riscv-dv - Random instruction generator for RISC-V processor verification

amaranth - A modern hardware definition language and toolchain based on Python

riscv-coq - RISC-V Specification in Coq

riscv-v-spec - Working draft of the proposed RISC-V V vector extension

libriscv - C++20 RISC-V RV32/64/128 userspace emulator library

vroom - VRoom! RISC-V CPU

force-riscv - Instruction Set Generator initially contributed by Futurewei

open-source-cs - Video discussing this curriculum: