Skip to content

Commit

Permalink
phy/a7sataphy: Use explicit parameterson GTPQuadPLL.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Apr 3, 2024
1 parent 7ccd070 commit 4dc440d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions litesata/phy/a7sataphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,13 @@ def __init__(self, pads, gen, clk_freq, data_width=16, tx_buffer_enable=False, r
"gen3": 6.0e9
}
if qpll is None:
self.qpll = qpll = GTPQuadPLL(self.gtrefclk0, 150e6, linerate_config[gen])
qpll.index = 0
self.qpll = qpll = GTPQuadPLL(
refclk = self.gtrefclk0,
refclk_freq = 150e6,
linerate = linerate_config[gen],
channel = 0,
)
qpll.index = qpll.channel
self.comb += self.qplllock.eq(qpll.lock)
self.comb += qpll.reset.eq(tx_init.pllreset)

Expand Down

0 comments on commit 4dc440d

Please sign in to comment.