lowRISC / opentitan

OpenTitan: Open source silicon root of trust
https://www.opentitan.org
Apache License 2.0
2.52k stars 751 forks source link

[util] create common python lib function to return REPO_TOP #13073

Open timothytrippel opened 2 years ago

timothytrippel commented 2 years ago

Several tools (e.g., dvsim.py, ralgen.py, 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.

alphan commented 2 years ago

I'm not sure what these scripts use but I'm using this as a alias on my machine: git rev-parse --show-toplevel