config.trigger_enable <= x"0000_0000_0000", x"ffff_ffff_fff1" after 5 us;
config.baseline_always_on <= '0'; --'1', '0' after 10 us;
-config.processing_mode <= 1;
-config.buffer_depth <= to_unsigned(24 ,11);
+config.processing_mode <= 2;
+config.buffer_depth <= to_unsigned(128 ,11);
config.samples_after <= to_unsigned(8 ,11);
config.block_count <= to_unsigned(2 , 2);
config.trigger_threshold <= to_unsigned(40 ,18);
config.check_word1 <= (others => '0');
config.check_word2 <= (others => '0');
config.check_word_enable <= '0';
+config.cfd_window <= to_unsigned(50, 8);
+config.cfd_delay <= to_unsigned(1, 4);
readout_rx.valid_notiming_trg <= '0';
when x"1a" => BUS_TX.data(31 downto 0) <= config.channel_disable(31 downto 0);
when x"1b" => BUS_TX.data(15 downto 0) <= config.channel_disable(47 downto 32);
when x"1c" => BUS_TX.data(1 downto 0) <= std_logic_vector(to_unsigned(config.processing_mode,2));
+ when x"1d" => BUS_TX.data(7 downto 0) <= std_logic_vector(config.cfd_window);
+ when x"1e" => BUS_TX.data(3 downto 0) <= std_logic_vector(config.cfd_delay);
when others => BUS_TX.ack <= '0'; BUS_TX.unknown <= '1';
end case;
elsif BUS_RX.addr >= x"0020" and BUS_RX.addr <= x"002f" then
when x"1a" => config.channel_disable(31 downto 0) <= BUS_RX.data(31 downto 0);
when x"1b" => config.channel_disable(47 downto 32) <= BUS_RX.data(15 downto 0);
when x"1c" => config.processing_mode <= to_integer(unsigned(BUS_RX.data(1 downto 0)));
+ when x"1d" => config.cfd_window <= unsigned(BUS_RX.data(7 downto 0));
+ when x"1e" => config.cfd_delay <= unsigned(BUS_RX.data(3 downto 0));
when others => BUS_TX.ack <= '0'; BUS_TX.unknown <= '1';
end case;
elsif BUS_RX.addr >= x"0020" and BUS_RX.addr <= x"002f" then