[dv, verilator] Simulation memory prototype impl

This change set implements a small memory used for chip level
simulations. An empty space in the chip address map can be used for this
memory. It is primarily used for the embedded CPU in the design (Ibex)
to signal information to the testbench, for example indicate when the SW
is done and the simulation can exit.

Currently, a couple of addresses in our on-device SRAM are being used
for this purpose. With this patch, those are completely gone.

The simulation SRAM intercepts a TL interface to instantiate a 1:2
socket and the (adapter + ) SRAM. This must NOT exist during synthesis,
hence takes the following strategy:
- An interception point is created in `rv_core_ibex` - this is done by
disconnecting the output of the TL fifo and the module port. This
disconnection happens only if `VERILATOR` or `UVM` is defined.
- THis allows the user to instantiate the SRAM in the testbench and
connect its inputs and outptuts to the interception point in
`rv_core_ibex`.
- This enables us to preserve the original design hierarchy without
pulluting with simulation components (or adding forces which is not
supported in Verilator).

Please see sim_sram documentation for more details.

Once approved, the address locations for signaling the end of test and
logging will be switched over to use this address space.

Signed-off-by: Srikrishna Iyer <sriyer@google.com>
11 files changed
tree: 1f707fb69269c1368cf66015cfbffdb3d824c15f
  1. .github/
  2. ci/
  3. doc/
  4. hw/
  5. site/
  6. sw/
  7. test/
  8. util/
  9. .clang-format
  10. .dockerignore
  11. .flake8
  12. .gitignore
  13. .style.yapf
  14. _index.md
  15. apt-requirements.txt
  16. azure-pipelines.yml
  17. check_tool_requirements.core
  18. CLA
  19. COMMITTERS
  20. CONTRIBUTING.md
  21. LICENSE
  22. meson.build
  23. meson_init.sh
  24. meson_options.txt
  25. python-requirements.txt
  26. README.md
  27. tool_requirements.py
  28. toolchain.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 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).