data/full_repos/permissive/100975158/MIPS32_Full/Processor/InstructionMemoryInterface.v
data/verilator_xmls/c24fb998-fe95-41ec-a676-8549cd19a511.xml
module InstructionMemoryInterface #(parameter INSTRUCTION_FILE = "file.txt") (
    input           if_stall,
    input  [31:0]   if_pc_usable,
    output [31:0]   if_instruction
);

    reg [31:0] memory [0:63];

    initial begin
        $readmemb(INSTRUCTION_FILE, memory);
    end



    assign if_instruction = (if_stall) ? 32'b0 : memory[if_pc_usable[7:2]][31:0];

endmodule
module InstructionMemoryInterface #(parameter INSTRUCTION_FILE = "file.txt") (
    input           if_stall,
    input  [31:0]   if_pc_usable,
    output [31:0]   if_instruction
);


    reg [31:0] memory [0:63];

    initial begin
        $readmemb(INSTRUCTION_FILE, memory);
    end



    assign if_instruction = (if_stall) ? 32'b0 : memory[if_pc_usable[7:2]][31:0];

endmodule