Skip to content

Commit

Permalink
ku_1000basex: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Jan 18, 2019
1 parent 8863214 commit 52c7549
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions misoc/cores/liteeth_mini/phy/ku_1000basex.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,25 +796,16 @@ def __init__(self, clk_pads, data_pads, sys_clk_freq):
# o_TXSYNCDONE=,
# o_TXSYNCOUT=,
)
# Vivado fails to automatically insert BUFG_GT_SYNC for some reason.
tx_bufg_gt_ce = Signal()
tx_bufg_gt_clr = Signal()
rx_bufg_gt_ce = Signal()
rx_bufg_gt_clr = Signal()
self.specials += [
Instance("GTHE3_CHANNEL", **xilinx_mess),
Instance("BUFG_GT", i_I=self.txoutclk, o_O=self.cd_eth_tx.clk, i_DIV=0),#,
#i_CE=tx_bufg_gt_ce, i_CLR=tx_bufg_gt_clr),
Instance("BUFG_GT", i_I=self.txoutclk, o_O=self.cd_eth_tx_half.clk, i_DIV=1),#,
#i_CE=tx_bufg_gt_ce, i_CLR=tx_bufg_gt_clr),
#Instance("BUFG_GT_SYNC", i_CLK=self.txoutclk, i_CE=1, i_CLR=0,
# o_CESYNC=tx_bufg_gt_ce, o_CLRSYNC=tx_bufg_gt_clr),
Instance("BUFG_GT", i_I=self.txoutclk, o_O=self.cd_eth_tx.clk, i_DIV=0),
Instance("BUFG_GT", i_I=self.txoutclk, o_O=self.cd_eth_tx_half.clk, i_DIV=1),
Instance("BUFG_GT", i_I=self.rxoutclk, o_O=self.cd_eth_rx.clk, i_DIV=0),
#i_CE=rx_bufg_gt_ce, i_CLR=rx_bufg_gt_clr),
Instance("BUFG_GT", i_I=self.rxoutclk, o_O=self.cd_eth_rx_half.clk, i_DIV=1),#,
#i_CE=rx_bufg_gt_ce, i_CLR=rx_bufg_gt_clr),
#Instance("BUFG_GT_SYNC", i_CLK=self.rxoutclk, i_CE=1, i_CLR=0,
# o_CESYNC=rx_bufg_gt_ce, o_CLRSYNC=rx_bufg_gt_clr),
Instance("BUFG_GT", i_I=self.rxoutclk, o_O=self.cd_eth_rx_half.clk, i_DIV=1),
AsyncResetSynchronizer(self.cd_eth_tx, ~tx_reset_done),
AsyncResetSynchronizer(self.cd_eth_rx, ~rx_reset_done),
]
Expand Down

0 comments on commit 52c7549

Please sign in to comment.