mirror of https://github.com/m-labs/artiq.git
drtio/transceiver/gth: fix single transceiver case
This commit is contained in:
parent
cff85ee13b
commit
5b0f9cc6fd
|
@ -205,7 +205,7 @@ class GTHSingle(Module):
|
||||||
tx_reset_deglitched.attr.add("no_retiming")
|
tx_reset_deglitched.attr.add("no_retiming")
|
||||||
self.sync += tx_reset_deglitched.eq(~tx_init.done)
|
self.sync += tx_reset_deglitched.eq(~tx_init.done)
|
||||||
self.clock_domains.cd_rtio_tx = ClockDomain()
|
self.clock_domains.cd_rtio_tx = ClockDomain()
|
||||||
if mode == "master":
|
if mode == "master" or mode == "single":
|
||||||
self.specials += \
|
self.specials += \
|
||||||
Instance("BUFG_GT", i_I=self.txoutclk, o_O=self.cd_rtio_tx.clk, i_DIV=0)
|
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)
|
self.specials += AsyncResetSynchronizer(self.cd_rtio_tx, tx_reset_deglitched)
|
||||||
|
|
Loading…
Reference in New Issue