Skip to content

Commit

Permalink
phy/a7_gtp: Add separators and remove __all__.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Aug 19, 2024
1 parent c04ac8f commit 964df3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions liteeth/phy/a7_gtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
from migen import *
from migen.genlib.cdc import MultiReg, PulseSynchronizer

__all__ = ["QPLLSettings", "QPLLChannel", "QPLL", "GTPTxInit", "GTPRxInit"]

# QPLL Settings ------------------------------------------------------------------------------------

QPLLSettings = namedtuple("QPLLSettings", "refclksel fbdiv fbdiv_45 refclk_div")

# QPLL Channel -------------------------------------------------------------------------------------

class QPLLChannel:
def __init__(self, index):
Expand All @@ -25,6 +25,7 @@ def __init__(self, index):
self.clk = Signal()
self.refclk = Signal()

# QPLL ---------------------------------------------------------------------------------------------

class QPLL(Module):
def __init__(self,
Expand Down Expand Up @@ -67,6 +68,7 @@ def add_setting(k, v):
**channel_settings
)

# GTP Tx Init --------------------------------------------------------------------------------------

class GTPTxInit(Module):
def __init__(self, sys_clk_freq):
Expand Down Expand Up @@ -126,6 +128,7 @@ def __init__(self, sys_clk_freq):
self.done.eq(1)
)

# GTP Rx Init --------------------------------------------------------------------------------------

# RX Reset Sequence Requirement for Production Silicon: https://www.xilinx.com/support/answers/53561.html
class GTPRxInit(Module):
Expand Down

0 comments on commit 964df3a

Please sign in to comment.