A Tour of the RISC V ISA Formal Specification
summary
The RISC‑V ISA is encoded in the Sail language as executable, strongly typed AST + encode/decode + execute + assembly clauses and the team produces OCaml/C simulators via Sail→C→emulator. The repo runs the standard validation harness including 229 standard ISA tests and a compliance suite across RV32/RV64 configurations. Floating point uses Berkeley SoftFloat for arithmetic. Extensions are added by scattering AST, encoder and execute clauses. The model runs and compares signatures and is already used to validate ARMv8 translations.
AI-written summary · about
chapters (35)
- 0:00Start
- 2:42Objectives
- 10:32What Is an Icy Formal Spec
- 11:48Readability
- 17:24Reading the Isis Spec
- 19:31Execute Semantics of One Class of Instructions
- 21:07Instruction Formats
- 25:05Virtual Memory
- 25:57Type Checking and Strong Types
- 29:21Syntax
- 34:34Reading from the Register
- 36:28Effects Declaration
- 51:11Right Function General Pattern
- 51:49Output Type
- 52:48Overloading
- 55:49Data Structure
- 1:00:55The Execute Function
- 1:03:35Six Encoding Types for Instructions
- 1:04:02Major Opcode
- 1:11:58The Execute Clause
- 1:16:35How Do You Know It's a Signed or Unsigned Addition
- 1:25:37Assembly Mapping
- 1:32:39Encode Decode Mapping
- 1:34:56Execute Clause
- 1:36:16Execute Clause
- 1:37:43Handle Memory Exception
- 1:39:28Load Instruction
- 1:42:52Translate Address
- 1:49:26handle mem exception
- 1:49:51Exception Handler
- 1:51:16Trap Handler
- 1:56:03Sequential Fetch Execute Loop
- 1:56:41Loop
- 1:58:06Dispatch Interrupt at Current Privilege
- 2:03:31What Made Us Choose the Sale Model
related talks
20mSail RISC-V: Status and Future Challenges
20mRISC-V Vector Sail Model and Test Generation
59mTutorial: High Level Sail Overview
09mDemo: RISC-V Instruction Information Parsing and Storage for SAIL
32mFormal Specification of the RISC-V Instruction Set Architecture
16mAutomatic Test Generation and Verification for RISC-V Vector Extension
26mArchSem: Reusable Rigorous Semantics of Relaxed Architectures
24mStrong Formal Verification For RISC V: From Instruction Set Manual To RTL
