aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/synth34/tb_repro_rng1.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-09-25 20:39:46 +0200
committerTristan Gingold <tgingold@free.fr>2019-09-25 20:39:46 +0200
commit6e9336d11dfc4f53dba234e1f02a2b0172461e0c (patch)
tree12f93ed2cbbb62c0e8e2fb6b7124201fe0a216bd /testsuite/synth/synth34/tb_repro_rng1.vhdl
parentdcc353b07b82a84f2aa598de3884c58f406e0652 (diff)
downloadghdl-6e9336d11dfc4f53dba234e1f02a2b0172461e0c.tar.gz
ghdl-6e9336d11dfc4f53dba234e1f02a2b0172461e0c.tar.bz2
ghdl-6e9336d11dfc4f53dba234e1f02a2b0172461e0c.zip
testsuite/synth: rename issueXX to synthXX for ghdlsynth-beta issues.
Diffstat (limited to 'testsuite/synth/synth34/tb_repro_rng1.vhdl')
-rw-r--r--testsuite/synth/synth34/tb_repro_rng1.vhdl34
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/synth/synth34/tb_repro_rng1.vhdl b/testsuite/synth/synth34/tb_repro_rng1.vhdl
new file mode 100644
index 000000000..09f385a58
--- /dev/null
+++ b/testsuite/synth/synth34/tb_repro_rng1.vhdl
@@ -0,0 +1,34 @@
+entity tb_repro_rng1 is
+end tb_repro_rng1;
+
+library ieee;
+use ieee.std_logic_1164.all;
+
+architecture behav of tb_repro_rng1 is
+ signal clk : std_logic;
+ signal a : natural range 0 to 7;
+ signal b : natural range 0 to 7;
+begin
+ dut: entity work.repro_rng1
+ port map (
+ clk => clk, a => a, b => b);
+
+ process
+ procedure pulse is
+ begin
+ clk <= '0';
+ wait for 1 ns;
+ clk <= '1';
+ wait for 1 ns;
+ end pulse;
+ begin
+ a <= 1;
+ pulse;
+ assert b = 1 severity failure;
+
+ a <= 6;
+ pulse;
+ assert b = 6 severity failure;
+ wait;
+ end process;
+end behav;