blob: 10afa50c921e4ded4dfbb0f46c36494c119b438b [file] [log] [blame]
Michael Schaffnerb5a88f22019-11-26 19:43:37 -08001CAPI=2:
2# Copyright lowRISC contributors.
3# Licensed under the Apache License, Version 2.0, see LICENSE for details.
4# SPDX-License-Identifier: Apache-2.0
5name: "lowrisc:fpv:${dut.name}_fpv:0.1"
6description: "${dut.name} FPV target"
7filesets:
Cindy Chen0d7f7ac2020-03-19 18:53:43 -07008 files_formal:
Michael Schaffnerb5a88f22019-11-26 19:43:37 -08009 depend:
10% for dep in dut.deps:
11 - ${dep}
Cindy Chen92924942020-08-03 11:59:09 -070012 % if dut.is_cip:
13 - lowrisc:fpv:csr_assert_gen
14 % endif
Michael Schaffnerb5a88f22019-11-26 19:43:37 -080015% endfor
Michael Schaffner84462042019-12-04 18:46:19 -080016 # TODO: add more dependencies here if needed
Michael Schaffnerb5a88f22019-11-26 19:43:37 -080017 files:
18 - vip/${dut.name}_assert_fpv.sv
19 - tb/${dut.name}_bind_fpv.sv
20 - tb/${dut.name}_fpv.sv
Michael Schaffnerb5a88f22019-11-26 19:43:37 -080021 file_type: systemVerilogSource
22
Cindy Chen92924942020-08-03 11:59:09 -070023% if dut.is_cip:
24generate:
25 csr_assert_gen:
26 generator: csr_assert_gen
27 parameters:
28 spec: ../data/${dut_name}.hjson
29 depend: lowrisc:ip:${dut_name}
30% endif
31
Michael Schaffnerb5a88f22019-11-26 19:43:37 -080032targets:
Cindy Chen0d7f7ac2020-03-19 18:53:43 -070033 default: &default_target
Michael Schaffnerb5a88f22019-11-26 19:43:37 -080034 # note, this setting is just used
35 # to generate a file list for jg
36 default_tool: icarus
37 filesets:
Cindy Chen0d7f7ac2020-03-19 18:53:43 -070038 - files_formal
Cindy Chen92924942020-08-03 11:59:09 -070039% if dut.is_cip:
40 generate:
41 - csr_assert_gen
42% endif
Michael Schaffnerb5a88f22019-11-26 19:43:37 -080043 toplevel: ${dut.name}_fpv
Cindy Chen0d7f7ac2020-03-19 18:53:43 -070044
45 formal:
46 <<: *default_target
Cindy Chen363bea22020-11-02 19:55:01 -080047
48 lint:
49 <<: *default_target