data/full_repos/permissive/431687600/Proc_SRC/instruction_memory.v
data/verilator_xmls/efe09d87-f3ec-4b34-8b2b-f04de72b1e78.xml
module instruction_memory(
	input reset,
	input [12:0] i_PCcurr,
	output [12:0] o_instruction);

	reg [12:0] o_instruction_memory [511:0]; 

	always@(*)begin
		 if(reset == 1'b1) $readmemb("sample_instructions.txt",o_instruction_memory);
		 if(i_PCcurr[12:9] > 4'b0000) $display("Program Counter overflow!");
		 $display("%b", i_PCcurr);
	end
	
	assign o_instruction = o_instruction_memory[i_PCcurr[8:0]];
endmodule
module instruction_memory(
	input reset,
	input [12:0] i_PCcurr,
	output [12:0] o_instruction);


	reg [12:0] o_instruction_memory [511:0]; 

	always@(*)begin
		 if(reset == 1'b1) $readmemb("sample_instructions.txt",o_instruction_memory);
		 if(i_PCcurr[12:9] > 4'b0000) $display("Program Counter overflow!");
		 $display("%b", i_PCcurr);
	end
	
	assign o_instruction = o_instruction_memory[i_PCcurr[8:0]];
endmodule