]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
LED test
authorMichael Boehmer <mboehmer@ph.tum.de>
Mon, 24 Oct 2022 08:20:26 +0000 (10:20 +0200)
committerMichael Boehmer <mboehmer@ph.tum.de>
Mon, 24 Oct 2022 08:20:26 +0000 (10:20 +0200)
gbe_hub/trb3sc_gbe_hub.vhd

index 75d4f970cc1d365c5d83c10d4af0e49d273fb157..569741594c6187d803b256425378786b64a177f2 100644 (file)
@@ -224,6 +224,11 @@ architecture trb3sc_arch of trb3sc_gbe_hub is
   signal debug_pcsb                 : std_logic_vector(127 downto 0);
   signal debug_pcsc                 : std_logic_vector(127 downto 0);
   signal debug_pcsd                 : std_logic_vector(127 downto 0);
+
+  signal oob_0_reg                  : std_logic_vector(31 downto 0);
+  signal oob_1_reg                  : std_logic_vector(31 downto 0);
+  signal oob_2_reg                  : std_logic_vector(31 downto 0);
+  signal oob_3_reg                  : std_logic_vector(31 downto 0);
   
 begin
 
@@ -476,7 +481,12 @@ begin
       GSC_REPLY_DATA_IN        => gsc_reply_data,       
       GSC_REPLY_PACKET_NUM_IN  => gsc_reply_packet_num, 
       GSC_REPLY_READ_OUT       => gsc_reply_read,       
-      GSC_BUSY_IN              => gsc_busy,            
+      GSC_BUSY_IN              => gsc_busy,
+      --
+      OOB_REGISTER_0_OUT       => oob_0_reg,
+      OOB_REGISTER_1_OUT       => oob_1_reg,
+      OOB_REGISTER_2_OUT       => oob_2_reg,
+      OOB_REGISTER_3_OUT       => oob_3_reg,
       -- reset
       MAKE_RESET_OUT           => reset_via_gbe,
       -- debug
@@ -1044,7 +1054,7 @@ begin
   LED_SFP_GREEN(1)   <= not status_raw(13 * 8 + 7); --'0'; -- D1
   LED_SFP_RED(1)     <= not status_raw(13 * 8 + 2); --'0';
   
-  LED_WHITE(1)       <= not additional_reg(31); --'0';
+  LED_WHITE(1)       <= not oob_3_reg(0); --additional_reg(31); --'0';
   LED_WHITE(0)       <= not status(0); --'0';
 
   LED_RJ_GREEN(0)    <= not status_raw(0 * 8 + 7); -- A0