forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
partner_chip_sim_cfg_sample.hjson
37 lines (34 loc) · 1.5 KB
/
partner_chip_sim_cfg_sample.hjson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This file is not meant to be used with `dvsim` directly for running tests at
// the chip level. Instead it has been provided as an example to show how an
// existing infrastructure with `dvsim` can be reused with very minimal changes
// to run simulations on a modufied design.
{
// Import the chip_sim_cfg.hjson to run the chip level simulations.
import_cfgs: ["{proj_root}/hw/top_earlgrey/dv/chip_sim_cfg.hjson"]
// Pass the fileset_partner flag to FuseSoC to swap the open source files
// with partner implementations.
sv_flist_gen_flags: ["--flag=fileset_partner"]
// Override the required keys to customize the simulation flow. For instance,
// the FuseSoC core file or the search paths provided to FuseSoC to find the
// dependencies can be overridden to customize the design / testbench, while
// reusing the rest of the infrastructure.
overrides: [
// Example 1: override the fusesoc_core to change the top level FuseSoC
// target.
{
name: fusesoc_core
value: my:dv:chip_sim:0.1
}
// Example 2: override the search paths to prioritize the selection of
// packages (with the same VLNV). The latter one wins.
{
name: fusesoc_cores_root_dirs
value: ["--cores-root {proj_root}",
"--cores-root my-custom-path-1",
"--cores-root my-custom-path-2"]
}
]
}