Skip to content

Commit f6b59a2

Browse files
[entropy_src, dv] Port entropy source DV to Mocha
Signed-off-by: Csaba Kiss <csaba.kiss@semify-eda.com>
1 parent 97d3fcf commit f6b59a2

5 files changed

Lines changed: 23 additions & 22 deletions

File tree

hw/top_chip/dv/mocha_sim_cfgs.hjson

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"{proj_root}/hw/vendor/lowrisc_ip/ip/prim/dv/prim_alert/prim_alert_sim_cfg.hjson",
2828
"{proj_root}/hw/vendor/lowrisc_ip/ip/prim/dv/prim_esc/prim_esc_sim_cfg.hjson",
2929
"{proj_root}/hw/vendor/lowrisc_ip/ip/prim/dv/prim_lfsr/prim_lfsr_sim_cfg.hjson",
30+
"{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/entropy_src_rng16bits_sim_cfg.hjson",
3031
"{proj_root}/hw/vendor/lowrisc_ip/ip/i2c/dv/i2c_sim_cfg.hjson",
3132
"{proj_root}/hw/top_chip/ip/xbar_peri/dv/autogen/xbar_peri_sim_cfg.hjson",
3233
"{proj_root}/hw/top_chip/ip_autogen/gpio/dv/gpio_sim_cfg.hjson",

