data/full_repos/permissive/166661632/p7/p7/AT.v
1: b'%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:2: Cannot find include file: head.v\n`include "head.v" \n         ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/166661632/p7/p7,data/full_repos/permissive/166661632/head.v\n             data/full_repos/permissive/166661632/p7/p7,data/full_repos/permissive/166661632/head.v.v\n             data/full_repos/permissive/166661632/p7/p7,data/full_repos/permissive/166661632/head.v.sv\n             head.v\n             head.v.v\n             head.v.sv\n             obj_dir/head.v\n             obj_dir/head.v.v\n             obj_dir/head.v.sv\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:22: Define or directive not defined: \'`special\'\n   (op==`special&&(\n        ^~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:22: syntax error, unexpected &&, expecting TYPE-IDENTIFIER\n   (op==`special&&(\n                ^~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:23: Define or directive not defined: \'`addu_funct\'\n          funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct\n                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:23: Define or directive not defined: \'`subu_funct\'\n          funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct\n                                     ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:23: Define or directive not defined: \'`add_funct\'\n          funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct\n                                                         ^~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:23: Define or directive not defined: \'`sub_funct\'\n          funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct\n                                                                            ^~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:24: Define or directive not defined: \'`and_funct\'\n        ||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:24: Define or directive not defined: \'`or_funct\'\n        ||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct\n                                    ^~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:24: Define or directive not defined: \'`xor_funct\'\n        ||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct\n                                                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:24: Define or directive not defined: \'`nor_funct\'\n        ||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct\n                                                                         ^~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:25: Define or directive not defined: \'`sllv_funct\'\n        ||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct\n                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:25: Define or directive not defined: \'`srlv_funct\'\n        ||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct\n                                     ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:25: Define or directive not defined: \'`srav_funct\'\n        ||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct\n                                                         ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:26: Define or directive not defined: \'`slt_funct\'\n        ||funct==`slt_funct||funct==`sltu_funct\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:26: Define or directive not defined: \'`sltu_funct\'\n        ||funct==`slt_funct||funct==`sltu_funct\n                                    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:27: Define or directive not defined: \'`mult_funct\'\n        ||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct\n                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:27: Define or directive not defined: \'`multu_funct\'\n        ||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct\n                                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:27: Define or directive not defined: \'`div_funct\'\n        ||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct\n                                                          ^~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:27: Define or directive not defined: \'`divu_funct\'\n        ||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct\n                                                                             ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:28: Define or directive not defined: \'`mtlo_funct\'\n        ||funct==`mtlo_funct||funct==`mthi_funct\n                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:28: Define or directive not defined: \'`mthi_funct\'\n        ||funct==`mtlo_funct||funct==`mthi_funct\n                                     ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:30: Define or directive not defined: \'`ori\'\n      ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori\n            ^~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:30: Define or directive not defined: \'`andi\'\n                                                          : ... Suggested alternative: \'`endif\'\n      ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori\n                      ^~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:30: Define or directive not defined: \'`addiu\'\n      ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori\n                                 ^~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:30: Define or directive not defined: \'`addi\'\n      ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori\n                                             ^~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:30: Define or directive not defined: \'`xori\'\n      ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori\n                                                        ^~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:31: Define or directive not defined: \'`lw\'\n    ||op==`lw||op==`lh||op==`lb||op==`lbu||op==`lhu\n          ^~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:31: Define or directive not defined: \'`lh\'\n    ||op==`lw||op==`lh||op==`lb||op==`lbu||op==`lhu\n                   ^~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:31: Define or directive not defined: \'`lb\'\n    ||op==`lw||op==`lh||op==`lb||op==`lbu||op==`lhu\n                            ^~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:31: Define or directive not defined: \'`lbu\'\n    ||op==`lw||op==`lh||op==`lb||op==`lbu||op==`lhu\n                                     ^~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:31: Define or directive not defined: \'`lhu\'\n    ||op==`lw||op==`lh||op==`lb||op==`lbu||op==`lhu\n                                               ^~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:32: Define or directive not defined: \'`sw\'\n    ||op==`sw||op==`sb||op==`sh\n          ^~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:32: Define or directive not defined: \'`sb\'\n    ||op==`sw||op==`sb||op==`sh\n                   ^~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:32: Define or directive not defined: \'`sh\'\n    ||op==`sw||op==`sb||op==`sh\n                            ^~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:33: Define or directive not defined: \'`slti\'\n    ||op==`slti||op==`sltiu\n          ^~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:33: Define or directive not defined: \'`sltiu\'\n    ||op==`slti||op==`sltiu\n                     ^~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:36: Define or directive not defined: \'`special\'\n  else if(op==`special&&(funct==`jr_funct||funct==`jalr_funct )\n              ^~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:36: Define or directive not defined: \'`jr_funct\'\n  else if(op==`special&&(funct==`jr_funct||funct==`jalr_funct )\n                                ^~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:36: Define or directive not defined: \'`jalr_funct\'\n  else if(op==`special&&(funct==`jr_funct||funct==`jalr_funct )\n                                                  ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:37: Define or directive not defined: \'`beq\'\n         || op==`beq||op==`bne||op==`bgtz||op==`blez||op==`bgezbltz)\n                ^~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:37: Define or directive not defined: \'`bne\'\n         || op==`beq||op==`bne||op==`bgtz||op==`blez||op==`bgezbltz)\n                          ^~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:37: Define or directive not defined: \'`bgtz\'\n         || op==`beq||op==`bne||op==`bgtz||op==`blez||op==`bgezbltz)\n                                    ^~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:37: Define or directive not defined: \'`blez\'\n         || op==`beq||op==`bne||op==`bgtz||op==`blez||op==`bgezbltz)\n                                               ^~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:37: Define or directive not defined: \'`bgezbltz\'\n         || op==`beq||op==`bne||op==`bgtz||op==`blez||op==`bgezbltz)\n                                                          ^~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:43: Define or directive not defined: \'`special\'\n     (op==`special&&(\n          ^~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:43: syntax error, unexpected &&, expecting TYPE-IDENTIFIER\n     (op==`special&&(\n                  ^~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:44: Define or directive not defined: \'`addu_funct\'\n        funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct\n               ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:44: Define or directive not defined: \'`subu_funct\'\n        funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct\n                                   ^~~~~~~~~~~\n%Error: data/full_repos/permissive/166661632/p7/p7/AT.v:44: Define or directive not defined: \'`add_funct\'\n        funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct\n                                                       ^~~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
module AT(instr_d,tuse_rs,tuse_rt,res_d);
input [31:0] instr_d;
output reg[1:0] tuse_rs,tuse_rt;
output reg [2:0] res_d;

