-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from phanrahan/debug-names
Use debug_name by default for instances
- Loading branch information
Showing
83 changed files
with
452 additions
and
453 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
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,12 +1,12 @@ | ||
module basic_func (input [1:0] I, input S, output O); | ||
wire inst0_O; | ||
Mux2 inst0 (.I0(I[1]), .I1(I[0]), .S(S), .O(inst0_O)); | ||
assign O = inst0_O; | ||
wire Mux2_inst0_O; | ||
Mux2 Mux2_inst0 (.I0(I[1]), .I1(I[0]), .S(S), .O(Mux2_inst0_O)); | ||
assign O = Mux2_inst0_O; | ||
endmodule | ||
|
||
module basic_function_call (input [1:0] I, input S, output O); | ||
wire inst0_O; | ||
basic_func inst0 (.I(I), .S(S), .O(inst0_O)); | ||
assign O = inst0_O; | ||
wire basic_func_inst0_O; | ||
basic_func basic_func_inst0 (.I(I), .S(S), .O(basic_func_inst0_O)); | ||
assign O = basic_func_inst0_O; | ||
endmodule | ||
|
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,6 +1,6 @@ | ||
module basic_if (input [1:0] I, input S, output O); | ||
wire inst0_O; | ||
Mux2 inst0 (.I0(I[1]), .I1(I[0]), .S(S), .O(inst0_O)); | ||
assign O = inst0_O; | ||
wire Mux2_inst0_O; | ||
Mux2 Mux2_inst0 (.I0(I[1]), .I1(I[0]), .S(S), .O(Mux2_inst0_O)); | ||
assign O = Mux2_inst0_O; | ||
endmodule | ||
|
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,10 +1,10 @@ | ||
module if_statement_nested (input [3:0] I, input [1:0] S, output O); | ||
wire inst0_O; | ||
wire inst1_O; | ||
wire inst2_O; | ||
Mux2 inst0 (.I0(I[3]), .I1(I[2]), .S(S[1]), .O(inst0_O)); | ||
Mux2 inst1 (.I0(I[1]), .I1(I[0]), .S(S[1]), .O(inst1_O)); | ||
Mux2 inst2 (.I0(inst0_O), .I1(inst1_O), .S(S[0]), .O(inst2_O)); | ||
assign O = inst2_O; | ||
wire Mux2_inst0_O; | ||
wire Mux2_inst1_O; | ||
wire Mux2_inst2_O; | ||
Mux2 Mux2_inst0 (.I0(I[3]), .I1(I[2]), .S(S[1]), .O(Mux2_inst0_O)); | ||
Mux2 Mux2_inst1 (.I0(I[1]), .I1(I[0]), .S(S[1]), .O(Mux2_inst1_O)); | ||
Mux2 Mux2_inst2 (.I0(Mux2_inst0_O), .I1(Mux2_inst1_O), .S(S[0]), .O(Mux2_inst2_O)); | ||
assign O = Mux2_inst2_O; | ||
endmodule | ||
|
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module ternary (input [1:0] I, input S, output O); | ||
wire inst0_O; | ||
Mux2 inst0 (.I0(I[1]), .I1(I[0]), .S(S), .O(inst0_O)); | ||
assign O = inst0_O; | ||
wire Mux2_inst0_O; | ||
Mux2 Mux2_inst0 (.I0(I[1]), .I1(I[0]), .S(S), .O(Mux2_inst0_O)); | ||
assign O = Mux2_inst0_O; | ||
endmodule | ||
|
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,8 +1,8 @@ | ||
module ternary_nested (input [3:0] I, input [1:0] S, output O); | ||
wire inst0_O; | ||
wire inst1_O; | ||
Mux2 inst0 (.I0(I[2]), .I1(I[1]), .S(S[1]), .O(inst0_O)); | ||
Mux2 inst1 (.I0(inst0_O), .I1(I[0]), .S(S[0]), .O(inst1_O)); | ||
assign O = inst1_O; | ||
wire Mux2_inst0_O; | ||
wire Mux2_inst1_O; | ||
Mux2 Mux2_inst0 (.I0(I[2]), .I1(I[1]), .S(S[1]), .O(Mux2_inst0_O)); | ||
Mux2 Mux2_inst1 (.I0(Mux2_inst0_O), .I1(I[0]), .S(S[0]), .O(Mux2_inst1_O)); | ||
assign O = Mux2_inst1_O; | ||
endmodule | ||
|
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,8 +1,8 @@ | ||
module ternary_nested2 (input [3:0] I, input [1:0] S, output O); | ||
wire inst0_O; | ||
wire inst1_O; | ||
Mux2 inst0 (.I0(I[1]), .I1(I[0]), .S(S[0]), .O(inst0_O)); | ||
Mux2 inst1 (.I0(I[2]), .I1(inst0_O), .S(S[1]), .O(inst1_O)); | ||
assign O = inst1_O; | ||
wire Mux2_inst0_O; | ||
wire Mux2_inst1_O; | ||
Mux2 Mux2_inst0 (.I0(I[1]), .I1(I[0]), .S(S[0]), .O(Mux2_inst0_O)); | ||
Mux2 Mux2_inst1 (.I0(I[2]), .I1(Mux2_inst0_O), .S(S[1]), .O(Mux2_inst1_O)); | ||
assign O = Mux2_inst1_O; | ||
endmodule | ||
|
Oops, something went wrong.