-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Array bounds check incorrectly optimised out. Fixes #747
- Loading branch information
Showing
4 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(init): index 10 outside of NATURAL range 9 downto 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
entity issue747 is | ||
generic ( | ||
L : natural := 1 | ||
); | ||
end entity; | ||
|
||
architecture test of issue747 is | ||
signal s : bit_vector(L-1 downto 0); | ||
begin | ||
|
||
process | ||
begin | ||
wait for 1 ns; | ||
s(10) <= '0'; -- no check done for out of bound | ||
s(12 downto 11) <= "11"; -- check is done here | ||
wait for 1 ns; | ||
report "SIMULATION ENDED" severity failure; | ||
wait; | ||
end process; | ||
|
||
end architecture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -834,3 +834,4 @@ reflect5 normal,2019 | |
seqblock1 normal,2019 | ||
seqblock2 normal,2019 | ||
stdenv6 normal,2019 | ||
issue747 fail,gold,gL=10 |