data/full_repos/permissive/503578084/pipeline/alu_get_opposite.v
1: b'%Error: data/full_repos/permissive/503578084/pipeline/alu_get_opposite.v:21: Cannot find include file: param.v\n`include "param.v" \n         ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/503578084/pipeline,data/full_repos/permissive/503578084/param.v\n             data/full_repos/permissive/503578084/pipeline,data/full_repos/permissive/503578084/param.v.v\n             data/full_repos/permissive/503578084/pipeline,data/full_repos/permissive/503578084/param.v.sv\n             param.v\n             param.v.v\n             param.v.sv\n             obj_dir/param.v\n             obj_dir/param.v.v\n             obj_dir/param.v.sv\n%Error: data/full_repos/permissive/503578084/pipeline/alu_get_opposite.v:35: Define or directive not defined: \'`SUB\'\n    if(alu_op==`SUB) B_opposite={tmp31,tmp};\n               ^~~~\n%Error: data/full_repos/permissive/503578084/pipeline/alu_get_opposite.v:35: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n    if(alu_op==`SUB) B_opposite={tmp31,tmp};\n                   ^\n%Error: Exiting due to 3 error(s)\n'
module alu_get_opposite(
    input   [3:0]   alu_op,
    input   [31:0]  B,
    output  reg [31:0]  B_opposite
    );
    
wire  [30:0]  tmp;
wire    tmp31;
assign tmp=~B[30:0]+1;
assign  tmp31=(B==0 || B==32'h80000000)?B[31]:~B[31];
    
always @ (*) begin
    if(alu_op==`SUB) B_opposite={tmp31,tmp};
    else B_opposite=B;
end
    
endmodule
module alu_get_opposite(
    input   [3:0]   alu_op,
    input   [31:0]  B,
    output  reg [31:0]  B_opposite
    );

    
wire  [30:0]  tmp;
wire    tmp31;
assign tmp=~B[30:0]+1;
assign  tmp31=(B==0 || B==32'h80000000)?B[31]:~B[31];
    
always @ (*) begin
    if(alu_op==`SUB) B_opposite={tmp31,tmp};
    else B_opposite=B;
end
    
endmodule