Files
iverilog/ivtest/ivltests/memref.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

28 lines
453 B
Verilog

/*
* Check simple scope up-reference of memories.
*/
module main;
reg [7:0] foo [0:5];
integer idx;
task showstring;
begin
for (idx = 0 ; idx < 6 ; idx = idx+1) begin
$write("%c", foo[idx]);
end
$display;
end
endtask // showstring
initial begin
foo[0] = "P";
foo[1] = "A";
foo[2] = "S";
foo[3] = "S";
foo[4] = "E";
foo[5] = "D";
showstring;
end
endmodule // main