Bedrock
A 64-bit instruction set architecture and systems-software specification. It has variable-length encoding, restartable repeated instructions, and an optional scalable-vector extension.
Encode intent. Decompose execution. Why Bedrock →
Under active design. Encodings, ABIs, and tool interfaces may change.
01Encoding
| Opcode space | Encodings | Example |
|---|---|---|
| 1Bextrashort | 25 | 00000101SYSCALL |
| 2Bshort | 42 | 1000001zsdADD.{L|Q}(z) Rn(s), Rn(d) |
| 3Bmedium | 177 | 11L00111zddeLEA.{B|W|L|Q}(z) <ea>(e), Rn(d) |
| 4Blong | 254 | 11L111101000000zcsdCMPJcc.{B|W|L|Q}(z) Rn(s), Rn(d), <imm8s> |
| 5Bextralong | 166 | 11L111111011100z0ppvwwyVFMADD.{H|S|D}(z) Pn(p), Vn(v), Vn(w), Vn(y) |
| 6Bxxlong | 133 | 11L1111111100000010000x0011pvveVFADD.{H|S|D}(x) Pn(p), <ea>(e), Vn(v) |
797 encodings across 385 instructions, read from the specification sources at build time. The first one or two bytes give the instruction's length; displacements, immediates, and other payloads follow the opcode space, up to 18 bytes in total. In the examples, the bold leading bits are the header framing, L is the length field of extended instructions, digits are fixed opcode bits, letters are operand fields, and thick rules mark byte boundaries.
02Specification
03Microarchitectures
- H1Talc
- H2Gypsum
- H3Calcite
- H4Fluorite
- H5Apatite
- H6Orthoclase
- H7Quartz
- H8Topaz
- H9Corundum
- H10Diamond
Designs are graded H1 to H10 on the Mohs scale by overall design intensity. Bedrock Calcite (H3, scalar in-order) is the current design; H7 to H10 are named but undefined until there are real designs to place there.
04Roadmap
- Foundation
- Architecture
- ABI
- Sail model
- LLVM toolchain
- Emulator
- Platform foundation
- Subsystem interface
- Discovery
- Architectural timer
- Platform profiles
- Interrupts
- IOMMU
- Power & clock
- Reset
- PCIe
- General-purpose platform
- Minimum platform profile
- Standard bindings
- UEFI
- ACPI
- 1.0
- Stable contract
Contracts are closed in dependency order. There is no published schedule.
05Repositories
| spec | ISA, ABI, compiler interface, Sail model, generated artifacts, emulator, samples |
| llvm-project | Bedrock targets for LLVM, Clang, LLD, and related tools |
| microarch-* | One microarchitecture each: RTL, verification, design-local docs |