data/full_repos/permissive/192346182/ROM.v
1: b'%Warning-WIDTH: data/full_repos/permissive/192346182/ROM.v:21: Bit extraction of array[4095:0] requires 12 bit index, not 13 bits.\n                                                             : ... In instance ROM\n  Instruction <= rom[PC];\n                    ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module ROM
#(parameter DATA_WIDTH=32, parameter ADDR_WIDTH=13)
(
	input [(ADDR_WIDTH-1):0] PC,
	input Fast_Clock,
	output reg [(DATA_WIDTH-1):0] Instruction
);

	reg [DATA_WIDTH-1:0] rom[4095:0];

	initial
	begin
		$readmemb("OS.txt", rom, 0, 1023);
		$readmemb("Proc1.txt", rom, 1024, 2047);
		$readmemb("Proc2.txt", rom, 2048, 3071);
		$readmemb("Proc3.txt", rom, 3072, 4095);
	end

	always @ (posedge Fast_Clock)
	begin
		Instruction <= rom[PC];
	end

endmodule
module ROM
#(parameter DATA_WIDTH=32, parameter ADDR_WIDTH=13)
(
	input [(ADDR_WIDTH-1):0] PC,
	input Fast_Clock,
	output reg [(DATA_WIDTH-1):0] Instruction
);


	reg [DATA_WIDTH-1:0] rom[4095:0];

	initial
	begin
		$readmemb("OS.txt", rom, 0, 1023);
		$readmemb("Proc1.txt", rom, 1024, 2047);
		$readmemb("Proc2.txt", rom, 2048, 3071);
		$readmemb("Proc3.txt", rom, 3072, 4095);
	end

	always @ (posedge Fast_Clock)
	begin
		Instruction <= rom[PC];
	end

endmodule