-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
External names with record signals. Fixes #520
- Loading branch information
Showing
4 changed files
with
60 additions
and
4 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
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,38 @@ | ||
package test_pkg is | ||
type t_if is record | ||
clk : bit; | ||
txd : bit_vector(7 downto 0); | ||
txen : bit; | ||
end record; | ||
end package; | ||
|
||
use work.test_pkg.all; | ||
|
||
entity test1 is | ||
end entity; | ||
|
||
architecture beh of test1 is | ||
signal sig : t_if; | ||
begin | ||
end architecture; | ||
|
||
use work.test_pkg.all; | ||
|
||
entity issue552 is | ||
end entity; | ||
|
||
architecture beh of issue552 is | ||
begin | ||
i_test : entity work.test1; | ||
|
||
p_proc : process | ||
alias sig is <<signal i_test.sig : t_if >>; | ||
begin | ||
wait until sig.txen = '1' for 1.1 us; | ||
assert sig.txen = '0'; | ||
sig <= force ('1', X"00", '1'); | ||
wait for 0 ns; | ||
assert sig.txen = '1'; | ||
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 |
---|---|---|
|
@@ -645,3 +645,4 @@ issue502 normal | |
elab34 normal,2008 | ||
issue508 normal,2008 | ||
record37 normal | ||
issue552 normal,2008 |