Altera_Forum
Honored Contributor
13 years agoSubtracting from a std_logic_vector
library IEEE;
use IEEE.std_logic_1164.all; use IEEE.std_logic_arith.all; use IEEE.std_logic_unsigned.all; . . . signal count_val : std_logic_vector(5 downto 0) := "000000"; . . now what should the answer be if I do try to subtract 1 from the logic vector when it is 0? What shall the value be if I add 1 to it when its value is already "111111"?