-
-
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.
Handle force/release in all-sensitised process. Fixes #877
- Loading branch information
Showing
4 changed files
with
55 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
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,47 @@ | ||
entity sub is | ||
port ( o : out natural ); | ||
end entity; | ||
|
||
architecture test of sub is | ||
signal s : natural; | ||
begin | ||
o <= s + 1 after 1 ns; | ||
end architecture; | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
entity issue877 is | ||
end entity; | ||
|
||
architecture test of issue877 is | ||
signal x : natural; | ||
begin | ||
|
||
uut: entity work.sub | ||
port map ( x ); | ||
|
||
update: process (all) is | ||
alias s is << signal uut.s : natural >>; | ||
begin | ||
if x = 10 then | ||
s <= release; | ||
else | ||
s <= force x; | ||
end if; | ||
end process; | ||
|
||
check: process is | ||
begin | ||
wait for 1 ns; | ||
assert x = 1; | ||
wait for 1 ns; | ||
assert x = 2; | ||
wait for 8 ns; | ||
assert x = 10; | ||
wait for 1 ns; | ||
assert x = 1; | ||
std.env.finish; | ||
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 |
---|---|---|
|
@@ -963,3 +963,4 @@ issue873 normal | |
array19 normal | ||
issue874 normal,2008 | ||
vhpi14 normal,vhpi | ||
issue877 normal,2008 |