constant ERROR_ENCOD : std_logic_vector(2 downto 0) := "001"; --transmission error by encoding
constant ERROR_RECOV : std_logic_vector(2 downto 0) := "010"; --transmission error, reconstructed
constant ERROR_FATAL : std_logic_vector(2 downto 0) := "011"; --transmission error, fatal
- constant ERROR_NC : std_logic_vector(2 downto 0) := "101"; --media not connected
+ constant ERROR_WAIT : std_logic_vector(2 downto 0) := "110"; --link awaiting initial response
+ constant ERROR_NC : std_logic_vector(2 downto 0) := "111"; --media not connected
+
--special addresses
constant ILLEGAL_ADDRESS : std_logic_vector(15 downto 0) := x"0000";
constant BROADCAST_ADDRESS : std_logic_vector(15 downto 0) := x"ffff";
-
+
+ constant LINK_STARTUP_WORD : std_logic_vector(15 downto 0) := x"e110";
+
function and_all (arg : std_logic_vector)