diff options
Diffstat (limited to 'testsuite/synth/if01/if02.vhdl')
-rw-r--r-- | testsuite/synth/if01/if02.vhdl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/synth/if01/if02.vhdl b/testsuite/synth/if01/if02.vhdl new file mode 100644 index 000000000..53fee6864 --- /dev/null +++ b/testsuite/synth/if01/if02.vhdl @@ -0,0 +1,22 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity if02 is + port (c : std_logic_vector(7 downto 0); + s : std_logic; + r : out std_logic_vector(7 downto 0)); +end if02; + +architecture behav of if02 is +begin + process (c, s) + begin + if s = '0' then + r (6 downto 0) <= c (7 downto 1); + r (7) <= c (0); + else + r (0) <= c (7); + r (7 downto 1) <= c (6 downto 0); + end if; + end process; +end behav; |