]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
link status changes
authorMichael Boehmer <mboehmer@ph.tum.de>
Mon, 11 Jul 2022 13:54:12 +0000 (15:54 +0200)
committerMichael Boehmer <mboehmer@ph.tum.de>
Mon, 11 Jul 2022 13:54:12 +0000 (15:54 +0200)
gbe_hub/trb3sc_gbe_hub.vhd

index 9a234df299130da2c7f7b8654719eac630b0e5c6..2feacddd2f9dc467c8316e6d2fbb4d34ba2a4e5c 100644 (file)
@@ -376,7 +376,11 @@ begin
   DBG(21)           <= ul_rx_frame_req;
   DBG(22)           <= ul_rx_frame_ack;
   DBG(23)           <= dl_rx_data(0)(9);
-  DBG(31 downto 24) <= (others => '0');
+  DBG(27 downto 24) <= dl_tx_fifofull(3 downto 0);
+  DBG(28)           <= ul_rx_data(8);
+  DBG(29)           <= ul_rx_data(9);
+  DBG(30)           <= ul_rx_data(10);
+  DBG(31)           <= ul_rx_fifofull;
   DBG(32)           <= dl_rx_data(0)(8);
   DBG(33)           <= clk_sys;
 
@@ -564,7 +568,7 @@ begin
 -- LED
 ---------------------------------------------------------------------------
   -- LED are green, orange, red, yellow, white(2), rj_green(2), rj_red(2), sfp_green(2), sfp_red(2)
-  LED_GREEN            <= not status(2); --'0';
+  LED_GREEN            <= not status(6); --'0';
   LED_ORANGE           <= not status(5); --'0';
   LED_RED              <= not '0';
   LED_YELLOW           <= not '0';
@@ -575,47 +579,48 @@ begin
 --  LED_HUB_RX(i+1)     <= not '0';
 --end generate;
 
-  LED_HUB_LINKOK(1)  <= not status_raw(10 * 8 + 2); --'0'; -- C2
+  LED_HUB_LINKOK(1)  <= not status_raw(10 * 8 + 6); --'0'; -- C2
   LED_HUB_TX(1)      <= not status_raw(10 * 8 + 5); --'0';
   LED_HUB_RX(1)      <= not '0';
 
-  LED_HUB_LINKOK(2)  <= not status_raw(11 * 8 + 2); --'0'; -- C3
+  LED_HUB_LINKOK(2)  <= not status_raw(11 * 8 + 6); --'0'; -- C3
   LED_HUB_TX(2)      <= not status_raw(11 * 8 + 5); --'0';
   LED_HUB_RX(2)      <= not '0';
 
-  LED_HUB_LINKOK(3)  <= not status_raw(8 * 8 + 2); --'0'; -- C0
+  LED_HUB_LINKOK(3)  <= not status_raw(8 * 8 + 6); --'0'; -- C0
   LED_HUB_TX(3)      <= not status_raw(8 * 8 + 5); --'0';
   LED_HUB_RX(3)      <= not '0';
 
-  LED_HUB_LINKOK(4)  <= not status_raw(9 * 8 + 2); --'0'; -- C1
+  LED_HUB_LINKOK(4)  <= not status_raw(9 * 8 + 6); --'0'; -- C1
   LED_HUB_TX(4)      <= not status_raw(9 * 8 + 5); --'0';
   LED_HUB_RX(4)      <= not '0';
 
-  LED_HUB_LINKOK(5)  <= not status_raw(4 * 8 + 2); --'0'; -- B0
+  LED_HUB_LINKOK(5)  <= not status_raw(4 * 8 + 6); --'0'; -- B0
   LED_HUB_TX(5)      <= not status_raw(4 * 8 + 5); --'0';
   LED_HUB_RX(5)      <= not '0';
 
-  LED_HUB_LINKOK(6)  <= not status_raw(5 * 8 + 2); --'0'; -- B1
+  LED_HUB_LINKOK(6)  <= not status_raw(5 * 8 + 6); --'0'; -- B1
   LED_HUB_TX(6)      <= not status_raw(5 * 8 + 5); --'0';
   LED_HUB_RX(6)      <= not '0';
-  LED_HUB_LINKOK(7)  <= not status_raw(5 * 8 + 2); --'0'; -- B2
+  
+  LED_HUB_LINKOK(7)  <= not status_raw(5 * 8 + 6); --'0'; -- B2
   LED_HUB_TX(7)      <= not status_raw(6 * 8 + 5); --'0';
   LED_HUB_RX(7)      <= not '0';
 
-  LED_HUB_LINKOK(8)  <= not status_raw(5 * 8 + 2); --'0'; -- B3
+  LED_HUB_LINKOK(8)  <= not status_raw(5 * 8 + 6); --'0'; -- B3
   LED_HUB_TX(8)      <= not status_raw(7 * 8 + 5); --'0';
   LED_HUB_RX(8)      <= not '0';
 
-  LED_SFP_GREEN(0)   <= not status_raw(12 * 8 + 2); --'0'; -- D0
+  LED_SFP_GREEN(0)   <= not status_raw(12 * 8 + 6); --'0'; -- D0
   LED_SFP_RED(0)     <= not status_raw(12 * 8 + 5); --'0';
 
-  LED_SFP_GREEN(1)   <= not status_raw(13 * 8 + 2); --'0'; -- D1
+  LED_SFP_GREEN(1)   <= not status_raw(13 * 8 + 6); --'0'; -- D1
   LED_SFP_RED(1)     <= not status_raw(13 * 8 + 5); --'0';
   
   LED_WHITE(1)       <= not additional_reg(31); --'0';
   LED_WHITE(0)       <= not status(8); --'0';
 
-  LED_RJ_GREEN(0)    <= not status_raw(0 * 8 + 2); -- A0
+  LED_RJ_GREEN(0)    <= not status_raw(0 * 8 + 6); -- A0
   LED_RJ_RED(0)      <= not status_raw(0 * 8 + 5);