| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| { |
| name: "entropy_src" |
| import_testplans: ["hw/dv/tools/dvsim/testplans/csr_testplan.hjson", |
| "hw/dv/tools/dvsim/testplans/intr_test_testplan.hjson", |
| "hw/dv/tools/dvsim/testplans/alert_test_testplan.hjson", |
| "hw/dv/tools/dvsim/testplans/tl_device_access_types_testplan.hjson", |
| "hw/dv/tools/dvsim/testplans/stress_all_with_reset_testplan.hjson"] |
| entries: [ |
| { |
| name: smoke |
| desc: '''Enable entropy_src in LFSR mode, wait for interrupt, verify entropy for power-on seed.''' |
| milestone: V1 |
| tests: ["entropy_src_smoke"] |
| } |
| { |
| name: firmware |
| desc: ''' |
| Verify ability to access entropy register based on value of efuse input |
| Verify es_regen bit enables/disables write access to control registers |
| ''' |
| milestone: V2 |
| tests: [] |
| } |
| { |
| name: lfsr_mode |
| desc: ''' |
| Verify LFSR entropy |
| - Various seeds |
| - Various FIFO depths |
| Verify rng activity does not affect lfsr operation. |
| ''' |
| milestone: V2 |
| tests: [] |
| } |
| { |
| name: rng_mode |
| desc: ''' |
| Verify rng entropy |
| - Various clk speeds |
| - Various FIFO depths |
| Verify rng single_bit_mode for all bit_selector values |
| ''' |
| milestone: V2 |
| tests: ["entropy_src_rng"] |
| } |
| { |
| name: health_checks |
| desc: ''' |
| Verify AdaptProp health check behaves as predicted |
| Verify RepCnt health check behaves as predicted |
| Verify Bucket health check behaves as predicted |
| Verify Markov health check behaves as predicted |
| Verify External health check behaves as predicted |
| Various thresholds, clears, enables |
| Verify alerts |
| ''' |
| milestone: V2 |
| tests: [] |
| } |
| { |
| name: interrupts |
| desc: ''' |
| Verify all entropy_src interrupts assert/clear when expected.''' |
| milestone: V2 |
| tests: [] |
| } |
| { |
| name: stress_all |
| desc: ''' |
| Combine the other individual testpoints while injecting TL errors and running CSR tests in parallel.''' |
| milestone: V2 |
| tests: ["entropy_src_stress_all"] |
| } |
| ] |
| } |