Fix icenet-loopback clock and reset domain (#1612)

* Fix

* Bump icenet

* revert icenet bump | fix harnessbinders
This commit is contained in:
joonho hwangbo
2023-10-06 08:34:15 -07:00
committed by GitHub
parent 6b5d55ccd4
commit a524adb1b9

View File

@@ -106,7 +106,11 @@ class WithBlockDeviceModel extends OverrideHarnessBinder({
class WithLoopbackNIC extends OverrideHarnessBinder({
(system: CanHavePeripheryIceNIC, th: HasHarnessInstantiators, ports: Seq[ClockedIO[NICIOvonly]]) => {
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))
}
}
}
})