diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-07-15 18:47:41 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-07-15 18:49:03 +0200 |
commit | 32933b13ec02e0ea60504d9c2c354c198e8e5c13 (patch) | |
tree | bfc11228dc9d771645752538ee55a0e4cf31e3db /testsuite/gna/issue869/alu.vhdl | |
parent | f0e5c6ed7f858c2975f8a2a1e611bc063b236f62 (diff) | |
download | ghdl-32933b13ec02e0ea60504d9c2c354c198e8e5c13.tar.gz ghdl-32933b13ec02e0ea60504d9c2c354c198e8e5c13.tar.bz2 ghdl-32933b13ec02e0ea60504d9c2c354c198e8e5c13.zip |
Add testcase for #869
Diffstat (limited to 'testsuite/gna/issue869/alu.vhdl')
-rw-r--r-- | testsuite/gna/issue869/alu.vhdl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/gna/issue869/alu.vhdl b/testsuite/gna/issue869/alu.vhdl new file mode 100644 index 000000000..a9742c2d1 --- /dev/null +++ b/testsuite/gna/issue869/alu.vhdl @@ -0,0 +1,21 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity alu is + port ( + a : in std_logic; + b : in std_logic; + y : out std_logic + ); +end alu; + +architecture mux of alu is + signal mux1: std_logic_vector(7 downto 0); +begin + + process(a, b) + begin + y <= mux1(a & b); -- now allowed + end process; +end mux; |