-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow signal declarations in entity declarative part. Issue #547
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
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,40 @@ | ||
entity sub is | ||
signal x : bit; | ||
end entity; | ||
|
||
architecture test of sub is | ||
begin | ||
|
||
x <= '1'; | ||
|
||
process is | ||
begin | ||
assert x = '0'; | ||
wait for 0 ns; | ||
assert x = '1'; | ||
wait; | ||
end process; | ||
|
||
end architecture; | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
entity issue547 is | ||
signal s : natural; | ||
end entity; | ||
|
||
architecture test of issue547 is | ||
begin | ||
|
||
u: entity work.sub; | ||
|
||
p1: process is | ||
begin | ||
assert s = 0; | ||
s <= 1; | ||
wait for 1 ns; | ||
assert s = 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 |
---|---|---|
|
@@ -674,3 +674,4 @@ issue542 normal | |
issue540 normal,2008 | ||
guard3 normal | ||
issue543 normal,2008 | ||
issue547 normal |