subtype csigned is signed((CBITS-1) downto 0);
--TODO: bei CBITS-1 gibts einen overflow :/
subtype cinteger is integer range -(2**(CBITS-2)) to ((2**(CBITS-2))-1);
+
+ subtype hspalte is std_logic_vector(6 downto 0);
+ subtype hzeile is std_logic_vector(4 downto 0);
+ subtype hbyte is std_logic_vector(7 downto 0);
+ subtype hstring is string(1 to 71);
+
function find_msb(a : csigned) return natural;
procedure icwait(signal clk_i : IN std_logic; cycles: Natural);
end package gen_pkg;