aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/range01/tb_revrng01.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-11 21:22:39 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-13 06:30:30 +0100
commit6c42b0a550549f7cc0f189fce3c72f069a4d336d (patch)
tree56463ef1ca71ede9ced41502038317dbc059a214 /testsuite/synth/range01/tb_revrng01.vhdl
parent8bb20d4d61d72528ff858962b505e11ca19179da (diff)
downloadghdl-6c42b0a550549f7cc0f189fce3c72f069a4d336d.tar.gz
ghdl-6c42b0a550549f7cc0f189fce3c72f069a4d336d.tar.bz2
ghdl-6c42b0a550549f7cc0f189fce3c72f069a4d336d.zip
testsuite/synth: add a test for previous commit.
Diffstat (limited to 'testsuite/synth/range01/tb_revrng01.vhdl')
-rw-r--r--testsuite/synth/range01/tb_revrng01.vhdl20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/synth/range01/tb_revrng01.vhdl b/testsuite/synth/range01/tb_revrng01.vhdl
new file mode 100644
index 000000000..8e29558ac
--- /dev/null
+++ b/testsuite/synth/range01/tb_revrng01.vhdl
@@ -0,0 +1,20 @@
+entity tb_revrng01 is
+end tb_revrng01;
+
+library ieee;
+use ieee.std_logic_1164.all;
+
+architecture behav of tb_revrng01 is
+ signal a, z : std_logic_vector (7 downto 0);
+begin
+ dut: entity work.revrng01
+ port map (a, z);
+
+ process
+ begin
+ a <= x"a1";
+ wait for 1 ns;
+ assert z = x"85" severity failure;
+ wait;
+ end process;
+end behav;