data/full_repos/permissive/197806087/booth-multiplier/alu.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/197806087/booth-multiplier/alu.v:11: Operator CASE expects 32 or 4 bits on the Case expression, but Case expression\'s VARREF \'op\' generates 2 bits.\n                                                                              : ... In instance alu\n        case(op)\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 alu (
        input wire clk,
        input wire [1:0] op,
        input wire [3:0] val1,
        input wire [3:0] val2,
        output reg [4:0] res
        );
    

    always @(posedge clk) begin
        case(op)


            01: res <= val1 + val2;
            10: res <= val1 - val2;
        endcase
    end
endmodule
module alu (
        input wire clk,
        input wire [1:0] op,
        input wire [3:0] val1,
        input wire [3:0] val2,
        output reg [4:0] res
        );

    

    always @(posedge clk) begin
        case(op)


            01: res <= val1 + val2;
            10: res <= val1 - val2;
        endcase
    end
endmodule