Skip to content

Commit dc3f7dd

Browse files
committed
improve transmission enable robustness
1 parent b4a17b6 commit dc3f7dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/module_phy_plus_lane/lane_init_fsm.vhd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ begin
355355
LOST_CAUSE <= (others => '0'); -- LOST_SIGNAL reason
356356
ALIGNED_CAPABILITY <= (others => '0'); -- CAPABILITY to datalink layer
357357
elsif rising_edge(CLK) then
358-
358+
ENABLE_TRANSM_DATA <= '0'; -- by default no transmission of data allowed to link layer except if in active state
359359
if current_state = CLEAR_LINE_ST then
360360

361361
LANE_STATE <= x"0"; -- Status of the FSM
@@ -367,7 +367,7 @@ begin
367367
send_init3_ctrl_word_i <= '0'; -- Send INIT3 control word following by 64 pseudo-random data words
368368
enable_init_cnt <= '0'; -- disable timeout initialisation counter
369369
INVERT_RX_BITS <= '0'; -- do not invert received bits
370-
ENABLE_TRANSM_DATA <= '0'; -- disable transimission data and control word from data-link layer
370+
371371
SEND_32_STANDBY_CTRL_WORDS <= '0'; -- Send 32 STANDBY control words
372372
SEND_32_LOSS_SIGNAL_CTRL_WORDS <= '0'; -- Send 32 LOSS_SIGNAL control words
373373
NO_SIGNAL_DETECTION_ENABLED <= '0'; -- No_signal detection function disabled
@@ -449,13 +449,11 @@ begin
449449
elsif current_state = PREPARE_STANDBY_ST then
450450

451451
LANE_STATE <= x"8"; -- Status of the FSM
452-
ENABLE_TRANSM_DATA <= '0'; -- Disable transimission data and control word from data-link layer
453452
SEND_32_STANDBY_CTRL_WORDS <= '1'; -- send 32 STANDBY control words
454453

455454
elsif current_state = LOSS_OF_SIGNAL_ST then
456455

457456
LANE_STATE <= x"9"; -- Status of the FSM
458-
ENABLE_TRANSM_DATA <= '0'; -- Disable transimission data and control word from data-link layer
459457
SEND_32_STANDBY_CTRL_WORDS <= '0'; -- stop 32 STANDBY control words
460458
SEND_32_LOSS_SIGNAL_CTRL_WORDS <= '1'; -- send 32 LOSS_SIGNAL control words
461459

0 commit comments

Comments
 (0)