I have found in Peter J. Ashenden " The Designer's Guide To VHDL"
integer -2^31+1 to 2^31-1 but VHDL implementations may extend the range. both examples are different range on the same type. Am 24.11.2015 um 21:10 schrieb René Doß: > 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 _______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss