[util] create common python lib function to return REPO_TOP
Open
@timothytrippel is already working on this.
Since Jun 6, 2022.
Component:Tooling
Earlgrey-PROD Candidate
Priority:P3
Type:Cleanup
- Dominant language
- SystemVerilog
- Stars
- 3.6k
- Forks
- 1.1k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 141
Description
Several tools (e.g., `dvsim.py`, [`ralgen.py`](https://github.com/lowRISC/opentitan/pull/13071), `topgen.py`) attempt to retrieve the REPO_TOP path. rather than reimplement this functionality across scripts, we should create a utility / library that be be used across tools.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.