data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/rf.v
1: b'%Warning-WIDTH: data/full_repos/permissive/503973366/NOT_USE/NOT_USE_HW/etc/rf.v:29: Operator NEQ expects 5 bits on the RHS, but RHS\'s CONST \'1\'h0\' generates 1 bits.\n                                                                                   : ... In instance REG_FILE\n    assign rd_o = (ra_i != 1\'b0) ? rf[ra_i] : {(DATA_WIDTH){1\'b0}};\n                        ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module REG_FILE #(

    parameter   DATA_WIDTH = 32,
    parameter   ADDR_WIDTH = 5
    )
    (

    input                       clk,        
    input                       we_i,
    input   [ADDR_WIDTH-1:0]    wa_i,
    input   [DATA_WIDTH-1:0]    wd_i,
    input   [ADDR_WIDTH-1:0]    ra_i,
    output  [DATA_WIDTH-1:0]    rd_o
    );



    reg [DATA_WIDTH-1:0] rf [2**ADDR_WIDTH-1:0]; 


    always @(posedge clk) begin
        if (we_i) begin
            rf[wa_i] <= wd_i;
        end 
    end
    


    assign rd_o = (ra_i != 1'b0) ? rf[ra_i] : {(DATA_WIDTH){1'b0}};

endmodule
module REG_FILE #(

    parameter   DATA_WIDTH = 32,
    parameter   ADDR_WIDTH = 5
    )
    (

    input                       clk,        
    input                       we_i,
    input   [ADDR_WIDTH-1:0]    wa_i,
    input   [DATA_WIDTH-1:0]    wd_i,
    input   [ADDR_WIDTH-1:0]    ra_i,
    output  [DATA_WIDTH-1:0]    rd_o
    );




    reg [DATA_WIDTH-1:0] rf [2**ADDR_WIDTH-1:0]; 


    always @(posedge clk) begin
        if (we_i) begin
            rf[wa_i] <= wd_i;
        end 
    end
    


    assign rd_o = (ra_i != 1'b0) ? rf[ra_i] : {(DATA_WIDTH){1'b0}};

endmodule