CAPI=2:
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

name: "lowrisc:dv_verilator:memutil_dpi"
description: "DPI memory utilities"
filesets:
  files_cpp:
    depend:
      - lowrisc:dv:secded_enc
    files:
      - cpp/dpi_memutil.cc
      - cpp/dpi_memutil.h: { is_include_file: true }
      - cpp/ecc32_mem_area.cc
      - cpp/ecc32_mem_area.h: { is_include_file: true }
      - cpp/mem_area.cc
      - cpp/mem_area.h: { is_include_file: true }
      - cpp/ranged_map.h: { is_include_file: true }
      - cpp/sv_scoped.cc
      - cpp/sv_scoped.h: { is_include_file: true }
    file_type: cppSource

targets:
  default:
    filesets:
      - files_cpp
    tools:
      vcs:
        vcs_options:
          - '-CFLAGS -I../../src/lowrisc_dv_verilator_memutil_dpi_0/cpp'
          - '-lelf'
