-
Notifications
You must be signed in to change notification settings - Fork 348
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
2 changed files
with
31 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,19 @@ | ||
entity entity_1 is | ||
end entity entity_1; | ||
|
||
architecture behav of entity_1 is | ||
begin | ||
genIf: if True generate | ||
constant G0 : boolean := False; | ||
begin | ||
|
||
elsif False generate | ||
constant G1 : boolean := False; | ||
begin | ||
|
||
else generate | ||
constant G2 : boolean := False; | ||
begin | ||
|
||
end generate; | ||
end architecture behav; |
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,12 @@ | ||
#! /bin/sh | ||
|
||
. ../../testenv.sh | ||
|
||
export GHDL_STD_FLAGS=--std=08 | ||
analyze -ds entity_1.vhdl 2> entity_1.dump | ||
cnt=$(grep -c if_generate_else entity_1.dump) | ||
test $cnt -eq 2 | ||
|
||
clean | ||
|
||
echo "Test successful" |