data/full_repos/permissive/156506242/src/two_bit_counter.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/156506242/src/two_bit_counter.v:10: Operator EQ expects 32 or 3 bits on the LHS, but LHS\'s VARREF \'counter\' generates 2 bits.\n                                                                             : ... In instance two_bit_counter\n        if(counter == 4)\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 two_bit_counter(
    input signal,
    output reg [1:0] counter
    );
    
    always@(posedge signal) begin
        counter = counter + 1;
        if(counter == 4)
            counter = 0;
    end
    
endmodule
module two_bit_counter(
    input signal,
    output reg [1:0] counter
    );

    
    always@(posedge signal) begin
        counter = counter + 1;
        if(counter == 4)
            counter = 0;
    end
    
endmodule