package:
  name: gpio
  authors:
    - "Manuel Eggimann <meggimann@iis.ee.ethz.ch>"

dependencies:
  tech_cells_generic:     { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: 0.2.9 }
  common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.21.0 }
  common_verification: { git: "https://github.com/pulp-platform/common_verification.git", version: 0.2.0}
  register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: 0.4.1}
  apb: { git: "https://github.com/pulp-platform/apb.git", version: 0.2.4 } # To be udpated once PR #6 got merged.
  axi: { git: "https://github.com/pulp-platform/axi.git", version: 0.38.0 }

sources:
  - src/gpio_reg_pkg.sv
  - src/gpio_reg_top.sv
  - src/gpio.sv
  - src/gpio_axi_lite_wrap.sv
  - src/gpio_apb_wrap.sv
  - target: all(any(test, gpio_include_tb_files), not(gpio_exclude_tb_files))
    files:
      - test/tb_gpio.sv
  - target: all(any(simulation, asic, gpio_with_clk_gates), not(gpio_no_clk_gates))
    files:
      - src/gpio_input_stage.sv
  - target: all(any(fpga, gpio_no_clk_gates), not(gpio_with_clk_gates))
    files:
      - src/gpio_input_stage_no_clk_gates.sv
vendor_package:
  - name: reggen
    target_dir: "util"
    upstream: { git: "https://github.com/pulp-platform/register_interface.git", rev: "fe3cc459f02a75efed697cf0d6cb73df27763dbe"}
    mapping:
      - { from: 'vendor/lowrisc_opentitan/util', to: 'reggen'}
