forked from M-Labs/artiq-zynq
upconn GW: link all phy ctrl tgt
upconn GW: rename csr upconn GW: add serdes ouput
This commit is contained in:
parent
d73cd459f0
commit
11b3842a7f
|
@ -180,7 +180,7 @@ class Transmitter(Module, AutoCSR):
|
|||
self.specials += [
|
||||
# # debug sma
|
||||
# Instance("OBUF", i_I=serdes.o, o_O=debug_sma.p_tx),
|
||||
# Instance("OBUF", i_I=cg.clk_10x, o_O=debug_sma.n_rx),
|
||||
Instance("OBUF", i_I=serdes.o, o_O=debug_sma.n_rx),
|
||||
|
||||
|
||||
|
||||
|
@ -205,8 +205,20 @@ class Transmitter(Module, AutoCSR):
|
|||
|
||||
class CXP_UpConn_PHYS(Module, AutoCSR):
|
||||
def __init__(self, pads, sys_clk_freq, debug_sma, pmod_pads):
|
||||
self.clk_reset = CSR()
|
||||
self.bitrate2x_enable = CSRStorage()
|
||||
self.tx_enable = CSRStorage()
|
||||
|
||||
# # #
|
||||
|
||||
|
||||
self.tx_phys = []
|
||||
for i, pad in enumerate(pads):
|
||||
tx = Transmitter(pad, sys_clk_freq, debug_sma, pmod_pads)
|
||||
self.tx_phys.append(tx)
|
||||
setattr(self.submodules, "tx"+str(i), tx)
|
||||
self.sync += [
|
||||
tx.clk_reset.eq(self.clk_reset.re),
|
||||
tx.bitrate2x_enable.eq(self.bitrate2x_enable.storage),
|
||||
tx.tx_enable.eq(self.tx_enable.storage),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue