Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow LogPerfControl to be reused if necessary (OpenXiangShan#261)
Since chipsalliance/chisel#3753, the users are able to check whether a Data is visible in the current context. To avoid a large number of duplicated LogPerfControl modules, we allow it to be reused when some previous instance is still visible to the current context. Call `LogPerfControl.reuse(DataMirror.isVisible)` instead of pure `apply()` to allow the reuse. However, this is still a temporary workaround. In the future, we need some clean methods to extract the simulation environment and access these signals during simulation, possibly via XMR.
- Loading branch information