Skip to content
STIMSMITH

decode macro

CodeArtifact

The decode macro is an ISA-description macro used in generated instruction-set simulators to split an instruction word into decoded bit fields. Its result is stored as an instruction record and can be cached so the simulator avoids repeatedly decoding the same instruction during execution.

First seen 5/29/2026
Last seen 5/29/2026
Evidence 3 chunks
Wiki v1

WIKI

Overview

The decode macro decomposes an instruction word into several bit fields according to the instruction-set specification. The decoded fields of the current instruction are kept in an instruction_t record-like data type, where they can be used by the ISA transition logic.

In the architectural-style ISA property, the decoded instruction is bound with a freeze expression such as:

READ FULL ARTICLE →

NEIGHBORHOOD

No graph connections found for this entity yet. It may appear in future ingestion runs.

explore full graph →

RELATIONSHIPS

1 connections
isa property ← uses 100% 1e
The isa property uses the decode macro to extract instruction fields.

CITATIONS

5 sources
5 citations — click to expand
[1] The decode macro decomposes an instruction word into bit fields according to the specification. Generating an Efficient Instruction Set Simulator from a Complete Property Suite
[2] Decoded fields of the current instruction are kept in an instruction_t record-like data type and can be used to avoid repeated decoding. Generating an Efficient Instruction Set Simulator from a Complete Property Suite
[3] The ISA property uses decode(instruction) at time t and passes the resulting instruction to next_state. Generating an Efficient Instruction Set Simulator from a Complete Property Suite
[4] ISS generation emits public functions for next_state, decode, and interface macros. Generating an Efficient Instruction Set Simulator from a Complete Property Suite
[5] Caching the result of the decode function avoids repeated instruction decoding and can decrease simulation run time due to software locality. Generating an Efficient Instruction Set Simulator from a Complete Property Suite