aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/aggr03/tb_conv01.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/synth/aggr03/tb_conv01.vhdl')
-rw-r--r--testsuite/synth/aggr03/tb_conv01.vhdl22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/synth/aggr03/tb_conv01.vhdl b/testsuite/synth/aggr03/tb_conv01.vhdl
new file mode 100644
index 000000000..32ea74d84
--- /dev/null
+++ b/testsuite/synth/aggr03/tb_conv01.vhdl
@@ -0,0 +1,22 @@
+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;