Skip to content

@celox-sim/celox / index / FourState

Function: FourState()

FourState(value, mask): FourStateValue

Defined in: packages/celox/src/types.ts:281

Construct a 4-state value with explicit value and mask.

Mask bits set to 1 with value=1 indicate X (unknown). Mask bits set to 1 with value=0 indicate Z (high-impedance).

Parameters

value

number | bigint

mask

number | bigint

Returns

FourStateValue