data/full_repos/permissive/20803096/maprom.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b"%Error: data/full_repos/permissive/20803096/maprom.v:26: Cannot find file containing module: 'maprom1'\n maprom1 rom1 (clk, 1'b1, addr, data_in[0]);\n ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20803096,data/full_repos/permissive/20803096/maprom1\n             data/full_repos/permissive/20803096,data/full_repos/permissive/20803096/maprom1.v\n             data/full_repos/permissive/20803096,data/full_repos/permissive/20803096/maprom1.sv\n             maprom1\n             maprom1.v\n             maprom1.sv\n             obj_dir/maprom1\n             obj_dir/maprom1.v\n             obj_dir/maprom1.sv\n%Error: data/full_repos/permissive/20803096/maprom.v:27: Cannot find file containing module: 'maprom2'\n maprom2 rom2 (clk, 1'b1, addr, data_in[1]);\n ^~~~~~~\n%Error: data/full_repos/permissive/20803096/maprom.v:28: Cannot find file containing module: 'maprom3'\n maprom3 rom3 (clk, 1'b1, addr, data_in[2]);\n ^~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module maprom (clk, chipsel, addr, data);
	input clk;
	input [1:0] chipsel;
	input [3:0] addr;
	output reg [7:0] data;
	
	wire [7:0] data_in [2:0];

	maprom1 rom1 (clk, 1'b1, addr, data_in[0]);
	maprom2 rom2 (clk, 1'b1, addr, data_in[1]);
	maprom3 rom3 (clk, 1'b1, addr, data_in[2]);

	always @ (posedge clk)
	begin
		data <= data_in[chipsel];
	end

endmodule
module maprom (clk, chipsel, addr, data);

	input clk;
	input [1:0] chipsel;
	input [3:0] addr;
	output reg [7:0] data;
	
	wire [7:0] data_in [2:0];

	maprom1 rom1 (clk, 1'b1, addr, data_in[0]);
	maprom2 rom2 (clk, 1'b1, addr, data_in[1]);
	maprom3 rom3 (clk, 1'b1, addr, data_in[2]);

	always @ (posedge clk)
	begin
		data <= data_in[chipsel];
	end

endmodule