Skip to content

Commit

Permalink
migrating from lcls_timing_core.GthRxAlignCheck to surf.GtRxAlignCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Jan 14, 2025
1 parent 6ed8c16 commit 9122f5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
12 changes: 8 additions & 4 deletions LCLS-II/gthUltraScale+/rtl/TimingGthCoreWrapper.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use unisim.vcomponents.all;
entity TimingGthCoreWrapper is
generic (
TPD_G : time := 1 ns;
SIMULATION_G : boolean := false;
DISABLE_TIME_GT_G : boolean := false;
EXTREF_G : boolean := false;
AXIL_BASE_ADDR_G : slv(31 downto 0);
Expand Down Expand Up @@ -302,15 +303,18 @@ begin
mAxiReadMasters => axilReadMasters,
mAxiReadSlaves => axilReadSlaves);

U_AlignCheck : entity lcls_timing_core.GthRxAlignCheck
U_AlignCheck : entity surf.GtRxAlignCheck
generic map (
TPD_G => TPD_G,
GT_TYPE_G => "GTHE3",
DRP_ADDR_G => AXI_CROSSBAR_MASTERS_CONFIG_C(1).baseAddr)
TPD_G => TPD_G,
SIMULATION_G => SIMULATION_G,
GT_TYPE_G => "GTHE4",
AXI_CLK_FREQ_G => AXI_CLK_FREQ_G,
DRP_ADDR_G => AXI_CROSSBAR_MASTERS_CONFIG_C(1).baseAddr)
port map (
-- Clock Monitoring
txClk => txoutclkb,
rxClk => rxoutclkb,
refClk => axilClk, -- Could probably also be stableClk
-- GTH Status/Control Interface
resetIn => rxControl.reset,
resetDone => bypassdone,
Expand Down
12 changes: 8 additions & 4 deletions LCLS-II/gthUltraScale/rtl/TimingGtCoreWrapper.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use unisim.vcomponents.all;
entity TimingGtCoreWrapper is
generic (
TPD_G : time := 1 ns;
SIMULATION_G : boolean := false;
DISABLE_TIME_GT_G : boolean := false;
EXTREF_G : boolean := false;
AXIL_BASE_ADDR_G : slv(31 downto 0);
Expand Down Expand Up @@ -298,15 +299,18 @@ begin
mAxiReadMasters => axilReadMasters,
mAxiReadSlaves => axilReadSlaves);

U_AlignCheck : entity lcls_timing_core.GthRxAlignCheck
U_AlignCheck : entity surf.GtRxAlignCheck
generic map (
TPD_G => TPD_G,
GT_TYPE_G => "GTHE3",
DRP_ADDR_G => AXI_CROSSBAR_MASTERS_CONFIG_C(1).baseAddr)
TPD_G => TPD_G,
SIMULATION_G => SIMULATION_G,
GT_TYPE_G => "GTHE3",
AXI_CLK_FREQ_G => AXI_CLK_FREQ_G,
DRP_ADDR_G => AXI_CROSSBAR_MASTERS_CONFIG_C(1).baseAddr)
port map (
-- Clock Monitoring
txClk => txoutclkb,
rxClk => rxoutclkb,
refClk => axilClk, -- Could probably also be stableClk
-- GTH Status/Control Interface
resetIn => rxControl.reset,
resetDone => bypassdone,
Expand Down
2 changes: 1 addition & 1 deletion LCLS-II/gtyUltraScale+/rtl/TimingGtCoreWrapper.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ begin
port map (
-- Clock Monitoring
txClk => txoutclkb,
rxClk => rxUsrClk,
rxClk => rxoutclkb,
refClk => axilClk, -- Could probably also be stableClk
-- GTH Status/Control Interface
resetIn => rxControl.reset,
Expand Down

0 comments on commit 9122f5b

Please sign in to comment.