This isn't currently done in Amaranth (neither is it tracked) and with the [`$scopeinfo` support](https://github.com/YosysHQ/yosys/pull/4084) in Yosys this is newly relevant for simulation.