[dv/otp_ctrl] Fix stress_all_with_rand_reset seq

This PR fixes otp_ctrl's stress_all_with_rand_reset:
1). Method to force the mubi value - previous method try to use for
  loop, and pre-assign the mubi values to all partitions before forcing
  them. This will work for normal sequences but not
  stress_all_with_rand_reset. Because if the previous parition is not
  locked (force it to unlocked value), then next sequence lock it without reset(
  usually sequence will reset here), then next sequence cannot be locked
  because of the force value.
  So this PR change it to only force locked value to undeclared mubi
  values.
2). In stress_all_with_rand_reset sequence, because reset we use a
  different task `apply_resets_concurrently`, it does not include all
  the overrides for `apply_reset` and `dut_init`. To adds the additional
  overrides, I used to put it under `otp_ctrl_stress_all_vseq`. However,
  stress_all_with_rand_reset is based on `common_sequence` instead, so
  this override did not apply to `stress_all_with_rand_reset` sequence.
  So I moved the override to base task.
3). For the timing to re-enable scb: because in some fatal error user
  has to issue reset to get a functional OTP again, so
  stress_all_with_rand_reset child sequence will wait until reset is
  issue. If we enable the scb during post_start(), but did not issue
  reset immediately, scb will report error.
  The solution here is to move `en_scb` when apply_reset is issued.

Signed-off-by: Cindy Chen <chencindy@opentitan.org>
5 files changed
tree: 0b6b11e710aaf9c86266158050f61a27b6ed06f7
  1. .github/
  2. ci/
  3. doc/
  4. hw/
  5. rules/
  6. site/
  7. sw/
  8. test/
  9. third_party/
  10. util/
  11. .bazelignore
  12. .bazelrc
  13. .bazelversion
  14. .clang-format
  15. .dockerignore
  16. .flake8
  17. .gitignore
  18. .style.yapf
  19. .svlint.toml
  20. .svls.toml
  21. _index.md
  22. apt-requirements.txt
  23. azure-pipelines.yml
  24. bazelisk.sh
  25. BUILD.bazel
  26. check_tool_requirements.core
  27. CLA
  28. COMMITTERS
  29. CONTRIBUTING.md
  30. LICENSE
  31. meson-config.txt
  32. meson.build
  33. meson_init.sh
  34. meson_options.txt
  35. python-requirements.txt
  36. README.md
  37. tool_requirements.py
  38. toolchain.txt
  39. topgen-reg-only.core
  40. topgen.core
  41. WORKSPACE
  42. yum-requirements.txt
README.md

OpenTitan

OpenTitan logo

About the project

OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.

About this repository

This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.

Documentation

The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.

How to contribute

Have a look at [CONTRIBUTING]({{< relref “CONTRIBUTING.md” >}}) and our documentation on project organization and processes for guidelines on how to contribute code to this repository.

Licensing

Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).