V
valentin tihomirov
Guest
FUNCTION AN( A : std_logic_vector ) RETURN std_logic_vector IS
ALIAS result : std_logic_vector ( 1 TO A'LENGTH ) IS A;
BEGIN
RETURN result; -- 00000001
END ;
constant A1 : STD_LOGIC_VECTOR (7 downto 0) := "00000001";
constant C1 : STD_LOGIC_VECTOR := AN(A1); -- UWUXUUUU
the weird value UWUXUUUU is assigned to C1 constant instead of the returned
00000001. Where is the bug?
ALIAS result : std_logic_vector ( 1 TO A'LENGTH ) IS A;
BEGIN
RETURN result; -- 00000001
END ;
constant A1 : STD_LOGIC_VECTOR (7 downto 0) := "00000001";
constant C1 : STD_LOGIC_VECTOR := AN(A1); -- UWUXUUUU
the weird value UWUXUUUU is assigned to C1 constant instead of the returned
00000001. Where is the bug?