[flash_ctrl] Select appropriate ready's based on request source

- fixes #12381
- the previous design used the read stage's ready for arbitration.
  Due to the way the design is currently done, the read stage ready
  is actually dependent on the the downstream flash macro actually
  ack-ing the transaction.  To fix this, we would need to de-couple
  the req/ack interface on the side facing the phy and the side facing
  the macro.  While this is doable, it would also require us to latch
  incoming bus attributes.  However, there is not a lot to gain by doing
  so, because as long as the flash has not responded, the next read
  cannot proceed anyways.
- This dependency can cause program/erase operations to lock-up if the
  the downstream macro does not always keep ack asserted when idle (in
  effect behaving more like ready).
- Even though the above fix would be cleaner long term, the quick fix is
  simply to pick the appropriate ready for host and controller operations
  separately.

Signed-off-by: Timothy Chen <timothytim@google.com>
2 files changed
tree: c6daba11cb52c34291f6463d1e213b697a463191
  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. 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]({{< 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).