diff options
Diffstat (limited to 'testsuite/synth/case01/case01.vhdl')
-rw-r--r-- | testsuite/synth/case01/case01.vhdl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/synth/case01/case01.vhdl b/testsuite/synth/case01/case01.vhdl new file mode 100644 index 000000000..f20e41cb5 --- /dev/null +++ b/testsuite/synth/case01/case01.vhdl @@ -0,0 +1,28 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity case01 is + port (a : std_logic_vector (4 downto 0); + o : out std_logic); +end case01; + +architecture behav of case01 is +begin + process (a) + begin + o <= '0'; + case a is + when "00011" => + o <= '1'; + when "00110" | "00111" | "10001" => + o <= '1'; + when "00100" => + when "01100" => + o <= '1'; + when "10000" => + o <= '1'; + when others => + o <= '0'; + end case; + end process; +end behav; |