initial begin
tuse_rs=0; tuse_rt=0; res_d=0;
end

wire [5:0] op,funct;
wire [4:0] rs;
assign op=instr_d[31:26];
assign funct=instr_d[5:0];
assign rs=instr_d[25:21];


always@(*)
	begin
		if(
			(op==`special&&(
								  funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct
								||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct
								||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct
								||funct==`slt_funct||funct==`sltu_funct
								||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct
								||funct==`mtlo_funct||funct==`mthi_funct
								))
		    ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori
			 ||op==`lw||op==`lh||op==`lb||op==`lbu||op==`lhu
			 ||op==`sw||op==`sb||op==`sh
			 ||op==`slti||op==`sltiu
			 )
			tuse_rs<=1;
		else if(op==`special&&(funct==`jr_funct||funct==`jalr_funct )
		       || op==`beq||op==`bne||op==`bgtz||op==`blez||op==`bgezbltz)
			tuse_rs<=0;
		else
		   tuse_rs<=3;

		if(
		   (op==`special&&(
								funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct
								||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct
								||funct==`sll_funct||funct==`srl_funct||funct==`sra_funct
								||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct
								||funct==`slt_funct||funct==`sltu_funct
								||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct
								))
			||(op==`cop0&&rs==`mtc0_rs))
			tuse_rt<=1;
		else if(op==`beq||op==`bne)
			tuse_rt<=0;
		else if(op==`sw||op==`sb||op==`sh)
			tuse_rt<=2;
		else
			tuse_rt<=3;

		if(
			(op==`special&&(
								funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct
								||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct
								||funct==`sll_funct||funct==`srl_funct||funct==`sra_funct
								||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct
								||funct==`slt_funct||funct==`sltu_funct
								||funct==`mflo_funct||funct==`mfhi_funct
								))
		  ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori||op==`slti||op==`sltiu)
			res_d<=`alu;
		else if(op==`jal||op==`special&&funct==`jalr_funct)
			res_d<=`pc;
		else if(op==`lw||op==`lb||op==`lbu||op==`lh||op==`lhu
		       ||(op==`cop0&&rs==`mfc0_rs))
			res_d<=`dm;
		else if(op==`lui)
			res_d<=`other;
		else
			res_d<=`nw;
	end




