diff options
Diffstat (limited to 'testsuite/synth/if02/if02.vhdl')
-rw-r--r-- | testsuite/synth/if02/if02.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/synth/if02/if02.vhdl b/testsuite/synth/if02/if02.vhdl new file mode 100644 index 000000000..b9155c7c4 --- /dev/null +++ b/testsuite/synth/if02/if02.vhdl @@ -0,0 +1,15 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity if01 is + port (a : std_logic; + b : std_logic; + sel : std_logic_vector (1 downto 0); + s : out std_logic); +end if01; + +architecture behav of if01 is +begin + s <= a when sel = "01" + else b when sel = "10"; +end behav; |