data/full_repos/permissive/166661632/p6/p6-HAC VERSION/ALU.v
'utf-8' codec can't decode byte 0xa1 in position 116: invalid start byte
1: b'%Error: Cannot find file containing module: VERSION,data/full_repos/permissive/166661632\n        ... Looked in:\n             data/full_repos/permissive/166661632/p6/p6-HAC/VERSION,data/full_repos/permissive/166661632\n             data/full_repos/permissive/166661632/p6/p6-HAC/VERSION,data/full_repos/permissive/166661632.v\n             data/full_repos/permissive/166661632/p6/p6-HAC/VERSION,data/full_repos/permissive/166661632.sv\n             VERSION,data/full_repos/permissive/166661632\n             VERSION,data/full_repos/permissive/166661632.v\n             VERSION,data/full_repos/permissive/166661632.sv\n             obj_dir/VERSION,data/full_repos/permissive/166661632\n             obj_dir/VERSION,data/full_repos/permissive/166661632.v\n             obj_dir/VERSION,data/full_repos/permissive/166661632.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/166661632/p6/p6-HAC\n%Error: Cannot find file containing module: VERSION/ALU.v\n%Error: Exiting due to 3 error(s)\n'
module ALU(a,b,aluop,ao,overflow);
input [31:0] a,b;
input [2:0] aluop;
output [31:0] ao;
output overflow;

wire [31:0] tmp[7:0];
assign tmp[0]=b;
assign tmp[1]=a+b;
assign tmp[2]=a-b;
assign tmp[3]=a|b;
assign tmp[4]=a&b;
assign ao=tmp[aluop]; 
wire [32:0] temp1,temp2;


assign temp1={a[31],a}+{b[31],b};
assign temp2={a[31],a}-{b[31],b};


assign overflow =((aluop==1)&&(temp1[32]!=temp1[31]))||((aluop==2)&&(temp2[32]!=temp2[31]));
endmodule
module ALU(a,b,aluop,ao,overflow);

input [31:0] a,b;
input [2:0] aluop;
output [31:0] ao;
output overflow;

wire [31:0] tmp[7:0];
assign tmp[0]=b;
assign tmp[1]=a+b;
assign tmp[2]=a-b;
assign tmp[3]=a|b;
assign tmp[4]=a&b;
assign ao=tmp[aluop]; 
wire [32:0] temp1,temp2;


assign temp1={a[31],a}+{b[31],b};
assign temp2={a[31],a}-{b[31],b};


assign overflow =((aluop==1)&&(temp1[32]!=temp1[31]))||((aluop==2)&&(temp2[32]!=temp2[31]));
endmodule