Open tjaychen opened 2 years ago
@vogelpi FYI
Cool, thanks for creating this issue @tjaychen . Automating this based on the top-level sounds like a good idea.
Triaged for clkmgr
. I think this isn't needed for the current release, so https://github.com/lowRISC/opentitan/labels/Type%3AFutureRelease seems appropriate.
CC @a-will
This can actually be specified with prim-specific localparams + hierarchical paths to set it from the chip_* layer (which can come from either the template or hjson, depending on implementation in topgen). I initially did this with spi_device for CW340, but then I found a different way (converted some of the higher-layer clock prims to abstract).
Specifically, allow additional attributes in the top hjson file to specify what kind of FPGA clock gates a particular module should use. See #11063 for motivation.