data/full_repos/permissive/521337848/Hardware/procesor/memoryModule.v
1: b"%Error: data/full_repos/permissive/521337848/Hardware/procesor/memoryModule.v:65: Cannot find file containing module: 'toMem'\ntoMem tM(\n^~~~~\n        ... Looked in:\n             data/full_repos/permissive/521337848/Hardware/procesor,data/full_repos/permissive/521337848/toMem\n             data/full_repos/permissive/521337848/Hardware/procesor,data/full_repos/permissive/521337848/toMem.v\n             data/full_repos/permissive/521337848/Hardware/procesor,data/full_repos/permissive/521337848/toMem.sv\n             toMem\n             toMem.v\n             toMem.sv\n             obj_dir/toMem\n             obj_dir/toMem.v\n             obj_dir/toMem.sv\n%Error: data/full_repos/permissive/521337848/Hardware/procesor/memoryModule.v:89: Cannot find file containing module: 'toRAMCollect'\ntoRAMCollect trC(\n^~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module bussystem(
	input clk,
	input rst,
	
	input[1:0] outsel,
	
	output[31:0] toCPU,
		
	input[14:0] addrCPU,
	input[31:0] fromCPU,
	input wCPU,
	

	
	output[31:0] tomRAM8,
	output wmRAM8,
	output[14:0] addrmRAM8,
		
	input[31:0] toCPURAM8,
	
	

	
	output[11:0] addrmROM,
	input[31:0] toCPUROM,

	
	input[31:0] in1,
	input[31:0] in2,
	input[31:0] in3,
	input[31:0] in4,


	output[31:0] inToPro,

	input[31:0] fromPro,
	output[31:0] out1,
	output[31:0] out2,
	output[31:0] out3,
	output[31:0] out4,
	

	
	
	input readstart,
	
	output saverdy,		
	output readrdy,
	
	input readRdyRAM,
	input readRdyROM,
	
	output startReadROM,
	output startReadRAM,
	
	input saveRdyRAM
	
	
	
);

wire selector;

toMem tM(
	.clk(clk),
	.rst(rst),
	
	.toMemory(fromCPU),
	.addrMemory(addrCPU),
	.wCPU(wCPU),
	
	.toRAM8(tomRAM8),
	.wRAM8(wmRAM8),
	.addrRAM8(addrmRAM8),
	
	.startRead(readstart),
	.addrROM(addrmROM),
	
	.startReadROM(startReadROM),
	.startReadRAM(startReadRAM),
	
	.selector(selector),
	.w(w)
	
);


toRAMCollect trC(

	.toCPURAM8(toCPURAM8),
	.toCPUROM(toCPUROM),
	
	.selector(selector),
	
	.toCPU(toCPU)
);

inbuffer intopro(.clk(clk),
					  .rst(rst),
						
					  .outsel(outsel),
					  
					  .in1(in1),
					  .in2(in2),
					  .in3(in3),
					  .in4(in4),

					  .out(inToPro)
);

outbuffer outfrompro(.clk(clk),
						  .rst(rst),
	
						  .in(fromPro),
						  .out1(out1),
						  .out2(out2),
						  .out3(out3),
						  .out4(out4)
);


	
assign saverdy = saveRdyRAM;
assign readrdy = selector ? readRdyRAM : readRdyROM;


	
endmodule
module bussystem(
	input clk,
	input rst,
	
	input[1:0] outsel,
	
	output[31:0] toCPU,
		
	input[14:0] addrCPU,
	input[31:0] fromCPU,
	input wCPU,
	

	
	output[31:0] tomRAM8,
	output wmRAM8,
	output[14:0] addrmRAM8,
		
	input[31:0] toCPURAM8,
	
	

	
	output[11:0] addrmROM,
	input[31:0] toCPUROM,

	
	input[31:0] in1,
	input[31:0] in2,
	input[31:0] in3,
	input[31:0] in4,


	output[31:0] inToPro,

	input[31:0] fromPro,
	output[31:0] out1,
	output[31:0] out2,
	output[31:0] out3,
	output[31:0] out4,
	

	
	
	input readstart,
	
	output saverdy,		
	output readrdy,
	
	input readRdyRAM,
	input readRdyROM,
	
	output startReadROM,
	output startReadRAM,
	
	input saveRdyRAM
	
	
	
);


wire selector;

toMem tM(
	.clk(clk),
	.rst(rst),
	
	.toMemory(fromCPU),
	.addrMemory(addrCPU),
	.wCPU(wCPU),
	
	.toRAM8(tomRAM8),
	.wRAM8(wmRAM8),
	.addrRAM8(addrmRAM8),
	
	.startRead(readstart),
	.addrROM(addrmROM),
	
	.startReadROM(startReadROM),
	.startReadRAM(startReadRAM),
	
	.selector(selector),
	.w(w)
	
);


toRAMCollect trC(

	.toCPURAM8(toCPURAM8),
	.toCPUROM(toCPUROM),
	
	.selector(selector),
	
	.toCPU(toCPU)
);

inbuffer intopro(.clk(clk),
					  .rst(rst),
						
					  .outsel(outsel),
					  
					  .in1(in1),
					  .in2(in2),
					  .in3(in3),
					  .in4(in4),

					  .out(inToPro)
);

outbuffer outfrompro(.clk(clk),
						  .rst(rst),
	
						  .in(fromPro),
						  .out1(out1),
						  .out2(out2),
						  .out3(out3),
						  .out4(out4)
);


	
assign saverdy = saveRdyRAM;
assign readrdy = selector ? readRdyRAM : readRdyROM;


	
endmodule