aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1273/assert7.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-06 08:22:10 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-06 18:38:26 +0200
commitfa6147b879add9ad4db0f2bc8d4c47f7fd92f41c (patch)
treea9ca346ab1951833df6e8e09615e54346f0305f2 /testsuite/synth/issue1273/assert7.vhdl
parent3b70e630543da3d42fc0cda37389312d8910e0ab (diff)
downloadghdl-fa6147b879add9ad4db0f2bc8d4c47f7fd92f41c.tar.gz
ghdl-fa6147b879add9ad4db0f2bc8d4c47f7fd92f41c.tar.bz2
ghdl-fa6147b879add9ad4db0f2bc8d4c47f7fd92f41c.zip
testsuite/synth: add more tests for #1273
Diffstat (limited to 'testsuite/synth/issue1273/assert7.vhdl')
-rw-r--r--testsuite/synth/issue1273/assert7.vhdl26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/synth/issue1273/assert7.vhdl b/testsuite/synth/issue1273/assert7.vhdl
new file mode 100644
index 000000000..d99642854
--- /dev/null
+++ b/testsuite/synth/issue1273/assert7.vhdl
@@ -0,0 +1,26 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity assert7 is
+ port (v : std_logic_Vector (7 downto 0);
+ en : std_logic;
+ clk : std_logic;
+ rst : std_logic;
+ res : out std_logic);
+end;
+
+architecture behav of assert7 is
+begin
+ process (clk, rst)
+ begin
+ if rst = '1' then
+ res <= '0';
+ elsif rising_edge(clk) and en = '1' then
+ assert v /= x"05";
+ assert v /= x"06";
+ assert v /= x"08";
+ res <= v(0) xor v(1);
+ end if;
+ end process;
+end behav;
+