endmodule
module AT(instr_d,tuse_rs,tuse_rt,res_d);

input [31:0] instr_d;
output reg[1:0] tuse_rs,tuse_rt;
output reg [2:0] res_d;

initial begin
tuse_rs=0; tuse_rt=0; res_d=0;
end

wire [5:0] op,funct;
wire [4:0] rs;
assign op=instr_d[31:26];
assign funct=instr_d[5:0];
assign rs=instr_d[25:21];


always@(*)
	begin
		if(
			(op==`special&&(
								  funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct
								||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct
								||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct
								||funct==`slt_funct||funct==`sltu_funct
								||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct
								||funct==`mtlo_funct||funct==`mthi_funct
								))
		    ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori
			 ||op==`lw||op==`lh||op==`lb||op==`lbu||op==`lhu
			 ||op==`sw||op==`sb||op==`sh
			 ||op==`slti||op==`sltiu
			 )
			tuse_rs<=1;
		else if(op==`special&&(funct==`jr_funct||funct==`jalr_funct )
		       || op==`beq||op==`bne||op==`bgtz||op==`blez||op==`bgezbltz)
			tuse_rs<=0;
		else
		   tuse_rs<=3;

		if(
		   (op==`special&&(
								funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct
								||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct
								||funct==`sll_funct||funct==`srl_funct||funct==`sra_funct
								||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct
								||funct==`slt_funct||funct==`sltu_funct
								||funct==`mult_funct||funct==`multu_funct||funct==`div_funct||funct==`divu_funct
								))
			||(op==`cop0&&rs==`mtc0_rs))
			tuse_rt<=1;
		else if(op==`beq||op==`bne)
			tuse_rt<=0;
		else if(op==`sw||op==`sb||op==`sh)
			tuse_rt<=2;
		else
			tuse_rt<=3;

		if(
			(op==`special&&(
								funct==`addu_funct||funct==`subu_funct||funct==`add_funct||funct==`sub_funct
								||funct==`and_funct||funct==`or_funct||funct==`xor_funct||funct==`nor_funct
								||funct==`sll_funct||funct==`srl_funct||funct==`sra_funct
								||funct==`sllv_funct||funct==`srlv_funct||funct==`srav_funct
								||funct==`slt_funct||funct==`sltu_funct
								||funct==`mflo_funct||funct==`mfhi_funct
								))
		  ||op==`ori||op==`andi||op==`addiu||op==`addi||op==`xori||op==`slti||op==`sltiu)
			res_d<=`alu;
		else if(op==`jal||op==`special&&funct==`jalr_funct)
			res_d<=`pc;
		else if(op==`lw||op==`lb||op==`lbu||op==`lh||op==`lhu
		       ||(op==`cop0&&rs==`mfc0_rs))
			res_d<=`dm;
		else if(op==`lui)
			res_d<=`other;
		else
			res_d<=`nw;
	end




endmodule