Skip to content

Commit

Permalink
Make gth match gty
Browse files Browse the repository at this point in the history
  • Loading branch information
bengineerd committed Oct 29, 2024
1 parent a835d77 commit 45f0350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ begin

cPllRefClkSel <= ite(SEL_FABRIC_REFCLK_G, "111", "001");

rstSyncRxIn <= rxResetAlignCheck or rxReset;
rxResetGt <= rxResetAlignCheck or rxReset;
rstSyncRxIn <= rxResetAlignCheck;
rxResetGt <= rxResetAlignCheck;

txOutClk <= txOutClkB;
rxOutClk <= rxOutClkB;
Expand Down
9 changes: 5 additions & 4 deletions protocols/pgp/pgp2fc/gthUltraScale+/rtl/Pgp2fcGthUltra.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ begin

pgpTxResetDone <= phyTxReady;

-- assuming a 185.714/2 = 92.857 MHz stableClk
U_RstSync_1 : entity surf.PwrUpRst
generic map (
TPD_G => TPD_G,
DURATION_G => ite(SIMULATION_G, 7813, 78130000)) -- 100us in sim; 1s in silicon
DURATION_G => ite(SIMULATION_G, 9285, 92850000)) -- 100us in sim; 1s in silicon
port map (
arst => pgpTxIn.resetGt, -- [in]
clk => stableClk, -- [in]
Expand All @@ -133,12 +134,12 @@ begin
clk => stableClk, -- [in]
dataIn => phyRxInit, -- [in]
dataOut => phyRxInitSync); -- [out]

-- Sync pgpRxIn.rxReset to stableClk and tie to gtRxUserReset
U_RstSync_2 : entity surf.PwrUpRst
generic map (
TPD_G => TPD_G,
DURATION_G => ite(SIMULATION_G, 7813, 78130000)) -- 100us in sim; 1s in silicon
DURATION_G => ite(SIMULATION_G, 9285, 92850000)) -- 100us in sim; 1s in silicon
port map (
arst => pgpRxIn.resetRx, -- [in]
clk => stableClk, -- [in]
Expand All @@ -149,7 +150,7 @@ begin
U_RstSync_3 : entity surf.PwrUpRst
generic map (
TPD_G => TPD_G,
DURATION_G => ite(SIMULATION_G, 7813, 78130000)) -- 100us in sim; 1s in silicon
DURATION_G => ite(SIMULATION_G, 9285, 92850000)) -- 100us in sim; 1s in silicon
port map (
arst => pgpTxIn.resetTx, -- [in]
clk => stableClk, -- [in]
Expand Down

0 comments on commit 45f0350

Please sign in to comment.