]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
fix config files
authorJan Michel <j.michel@gsi.de>
Fri, 9 Feb 2018 17:10:14 +0000 (18:10 +0100)
committerJan Michel <j.michel@gsi.de>
Fri, 9 Feb 2018 17:10:42 +0000 (18:10 +0100)
hub/config.vhd
tdctemplate/config_32_sfp_kel.vhd
tdctemplate/config_48_crate_4conn.vhd
tdctemplate/trb3sc_tdctemplate.vhd
template/config.vhd

index b43f22fa4639d0486a4e03a42a539818bf1be00a..ca579d597ab8aa355aafbba79309ba5356830778 100644 (file)
@@ -13,7 +13,7 @@ package config is
 
 --design options: backplane or front SFP, with or without GBE
     constant USE_BACKPLANE : integer := c_YES;
-    constant INCLUDE_GBE   : integer := c_YES;
+    constant INCLUDE_GBE   : integer := c_NO;
 
 --Runs with 120 MHz instead of 100 MHz     
     constant USE_120_MHZ            : integer := c_NO; 
@@ -140,10 +140,10 @@ function generateIncludedFeatures return std_logic_vector is
   begin
     t               := (others => '0');
     t(63 downto 56) := std_logic_vector(to_unsigned(1,8)); --table version 1
-    t(22 downto 17) := "0100111"; --sctrl via GbE
+    t(22 downto 16) := "0100111"; --sctrl via GbE
     t(23 downto 23) := std_logic_vector(to_unsigned(INCLUDE_GBE,1));
     t(27 downto 24) := std_logic_vector(to_unsigned(INTERFACE_NUM-USE_BACKPLANE,4)); --num SFPs with TrbNet
-    t(28)           := std_logic_vector(to_unsigned(USE_BACKPLANE,1));
+    t(28 downto 28) := std_logic_vector(to_unsigned(USE_BACKPLANE,1));
     t(40 downto 40) := std_logic_vector(to_unsigned(INCLUDE_LCD,1));
     t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
     t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
index 06d4558492f18558bef0f0f720e3b1dcba7068d2..1aa4584f27e3e3036e121cc20dd9516782387d56 100644 (file)
@@ -37,7 +37,7 @@ package config is
 
 --Runs with 120 MHz instead of 100 MHz     
     constant USE_120_MHZ            : integer := c_NO; 
-    constant USE_200MHZOSCILLATOR   : integer := c_NO;
+    constant USE_200MHZOSCILLATOR   : integer := c_YES;
     constant USE_EXTERNAL_CLOCK     : integer := c_YES; --'no' not implemented.
     constant CLOCK_FAST_SELECT      : integer := c_NO; --fast clock select (135us) or slow (280ms)?
     
@@ -90,7 +90,7 @@ package config is
 ------------------------------------------------------------------------------
     type intlist_t is array(0 to 7) of integer;
     type hw_info_t is array(0 to 7) of unsigned(31 downto 0);
-    constant HW_INFO_BASE            : unsigned(31 downto 0) := x"95000000";
+    constant HW_INFO_BASE            : unsigned(31 downto 0) := x"9500B000";  --Change depening on pinout
     
     constant CLOCK_FREQUENCY_ARR  : intlist_t := (100,120, others => 0);
     constant MEDIA_FREQUENCY_ARR  : intlist_t := (200,240, others => 0);
@@ -125,7 +125,7 @@ function generateIncludedFeatures return std_logic_vector is
     t(14 downto 12) := std_logic_vector(to_unsigned(RING_BUFFER_SIZE,3));
     t(15)           := '1'; --TDC
     t(17 downto 16) := std_logic_vector(to_unsigned(NUM_TDC_MODULES-1,2));
-    t(28)           := std_logic_vector(to_unsigned(3-SERDES_NUM,1));
+    t(28 downto 28) := std_logic_vector(to_unsigned(3-SERDES_NUM,1));
     t(40 downto 40) := std_logic_vector(to_unsigned(INCLUDE_LCD,1));
     t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
     t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
index 147e599ef13243442cdac4ffa24281d4151d679c..0224d6d8670f74dee95e537df4693970eb0210a0 100644 (file)
@@ -49,7 +49,7 @@ package config is
     constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"70";
    
 --set to 0 for backplane serdes, set to 3 for front SFP serdes
-    constant SERDES_NUM             : integer := 3;
+    constant SERDES_NUM             : integer := 0;
     
     constant INCLUDE_UART           : integer  := c_NO;
     constant INCLUDE_SPI            : integer  := c_YES;
@@ -125,7 +125,7 @@ function generateIncludedFeatures return std_logic_vector is
     t(14 downto 12) := std_logic_vector(to_unsigned(RING_BUFFER_SIZE,3));
     t(15)           := '1'; --TDC
     t(17 downto 16) := std_logic_vector(to_unsigned(NUM_TDC_MODULES-1,2));
-    t(28)           := std_logic_vector(to_unsigned(3-SERDES_NUM,1));
+    t(28 downto 28) := std_logic_vector(to_unsigned(3-SERDES_NUM,1));
     t(40 downto 40) := std_logic_vector(to_unsigned(INCLUDE_LCD,1));
     t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
     t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));
index e6a75733eb68d0b05d4caf529cba142695e07175..7e30989f031d71490d593893391c260025e5db29 100644 (file)
@@ -183,11 +183,11 @@ begin
       DEBUG_OUT      => debug_clock_reset
       );
 
-  pll_calibration : entity work.pll_in125_out33
-    port map (
-      CLK   => CLK_SUPPL_PCLK,
-      CLKOP => clk_cal,
-      LOCK  => open);
+--   pll_calibration : entity work.pll_in125_out33
+--     port map (
+--       CLK   => CLK_SUPPL_PCLK,
+--       CLKOP => clk_cal,
+--       LOCK  => open);
 
 -- GSR_N <= reset_i;      
       
@@ -480,7 +480,7 @@ TEST_LINE <=   med_stat_debug(15 downto 0);
       CLK_READOUT        => clk_sys,    -- Clock for the readout
       REFERENCE_TIME     => TRIG_LEFT,  -- Reference time input
       HIT_IN             => hit_in_i(NUM_TDC_CHANNELS-1 downto 1),  -- Channel start signals
-      HIT_CAL_IN         => clk_cal,    -- Hits for calibrating the TDC
+      HIT_CAL_IN         => CLK_SUPPL_PCLK,    -- Hits for calibrating the TDC
       -- Trigger signals from handler
       BUSRDO_RX          => readout_rx,
       BUSRDO_TX          => readout_tx(0),
index 1fa56affaa5c5cac3aef9e1c4422f97df6eb6147..ff252d8cf5030bd349536d5c580e223553bb73ee 100644 (file)
@@ -95,7 +95,7 @@ function generateIncludedFeatures return std_logic_vector is
   begin
     t               := (others => '0');
     t(63 downto 56) := std_logic_vector(to_unsigned(1,8)); --table version 1
-    t(28)           := std_logic_vector(to_unsigned(3-SERDES_NUM,1));
+    t(28 downto 28) := std_logic_vector(to_unsigned(3-SERDES_NUM,1));
     t(40 downto 40) := std_logic_vector(to_unsigned(INCLUDE_LCD,1));
     t(42 downto 42) := std_logic_vector(to_unsigned(INCLUDE_SPI,1));
     t(43 downto 43) := std_logic_vector(to_unsigned(INCLUDE_UART,1));