constant CBITS : integer := 32;
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);
+ -- integer ist 32bit (31bit + sign)
+ subtype cinteger is integer;
subtype hspalte is std_logic_vector(6 downto 0);
subtype hzeile is std_logic_vector(4 downto 0);