data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips/top.v
1: b"%Error: data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips/top.v:54: Cannot find file containing module: 'PC'\nPC u_PC(\n^~\n        ... Looked in:\n             data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips,data/full_repos/permissive/115487336/PC\n             data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips,data/full_repos/permissive/115487336/PC.v\n             data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips,data/full_repos/permissive/115487336/PC.sv\n             PC\n             PC.v\n             PC.sv\n             obj_dir/PC\n             obj_dir/PC.v\n             obj_dir/PC.sv\n%Error: data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips/top.v:63: Cannot find file containing module: 'MEMmodule'\nMEMmodule u_MEMmodule(\n^~~~~~~~~\n%Error: data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips/top.v:75: Cannot find file containing module: 'REG_FILEmodule'\nREG_FILEmodule u_REGFILEmodule(\n^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips/top.v:87: Cannot find file containing module: 'ALUmodule'\nALUmodule u_ALUmodule(\n^~~~~~~~~\n%Error: data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips/top.v:103: Cannot find file containing module: 'branch'\nbranch u_branch(\n^~~~~~\n%Error: data/full_repos/permissive/115487336/mycode/Mips/MultiCycle-Mips/top.v:114: Cannot find file containing module: 'FSM'\nFSM u_FSM(\n^~~\n%Error: Exiting due to 6 error(s)\n"
module top(
	input clk,
	input rst_n
);

wire [31:0] j_z_nextpc;
wire PCWrite;

wire [31:0] now_addr;

wire MEMWrite;
wire IorD;
wire [31:0] mem_out;

wire RegDst;
wire MemToReg;
wire RegWrite;
wire IRWrite;
wire ALUSrcA;
wire [1:0] ALUSrcB;
wire ALURegWe;
wire [31:0] rego1;
wire [31:0] rego2;

wire [4:0] ALUControl;

wire [31:0] aluout;
wire flag;

wire NeedJmp;
wire BorJ;
wire pcen;

PC u_PC(
	clk,
	rst_n,
	pcen,
	j_z_nextpc,
	PCWrite,
	now_addr
);

MEMmodule u_MEMmodule(
	clk,
	rst_n,
	now_addr,
	aluout,
	IorD,
	rego2,
	MEMWrite,
	IRWrite,
	mem_out
);

REG_FILEmodule u_REGFILEmodule(
	clk,
	rst_n,
	mem_out,
	mem_out,
	RegDst,
	MemToReg,
	RegWrite,
	rego1,
	rego2
);

ALUmodule u_ALUmodule(
	clk,
	rst_n,
	rego1,
	now_addr,
	ALUSrcA,
	rego2,
	mem_out[15:0],
	ALUSrcB,
	ALUControl,
	ALURegWE,
	aluout,
	alu_lock,
	flag
);

branch u_branch(
	NeedJmp,
	BorJ,
	flag,
	now_addr,
	mem_out[15:0],
	mem_out[25:0],
	PCWrite,
	j_z_nextpc
);

FSM u_FSM(
	clk,
	rst_n,
	mem_out,
	RegDst,
	MemtoReg,
	IorD,
	MEMWrite,
	IRWrite,
	pcen,
	Branch,
	PCSrc,
	ALUControl,
	ALUSrcB,
	ALUSrcA,
	RegWrite,
	ALURegWe,
	NeedJmp,
	BorJ
);
endmodule
module top(
	input clk,
	input rst_n
);


wire [31:0] j_z_nextpc;
wire PCWrite;

wire [31:0] now_addr;

wire MEMWrite;
wire IorD;
wire [31:0] mem_out;

wire RegDst;
wire MemToReg;
wire RegWrite;
wire IRWrite;
wire ALUSrcA;
wire [1:0] ALUSrcB;
wire ALURegWe;
wire [31:0] rego1;
wire [31:0] rego2;

wire [4:0] ALUControl;

wire [31:0] aluout;
wire flag;

wire NeedJmp;
wire BorJ;
wire pcen;

PC u_PC(
	clk,
	rst_n,
	pcen,
	j_z_nextpc,
	PCWrite,
	now_addr
);

MEMmodule u_MEMmodule(
	clk,
	rst_n,
	now_addr,
	aluout,
	IorD,
	rego2,
	MEMWrite,
	IRWrite,
	mem_out
);

REG_FILEmodule u_REGFILEmodule(
	clk,
	rst_n,
	mem_out,
	mem_out,
	RegDst,
	MemToReg,
	RegWrite,
	rego1,
	rego2
);

ALUmodule u_ALUmodule(
	clk,
	rst_n,
	rego1,
	now_addr,
	ALUSrcA,
	rego2,
	mem_out[15:0],
	ALUSrcB,
	ALUControl,
	ALURegWE,
	aluout,
	alu_lock,
	flag
);

branch u_branch(
	NeedJmp,
	BorJ,
	flag,
	now_addr,
	mem_out[15:0],
	mem_out[25:0],
	PCWrite,
	j_z_nextpc
);

FSM u_FSM(
	clk,
	rst_n,
	mem_out,
	RegDst,
	MemtoReg,
	IorD,
	MEMWrite,
	IRWrite,
	pcen,
	Branch,
	PCSrc,
	ALUControl,
	ALUSrcB,
	ALUSrcA,
	RegWrite,
	ALURegWe,
	NeedJmp,
	BorJ
);
endmodule