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_scrambled"
description: "DPI memory utilities for scrambled memories"
filesets:
  files_cpp:
    depend:
      - lowrisc:dv_verilator:memutil_dpi
      - lowrisc:dv:scramble_model
    files:
      - cpp/scrambled_ecc32_mem_area.cc
      - cpp/scrambled_ecc32_mem_area.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_scrambled_0/cpp'
          - '-lelf'
