That was indeed my error and I did remove the x and it was fine in both
lattice and ghdl.  To me the issue is latice flagging the error and ghdl
missing the the error.  This may not be a bug but I do not see how ghdl
can simulate putting 29 bits into an 8 bit vector.  Regards Ian.


On Fri, 2009-01-09 at 15:33 -0500, Brian Padalino wrote:
> On Fri, Jan 9, 2009 at 3:31 PM, Ian Chapman <[email protected]> wrote:
> > reg_a(7 downto 0) <= reg_a(7 downto 0) + (x"0000000" & carry);
> >
> >     The above error was not detected by ghdl but Lattice picked it up
> > as wrong length (8:29).  Just to report what may be a bug.  Regards Ian.
> 
> X"0000000" is 28 bits.  Append the carry for the 29th.
> 
> Remove the X and you should be fine.
> 
> Brian
> 
> _______________________________________________
> Ghdl-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/ghdl-discuss


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to