import Chisel._
import chisel3.experimental.{withClockAndReset}
import freechips.rocketchip.config.Field
-import freechips.rocketchip.util.ShiftRegInit
+import freechips.rocketchip.util.SynchronizerShiftRegInit
import freechips.rocketchip.coreplex.{HasPeripheryBus, PeripheryBusParams, HasInterruptBus}
import freechips.rocketchip.diplomacy.{LazyModule, LazyMultiIOModuleImp}
import sifive.blocks.devices.pinctrl.{Pin}
withClockAndReset(clock, reset) {
txd.outputPin(uart.txd)
val rxd_t = rxd.inputPin()
- uart.rxd := ShiftRegInit(rxd_t, n = syncStages, init = Bool(true))
+ uart.rxd := SynchronizerShiftRegInit(rxd_t, n = syncStages, init = Bool(true))
}
}
}