-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for issue #1184.
This checks the temporary fix of outputing a suitable "sorry" message.
- Loading branch information
1 parent
84848e8
commit f3abd94
Showing
5 changed files
with
71 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 @@ | ||
sorry: multi-bit module path delays are currently not fully supported. |
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,6 @@ | ||
1 00 xx | ||
3 00 00 | ||
4 11 00 | ||
5 11 11 | ||
7 10 11 | ||
9 10 10 |
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,57 @@ | ||
module dut(input wire [1:0] i, output wire [1:0] o); | ||
|
||
assign o = i; | ||
|
||
specify | ||
specparam tRISE = 1; | ||
specparam tFALL = 2; | ||
|
||
(i => o) = (tRISE, tFALL); | ||
endspecify | ||
|
||
endmodule | ||
|
||
module test(); | ||
|
||
reg [1:0] i; | ||
wire [1:0] o; | ||
|
||
dut dut(i, o); | ||
|
||
reg failed = 0; | ||
|
||
initial begin | ||
#1 $monitor("%0t %b %b", $time, i, o); | ||
|
||
i = 2'b00; | ||
#0 if (o !== 2'bxx) failed = 1; | ||
#1; #0 if (o !== 2'bxx) failed = 1; | ||
#1; #0 if (o !== 2'b00) failed = 1; | ||
#1; #0 if (o !== 2'b00) failed = 1; | ||
|
||
i = 2'b11; | ||
#0 if (o !== 2'b00) failed = 1; | ||
#1; #0 if (o !== 2'b11) failed = 1; | ||
#1; #0 if (o !== 2'b11) failed = 1; | ||
#1; #0 if (o !== 2'b11) failed = 1; | ||
|
||
i = 2'b10; | ||
#0 if (o !== 2'b11) failed = 1; | ||
#1; #0 if (o !== 2'b11) failed = 1; | ||
#1; #0 if (o !== 2'b10) failed = 1; | ||
#1; #0 if (o !== 2'b10) failed = 1; | ||
|
||
i = 2'b01; | ||
#0 if (o !== 2'b10) failed = 1; | ||
#1; #0 if (o !== 2'b11) failed = 1; | ||
#1; #0 if (o !== 2'b01) failed = 1; | ||
#1; #0 if (o !== 2'b01) failed = 1; | ||
|
||
#1; | ||
if (failed) | ||
$display("FAILED"); | ||
else | ||
$display("PASSED"); | ||
end | ||
|
||
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,6 @@ | ||
{ | ||
"type" : "EF", | ||
"source" : "br_gh1184.v", | ||
"gold" : "br_gh1184", | ||
"iverilog-args" : [ "-gspecify" ] | ||
} |