IEEE 1164 package body STD_ULOGIC, STD_LOGIC
FUNCTION resolved (s:std_ulogic_ vector) RETURN std_ulogic IS
VARIABLE result:std_ulogic := ‘Z’; -- weakest state default
-- the test for a single driver is essential otherwise the
-- loop would return ‘X’ for a single driver of ‘-’ and that
-- would conflict with the value of a single driver unresolved signal.
IF (s’LENGTH = 1) THEN RETURN s(s’LOW);
result := resolution_table(result, s(I));