i2c/uart: Name the synchronizers
This commit is contained in:
parent
48222bcd2d
commit
4381e395af
@ -18,11 +18,13 @@ class I2CPins[T <: Pin](pingen: () => T) extends Bundle {
|
|||||||
withClockAndReset(clock, reset) {
|
withClockAndReset(clock, reset) {
|
||||||
scl.outputPin(i2c.scl.out, pue=true.B, ie = true.B)
|
scl.outputPin(i2c.scl.out, pue=true.B, ie = true.B)
|
||||||
scl.o.oe := i2c.scl.oe
|
scl.o.oe := i2c.scl.oe
|
||||||
i2c.scl.in := SynchronizerShiftRegInit(scl.i.ival, syncStages, init = Bool(true))
|
i2c.scl.in := SynchronizerShiftRegInit(scl.i.ival, syncStages, init = Bool(true),
|
||||||
|
name = Some("i2c_scl_sync"))
|
||||||
|
|
||||||
sda.outputPin(i2c.sda.out, pue=true.B, ie = true.B)
|
sda.outputPin(i2c.sda.out, pue=true.B, ie = true.B)
|
||||||
sda.o.oe := i2c.sda.oe
|
sda.o.oe := i2c.sda.oe
|
||||||
i2c.sda.in := SynchronizerShiftRegInit(sda.i.ival, syncStages, init = Bool(true))
|
i2c.sda.in := SynchronizerShiftRegInit(sda.i.ival, syncStages, init = Bool(true),
|
||||||
|
name = Some("i2c_sda_sync"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ class UARTPins[T <: Pin] (pingen: () => T) extends Bundle {
|
|||||||
withClockAndReset(clock, reset) {
|
withClockAndReset(clock, reset) {
|
||||||
txd.outputPin(uart.txd)
|
txd.outputPin(uart.txd)
|
||||||
val rxd_t = rxd.inputPin()
|
val rxd_t = rxd.inputPin()
|
||||||
uart.rxd := SynchronizerShiftRegInit(rxd_t, n = syncStages, init = Bool(true))
|
uart.rxd := SynchronizerShiftRegInit(rxd_t, n = syncStages, init = Bool(true), name = Some("uart_rxd_sync"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user