Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix code generation crash with real signals
- Loading branch information
Showing
4 changed files
with
26 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,2 @@ | ||
0ms+0: Report Note: real: -523467 | ||
0ms+1: Report Note: integer: -523467 |
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,20 @@ | ||
entity real3 is | ||
end real3; | ||
|
||
architecture Behavioral of real3 is | ||
|
||
signal value_real : real := -523467.0; | ||
signal value_integer : integer; | ||
|
||
begin | ||
|
||
process | ||
begin | ||
report "real: " & real'image(value_real); | ||
value_integer <= integer(value_real); | ||
wait for 0 ns; | ||
report "integer: " & integer'image(value_integer); | ||
wait; | ||
end process; | ||
|
||
end Behavioral; |
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 |
---|---|---|
|
@@ -304,3 +304,4 @@ issue229 normal | |
issue217 normal | ||
issue234 normal,gold | ||
issue227 normal,gold | ||
real3 normal,gold |