Remove redundant ChipTop reset synchronizer
This commit is contained in:
@@ -28,14 +28,12 @@ object GenerateReset {
|
|||||||
val (reset_io, resetIOCell) = IOCell.generateIOFromSignal(async_reset_wire, "reset",
|
val (reset_io, resetIOCell) = IOCell.generateIOFromSignal(async_reset_wire, "reset",
|
||||||
abstractResetAsAsync = true)
|
abstractResetAsAsync = true)
|
||||||
|
|
||||||
val reset_wire = ResetCatchAndSync(clock, async_reset_wire.asBool())
|
|
||||||
|
|
||||||
chiptop.iocells ++= resetIOCell
|
chiptop.iocells ++= resetIOCell
|
||||||
chiptop.harnessFunctions += ((th: HasHarnessSignalReferences) => {
|
chiptop.harnessFunctions += ((th: HasHarnessSignalReferences) => {
|
||||||
reset_io := th.dutReset
|
reset_io := th.dutReset
|
||||||
Nil
|
Nil
|
||||||
})
|
})
|
||||||
reset_wire
|
async_reset_wire
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import freechips.rocketchip.util.{ResetCatchAndSync}
|
|||||||
* Instantiates a reset synchronizer on all clock-reset pairs in a clock group
|
* Instantiates a reset synchronizer on all clock-reset pairs in a clock group
|
||||||
*/
|
*/
|
||||||
class ClockGroupResetSynchronizer(implicit p: Parameters) extends LazyModule {
|
class ClockGroupResetSynchronizer(implicit p: Parameters) extends LazyModule {
|
||||||
val node = ClockGroupIdentityNode()
|
val node = ClockGroupAdapterNode()
|
||||||
lazy val module = new LazyRawModuleImp(this) {
|
lazy val module = new LazyRawModuleImp(this) {
|
||||||
(node.out zip node.in).map { case ((oG, _), (iG, _)) =>
|
(node.out zip node.in).map { case ((oG, _), (iG, _)) =>
|
||||||
(oG.member.data zip iG.member.data).foreach { case (o, i) =>
|
(oG.member.data zip iG.member.data).foreach { case (o, i) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user