Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
entity ent is end entity; | ||
architecture arch of ent is | ||
attribute att :integer_vector; | ||
constant const :integer := 1; | ||
attribute att of const:constant is (2, 3); | ||
begin | ||
assert false | ||
report "const'att(0) is " & integer'image(const'att(0)) | ||
severity note; | ||
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
entity repro1 is | ||
end entity; | ||
|
||
architecture arch of repro1 is | ||
attribute att : integer_vector; | ||
constant const : integer := 1; | ||
attribute att of const: constant is (2, 3); | ||
constant const2 : integer_vector := const'att; | ||
constant const3 : integer_vector := const2; | ||
begin | ||
assert false | ||
report "const'att(0) is " & integer'image(const3(0)) | ||
severity note; | ||
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#! /bin/sh | ||
|
||
. ../../testenv.sh | ||
|
||
export GHDL_STD_FLAGS=--std=08 | ||
analyze ent.vhdl | ||
elab_simulate ent | ||
|
||
analyze repro1.vhdl | ||
elab_simulate repro1 | ||
|
||
clean | ||
|
||
echo "Test successful" |