-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addding WARNING in alias/short modules
- Loading branch information
Showing
2 changed files
with
29 additions
and
17 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 |
---|---|---|
@@ -1,11 +1,25 @@ | ||
|
||
//Solution to the short was found at the end of a conversation thread at this | ||
// link: | ||
// https://groups.google.com/g/comp.lang.verilog/c/b3-6XMA8KA4 | ||
/************************************************************************** | ||
* Function: IO Alias Module | ||
* Copyright: Lambda Project Authors. All rights Reserved. | ||
* License: MIT (see LICENSE file in Lambda repository) | ||
* | ||
* Docs: | ||
* | ||
* Signal renaming and concatenation of wires doesn't work for | ||
* directly connected I/O ports. One solution is to hard code the | ||
* connections in the design. Another option is to pass through the | ||
* name translation module shown below. | ||
* | ||
* WARNING: The port list alias features is in the verilog standard, | ||
* but not well supported by open source tools. Not recommended for | ||
* portable designs. | ||
* | ||
*************************************************************************/ | ||
|
||
module la_pt (.io1(a), | ||
.io2(a) | ||
); | ||
.io2(a)); | ||
|
||
inout wire a; | ||
|
||
endmodule |