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:prim:subreg"
description: "Register slices"
filesets:
  files_rtl:
    files:
      - rtl/prim_subreg_pkg.sv
      - rtl/prim_reg_cdc.sv
      - rtl/prim_reg_cdc_arb.sv
      - rtl/prim_subreg.sv
      - rtl/prim_subreg_arb.sv
      - rtl/prim_subreg_ext.sv
      - rtl/prim_subreg_shadow.sv
    file_type: systemVerilogSource
    depend:
      - lowrisc:prim:assert
      - lowrisc:prim:mubi

  files_verilator_waiver:
    depend:
      # common waivers
      - lowrisc:lint:common
    files:
      - lint/prim_subreg.vlt
    file_type: vlt

  files_ascentlint_waiver:
    depend:
      # common waivers
      - lowrisc:lint:common
    files:
      - lint/prim_subreg.waiver
    file_type: waiver

  files_veriblelint_waiver:
    depend:
      # common waivers
      - lowrisc:lint:common

targets:
  default:
    filesets:
      - tool_verilator   ? (files_verilator_waiver)
      - tool_ascentlint  ? (files_ascentlint_waiver)
      - tool_veriblelint ? (files_veriblelint_waiver)
      - files_rtl
