]> jspc29.x-matter.uni-frankfurt.de Git - trb5sc.git/commitdiff
update broadcast addresses depending on design
authorJan Michel <j.michel@gsi.de>
Mon, 13 Jun 2022 10:04:14 +0000 (12:04 +0200)
committerJan Michel <j.michel@gsi.de>
Mon, 13 Jun 2022 10:04:14 +0000 (12:04 +0200)
cbmrich/config.vhd
template/config.vhd

index e24a910f250b9754ed31c206b2f3dc3051b171e8..0edc8fda64e78dab536fc8ac6100d4c0e1b70e52 100644 (file)
@@ -46,7 +46,7 @@ package config is
    
 --Address settings   
     constant INIT_ADDRESS           : std_logic_vector := x"F570";
-    constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"81";
+    constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"85";
    
     constant INCLUDE_UART           : integer  := c_YES;  --300 slices
     constant INCLUDE_SPI            : integer  := c_YES; --300 slices
index 2825860cf45eada43130170ebcd6f1414e81b7b7..c91c17889787a8a06a77a271b6ce448e0ec2ac60 100644 (file)
@@ -45,7 +45,7 @@ package config is
    
 --Address settings   
     constant INIT_ADDRESS           : std_logic_vector := x"F570";
-    constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"81";
+    constant BROADCAST_SPECIAL_ADDR : std_logic_vector;
    
     constant INCLUDE_UART           : integer  := c_YES;  --300 slices
     constant INCLUDE_SPI            : integer  := c_YES; --300 slices
@@ -95,6 +95,9 @@ package body config is
   constant CLOCK_FREQUENCY      : integer := CLOCK_FREQUENCY_ARR(USE_120_MHZ);
   constant MEDIA_FREQUENCY      : integer := MEDIA_FREQUENCY_ARR(USE_120_MHZ);
   
+  constant BROADCAST_SPECIAL_ADDR : std_logic_vector := std_logic_vector(to_unsigned(132-SERDES_NUM*3,8)); --81 (SFP) or 84 (Backplane)
+
+  
 function generateIncludedFeatures return std_logic_vector is
   variable t : std_logic_vector(63 downto 0);
   begin