[opentitantool] Support multi-layer alias conf

We have an agreed way of connecting HyperDebug to CW310, which should be
declared in a JSON conf file, such that opentitan tool understands a
name such as A3 to be an alias of the HyperDebug native pin CN7_18.

Separately, the ChromeOS team has a particular idea of how to use the
OpenTitan chip pins, and wishes to use the name AP_FLASH_SEL as an alias
for A3.  This is mostly independent of CW310 and HyperDebug, and would
apply even to future ASIC development board.

Because of the above, I foresee that we would want to simultaneously
provide a CW310/HyperDebug configuration file, and a CromeOS/EarlGrey
configuration file to OpenTitan tool.

This PR allows the --conf option to take multiple arguments, and it
adapts the alias resolution logic to be transitive.

Change-Id: I6f8a328f269dfee246a19c4d3bae9fd60f056aec
Signed-off-by: Jes B. Klinke <jbk@chromium.org>
2 files changed
tree: 1bed3fa4c8dd6c6fc7f344634f7c03fbf98e37e3
  1. .github/
  2. ci/
  3. doc/
  4. hw/
  5. quality/
  6. release/
  7. rules/
  8. site/
  9. sw/
  10. third_party/
  11. util/
  12. .bazelignore
  13. .bazelrc
  14. .bazelversion
  15. .clang-format
  16. .dockerignore
  17. .flake8
  18. .gitattributes
  19. .gitignore
  20. .style.yapf
  21. .svlint.toml
  22. .svls.toml
  23. _index.md
  24. apt-requirements.txt
  25. azure-pipelines.yml
  26. bazelisk.sh
  27. BUILD.bazel
  28. check_tool_requirements.core
  29. CLA
  30. COMMITTERS
  31. CONTRIBUTING.md
  32. dependabot.yml
  33. LICENSE
  34. mypy.ini
  35. python-requirements.txt
  36. README.md
  37. tool_requirements.py
  38. topgen-reg-only.core
  39. topgen.core
  40. WORKSPACE
  41. 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 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).