Re: [Ghdl-discuss] integer range

2015-11-24 Thread René Doß
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? >

Re: [Ghdl-discuss] integer range

2015-11-24 Thread Paul Koning
> On Nov 24, 2015, at 3:47 PM, René Doß wrote: > > This is not nice. > > I write some VHPI interface for a 32 bit engine. Some functions works an > some not. Now I have found out my problem with this two examples. > I need to exchange value c to vhdl and reverse. > > > I have

Re: [Ghdl-discuss] integer range

2015-11-24 Thread Tristan Gingold
On 24/11/15 21:10, René Doß wrote: I have a question. What is the range of integer in GHDL? Try: ghdl --disp-standard and look for integer: type integer is range -2147483648 to 2147483647; This works (wert>2^31): signal wert: std_logic_vector(31 downto 0):= X""; signal a:

Re: [Ghdl-discuss] integer range

2015-11-24 Thread David Koontz
> On 25/11/2015, at 9:10 am, René Doß wrote: > > > I have a question. What is the range of integer in GHDL? type integer is range -2147483648 to 2147483647; > This works (wert>2^31): > signal wert: std_logic_vector(31 downto 0):= X""; > signal a: integer:=

Re: [Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Tristan Gingold
On 24/11/15 15:03, Simon Thijs de Feber wrote: libre gnat gcc is available for 64-bit linux machines only. You can download gnat gpl 2014 which is available for i386 linux. I am still working :( on a 32-bit machine. In that case, I'd advise to build with mcode backend. Tristan. grtz

Re: [Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Tristan Gingold
On 24/11/15 12:58, Simon Thijs de Feber wrote: Thanks to all who worked on the 0.33 release. I have been using ghdl on Slackware for years. The last few times I build it from scratch. And I used : http://sourceforge.net/p/ghdl-updates/wiki/build%20ghdl%20from%20source%20on%20Linux/?version=26

[Ghdl-discuss] integer range

2015-11-24 Thread 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""; signal a: integer:= to_integer(unsigned(wert)); This produce an error (c=2^31): signal c: integer:=2**31; hometown.vhd:34:23: static

Re: [Ghdl-discuss] Include libraries in GHDL

2015-11-24 Thread Lehmann, Patrick
Hello João, there is the new GHDL 0.33 version (2015.10, also available as zip file for Windows). https://sourceforge.net/projects/ghdl-updates/files/Builds/ghdl-0.33/ It has much less errors and much more features :). GHDL 0.33 also comes with newer libraries and VHDL standards. Maybe

Re: [Ghdl-discuss] Include libraries in GHDL

2015-11-24 Thread David Koontz
> On 25/11/2015, at 5:33 am, João Malés wrote: > > I'm using GHDL to simulate some designs that I'm doing. Now, I included the > float_pkg package to work with floats in Sigasi but when I'm simulating in > GHDL it states that "primary unit "float_pkg" not found in

Re: [Ghdl-discuss] Include libraries in GHDL

2015-11-24 Thread João Malés
You guys are correct. Installing GHDL 0.33 solved it, since those libraries are included in VHDL 2008. Thank you, João From: diogra...@gmail.com Date: Wed, 25 Nov 2015 06:23:21 +1300 To: ghdl-discuss@gna.org Subject: Re: [Ghdl-discuss] Include libraries in GHDL On 25/11/2015, at 5:33 am,

[Ghdl-discuss] Include libraries in GHDL

2015-11-24 Thread João Malés
Hello all. I'm using GHDL to simulate some designs that I'm doing. Now, I included the float_pkg package to work with floats in Sigasi but when I'm simulating in GHDL it states that "primary unit "float_pkg" not found in library "ieee" ". How can I add this new library to GHDL? Copy/paste

Re: [Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Brian Drummond
On Tue, 2015-11-24 at 15:03 +0100, Simon Thijs de Feber wrote: > libre gnat gcc is available for 64-bit linux machines only. > I am still working :( on a 32-bit machine. My apologies, I did not realise that! So there appear to be two possible contributors to the build failure : gcc4.8 as the

[Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Simon Thijs de Feber
Thanks to all who worked on the 0.33 release. I have been using ghdl on Slackware for years. The last few times I build it from scratch. And I used : http://sourceforge.net/p/ghdl-updates/wiki/build%20ghdl%20from%20source%20on%20Linux/?version=26 The latest release is bit more of a pain. I

Re: [Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Brian Drummond
On Tue, 2015-11-24 at 12:58 +0100, Simon Thijs de Feber wrote: > Thanks to all who worked on the 0.33 release. >  > gcc -c -g -DWITH_GNAT_RUN_TIME  -o jumps.o src/grt/config/jumps.c > :0:0: internal compiler error: Segmentation fault > gcc: internal compiler error: Segmentation fault (program cc1)

Re: [Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Simon Thijs de Feber
gnat version is 4.8.2 gcc version is also 4.8.2 However I try to build against 4.9.2 grtz Simon On Tue, Nov 24, 2015 at 1:26 PM, Brian Drummond wrote: > On Tue, 2015-11-24 at 12:58 +0100, Simon Thijs de Feber wrote: > > Thanks to all who worked on the 0.33 release.

Re: [Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Brian Drummond
On Tue, 2015-11-24 at 14:15 +0100, Simon Thijs de Feber wrote: > gnat version is 4.8.2 > gcc version is also 4.8.2 OK Thanks. I forgot to ask : is it the gcc version you're building? Using which version of the gcc sources? > However I try to build against 4.9.2 ah ... you mean against 4.9.2

Re: [Ghdl-discuss] GHDL from Source on Slackware 14.1 32-bit

2015-11-24 Thread Simon Thijs de Feber
libre gnat gcc is available for 64-bit linux machines only. I am still working :( on a 32-bit machine. grtz Simon On Tue, Nov 24, 2015 at 2:28 PM, Brian Drummond wrote: > On Tue, 2015-11-24 at 14:15 +0100, Simon Thijs de Feber wrote: > > gnat version is 4.8.2 > > gcc