Skip to content

Commit

Permalink
Merge pull request #164 from VOGL-electronic/optional_liteiclink
Browse files Browse the repository at this point in the history
Only import liteiclink when required
  • Loading branch information
enjoy-digital committed Aug 19, 2024
2 parents d4fa6a2 + 85c3ab2 commit c04ac8f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions liteeth/phy/k7_1000basex.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

from litex.soc.cores.clock import S7MMCM

from liteiclink.transceiver.gtx_7series import GTXChannelPLL, GTXTXInit, GTXRXInit

from liteeth.common import *
from liteeth.phy.pcs_1000basex import *

Expand All @@ -26,6 +24,7 @@ class K7_1000BASEX(LiteXModule):
rx_clk_freq = 125e6
tx_clk_freq = 125e6
def __init__(self, refclk_or_clk_pads, data_pads, sys_clk_freq, refclk_freq=200e6, with_csr=True, rx_polarity=0, tx_polarity=0):
from liteiclink.transceiver.gtx_7series import GTXChannelPLL, GTXTXInit, GTXRXInit
assert refclk_freq in [200e6]
self.pcs = pcs = PCS(lsb_first=True)

Expand Down
3 changes: 1 addition & 2 deletions liteeth/phy/ku_1000basex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

from litex.gen import *

from liteiclink.serdes.gth3_ultrascale import GTHChannelPLL

from liteeth.common import *
from liteeth.phy.pcs_1000basex import *

Expand All @@ -25,6 +23,7 @@ class KU_1000BASEX(LiteXModule):
rx_clk_freq = 125e6
tx_clk_freq = 125e6
def __init__(self, refclk_or_clk_pads, data_pads, sys_clk_freq, refclk_freq=200e6, with_csr=True, rx_polarity=0, tx_polarity=0):
from liteiclink.serdes.gth3_ultrascale import GTHChannelPLL
assert refclk_freq in [200e6, 156.25e6]
self.pcs = pcs = PCS(lsb_first=True)

Expand Down
3 changes: 1 addition & 2 deletions liteeth/phy/usp_gth_1000basex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

from litex.gen import *

from liteiclink.serdes.gth4_ultrascale import GTHChannelPLL

from liteeth.common import *
from liteeth.phy.pcs_1000basex import *

Expand All @@ -25,6 +23,7 @@ class USP_GTH_1000BASEX(LiteXModule):
rx_clk_freq = 125e6
tx_clk_freq = 125e6
def __init__(self, refclk_or_clk_pads, data_pads, sys_clk_freq, refclk_freq=200e6, with_csr=True, rx_polarity=0, tx_polarity=0):
from liteiclink.serdes.gth4_ultrascale import GTHChannelPLL
assert refclk_freq in [200e6, 156.25e6]
self.pcs = pcs = PCS(lsb_first=True)

Expand Down
3 changes: 1 addition & 2 deletions liteeth/phy/usp_gty_1000basex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

from litex.gen import *

from liteiclink.serdes.gty_ultrascale import GTYChannelPLL

from liteeth.common import *
from liteeth.phy.pcs_1000basex import *

Expand All @@ -25,6 +23,7 @@ class USP_GTY_1000BASEX(LiteXModule):
rx_clk_freq = 125e6
tx_clk_freq = 125e6
def __init__(self, refclk_or_clk_pads, data_pads, sys_clk_freq, refclk_freq=200e6, with_csr=True, rx_polarity=0, tx_polarity=0):
from liteiclink.serdes.gty_ultrascale import GTYChannelPLL
assert refclk_freq in [200e6, 156.25e6]
self.pcs = pcs = PCS(lsb_first=True)

Expand Down

0 comments on commit c04ac8f

Please sign in to comment.