data/full_repos/permissive/115920613/rtl/rom_basic.v
data/verilator_xmls/bca791ce-c603-4e67-aac6-24b84ed0c7bc.xml
module rom_basic #(
    parameter BASIC_FILENAME = "../../../roms/basic.hex"
) (
    input clk,
    input [11:0] address,
    output reg [7:0] dout
);

    reg [7:0] rom_data[0:4095];

    initial
        $readmemh(BASIC_FILENAME, rom_data, 0, 4095);

    always @(posedge clk)
        dout <= rom_data[address];

endmodule
module rom_basic #(
    parameter BASIC_FILENAME = "../../../roms/basic.hex"
) (
    input clk,
    input [11:0] address,
    output reg [7:0] dout
);


    reg [7:0] rom_data[0:4095];

    initial
        $readmemh(BASIC_FILENAME, rom_data, 0, 4095);

    always @(posedge clk)
        dout <= rom_data[address];

endmodule