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 inbuffer(
	input clk,
	input rst,
	
	input[1:0] outsel,
	
	input[31:0] in1,
	input[31:0] in2,
	input[31:0] in3,
	input[31:0] in4,
	
	output reg[31:0] out
);

reg[31:0] r_out = 0;

always@(posedge clk or posedge rst)begin
	if(rst) out <= 0;
	else out <= r_out;
end


always@(*)begin
	r_out = out;
	
	case(outsel)
		1: r_out = in1;
		2: r_out = in2;
		3: r_out = in3;
		0: r_out = in4;
	endcase
	
	
	
end

endmodule
module inbuffer(
	input clk,
	input rst,
	
	input[1:0] outsel,
	
	input[31:0] in1,
	input[31:0] in2,
	input[31:0] in3,
	input[31:0] in4,
	
	output reg[31:0] out
);


reg[31:0] r_out = 0;

always@(posedge clk or posedge rst)begin
	if(rst) out <= 0;
	else out <= r_out;
end


always@(*)begin
	r_out = out;
	
	case(outsel)
		1: r_out = in1;
		2: r_out = in2;
		3: r_out = in3;
		0: r_out = in4;
	endcase
	
	
	
end

endmodule