]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
re-add PLL to calibration pulse generation
authorJan Michel <j.michel@gsi.de>
Wed, 7 Mar 2018 12:38:23 +0000 (13:38 +0100)
committerJan Michel <j.michel@gsi.de>
Wed, 7 Mar 2018 12:38:23 +0000 (13:38 +0100)
cts/trb3sc_cts.vhd
tdctemplate/trb3sc_tdctemplate.vhd

index 4b5e3604482e0ac0f8c85054024e7e5b048f2880..43d972d8c0764b2eb65c0be1a3477597ca17cf4c 100644 (file)
@@ -278,7 +278,11 @@ THE_CLOCK_RESET :  entity work.clock_reset_handler
     make_reset <= last_reset_via_gbe_long and not reset_via_gbe_long;
   end process;      
 
-
+  pll_calibration : entity work.pll_in125_out33
+    port map (
+      CLK   => CLK_SUPPL_PCLK,
+      CLKOP => clk_cal,
+      LOCK  => open);
 
 ---------------------------------------------------------------------------
 -- PCSA
@@ -906,7 +910,7 @@ end generate;
       CLK_READOUT        => clk_sys,    -- Clock for the readout
       REFERENCE_TIME     => cts_trigger_out,  -- Reference time input
       HIT_IN             => hit_in_i(NUM_TDC_CHANNELS-1 downto 1),  -- Channel start signals
-      HIT_CAL_IN         => CLK_SUPPL_PCLK,    -- Hits for calibrating the TDC
+      HIT_CAL_IN         => clk_cal,    -- Hits for calibrating the TDC
       -- Trigger signals from handler
       BUSRDO_RX          => cts_rdo_rx,
       BUSRDO_TX          => cts_rdo_additional(INCLUDE_TIMESTAMP_GENERATOR),
index 7e30989f031d71490d593893391c260025e5db29..e6a75733eb68d0b05d4caf529cba142695e07175 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_SUPPL_PCLK,    -- Hits for calibrating the TDC
+      HIT_CAL_IN         => clk_cal,    -- Hits for calibrating the TDC
       -- Trigger signals from handler
       BUSRDO_RX          => readout_rx,
       BUSRDO_TX          => readout_tx(0),