diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-03-15 07:45:53 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-03-15 07:46:27 +0100 |
commit | dbd1c189a8fff1e7c322ffd7264ea339bf911115 (patch) | |
tree | 921c999eb78433f56fb0450f49b526e997592e14 /testsuite/ghdl-issues/issue2392b/psl_p_plus.vhdl | |
parent | 952d0584b70eb85d24a70b646ccd8edfd9538b83 (diff) | |
download | ghdl-yosys-plugin-dbd1c189a8fff1e7c322ffd7264ea339bf911115.tar.gz ghdl-yosys-plugin-dbd1c189a8fff1e7c322ffd7264ea339bf911115.tar.bz2 ghdl-yosys-plugin-dbd1c189a8fff1e7c322ffd7264ea339bf911115.zip |
testsuite: add a test for #2392
Diffstat (limited to 'testsuite/ghdl-issues/issue2392b/psl_p_plus.vhdl')
-rw-r--r-- | testsuite/ghdl-issues/issue2392b/psl_p_plus.vhdl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/ghdl-issues/issue2392b/psl_p_plus.vhdl b/testsuite/ghdl-issues/issue2392b/psl_p_plus.vhdl new file mode 100644 index 0000000..522ce86 --- /dev/null +++ b/testsuite/ghdl-issues/issue2392b/psl_p_plus.vhdl @@ -0,0 +1,22 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity psl_p_plus is + generic( + DATA_BITS: natural := 8 + ); + port( + clk_in: in std_logic; + + a_in: in std_logic; + b_in: in std_logic; + c_in: in std_logic + ); +end; + +architecture psl of psl_p_plus is +begin + default clock is rising_edge(clk_in); + + p_plus_psl: assert {a_in[+]; b_in} |-> {c_in}; +end; |