Skip to content

Commit

Permalink
Merge pull request #1200 from slaclab/Pgp4RxLiteLowSpeedLane
Browse files Browse the repository at this point in the history
Pgp4RxLiteLowSpeedLane.vhd Update
  • Loading branch information
ruck314 authored Sep 30, 2024
2 parents 5008bb0 + 75e91c1 commit ea63530
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions protocols/pgp/pgp4/core/rtl/Pgp4RxLiteLowSpeedLane.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ entity Pgp4RxLiteLowSpeedLane is
DLY_STEP_SIZE_G : positive range 1 to 255 := 1;
STATUS_CNT_WIDTH_G : natural range 1 to 32 := 16;
ERROR_CNT_WIDTH_G : natural range 1 to 32 := 8;
AXIL_CLK_FREQ_G : real); -- In units of HZ
AXIL_CLK_FREQ_G : real); -- In units of HZ
port (
-- Deserialization Interface (deserClk domain)
deserClk : in sl;
Expand Down Expand Up @@ -72,6 +72,8 @@ architecture mapping of Pgp4RxLiteLowSpeedLane is
signal phyRxValid : sl := '0';
signal phyRxData : slv(65 downto 0);

signal phyRxValidMask : sl := '0';

begin

process(deserClk)
Expand Down Expand Up @@ -151,6 +153,9 @@ begin
eyeWidth => eyeWidth,
locked => gearboxAligned);

-- Mask off the Valid until the gearbox is locked
phyRxValidMask <= phyRxValid and gearboxAligned;

------------------
-- PGPv4 Core Lite
------------------
Expand Down Expand Up @@ -186,7 +191,7 @@ begin
phyRxRst => deserReset,
phyRxActive => gearboxAligned,
phyRxStartSeq => '0',
phyRxValid => phyRxValid,
phyRxValid => phyRxValidMask,
phyRxData => phyRxData(63 downto 0),
phyRxHeader => phyRxData(65 downto 64),
-- AXI-Lite Register Interface (axilClk domain)
Expand Down

0 comments on commit ea63530

Please sign in to comment.