-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra regression tests for multiple drivers on uwires.
- Loading branch information
1 parent
dd082b8
commit 53b8220
Showing
10 changed files
with
67 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,3 @@ | ||
ivltests/uwire_fail2.v:8: error: Unresolved wire 'w' cannot have multiple drivers. | ||
ivltests/uwire_fail2.v:9: error: Unresolved wire 'w' cannot have multiple drivers. | ||
2 error(s) during elaboration. |
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,3 @@ | ||
ivltests/uwire_fail3.v:9: error: Unresolved wire 'w' cannot have multiple drivers. | ||
ivltests/uwire_fail3.v:10: error: Unresolved wire 'w' cannot have multiple drivers. | ||
2 error(s) during elaboration. |
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,3 @@ | ||
ivltests/uwire_fail4.v:9: error: Unresolved wire 'w' cannot have multiple drivers. | ||
ivltests/uwire_fail4.v:10: error: Unresolved wire 'w' cannot have multiple drivers. | ||
2 error(s) during elaboration. |
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,13 @@ | ||
// NOTE: The expected results for this test will depend on the order in | ||
// which the compiler elaborates the statements. | ||
module top; | ||
uwire [7:0] w; | ||
|
||
assign w[5:2] = 4'd0; | ||
assign w[1:0] = 2'd1; | ||
assign w[3:2] = 2'd1; | ||
assign w[5:4] = 2'd1; | ||
assign w[7:6] = 2'd1; | ||
|
||
initial $display("Failed: this should be a compile time error!"); | ||
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// NOTE: The expected results for this test will depend on the order in | ||
// which the compiler elaborates the statements. | ||
module top; | ||
uwire [3:0] w; | ||
|
||
assign w[1] = 1'b0; | ||
assign w[2] = 1'b1; | ||
assign w[0] = 1'b1; | ||
assign w[1] = 1'b1; | ||
assign w[2] = 1'b1; | ||
assign w[3] = 1'b1; | ||
|
||
initial $display("Failed: this should be a compile time error!"); | ||
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// NOTE: The expected results for this test will depend on the order in | ||
// which the compiler elaborates the statements. | ||
module top; | ||
uwire [3:0] w[3:0]; | ||
|
||
assign w[1] = 4'd0; | ||
assign w[2] = 4'd1; | ||
assign w[0] = 4'd2; | ||
assign w[1] = 4'd3; | ||
assign w[2] = 4'd4; | ||
assign w[3] = 4'd5; | ||
|
||
initial $display("Failed: this should be a compile time error!"); | ||
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type" : "CE", | ||
"source" : "uwire_fail2.v", | ||
"gold" : "uwire_fail2" | ||
} |
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,5 @@ | ||
{ | ||
"type" : "CE", | ||
"source" : "uwire_fail3.v", | ||
"gold" : "uwire_fail3" | ||
} |
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,5 @@ | ||
{ | ||
"type" : "CE", | ||
"source" : "uwire_fail4.v", | ||
"gold" : "uwire_fail4" | ||
} |