data/full_repos/permissive/143278/ivltests/pr2132552.v
 line:5: before: "parameter"
1: b"%Error: data/full_repos/permissive/143278/ivltests/pr2132552.v:5: Unsupported: Parameters in functions.\nparameter depth = 16;\n          ^~~~~\n%Error: data/full_repos/permissive/143278/ivltests/pr2132552.v:6: Unsupported: Parameters in functions.\nparameter width = 8;\n          ^~~~~\n%Error: data/full_repos/permissive/143278/ivltests/pr2132552.v:8: Can't find definition of variable: 'width'\nreg [width-1:0] mem [depth-1:0];\n     ^~~~~\n%Error: data/full_repos/permissive/143278/ivltests/pr2132552.v:8: Can't find definition of variable: 'depth'\nreg [width-1:0] mem [depth-1:0];\n                     ^~~~~\n%Error: Exiting due to 4 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n"
module pr2132552();

task test_task;

parameter depth = 16;
parameter width = 8;

reg [width-1:0] mem [depth-1:0];

integer i;

begin
  for (i = 0; i < depth; i = i + 1) begin
    mem[i] = i;
  end
  for (i = 0; i < depth; i = i + 1) begin
    $display("%0d", mem[i]);
  end
end

endtask

initial test_task;

endmodule
module pr2132552();


task test_task;

parameter depth = 16;
parameter width = 8;

reg [width-1:0] mem [depth-1:0];

integer i;

begin
  for (i = 0; i < depth; i = i + 1) begin
    mem[i] = i;
  end
  for (i = 0; i < depth; i = i + 1) begin
    $display("%0d", mem[i]);
  end
end

endtask

initial test_task;

endmodule