data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/core_mem.sv
1: b"%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/core_mem.sv:40: Cannot find file containing module: 'dp_ram'\n    dp_ram  #(\n    ^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common,data/full_repos/permissive/509468557/dp_ram\n             data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common,data/full_repos/permissive/509468557/dp_ram.v\n             data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common,data/full_repos/permissive/509468557/dp_ram.sv\n             dp_ram\n             dp_ram.v\n             dp_ram.sv\n             obj_dir/dp_ram\n             obj_dir/dp_ram.v\n             obj_dir/dp_ram.sv\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/core_mem.sv:60: Cannot find file containing module: 'boot_rom'\n    boot_rom data_boot_rom_i (\n    ^~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module core_mem #(
        parameter logic [63:0] DRAM_BASE = 64'h80000000
    )(
    input logic                      clk_i,
    input logic                      rst_ni,

    input  logic [63:0]              data_if_address_i,
    input  logic                     data_if_data_req_i,
    input  logic [7:0]               data_if_data_be_i,
    output logic                     data_if_data_rvalid_o,
    output logic [63:0]              data_if_data_rdata_o,
    input  logic [63:0]              data_if_data_wdata_i,
    input  logic                     data_if_data_we_i
);

    localparam ADDRESS_WIDTH = 24;

    logic [63:0] fetch_data_ram, fetch_data_rom;

    logic [63:0] data_address_q;
    logic [63:0] data_ram, data_rom;


    assign data_if_data_rdata_o = (data_address_q >= DRAM_BASE) ? data_ram : data_rom;

    dp_ram  #(
        .ADDR_WIDTH    ( ADDRESS_WIDTH                                      ),
        .DATA_WIDTH    ( 64                                                 )
    ) ram_i (
        .clk           ( clk_i                                              ),
        .en_a_i        ( 1'b0                                               ),
        .addr_a_i      (                                                    ),
        .wdata_a_i     (                                                    ),
        .rdata_a_o     (                                                    ),
        .we_a_i        ( 1'b0                                               ),
        .be_a_i        (                                                    ),

        .en_b_i        ( data_if_data_req_i                                 ),
        .addr_b_i      ( data_if_address_i[ADDRESS_WIDTH-1+3:3]             ),
        .wdata_b_i     ( data_if_data_wdata_i                               ),
        .rdata_b_o     ( data_ram                                           ),
        .we_b_i        ( ((data_if_address_i >= DRAM_BASE) ? data_if_data_we_i : 1'b0) ),
        .be_b_i        ( data_if_data_be_i                                  )
    );

    boot_rom data_boot_rom_i (
        .clk_i     ( clk_i                        ),
        .rst_ni    ( rst_ni                       ),
        .address_i ( data_address_q               ),
        .data_o    ( data_rom                     )
    );


    always_ff @(posedge clk_i or negedge rst_ni) begin : proc_
        if (~rst_ni) begin
            data_if_data_rvalid_o  <= 1'b0;
            data_address_q         <= '0;
        end else begin
            data_if_data_rvalid_o  <= data_if_data_req_i;
            data_address_q         <= data_if_address_i;
        end
    end
endmodule
module core_mem #(
        parameter logic [63:0] DRAM_BASE = 64'h80000000
    )(
    input logic                      clk_i,
    input logic                      rst_ni,

    input  logic [63:0]              data_if_address_i,
    input  logic                     data_if_data_req_i,
    input  logic [7:0]               data_if_data_be_i,
    output logic                     data_if_data_rvalid_o,
    output logic [63:0]              data_if_data_rdata_o,
    input  logic [63:0]              data_if_data_wdata_i,
    input  logic                     data_if_data_we_i
);


    localparam ADDRESS_WIDTH = 24;

    logic [63:0] fetch_data_ram, fetch_data_rom;

    logic [63:0] data_address_q;
    logic [63:0] data_ram, data_rom;


    assign data_if_data_rdata_o = (data_address_q >= DRAM_BASE) ? data_ram : data_rom;

    dp_ram  #(
        .ADDR_WIDTH    ( ADDRESS_WIDTH                                      ),
        .DATA_WIDTH    ( 64                                                 )
    ) ram_i (
        .clk           ( clk_i                                              ),
        .en_a_i        ( 1'b0                                               ),
        .addr_a_i      (                                                    ),
        .wdata_a_i     (                                                    ),
        .rdata_a_o     (                                                    ),
        .we_a_i        ( 1'b0                                               ),
        .be_a_i        (                                                    ),

        .en_b_i        ( data_if_data_req_i                                 ),
        .addr_b_i      ( data_if_address_i[ADDRESS_WIDTH-1+3:3]             ),
        .wdata_b_i     ( data_if_data_wdata_i                               ),
        .rdata_b_o     ( data_ram                                           ),
        .we_b_i        ( ((data_if_address_i >= DRAM_BASE) ? data_if_data_we_i : 1'b0) ),
        .be_b_i        ( data_if_data_be_i                                  )
    );

    boot_rom data_boot_rom_i (
        .clk_i     ( clk_i                        ),
        .rst_ni    ( rst_ni                       ),
        .address_i ( data_address_q               ),
        .data_o    ( data_rom                     )
    );


    always_ff @(posedge clk_i or negedge rst_ni) begin : proc_
        if (~rst_ni) begin
            data_if_data_rvalid_o  <= 1'b0;
            data_address_q         <= '0;
        end else begin
            data_if_data_rvalid_o  <= data_if_data_req_i;
            data_address_q         <= data_if_address_i;
        end
    end
endmodule