]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
CTS: Make Mainz A2 receiver module work again (hopefully)
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 16:11:46 +0000 (18:11 +0200)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 16:11:46 +0000 (18:11 +0200)
cts/source/mainz_a2_recv.vhd
cts/trb3_central.vhd

index c6a923afdea1d2b5f8ff3d718d5fdefa74f14d27..22ff00adfc55e59a00d8862591a0502c895263c9 100644 (file)
@@ -19,6 +19,7 @@ entity mainz_a2_recv is
                                                        -- the external trigger id is sent on SERIAL_IN
 
                TRG_SYNC_OUT : out std_logic;                           -- sync. to CLK
+               TRG_ASYNC_OUT : out std_logic;            -- Asynchronous for TDC
 
                                                                                                                                                                --data output for read-out
                TRIGGER_IN              : in    std_logic;
@@ -73,7 +74,6 @@ architecture arch1 of mainz_a2_recv is
 
        signal timeout_seen : std_logic := '0';
 
-       signal trg_async                : std_logic;
        signal trg_sync                 : std_logic;
        signal trg_sync_old : std_logic;
        
@@ -93,6 +93,7 @@ begin
 
        timer_tick_1us <= TIMER_TICK_1US_IN;
        TRG_SYNC_OUT     <= trg_sync;
+       TRG_ASYNC_OUT    <= EXT_TRG_IN;
        trg_sync                         <= EXT_TRG_IN when rising_edge(CLK);
        trg_sync_old     <= trg_sync     when rising_edge(CLK);
        reg_SERIAL_IN    <= SERIAL_IN    when rising_edge(CLK);
index a6bfcd2167b2474256fcd80d97f1f6d3274667da..dad64271485da92e5a0600e16080ec681ec27886 100644 (file)
@@ -617,6 +617,7 @@ begin
         TIMER_TICK_1US_IN => timer_ticks(0),
         SERIAL_IN         => CLK_EXT(3),
         EXT_TRG_IN        => CLK_EXT(4),
+        TRG_ASYNC_OUT     => tdc_inputs(1),
         TRG_SYNC_OUT      => cts_ext_trigger,
         TRIGGER_IN        => cts_rdo_trg_data_valid,