I have a question. What is the range of integer in GHDL?

This works   (wert>2^31):
  signal wert: std_logic_vector(31 downto 0):= X"ffff0000";
  signal a: integer:= to_integer(unsigned(wert));





This  produce an error (c=2^31):
  signal c: integer:=2**31;


hometown.vhd:34:23: static constant violates bounds
ghdl: compilation error
makefile:4: recipe for target 'all' failed


René

_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to