slang::logic_t struct

Represents a single 4-state bit.

The usual bit values of 0 and 1 are augmented with X (unknown) and Z (high impedance). Both X and Z are considered "unknown" for most computation purposes.

Constructors, destructors, conversion operators

logic_t() constexpr
Default construct; zero value.
logic_t(uint8_t value) explicit constexpr
Construct from a single bit value.

Public functions

auto isUnknown() const -> bool
Returns true if the bit is either X or Z.