data/full_repos/permissive/158845296/alu.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Error: data/full_repos/permissive/158845296/alu.v:9: Cannot find include file: parameters.v\n`include "parameters.v" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/158845296,data/full_repos/permissive/158845296/parameters.v\n             data/full_repos/permissive/158845296,data/full_repos/permissive/158845296/parameters.v.v\n             data/full_repos/permissive/158845296,data/full_repos/permissive/158845296/parameters.v.sv\n             parameters.v\n             parameters.v.v\n             parameters.v.sv\n             obj_dir/parameters.v\n             obj_dir/parameters.v.v\n             obj_dir/parameters.v.sv\n%Error: data/full_repos/permissive/158845296/alu.v:19: Define or directive not defined: \'`OP_SUB\'\n            `OP_SUB : result <= sub_result;\n            ^~~~~~~\n%Error: data/full_repos/permissive/158845296/alu.v:19: syntax error, unexpected \':\', expecting endcase\n            `OP_SUB : result <= sub_result;\n                    ^\n%Error: data/full_repos/permissive/158845296/alu.v:20: Define or directive not defined: \'`OP_MUL\'\n            `OP_MUL : result <= mul_result[31:0];\n            ^~~~~~~\n%Error: Cannot continue\n'
module alu
(
    input [6:0] opcode,
    input [31:0] A, B,
    output equal,
    output reg [31:0] result
);

`include "parameters.v"

    wire [31:0] add_result = A + B;
    wire [31:0] sub_result = A - B;
    wire [63:0] mul_result = A * B;

    assign equal = (A == B);

    always @(*) begin
        case (opcode)
            `OP_SUB : result <= sub_result;
            `OP_MUL : result <= mul_result[31:0];
            default : result <= add_result;
        endcase
    end

endmodule
module alu
(
    input [6:0] opcode,
    input [31:0] A, B,
    output equal,
    output reg [31:0] result
);


`include "parameters.v"

    wire [31:0] add_result = A + B;
    wire [31:0] sub_result = A - B;
    wire [63:0] mul_result = A * B;

    assign equal = (A == B);

    always @(*) begin
        case (opcode)
            `OP_SUB : result <= sub_result;
            `OP_MUL : result <= mul_result[31:0];
            default : result <= add_result;
        endcase
    end

endmodule