9 Apr 2005 16:39
Re: Why is that needed? ('image attribute usage)
On Fri, Apr 08, 2005 at 05:35:05PM -0300, Salvador Eduardo Tropea wrote: > Hi! > > I have the following function: > > Function ToStr(vec : in std_logic_vector) return string is > Variable ret : string(vec'length-1 downto 0); > Variable aux : string(2 downto 0); > Variable j : integer:=vec'length-1; > Begin > For i in vec'range loop > aux:="" & std_logic'image(vec(i)); -- '0' > ret(j):=aux(1); > j:=j-1; > End Loop; > Return ret; > End; > > If I use: > > aux:=std_logic'image(vec(i)); > > the code behaves really bad, why? what's wrong? You have found a GHDL bug. It will be fixed in the new release. Thanks. Tristan.(Continue reading)
RSS Feed