Expand description
Proc macros expand only to bitloom_builder / prelude paths (AD-6). Never depend on rhdl-hir.
Attribute Macros§
- abstraction
- Handwritten untimed / transaction abstraction (FR29). Host-only.
- both
- Mixed
bothsimulation: RTL (tick) + handwritten view in one fixture (FR29). - bridge
- Handwritten TLM↔pin adapter (FR29). Host-only; never enters FrozenHir / freeze. Does not generate TLM from HIR.
- combinational
- Marks a hardware process as combinational. Expands to a builder open/close around the function body (must call session helpers for assigns).
- functional_
model - Marks a handwritten functional model (Story 3.3). Does not enter FrozenHir.
- hls
- Marks a function for optional external HLS (FR35 / AD-25). Never schedules in-process.
- module
- Marks a struct as an RHDL module shell for Story 1.1.
Generates
Elaboratablethat records directed ports via the builder session. - process
- Rejects unmarked hardware process attributes — use
combinational/sequential. - sequential
- Marks a hardware process as sequential.
- top
- Marks the elaboratable top for
cargo rhdl build(AD-19).