data/full_repos/permissive/118895561/Project 3/btdecoder.v
1: b'%Error: Cannot find file containing module: 3,data/full_repos/permissive/118895561\n        ... Looked in:\n             data/full_repos/permissive/118895561/Project/3,data/full_repos/permissive/118895561\n             data/full_repos/permissive/118895561/Project/3,data/full_repos/permissive/118895561.v\n             data/full_repos/permissive/118895561/Project/3,data/full_repos/permissive/118895561.sv\n             3,data/full_repos/permissive/118895561\n             3,data/full_repos/permissive/118895561.v\n             3,data/full_repos/permissive/118895561.sv\n             obj_dir/3,data/full_repos/permissive/118895561\n             obj_dir/3,data/full_repos/permissive/118895561.v\n             obj_dir/3,data/full_repos/permissive/118895561.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/118895561/Project\n%Error: Cannot find file containing module: 3/btdecoder.v\n%Error: Exiting due to 3 error(s)\n'
module btdecoder(
    input [31:0] ALU_Out_M,
    input [31:0] Instr_M,
	 input Write_Enabled,
    output [3:0] Bit_Type,
	 output DM_EXP
    );
	 
	 wire [31:0] Op, Addr;
	 
	 assign Addr = ALU_Out_M;
	 
	 assign Op  = Instr_M[31:26];
	 
	 assign DM_EXP = (`cos) ? 1'b1 :
									 1'b0 ;
	 
	 assign Bit_Type = (`cos) 									? 4'b0000 :
							 (`sh && ALU_Out_M[1])				? 4'b1100 :
							 (`sh && !ALU_Out_M[1])				? 4'b0011 :
							 (`sb && ALU_Out_M[1:0] == 2'b00)? 4'b0001 :
							 (`sb && ALU_Out_M[1:0] == 2'b01)? 4'b0010 :
							 (`sb && ALU_Out_M[1:0] == 2'b10)? 4'b0100 :
							 (`sb && ALU_Out_M[1:0] == 2'b11)? 4'b1000 :
							 (`sw)									? 4'b1111 :
																		  4'b0000 ;
							 
endmodule
module btdecoder(
    input [31:0] ALU_Out_M,
    input [31:0] Instr_M,
	 input Write_Enabled,
    output [3:0] Bit_Type,
	 output DM_EXP
    );

	 
	 wire [31:0] Op, Addr;
	 
	 assign Addr = ALU_Out_M;
	 
	 assign Op  = Instr_M[31:26];
	 
	 assign DM_EXP = (`cos) ? 1'b1 :
									 1'b0 ;
	 
	 assign Bit_Type = (`cos) 									? 4'b0000 :
							 (`sh && ALU_Out_M[1])				? 4'b1100 :
							 (`sh && !ALU_Out_M[1])				? 4'b0011 :
							 (`sb && ALU_Out_M[1:0] == 2'b00)? 4'b0001 :
							 (`sb && ALU_Out_M[1:0] == 2'b01)? 4'b0010 :
							 (`sb && ALU_Out_M[1:0] == 2'b10)? 4'b0100 :
							 (`sb && ALU_Out_M[1:0] == 2'b11)? 4'b1000 :
							 (`sw)									? 4'b1111 :
																		  4'b0000 ;
							 
endmodule