On Thursday, September 3, 2015 at 2:29:19 AM UTC+3, N. wrote:
> Hello,
>
> I'm trying to port a very old design that had formerly used the deprecated STD_LOGIC_ARITH library with the new NUMERIC_STD library.
>
> The old design has a substantial amount of unsigned additions of the following format :
>
> c_slv <= a_slv + b_slv;
>
> or
>
> c_slv <= a_slv + 10;
>
...
use ieee.STD_LOGIC_UNSIGNED."+";
...
learn_cnti <=
--load
mem_do(43 downto 40) when fsm_ps(c_loc_read1) = '1' else
--increment
std_logic_vector(unsigned(learn_cntq) + "0001") when
fsm_ps(c_loc_ave0) = '1'
else learn_cntq;
...
For more info see vhdl examples at
http://bknpk.ddns.net/my_web/MiscellaneousHW/MiscellaneousHW.html