mrLSD/riscv-fs
63.1
Adequate · 24 September 2026
2.6k
lines of production code
F#
primary language
5
measurements over time
What this system is
This system is a command-line RISC-V instruction set simulator written in F\#. It decodes and executes programs from ELF binaries, supporting 32- and 64-bit architectures with extensions for integer, multiplication, atomic memory operations, and compressed instructions. The project includes a comprehensive test suite that validates the correctness of each supported instruction set and verifies the robustness of the ELF loader and CLI interface.
Features
Initial commit: RISC-V ISA simulator with CLI, ELF loader, and multi-extension support
The project introduces a formal RISC-V ISA simulator in F\#, providing a command-line interface to decode and execute instructions across multiple RISC-V standard extensions (I, M, A, C) for both 32- and 64-bit architectures. The release includes an ELF file loader that maps all PT\_LOAD segments, a CLI argument parser, and comprehensive decoder modules for each extension, enabling users to run RISC-V programs from ELF binaries with verbose tracing and architecture-specific instruction sets.
(repo-wide) · high confidence
Test coverage
Add assembler-based test suite for RISC-V instructions; Added 64-bit M-extension arithmetic tests; Added RISC-V M-extension arithmetic tests; Added RV64I instruction tests; Added comprehensive test coverage for RV32i instruction set; Added initial test program entry point; Expanded test coverage for RISC-V instruction sets and CLI parsing; Expanded test coverage for RV64A atomic operations and ELF loading.
Dependencies
Upgrade to .NET 10 and update test dependencies
The project has been upgraded to target .NET 10.0, with the main library referencing FSharp.Core 10.0.108. The test project now targets net10.0 and includes updated package references for xUnit (2.9.3, 3.1.5) and the Microsoft.NET.Test.Sdk (18.6.0).
(dependencies) · medium confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 58 → 63 (+5.0)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 84 → 82 (-2.7)
- Architecture 100 → 99 (-1.0)
- Maturity 36 → 46 (+9.8)
- Readiness 68 → 68 (-0.1)
- Security 87 → 97 (+10.3)
Resolved (19)
- Duplicated block (10 lines × 2) (DecodeM.fs)
- Duplicated block (10 lines × 4) (DecodeI.fs)
- Duplicated block (14 lines × 2) (ExecuteI.fs)
- Duplicated block (5 lines × 2) (Run.fs)
- Duplicated block (5 lines × 5) (DecodeI64.fs)
- Duplicated block (6 lines × 2) (ExecuteI.fs)
- Duplicated block (6 lines × 2) (ExecuteI.fs)
- Duplicated block (6 lines × 2) (ExecuteI.fs)
- Duplicated block (8 lines × 2) (ExecuteM.fs)
- Duplicated block (8 lines × 9) (ExecuteA.fs)
- Duplicated block (8 lines × 9) (ExecuteA64.fs)
- Duplicated block (9 lines × 4) (ExecuteA.fs)
- Duplicated block (9 lines × 4) (ExecuteA64.fs)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- No exposed public API
- Test reliability not included
- single-maintainer — knowledge-concentration (bus factor) risk
New (26)
- Documentation: no installation or build instructions (README.md)
- Documentation: no licence statement (README.md)
- Documentation: no usage examples (README.md)
- Duplicated block (10 lines × 2) (DecodeM.fs)
- Duplicated block (12 lines × 2) (DecodeA.fs)
- Duplicated block (14 lines × 2) (ExecuteI.fs)
- Duplicated block (5 lines × 2) (ExecuteI.fs)
- Duplicated block (5 lines × 2) (ExecuteI.fs)
- Duplicated block (5 lines × 2) (ExecuteI.fs)
- Duplicated block (5 lines × 2) (Run.fs)
- Duplicated block (5 lines × 5) (DecodeA.fs)
- Duplicated block (7–8 lines × 9) (ExecuteA.fs)
- Duplicated block (7–8 lines × 9) (ExecuteA64.fs)
- Duplicated block (8 lines × 2) (ExecuteM.fs)
- Duplicated block (8 lines × 6) (DecodeA.fs)
- Duplicated block (8–11 lines × 4) (DecodeA.fs)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- …and 6 more
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
mrLSD/riscv-fs was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 24 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 4201afa2d2e9aea199ee7fbb97134f01725756c7 — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-923689c465cf.