[GHDL] Solution to --> primary unit "std_logic_arith" not fo

C

Christiano

Guest
If anyone has had this problem, just do this:
ghdl -a --ieee=synopsys x.vhd
 
If anyone has had this problem, just do this:
ghdl -a --ieee=synopsys x.vhd
I avoid the proprietary and obsolete std_logic_arith/std_logic_unsigned
everywhere.

I use the "official" ieee.numeric_std.all for arithmetic.
Don't mix the librarys. So unsigned and signed types are usable on ports
without headaches.

regards,
Bart Fox
 
On Friday, September 13, 2013 at 11:38:51 AM UTC-4, Christiano wrote:
If anyone has had this problem, just do this:
ghdl -a --ieee=synopsys x.vhd

Thanks, this helped me out with some source over which I have no control.
 
On 9/13/2013 11:38 AM, Christiano wrote:
If anyone has had this problem, just do this:
ghdl -a --ieee=synopsys x.vhd

Better yet, use numeric_std rather than std_logic_arith.

I did a little digging and found that because std_logic_arith was not a
standard, each vendor produced their own, different, version. That is
reason enough to not use it.

--

Rick
 

Welcome to EDABoard.com

Sponsor

Back
Top