diff options
Diffstat (limited to 'testsuite/gna/issue524/cond2.vhdl')
-rw-r--r-- | testsuite/gna/issue524/cond2.vhdl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/issue524/cond2.vhdl b/testsuite/gna/issue524/cond2.vhdl new file mode 100644 index 000000000..c109258c5 --- /dev/null +++ b/testsuite/gna/issue524/cond2.vhdl @@ -0,0 +1,23 @@ +library ieee; +use ieee.std_logic_1164.all; +entity cond is + port (i, rst, clk: std_logic; + o: out std_logic); +end; + + +architecture behav of cond is +begin + process (clk) is + begin + if rising_edge(clk) then + if ?? rst then + o <= '0'; + else + o <= i; + end if; + end if; + end process; +end; + + |