diff --git a/hdl/lvl_threshold.vhd b/hdl/lvl_threshold.vhd index b39b3340bc247928256f98c84c1e93705c2f0340..ca6ab610cda478b19bebbb119d73f4323d198c46 100644 --- a/hdl/lvl_threshold.vhd +++ b/hdl/lvl_threshold.vhd @@ -28,13 +28,13 @@ architecture rtl of lvl_threshold is signal sign : std_logic; signal thresh_and : std_logic; - signal thresh_or : std_logic; + signal thresh_nor : std_logic; begin sign <= s_axis_tdata_cor(C_W_COR-1); thresh_and <= and_reduce(s_axis_tdata_cor(C_W_COR-2 downto C_W_COR-G_N_BTH-1)); - thresh_or <= or_reduce(s_axis_tdata_cor(C_W_COR-2 downto C_W_COR-G_N_BTH-1)); + thresh_nor <= not or_reduce(s_axis_tdata_cor(C_W_COR-2 downto C_W_COR-G_N_BTH-1)); p_main:process(clk, rst_n) begin @@ -49,7 +49,7 @@ begin if s_axis_tvalid = '1' and enable_thresh = '1' then if sign = '1'then -- negative - if thresh_or = '1' then + if thresh_nor = '1' then thresh_reached <= '1'; end if; else diff --git a/hdl/top_corr_matrix.vhd b/hdl/top_corr_matrix.vhd index 4f005572a5be4c486782756e35eb3d108239342c..ea44d024ba7efb5927c10a19cf28b573f4620bcb 100644 --- a/hdl/top_corr_matrix.vhd +++ b/hdl/top_corr_matrix.vhd @@ -233,7 +233,7 @@ begin s_axis_tvalid => ser_tvalid, enable_thresh => mm_a2l.CONTROL.ENABLE_THRESH.data(0), - rst_thresh => mm_a2l.CONTROL.ENABLE_THRESH.data(0), + rst_thresh => mm_a2l.CONTROL.RST_THRESH.data(0), thresh_reached => thresh_reached );