diff options
Diffstat (limited to 'testsuite/gna/issue524/cond.vhdl')
-rw-r--r-- | testsuite/gna/issue524/cond.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue524/cond.vhdl b/testsuite/gna/issue524/cond.vhdl new file mode 100644 index 000000000..5954b1e6c --- /dev/null +++ b/testsuite/gna/issue524/cond.vhdl @@ -0,0 +1,21 @@ +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; |