-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verilog: keep trace with instance in TAGS file #2703
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 @@ | ||
--extras=+q | ||
--sort=no |
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,36 @@ | ||
foo input.v /^module foo # (parameter$/;" m | ||
PAR_A input.v /^ PAR_A = 1,$/;" c module:foo | ||
foo.PAR_A input.v /^ PAR_A = 1,$/;" c module:foo | ||
PAR_B input.v /^ PAR_B = 2$/;" c module:foo | ||
foo.PAR_B input.v /^ PAR_B = 2$/;" c module:foo | ||
a input.v /^ input a, b;$/;" p module:foo | ||
foo.a input.v /^ input a, b;$/;" p module:foo | ||
b input.v /^ input a, b;$/;" p module:foo | ||
foo.b input.v /^ input a, b;$/;" p module:foo | ||
top input.v /^module top (\/*AUTOARG*\/$/;" m | ||
a input.v /^ input a; \/\/ To uut3 of foo.v$/;" p module:top | ||
top.a input.v /^ input a; \/\/ To uut3 of foo.v$/;" p module:top | ||
b input.v /^ input b; \/\/ To uut3 of foo.v$/;" p module:top | ||
top.b input.v /^ input b; \/\/ To uut3 of foo.v$/;" p module:top | ||
unused_pin input.v /^ wire unused_pin;$/;" n module:top | ||
top.unused_pin input.v /^ wire unused_pin;$/;" n module:top | ||
uut1 input.v /^ foo uut1 ($/;" i module:top | ||
top.uut1 input.v /^ foo uut1 ($/;" i module:top | ||
uut2 input.v /^ uut2 ($/;" i module:top | ||
top.uut2 input.v /^ uut2 ($/;" i module:top | ||
uut3 input.v /^ foo uut3 (\/*AUTOINST*\/$/;" i module:top | ||
top.uut3 input.v /^ foo uut3 (\/*AUTOINST*\/$/;" i module:top | ||
uut4 input.v /^ uut4 (\/*AUTOINST*\/$/;" i module:top | ||
top.uut4 input.v /^ uut4 (\/*AUTOINST*\/$/;" i module:top | ||
uut5 input.v /^ uut5 (\/*AUTOINST*\/$/;" i module:top | ||
top.uut5 input.v /^ uut5 (\/*AUTOINST*\/$/;" i module:top | ||
uut6 input.v /^ foo uut6 [10:0]();$/;" i module:top | ||
top.uut6 input.v /^ foo uut6 [10:0]();$/;" i module:top | ||
uut7 input.v /^ foo uut7 [1:0][10:0]();$/;" i module:top | ||
top.uut7 input.v /^ foo uut7 [1:0][10:0]();$/;" i module:top | ||
uut8 input.v /^ foo uut8 () ;$/;" i module:top | ||
top.uut8 input.v /^ foo uut8 () ;$/;" i module:top | ||
func_foo input.v /^ function void func_foo(int a);$/;" f module:top | ||
top.func_foo input.v /^ function void func_foo(int a);$/;" f module:top | ||
a input.v /^ function void func_foo(int a);$/;" p function:top.func_foo | ||
top.func_foo.a input.v /^ function void func_foo(int a);$/;" p function:top.func_foo |
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,86 @@ | ||
// Include module declaration in a comment | ||
|
||
module foo # (parameter | ||
PAR_A = 1, | ||
PAR_B = 2 | ||
) | ||
(/*AUTOARG*/ | ||
// Inputs | ||
a, b | ||
); | ||
input a, b; | ||
|
||
endmodule: foo | ||
|
||
module top (/*AUTOARG*/ | ||
// Inputs | ||
a, b | ||
); | ||
//begin: AUTOOUTPUTS | ||
/*AUTOOUTPUT*/ | ||
|
||
//begin: AUTOINPUTS | ||
/*AUTOINPUT*/ | ||
// Beginning of automatic inputs (from unused autoinst inputs) | ||
input a; // To uut3 of foo.v | ||
input b; // To uut3 of foo.v | ||
// End of automatics | ||
|
||
//begin: AUTOWIREs | ||
/*AUTOWIRE*/ | ||
|
||
//begin: AUTOREGINPUTs | ||
/*AUTOREGINPUT*/ | ||
|
||
//begin: AUTOREGs | ||
/*AUTOREGINPUT*/ | ||
|
||
//begin: AUTOUNUSEDs | ||
wire unused_pin; | ||
assign unused_pin = |{ | ||
/*AUTOUNUSED*/ | ||
1'b0} ; | ||
|
||
//begin: AUTOTIEOFFs | ||
/*AUTOTIEOFF*/ | ||
foo uut1 ( | ||
// Inputs | ||
a, | ||
b), | ||
uut2 ( | ||
.a (a), | ||
.b (b)); | ||
foo uut3 (/*AUTOINST*/ | ||
// Inputs | ||
.a (a), | ||
.b (b)) ; | ||
foo #(3, 4) | ||
uut4 (/*AUTOINST*/ | ||
// Inputs | ||
.a (a), | ||
.b (b)); | ||
foo #(.PAR_A (5), | ||
.PAR_B (6)) | ||
uut5 (/*AUTOINST*/ | ||
// Inputs | ||
.a (a), | ||
.b (b)); | ||
foo uut6 [10:0](); | ||
foo uut7 [1:0][10:0](); | ||
foo uut8 () ; | ||
|
||
/*! Function Description | ||
* | ||
* \param <name> <description> | ||
* | ||
* \return <return value description> | ||
*/ | ||
|
||
function void func_foo(int a); | ||
|
||
endfunction : func_foo | ||
|
||
|
||
|
||
|
||
endmodule: top |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave a comment here as we discussed.