wiki:VHDLCoding

ghdl on ubuntu

std_logic_unsigned etc vs numeric_std

Use numeric_std. It's an IEEE standard. It is pretty horrible. Example:

  a   : in  std_logic_vector(wid-1 downto 0);
  b   : in  std_logic_vector(wid-1 downto 0);
    ...
  signal sum : std_logic_vector( wid downto 0);

  sum <= std_logic_vector( unsigned(a) + unsigned(b));
Last modified 2 years ago Last modified on Jan 7, 2017, 11:11:37 AM