Documentation

Sparkle.IR.Type

Hardware Type: The subset of types that can be synthesized to hardware.

  • Bit: Single bit (wire)
  • BitVector: n-bit vector
  • Array: Fixed-size array (for memories/ROMs)
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Check if a hardware type is a single bit

      Equations
      Instances For

        Check if a hardware type is a bit vector

        Equations
        Instances For

          Check if a hardware type is an array

          Equations
          Instances For

            Convert a Lean type with BitPack instance to HWType

            Equations
            Instances For

              Reset kind: synchronous or asynchronous.

              Lives here (not in Sparkle.Core.Domain) so the IR layer can reference it without importing Core/Domain.lean (which would create a layering inversion). Sparkle.Core.Domain re-exports this so user code keeps seeing Sparkle.Core.Domain.ResetKind.

              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For