GHDL -fsynopsys and -fexplicit options

768 Views Asked by At

I wrote the code using ieee.std_logic_unsigned package and now I have problem compiling it. Is there a way to use options --fsynopsys and -fexplicit at the same time since I need them to get rid of errors? Thanks

2

There are 2 best solutions below

0
dina On BEST ANSWER
ghdl -a --ieee=synopsys -fexplicit filename.vhd
0
lasplund On

You should not use std_logic_unsigned for new code. Use numeric_std_unsigned instead. That is the real IEEE package. See When to use VHDL library std_logic_unsigned and numeric_std?