-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit maximum size of stack allocations to 64kB
Fixes #791
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 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,25 @@ | ||
entity issue791 is | ||
end entity; | ||
|
||
architecture beh of issue791 is | ||
|
||
type t_slv_array is array (natural range <>) of bit_vector; | ||
|
||
procedure read_mem is | ||
-- This shouldn't be allocated on the stack | ||
variable v_memory : t_slv_array(0 to (8 * 131072)-1)(7 downto 0) := (others => x"FF"); | ||
begin | ||
wait for 1 ns; | ||
v_memory(v_memory'right) := X"ab"; | ||
wait for 1 ns; | ||
assert v_memory(v_memory'right) = X"ab"; | ||
end procedure; | ||
|
||
begin | ||
|
||
p_proc : process | ||
begin | ||
read_mem; | ||
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 |
---|---|---|
|
@@ -898,3 +898,4 @@ cover20 cover,shell | |
issue787 normal | ||
view6 normal,2019 | ||
issue790 normal | ||
issue791 normal,2008 |