data/full_repos/permissive/470392519/boredsoc/bootrom.v
data/verilator_xmls/7499d09d-2403-4cad-8b49-abfd2db18fc3.xml
module bootrom (
    input                           i_clk, i_en,
    input       [ADDR_WIDTH-1:0]    i_addr,
    output reg  [DATA_WIDTH-1:0]    o_data
);
    parameter DATA_WIDTH = 32;
    parameter ADDR_WIDTH = 5;
    parameter MEMFILE = "init.mem";
    reg [DATA_WIDTH-1:0] rom [2**ADDR_WIDTH-1:0];


    initial $readmemh(MEMFILE, rom);
    always @(posedge i_clk) begin if(i_en) o_data <= rom[i_addr]; end

endmodule
module bootrom (
    input                           i_clk, i_en,
    input       [ADDR_WIDTH-1:0]    i_addr,
    output reg  [DATA_WIDTH-1:0]    o_data
);

    parameter DATA_WIDTH = 32;
    parameter ADDR_WIDTH = 5;
    parameter MEMFILE = "init.mem";
    reg [DATA_WIDTH-1:0] rom [2**ADDR_WIDTH-1:0];


    initial $readmemh(MEMFILE, rom);
    always @(posedge i_clk) begin if(i_en) o_data <= rom[i_addr]; end

endmodule