Fix icenet-loopback clock and reset domain (#1612)
* Fix * Bump icenet * revert icenet bump | fix harnessbinders
This commit is contained in:
@@ -106,7 +106,11 @@ class WithBlockDeviceModel extends OverrideHarnessBinder({
|
|||||||
class WithLoopbackNIC extends OverrideHarnessBinder({
|
class WithLoopbackNIC extends OverrideHarnessBinder({
|
||||||
(system: CanHavePeripheryIceNIC, th: HasHarnessInstantiators, ports: Seq[ClockedIO[NICIOvonly]]) => {
|
(system: CanHavePeripheryIceNIC, th: HasHarnessInstantiators, ports: Seq[ClockedIO[NICIOvonly]]) => {
|
||||||
implicit val p: Parameters = GetSystemParameters(system)
|
implicit val p: Parameters = GetSystemParameters(system)
|
||||||
ports.map { n => NicLoopback.connect(Some(n.bits), p(NICKey)) }
|
ports.map { n =>
|
||||||
|
withClockAndReset(n.clock, th.harnessBinderReset.asBool) {
|
||||||
|
NicLoopback.connect(Some(n.bits), p(NICKey))
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user