12 USE ieee.std_logic_1164.
all;
21 sum : OUT (1 DOWNTO 0)
29 ------------------------------------------------------------------------------
31 ------------------------------------------------------------------------------
32 -- 2-bit x 2 input adder, saturates at 3.
43 if (clk'event and clk = '1') then
44 isum := to_integer((a))
49 sum <= (to_unsigned(isum, 2));
out sumstd_logic_vector (1 downto 0)
in bstd_logic_vector (1 downto 0)
in astd_logic_vector (1 downto 0)