library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity trace_tb is end entity;

architecture bench of trace_tb is
    signal switches : std_logic_vector(9 downto 0) := (others => '0');
    signal tens, ones : std_logic_vector(6 downto 0);
begin
    dut : entity work.binary_to_decimal port map (switches, tens, ones);
    process
    begin
        for value in 0 to 15 loop
            switches <= std_logic_vector(to_unsigned(value, switches'length));
            wait for 10 ns;
            report "V=" & integer'image(value) & " HEX1=" & to_hstring(tens)
                & " HEX0=" & to_hstring(ones);
        end loop;
        wait;
    end process;
end architecture;
