2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

drtio/transceiver/gth: fix single transceiver case

This commit is contained in:
Florent Kermarrec 2018-02-23 12:15:47 +01:00
parent cff85ee13b
commit 5b0f9cc6fd

View File

@ -205,7 +205,7 @@ class GTHSingle(Module):
tx_reset_deglitched.attr.add("no_retiming")
self.sync += tx_reset_deglitched.eq(~tx_init.done)
self.clock_domains.cd_rtio_tx = ClockDomain()
if mode == "master":
if mode == "master" or mode == "single":
self.specials += \
Instance("BUFG_GT", i_I=self.txoutclk, o_O=self.cd_rtio_tx.clk, i_DIV=0)
self.specials += AsyncResetSynchronizer(self.cd_rtio_tx, tx_reset_deglitched)