-
Notifications
You must be signed in to change notification settings - Fork 378
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
30 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 ent is | ||
end; | ||
|
||
architecture arch of ent is | ||
|
||
type range_t is array (integer range <>) of bit; | ||
|
||
function get_range (constant code : string) return range_t is | ||
constant ret_val : range_t(1 to 10) := (others => '0'); | ||
begin | ||
return ret_val; | ||
end function get_range; | ||
|
||
signal ret_val : boolean_vector(get_range("HELLO")'range) := (others => false); | ||
|
||
--constant ret_range : range_t := get_range("HELLO"); | ||
--signal ret_val : boolean_vector(ret_range) := (others => false); | ||
begin | ||
end; |
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,11 @@ | ||
#! /bin/sh | ||
|
||
. ../../testenv.sh | ||
|
||
export GHDL_STD_FLAGS=--std=08 | ||
analyze_failure ent.vhdl | ||
analyze -frelaxed ent.vhdl | ||
|
||
clean | ||
|
||
echo "Test successful" |