-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve on large constant wires in VHDL
Triggered by an reported issue with Verilog that I was not able to reproduce (issue 133).
- Loading branch information
1 parent
97dd4e3
commit 97c8c8a
Showing
2 changed files
with
29 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from __future__ import absolute_import | ||
from myhdl import * | ||
from myhdl.conversion import verify | ||
|
||
def issue_133(): | ||
z = Signal(False) | ||
large_signal = Signal(intbv(123456789123456, min=0, max=2**256)) | ||
@instance | ||
def check(): | ||
z.next = large_signal[10] | ||
yield delay(10) | ||
print large_signal[31:] | ||
print large_signal[62:31] | ||
print large_signal[93:62] | ||
|
||
return check | ||
|
||
def test_issue_133(): | ||
assert verify(issue_133) == 0 |