Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThanx a lot for your previous feedback ! ;)
So, I have manually 'hacked' my Altera_europa_support_lib.vhd file with following new a_ext definition, and now, I cannot see any warning messages in Quartus LOG files. new code: FUNCTION a_ext (arg : std_logic_vector; size : integer) RETURN std_logic_vector IS VARIABLE result : std_logic_vector((size-1) DOWNTO 0); VARIABLE arg_length : integer; VARIABLE arg_copy : STD_LOGIC_VECTOR ((arg'length - 1) DOWNTO 0) ; VARIABLE bits_to_copy : integer; BEGIN result := (others => '0'); arg_copy := arg ; arg_length := arg'length; -- bits_to_copy := a_min(arg_length, size); FOR i IN 0 TO ( bits_to_copy - 1) LOOP result(i) := arg_copy(i); end LOOP; RETURN(result); END;