----------------------------------------------------------------------------------- -- unsigned2digits -- -- Questo componente converte un unsigned compreso tra 0 e 99 nelle due -- cifre BCD corrispondenti ------------------------------------------------------------------------------------ library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_arith.all; use IEEE.std_logic_unsigned.all; entity unsigned2digits is port( n : in unsigned(5 downto 0); u : out unsigned(3 downto 0); d : out unsigned(3 downto 0) ); end unsigned2digits; architecture A of unsigned2digits is begin process(n) begin if n