data/full_repos/permissive/524307278/datapath/gpr.v
1: b"%Error: data/full_repos/permissive/524307278/datapath/gpr.v:29: syntax error, unexpected ']', expecting ':'\n            reg[0] <= 0;  \n                 ^\n%Error: Exiting due to 1 error(s)\n"
module gpr(RegWr, ra, rb, rw, busW, clk, rst, busA, busB, Data_in);
    
    input clk, rst, RegWr;
    input [31:0] busW;
    input [4:0] ra, rb, rw;
    output [31:0] busA, busB, Data_in;

    reg [31:0]regi[31:0];


    integer i;
    always@(posedge rst)
    begin
        if(rst)
            for(i=0; i<32; i++)
                regi[i] = 0;
    end


    assign busA = regi[ra];
    assign busB = regi[rb];
    assign Data_in = busB;


    always@(posedge clk)
    begin
        if(RegWr) begin
            regi[rw] <= busW;
            reg[0] <= 0;
        end
    end
   
endmodule
module gpr(RegWr, ra, rb, rw, busW, clk, rst, busA, busB, Data_in);

    
    input clk, rst, RegWr;
    input [31:0] busW;
    input [4:0] ra, rb, rw;
    output [31:0] busA, busB, Data_in;

    reg [31:0]regi[31:0];


    integer i;
    always@(posedge rst)
    begin
        if(rst)
            for(i=0; i<32; i++)
                regi[i] = 0;
    end


    assign busA = regi[ra];
    assign busB = regi[rb];
    assign Data_in = busB;


    always@(posedge clk)
    begin
        if(RegWr) begin
            regi[rw] <= busW;
            reg[0] <= 0;
        end
    end
   
endmodule