aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/aggr03/tb_conv01.vhdl
blob: 32ea74d840c17cee26477e235c8e93092208c5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
span.linenos.special { color: #000000; background-color:
entity tb_conv01 is
end tb_conv01;

library ieee;
use ieee.std_logic_1164.all;

architecture behav of tb_conv01 is
  signal i : std_logic_vector(19 downto 0);
  signal o : std_logic_vector(31 downto 0);
begin
  dut: entity work.conv01
    port map (i => i, o => o);

  process
  begin
    i <= x"abcde";
    wait for 1 ns;
    assert o = x"000_abcde" severity failure;

    wait;
  end process;
end behav;