]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
add TDC configuration option for dual edge in different channels
authorJan Michel <j.michel@gsi.de>
Tue, 28 Jun 2022 14:51:49 +0000 (16:51 +0200)
committerJan Michel <j.michel@gsi.de>
Tue, 28 Jun 2022 14:51:49 +0000 (16:51 +0200)
tdctemplate/config_48_crate_4conn_start_dualchannel.vhd
tdctemplate/trb3sc_tdctemplate.vhd

index 8775760a1dd58dce605f8cd30e74bd89f521df4d..440fdc05df8e9e0b6dc2ecdbcfd7fda8a796b675 100644 (file)
@@ -48,8 +48,8 @@ package config is
     constant USE_RXCLOCK            : integer := c_NO;
    
 --Address settings   
-    constant INIT_ADDRESS           : std_logic_vector := x"F3CF";
-    constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"74";
+    constant INIT_ADDRESS           : std_logic_vector := x"F3C6";
+    constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"76";
    
 --set to 0 for backplane serdes, set to 3 for front SFP serdes
     constant SERDES_NUM             : integer := 0;
index 79fc1b586381c7b14c24b4c2de192e53cfc690d3..2056ad6bf572f386a4a711538e86d20bc1a4ce5d 100644 (file)
@@ -313,7 +313,7 @@ end generate;
   THE_BUS_HANDLER : entity work.trb_net16_regio_bus_handler_record
     generic map(
       PORT_NUMBER      => 5,
-      PORT_ADDRESSES   => (0 => x"d000", 1 => x"b000", 2 => x"d300", 3 => x"c000", 4 => x"b000", others => x"0000"),
+      PORT_ADDRESSES   => (0 => x"d000", 1 => x"b000", 2 => x"d300", 3 => x"c000", 4 => x"e000", others => x"0000"),
       PORT_ADDR_MASK   => (0 => 12, 1 => 9, 2 => 1, 3 => 12, 4 => 5, others => 0),
       PORT_MASK_ENABLE => 1
       )
@@ -401,10 +401,10 @@ end generate;
 -- I/O
 ---------------------------------------------------------------------------
 
---  RJ_IO(1 downto 0) <= trig_gen_out_i(3 downto 2);
+  RJ_IO(1 downto 0) <= trig_gen_out_i(3 downto 2);
   RJ_IO(3 downto 2) <= trig_gen_out_i(1 downto 0);
-  RJ_IO(0) <= clk_full_osc;
-  RJ_IO(1) <= clk_sys;
+  --RJ_IO(0) <= clk_full_osc;
+  --RJ_IO(1) <= clk_sys;
 
   BACK_GPIO(1 downto 0)  <= (others => 'Z');
   BACK_GPIO(3 downto 2)  <= trig_gen_out_i(3 downto 2);