Why can't I increment this `std_logic_vector`

后端 未结 6 1995
萌比男神i
萌比男神i 2020-12-16 15:26

What\'s going on here? Why am I getting an \'operator argument type mismatch\', and what can I do to fix it?

--
-- 32-bit counter with enable and async reset         


        
6条回答
  •  一整个雨季
    2020-12-16 16:03

    Try this code:

    use IEEE.STD_LOGIC_ARITH.ALL;
    use IEEE.STD_LOGIC_UNSIGNED.ALL;
    ...
    nextvalue <= value + "1";
    

    In my case this solution is works!

提交回复
热议问题