Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[GHDL] Solution to --> primary unit "std_logic_arith" not found in library "ieee"

3,488 views
Skip to first unread message

Christiano

unread,
Sep 13, 2013, 11:38:51 AM9/13/13
to
If anyone has had this problem, just do this:
ghdl -a --ieee=synopsys x.vhd

Bart Fox

unread,
Sep 15, 2013, 12:49:28 AM9/15/13
to
> 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

elk...@gmail.com

unread,
Oct 28, 2015, 10:24:14 AM10/28/15
to
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.

rickman

unread,
Oct 28, 2015, 12:33:44 PM10/28/15
to
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
0 new messages