data/full_repos/permissive/15946916/Project 2/SingleCycleProc.v
 line:18 column:2: Illegal character '\x00'
1: b'%Error: Cannot find file containing module: 2,data/full_repos/permissive/15946916\n        ... Looked in:\n             data/full_repos/permissive/15946916/Project/2,data/full_repos/permissive/15946916\n             data/full_repos/permissive/15946916/Project/2,data/full_repos/permissive/15946916.v\n             data/full_repos/permissive/15946916/Project/2,data/full_repos/permissive/15946916.sv\n             2,data/full_repos/permissive/15946916\n             2,data/full_repos/permissive/15946916.v\n             2,data/full_repos/permissive/15946916.sv\n             obj_dir/2,data/full_repos/permissive/15946916\n             obj_dir/2,data/full_repos/permissive/15946916.v\n             obj_dir/2,data/full_repos/permissive/15946916.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/15946916/Project\n%Error: Cannot find file containing module: 2/SingleCycleProc.v\n%Error: Exiting due to 3 error(s)\n'
module SingleCycleProc(CLK, Reset_L, startPC, dmemOut);
   input 	Reset_L, CLK;
   input [31:0] startPC;
   output [31:0] dmemOut;
	
	wire [31:0] PC;
	wire [31:0] Instr;



    
	ProgramCounter PC1(PC, PC, Reset_L, startPC,CLK);
	
	InstrMem IM1(PC, Instr);
	
	wire RegDst, ALUSrc, MemToReg, RegWrite, MemRead, MemWrite, Branch, Jump, SignExtend;
	wire [3:0]ALUOp;
	
	Control_Unit C1(RegDst, ALUSrc, MemToReg, RegWrite, MemRead, MemWrite, Branch, Jump, SignExtend, ALUOp, Instr[31:26]);
	
	wire [3:0] ALUctrl;
	
	ALUControl AC1(ALUctrl, ALUOp,Instr[5:0]);
	
	wire [4:0] Waddr;
	
	MUX5_2to1 mux1(Instr[20:16], Instr[15:11], RegDst, Waddr );

	wire [31:0]Read1, Read2, Writedata;
	
	RegisterFile RF1(Read1, Read2, Writedata, Instr[25:21],Instr[20:16], Waddr, RegWrite, CLK, Reset_L);
	
	wire [31:0]Immediate;
	SIGN_EXTEND SE1(Instr[15:0], Immediate);
	
	wire [31:0] ALUin, Result;
	wire Zero;
	
	MUX32_2to1 mux2(Read2, Immediate, ALUSrc, ALUin);
	ALU_behav ALU1( Read1, ALUin, ALUctrl, Writedata, Overflow, 1'b0, Carry_out, Zero ); 
	
	
	





	




   

   
endmodule
module SingleCycleProc(CLK, Reset_L, startPC, dmemOut);

   input 	Reset_L, CLK;
   input [31:0] startPC;
   output [31:0] dmemOut;
	
	wire [31:0] PC;
	wire [31:0] Instr;



    
	ProgramCounter PC1(PC, PC, Reset_L, startPC,CLK);
	
	InstrMem IM1(PC, Instr);
	
	wire RegDst, ALUSrc, MemToReg, RegWrite, MemRead, MemWrite, Branch, Jump, SignExtend;
	wire [3:0]ALUOp;
	
	Control_Unit C1(RegDst, ALUSrc, MemToReg, RegWrite, MemRead, MemWrite, Branch, Jump, SignExtend, ALUOp, Instr[31:26]);
	
	wire [3:0] ALUctrl;
	
	ALUControl AC1(ALUctrl, ALUOp,Instr[5:0]);
	
	wire [4:0] Waddr;
	
	MUX5_2to1 mux1(Instr[20:16], Instr[15:11], RegDst, Waddr );

	wire [31:0]Read1, Read2, Writedata;
	
	RegisterFile RF1(Read1, Read2, Writedata, Instr[25:21],Instr[20:16], Waddr, RegWrite, CLK, Reset_L);
	
	wire [31:0]Immediate;
	SIGN_EXTEND SE1(Instr[15:0], Immediate);
	
	wire [31:0] ALUin, Result;
	wire Zero;
	
	MUX32_2to1 mux2(Read2, Immediate, ALUSrc, ALUin);
	ALU_behav ALU1( Read1, ALUin, ALUctrl, Writedata, Overflow, 1'b0, Carry_out, Zero ); 
	
	
	





	




   

   
endmodule