data/full_repos/permissive/158922207/Verilog Design/modules/ALU.v
1: b'%Error: Cannot find file containing module: Design/modules,data/full_repos/permissive/158922207\n        ... Looked in:\n             data/full_repos/permissive/158922207/Verilog/Design/modules,data/full_repos/permissive/158922207\n             data/full_repos/permissive/158922207/Verilog/Design/modules,data/full_repos/permissive/158922207.v\n             data/full_repos/permissive/158922207/Verilog/Design/modules,data/full_repos/permissive/158922207.sv\n             Design/modules,data/full_repos/permissive/158922207\n             Design/modules,data/full_repos/permissive/158922207.v\n             Design/modules,data/full_repos/permissive/158922207.sv\n             obj_dir/Design/modules,data/full_repos/permissive/158922207\n             obj_dir/Design/modules,data/full_repos/permissive/158922207.v\n             obj_dir/Design/modules,data/full_repos/permissive/158922207.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/158922207/Verilog\n%Error: Cannot find file containing module: Design/modules/ALU.v\n%Error: Exiting due to 3 error(s)\n'
module ALU(Result, Zero, ALUControl, A, B);
input [31:0] A, B;
input [3:0] ALUControl;
output reg [31:0] Result;
output Zero;

assign Zero = (Result==0);
always @(ALUControl, A, B) begin
    case (ALUControl)
        0: Result <= A & B;
        1: Result <= A | B;
        2: Result <= A + B;
        6: Result <= A - B;
        7: Result <= A < B ? 31'd1: 31'd0;
        12: Result <= ~(A|B);
        default: Result <= 0;
    endcase
end
endmodule
module ALU(Result, Zero, ALUControl, A, B);

input [31:0] A, B;
input [3:0] ALUControl;
output reg [31:0] Result;
output Zero;

assign Zero = (Result==0);
always @(ALUControl, A, B) begin
    case (ALUControl)
        0: Result <= A & B;
        1: Result <= A | B;
        2: Result <= A + B;
        6: Result <= A - B;
        7: Result <= A < B ? 31'd1: 31'd0;
        12: Result <= ~(A|B);
        default: Result <= 0;
    endcase
end
endmodule