From 92bef02788e8c7adb6a57fb8e55f6388a1adbc70 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 8 Nov 2019 15:26:18 +0100 Subject: [PATCH] fix issue with trigger window --- releases/tdc_v2.3/Readout_record.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0