]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
fix reset generation via GbE - failed in 1% of cases
authorJan Michel <michel@physik.uni-frankfurt.de>
Wed, 28 Jun 2023 09:16:03 +0000 (11:16 +0200)
committerJan Michel <michel@physik.uni-frankfurt.de>
Wed, 28 Jun 2023 09:16:03 +0000 (11:16 +0200)
trb_net16_hub_streaming_port_sctrl_cts.vhd

index 4a6a64138607deb843f1573aab4b4761401530d2..fe694c353e83473179f67f1a628def15d6f7b84f 100644 (file)
@@ -422,8 +422,7 @@ info_tx_ack_or_info_tx_wack <= info_tx.ack or info_tx.wack;
     if(EXTERNAL_SEND_RESET = '1') then
       external_send_reset_long <= '1';
       external_send_reset_timer <= '1';
-    end if;
-    if timer_ticks(0) = '1' then
+    elsif timer_ticks(0) = '1' then  --BUG else!
       external_send_reset_timer <= '0';
       external_send_reset_long  <= external_send_reset_timer;
     end if;