Torii Diagnostics

exception torii.diagnostics.AttributeError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

A hybrid between the Python AttributeError and ToriiError.

This is used for where we wish to maintain proper functionality with things such as the python hasattr() call, but also if not caught emit a pretty Torii diagnostic

exception torii.diagnostics.ConstraintError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

An invalid constraint

exception torii.diagnostics.ConstraintWarning

A constraint warning

exception torii.diagnostics.DomainError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

A Clock Domain error

exception torii.diagnostics.DriverConflict

A Multiple-driver conflict

exception torii.diagnostics.DriverConflictError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

A driver-driver conflict

exception torii.diagnostics.MustUseWarning

The base class for unused HDL objects

exception torii.diagnostics.NameError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

Invalid HDL construct name

exception torii.diagnostics.NameNotFound(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

Unable to automatically determine name

exception torii.diagnostics.NameWarning

Inadvisable HDL construct name

exception torii.diagnostics.NonSynthesizableError(message: str, src_loc: tuple[str, int] | None, *, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

Attempted synthesis of a non-synthesizable Torii construct

exception torii.diagnostics.PlatformError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

An error relating to some functionality of a Torii platform

exception torii.diagnostics.PlatformWarning

A warning related to Torii platform functionality

exception torii.diagnostics.ResourceError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

An error with a Torii Resource

exception torii.diagnostics.ResourceWarning

A warning with a Torii Resource

exception torii.diagnostics.ToolError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

An error from the execution of a tool

exception torii.diagnostics.ToolNotFound(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

Unable to find a tool

exception torii.diagnostics.ToolWarning

A warning from the execution of a tool

exception torii.diagnostics.ToriiError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

The base class for all Torii errors

exception torii.diagnostics.ToriiSyntaxError(message: str, src_loc: tuple[str, int] | None, *, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

Malformed or incorrect Torii code

exception torii.diagnostics.ToriiSyntaxWarning

Inadvisable or potentially unwanted behavior from Torii code

exception torii.diagnostics.ToriiWarning

The base class for all Torii warnings

exception torii.diagnostics.UnusedElaboratable

A constructed, but unused/unelaborated Elaboratable

exception torii.diagnostics.UnusedProperty

A constructed, but unused Property

exception torii.diagnostics.YosysError(*args: object, message: str | None = None, src_loc: tuple[str, int] | None = None, notes: list[str] | None = None, additional_ctx: tuple[str, tuple[str, int]] | None = None) None

An error when invoking Yosys

exception torii.diagnostics.YosysWarning

A warning emitted by Yosys