diff options
author | Tristan Gingold <tgingold@free.fr> | 2014-06-29 16:39:52 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2014-06-29 16:39:52 +0200 |
commit | f2ece9d895747a95453add597cad3e6d6b1cd2f2 (patch) | |
tree | 9d8de6cf6f7e3dd05521fdedbeffe7eb6f3d7053 /testsuite/gna/ticket14/reprook.vhdl | |
parent | 13f260fca9cd8531b4a2af1d43a78c249197f931 (diff) | |
download | ghdl-f2ece9d895747a95453add597cad3e6d6b1cd2f2.tar.gz ghdl-f2ece9d895747a95453add597cad3e6d6b1cd2f2.tar.bz2 ghdl-f2ece9d895747a95453add597cad3e6d6b1cd2f2.zip |
Add ticket14.
Diffstat (limited to 'testsuite/gna/ticket14/reprook.vhdl')
-rw-r--r-- | testsuite/gna/ticket14/reprook.vhdl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/ticket14/reprook.vhdl b/testsuite/gna/ticket14/reprook.vhdl new file mode 100644 index 000000000..0d026a705 --- /dev/null +++ b/testsuite/gna/ticket14/reprook.vhdl @@ -0,0 +1,23 @@ +entity reprook is + generic ( + BUS_WIDTH : integer := 8; + ARRAY_WIDTH : integer := 2); +end entity reprook; + +architecture behavioural of reprook is + + type test_array_btype is array (integer range <>) of + bit_vector (BUS_WIDTH-1 downto 0); + subtype test_array_type is test_array_btype (ARRAY_WIDTH-1 downto 0); + signal s : test_array_type := (others => (others => '0')); + +begin + + failing_process : process + begin + assert s'left = 1; + assert s'right = 0; + wait; + end process failing_process; + +end architecture behavioural; |