From: Jan Michel Date: Fri, 8 Nov 2019 14:26:18 +0000 (+0100) Subject: fix issue with trigger window X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=92bef02788e8c7adb6a57fb8e55f6388a1adbc70;p=tdc.git fix issue with trigger window --- diff --git a/releases/tdc_v2.3/Readout_record.vhd b/releases/tdc_v2.3/Readout_record.vhd index 7a6cfa4..26e5c24 100644 --- a/releases/tdc_v2.3/Readout_record.vhd +++ b/releases/tdc_v2.3/Readout_record.vhd @@ -241,7 +241,7 @@ begin -- behavioral begin if rising_edge(CLK_100) then TW_pre <= std_logic_vector(unsigned(trg_time)-trg_win_pre); - TW_post <= std_logic_vector(resize(signed('0' & trg_time)+trg_win_post,39)); + TW_post <= std_logic_vector(resize(unsigned(signed('0' & trg_time)+trg_win_post),39)); end if; end process TrigWinCalculation;