-
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 regression test for connecting module output port to array variab…
…le (issue #1001).
- Loading branch information
1 parent
c9d87ab
commit 5e13989
Showing
3 changed files
with
28 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,22 @@ | ||
module dut(output logic [7:0] op[1:0]); | ||
|
||
assign op[0] = 8'd1; | ||
assign op[1] = 8'd2; | ||
|
||
endmodule | ||
|
||
module test(); | ||
|
||
logic [7:0] v[1:0]; | ||
|
||
dut dut(v); | ||
|
||
initial begin | ||
#0 $display("%b %b", v[0], v[1]); | ||
if ((v[0] === 8'd1) && (v[1] === 8'd2)) | ||
$display("PASSED"); | ||
else | ||
$display("FAILED"); | ||
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,5 @@ | ||
{ | ||
"type" : "normal", | ||
"source" : "br_gh1001.v", | ||
"iverilog-args" : [ "-g2009" ] | ||
} |