-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verilog: KNOWNBUG test for inout port connected to variable
An inout port must not be connected to a variable.
- Loading branch information
Showing
2 changed files
with
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
KNOWNBUG | ||
inout_and_variable.v | ||
|
||
^file .* line 4: symbol `some_var' is declared both as input and as register$ | ||
^EXIT=2$ | ||
^SIGNAL=0$ | ||
-- | ||
-- | ||
The use of a variable with an inout port should be rejected. |
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,12 @@ | ||
module sub(inout some_port); | ||
|
||
endmodule | ||
|
||
module main; | ||
// 1800-2017 6.5 | ||
// "Variables cannot be connected to either side of an inout port" | ||
reg my_var; | ||
|
||
sub sub(my_var); | ||
|
||
endmodule |