data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv
1: b'%Warning-MULTITOP: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:84: Multiple top level modules\n                                                                                    : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                    : ... Top module \'selector\'\nmodule selector\n       ^~~~~~~~\n                                                                                    : ... Top module \'eprom_1\'\nmodule eprom_1\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_2\'\nmodule eprom_2\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_3\'\nmodule eprom_3\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_4\'\nmodule eprom_4\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_5\'\nmodule eprom_5\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_6\'\nmodule eprom_6\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_7\'\nmodule eprom_7\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_8\'\nmodule eprom_8\n       ^~~~~~~\n                                                                                    : ... Top module \'eprom_9\'\nmodule eprom_9\n       ^~~~~~~\n                                                                                    : ... Top module \'color_prom_1\'\nmodule color_prom_1\n       ^~~~~~~~~~~~\n                                                                                    : ... Top module \'color_prom_2\'\nmodule color_prom_2\n       ^~~~~~~~~~~~\n                                                                                    : ... Top module \'tile_lut_prom\'\nmodule tile_lut_prom\n       ^~~~~~~~~~~~~\n                                                                                    : ... Top module \'sprite_lut_prom\'\nmodule sprite_lut_prom\n       ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:387: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(8)) sprite_lut_prom\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/407067659/rtl/ram_rom,data/full_repos/permissive/407067659/dpram_dc\n             data/full_repos/permissive/407067659/rtl/ram_rom,data/full_repos/permissive/407067659/dpram_dc.v\n             data/full_repos/permissive/407067659/rtl/ram_rom,data/full_repos/permissive/407067659/dpram_dc.sv\n             dpram_dc\n             dpram_dc.v\n             dpram_dc.sv\n             obj_dir/dpram_dc\n             obj_dir/dpram_dc.v\n             obj_dir/dpram_dc.sv\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:363: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(8)) tile_lut_prom\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:339: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(5)) color_prom_2\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:315: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(5)) color_prom_1\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:287: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(13)) eprom_9\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:263: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_8\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:239: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_7\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:215: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_6\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:191: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_5\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:167: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_4\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:143: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_3\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:119: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_2\n ^~~~~~~~\n%Error: data/full_repos/permissive/407067659/rtl/ram_rom/rom_loader.sv:95: Cannot find file containing module: \'dpram_dc\'\n dpram_dc #(.widthad_a(14)) eprom_1\n ^~~~~~~~\n%Error: Exiting due to 13 error(s), 1 warning(s)\n'
module selector
(
	input logic [24:0] ioctl_addr,
	output logic ep1_cs, ep2_cs, ep3_cs, ep4_cs, ep5_cs, ep6_cs, ep7_cs, ep8_cs, ep9_cs,
	             cp1_cs, cp2_cs, tl_cs, sl_cs
);

	always_comb begin
		{ep1_cs, ep2_cs, ep3_cs, ep4_cs, ep5_cs, ep6_cs, ep7_cs, ep8_cs, ep9_cs, cp1_cs,
                cp2_cs, tl_cs, sl_cs} = 0;
		if(ioctl_addr < 'h4000)
			ep1_cs = 1;
		else if(ioctl_addr < 'h8000)
			ep2_cs = 1;
		else if(ioctl_addr < 'hC000)
			ep3_cs = 1;
		else if(ioctl_addr < 'h10000)
			ep4_cs = 1;
		else if(ioctl_addr < 'h14000)
			ep5_cs = 1;
		else if(ioctl_addr < 'h18000)
			ep6_cs = 1;
		else if(ioctl_addr < 'h1C000)
			ep7_cs = 1;
		else if(ioctl_addr < 'h20000)
			ep8_cs = 1;
		else if(ioctl_addr < 'h24000)
			ep9_cs = 1;
		else if(ioctl_addr < 'h24100)
			sl_cs = 1;
		else if(ioctl_addr < 'h24200)
			tl_cs = 1;
		else if(ioctl_addr < 'h24220)
			cp1_cs = 1;
		else
			cp2_cs = 1;
	end
endmodule
module selector
(
	input logic [24:0] ioctl_addr,
	output logic ep1_cs, ep2_cs, ep3_cs, ep4_cs, ep5_cs, ep6_cs, ep7_cs, ep8_cs, ep9_cs,
	             cp1_cs, cp2_cs, tl_cs, sl_cs
);


	always_comb begin
		{ep1_cs, ep2_cs, ep3_cs, ep4_cs, ep5_cs, ep6_cs, ep7_cs, ep8_cs, ep9_cs, cp1_cs,
                cp2_cs, tl_cs, sl_cs} = 0;
		if(ioctl_addr < 'h4000)
			ep1_cs = 1;
		else if(ioctl_addr < 'h8000)
			ep2_cs = 1;
		else if(ioctl_addr < 'hC000)
			ep3_cs = 1;
		else if(ioctl_addr < 'h10000)
			ep4_cs = 1;
		else if(ioctl_addr < 'h14000)
			ep5_cs = 1;
		else if(ioctl_addr < 'h18000)
			ep6_cs = 1;
		else if(ioctl_addr < 'h1C000)
			ep7_cs = 1;
		else if(ioctl_addr < 'h20000)
			ep8_cs = 1;
		else if(ioctl_addr < 'h24000)
			ep9_cs = 1;
		else if(ioctl_addr < 'h24100)
			sl_cs = 1;
		else if(ioctl_addr < 'h24200)
			tl_cs = 1;
		else if(ioctl_addr < 'h24220)
			cp1_cs = 1;
		else
			cp2_cs = 1;
	end
endmodule