-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed an issue where sameas could not be used together with auto when…
… output was bound to a module (test: auto1.si)
- Loading branch information
Showing
3 changed files
with
32 additions
and
8 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,24 @@ | ||
unit foo(input uint1 p,output uint1 q) | ||
{ | ||
always { | ||
q = p; | ||
} | ||
} | ||
|
||
unit test(input auto a,output sameas(a) b) | ||
{ | ||
foo _(p <: a[0,1], q :> b[0,1]); | ||
// ^^^^^^ error due to sameas | ||
} | ||
|
||
unit main(output uint8 leds) | ||
{ | ||
uint8 v(15); | ||
uint8 w(15); | ||
test bla(a <: v, b :> w); | ||
|
||
always { | ||
//__display("b : %d"); | ||
__finish(); | ||
} | ||
} |