ISA Type Package¶
RTL source on GitHub
SystemVerilog source documented on this page: hw/rtl/NPU_Controller/NPU_Control_Unit/ISA_PACKAGE/isa_pkg.sv
isa_pkg.sv is the single source of truth for all instruction types,
opcode enums, and micro-op structs. Every RTL module does
import isa_pkg::*; — no header includes are needed downstream.
The package is organized in compilation order:
Basic address and control typedefs
Device-direction enums (
from_device_e,to_device_e,async_e)GEMV/GEMM flags struct
Opcode enum (
opcode_e)Per-instruction encoding structs (60-bit bodies)
CVO function codes and flags
Memory routing enums (
data_route_e)Micro-op structs decoded from each instruction
Last verified against
Commit 773bd82 @ hwkim-dev/pccx-FPGA-NPU-LLM-kv260 (2026-04-21).
See also
Instruction Encoding — human-readable description of the same encoding. Per-Instruction Encoding — per-instruction field tables.