From: Jan Michel Date: Tue, 18 Apr 2023 11:20:06 +0000 (+0200) Subject: allow to have more than 8 cts input multiplexer X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=1524e1805c7121e91688f4ef7671d1986f501c0e;p=trb3.git allow to have more than 8 cts input multiplexer --- 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) );