diff options
Diffstat (limited to 'testsuite/issues/issue6/vector.vhdl')
-rw-r--r-- | testsuite/issues/issue6/vector.vhdl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/issues/issue6/vector.vhdl b/testsuite/issues/issue6/vector.vhdl new file mode 100644 index 0000000..255c0b5 --- /dev/null +++ b/testsuite/issues/issue6/vector.vhdl @@ -0,0 +1,16 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity vector is + port (led0: out std_logic); +end vector; + +architecture synth of vector is + +signal v : std_logic_vector(7 downto 0); + +begin + v <= std_logic_vector'("10101010"); + led0 <= v(1); --- But led0 <= v(0) works ok +end synth; |