From 4381e395af0fcc2dafc5d10556978040c7a175ea Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Tue, 5 Sep 2017 18:40:22 -0700 Subject: [PATCH] i2c/uart: Name the synchronizers --- src/main/scala/devices/i2c/I2CPins.scala | 6 ++++-- src/main/scala/devices/uart/UARTPeriphery.scala | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/scala/devices/i2c/I2CPins.scala b/src/main/scala/devices/i2c/I2CPins.scala index 2e29423..9bbc576 100644 --- a/src/main/scala/devices/i2c/I2CPins.scala +++ b/src/main/scala/devices/i2c/I2CPins.scala @@ -18,11 +18,13 @@ class I2CPins[T <: Pin](pingen: () => T) extends Bundle { withClockAndReset(clock, reset) { scl.outputPin(i2c.scl.out, pue=true.B, ie = true.B) 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.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")) } } } diff --git a/src/main/scala/devices/uart/UARTPeriphery.scala b/src/main/scala/devices/uart/UARTPeriphery.scala index f24cbad..01ae55c 100644 --- a/src/main/scala/devices/uart/UARTPeriphery.scala +++ b/src/main/scala/devices/uart/UARTPeriphery.scala @@ -51,7 +51,7 @@ class UARTPins[T <: Pin] (pingen: () => T) extends Bundle { withClockAndReset(clock, reset) { txd.outputPin(uart.txd) 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")) } } } -- 2.30.2