From 1524e1805c7121e91688f4ef7671d1986f501c0e Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 18 Apr 2023 13:20:06 +0200 Subject: [PATCH] allow to have more than 8 cts input multiplexer --- cts/source/cts_trigger.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cts/source/cts_trigger.vhd b/cts/source/cts_trigger.vhd index 7cf62ed..af0629e 100755 --- a/cts/source/cts_trigger.vhd +++ b/cts/source/cts_trigger.vhd @@ -243,12 +243,12 @@ begin gen_coin: for i in 0 to TRIGGER_COIN_COUNT - 1 generate my_coin: CTS_TRG_COIN generic map ( - INPUT_COUNT => EFFECTIVE_INPUT_COUNT + INPUT_COUNT => min(EFFECTIVE_INPUT_COUNT,8) ) port map ( CLK_IN => CLK_IN, RST_IN => RESET_IN, - DATA_IN => trigger_inputs_i, + DATA_IN => trigger_inputs_i(min(EFFECTIVE_INPUT_COUNT,7) downto 0), TRIGGER_OUT => coins_i(i), CONFIG_IN => coin_config_i(i) ); -- 2.43.0