hw/vendor/lowrisc_ip/ip/entropy_src/data/entropy_src_testplan.hjson

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// SPDX-License-Identifier: Apache-2.0
44
{
55
name: "entropy_src"
6-
import_testplans: ["hw/dv/tools/dvsim/testplans/csr_testplan.hjson",
7-
"hw/dv/tools/dvsim/testplans/intr_test_testplan.hjson",
8-
"hw/dv/tools/dvsim/testplans/alert_test_testplan.hjson",
9-
"hw/dv/tools/dvsim/testplans/tl_device_access_types_testplan.hjson",
10-
"hw/dv/tools/dvsim/testplans/stress_all_with_reset_testplan.hjson",
6+
import_testplans: ["hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/csr_testplan.hjson",
7+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/intr_test_testplan.hjson",
8+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/alert_test_testplan.hjson",
9+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/tl_device_access_types_testplan.hjson",
10+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/stress_all_with_reset_testplan.hjson",
1111
"entropy_src_sec_cm_testplan.hjson"]
1212
testpoints: [
1313
{

hw/vendor/lowrisc_ip/ip/entropy_src/dv/entropy_src_base_sim_cfg.hjson

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818
fusesoc_core: lowrisc:dv:entropy_src_sim:0.1
1919

2020
// Testplan hjson file.
21-
testplan: "{proj_root}/hw/ip/entropy_src/data/entropy_src_testplan.hjson"
21+
testplan: "{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/data/entropy_src_testplan.hjson"
2222

2323
// RAL spec - used to generate the RAL model.
24-
ral_spec: "{proj_root}/hw/ip/entropy_src/data/entropy_src.hjson"
24+
ral_spec: "{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/data/entropy_src.hjson"
2525

2626
// Import additional common sim cfg files.
2727
import_cfgs: [// Project wide common sim cfg file
28-
"{proj_root}/hw/dv/tools/dvsim/common_sim_cfg.hjson",
28+
"{proj_root}/hw/vendor/lowrisc_ip/dv/tools/dvsim/common_sim_cfg.hjson",
2929
// Common CIP test lists
30-
"{proj_root}/hw/dv/tools/dvsim/tests/csr_tests.hjson",
31-
"{proj_root}/hw/dv/tools/dvsim/tests/intr_test.hjson",
32-
"{proj_root}/hw/dv/tools/dvsim/tests/alert_test.hjson",
33-
"{proj_root}/hw/dv/tools/dvsim/tests/tl_access_tests.hjson",
34-
"{proj_root}/hw/dv/tools/dvsim/tests/sec_cm_tests.hjson",
30+
"{proj_root}/hw/vendor/lowrisc_ip/dv/tools/dvsim/tests/csr_tests.hjson",
31+
"{proj_root}/hw/vendor/lowrisc_ip/dv/tools/dvsim/tests/intr_test.hjson",
32+
"{proj_root}/hw/vendor/lowrisc_ip/dv/tools/dvsim/tests/alert_test.hjson",
33+
"{proj_root}/hw/vendor/lowrisc_ip/dv/tools/dvsim/tests/tl_access_tests.hjson",
34+
"{proj_root}/hw/vendor/lowrisc_ip/dv/tools/dvsim/tests/sec_cm_tests.hjson",
3535
// TODO: import `stress_tests.hjson` once hanging issue is resolved.
36-
"{proj_root}/hw/dv/tools/dvsim/tests/stress_all_test.hjson"]
36+
"{proj_root}/hw/vendor/lowrisc_ip/dv/tools/dvsim/tests/stress_all_test.hjson"]
3737

3838
// Add additional tops for simulation.
3939
sim_tops: ["entropy_src_bind", "entropy_src_cov_bind", "sec_cm_prim_onehot_check_bind"]
@@ -43,18 +43,18 @@
4343

4444
xcelium_cov_refine_files: [
4545
// TODO(#16276): Finalize coverage on ExtHT ports & remove the following exclusion file
46-
"{proj_root}/hw/ip/entropy_src/dv/cov/entropy_src_extht_exclusions.vRefine"
46+
"{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/cov/entropy_src_extht_exclusions.vRefine"
4747
// Leave the following as a separate refinement, to support potential DV enhancements.
4848
// (See the comments within the file for more detail)
49-
"{proj_root}/hw/ip/entropy_src/dv/cov/entropy_src_cnt_err_excl.vRefine",
49+
"{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/cov/entropy_src_cnt_err_excl.vRefine",
5050
// Waive toggle coverage for the prim_count and fifo_cnt inputs.
51-
"{proj_root}/hw/ip/entropy_src/dv/cov/entropy_src_cnt_in_excl.vRefine",
51+
"{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/cov/entropy_src_cnt_in_excl.vRefine",
5252
// Waive toggle coverage for the prim_count outputs. (MoreSB's not exercised)
53-
"{proj_root}/hw/ip/entropy_src/dv/cov/entropy_src_cnt_out_excl.vRefine",
53+
"{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/cov/entropy_src_cnt_out_excl.vRefine",
5454
// Output of --cov-unr, with `prim_count` error exclusions removed.
55-
"{proj_root}/hw/ip/entropy_src/dv/cov/entropy_src_UNR.vRefine",
55+
"{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/cov/entropy_src_UNR.vRefine",
5656
// Waive toggle coverage for the prim_fifo_sync inputs.
57-
"{proj_root}/hw/ip/entropy_src/dv/cov/entropy_src_fifo_in_excl.vRefine",
57+
"{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/cov/entropy_src_fifo_in_excl.vRefine",
5858
]
5959

6060
// Default UVM test and seq class name.

hw/vendor/lowrisc_ip/ip/entropy_src/dv/entropy_src_rng16bits_sim_cfg.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
variant: rng_16bits
88

99
// Import the base entropy_src sim_cfg file
10-
import_cfgs: ["{proj_root}/hw/ip/entropy_src/dv/entropy_src_base_sim_cfg.hjson"]
10+
import_cfgs: ["{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/entropy_src_base_sim_cfg.hjson"]
1111

1212
build_opts: ["+define+RNG_BUS_WIDTH=16",
1313
"+define+RNG_BUS_BIT_SEL_WIDTH=4",

hw/vendor/lowrisc_ip/ip/entropy_src/dv/entropy_src_rng4bits_sim_cfg.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
variant: rng_4bits
88

99
// Import the base entropy_src sim_cfg file
10-
import_cfgs: ["{proj_root}/hw/ip/entropy_src/dv/entropy_src_base_sim_cfg.hjson"]
10+
import_cfgs: ["{proj_root}/hw/vendor/lowrisc_ip/ip/entropy_src/dv/entropy_src_base_sim_cfg.hjson"]
1111

1212
build_opts: ["+define+RNG_BUS_WIDTH=4",
1313
"+define+RNG_BUS_BIT_SEL_WIDTH=2",

0 commit comments

Comments
 (0)