From 58f32bf879299d8ce6ba723b6856dbd2defca625 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Thu, 31 Jan 2019 15:19:09 +0100 Subject: [PATCH] ADA Addon with extended trigger logic --- ADA_Addon/config.vhd | 2 +- ADA_Addon/trb3_periph_ADA.prj | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ADA_Addon/config.vhd b/ADA_Addon/config.vhd index cd47b33..fc0c011 100644 --- a/ADA_Addon/config.vhd +++ b/ADA_Addon/config.vhd @@ -32,7 +32,7 @@ package config is constant EVENT_BUFFER_SIZE : integer range 9 to 13 := 13; -- size of the event buffer, 2**N - constant EVENT_MAX_SIZE : integer := 2048; --maximum event size. Should not exceed EVENT_BUFFER_SIZE/2 + constant EVENT_MAX_SIZE : integer := 1000; --maximum event size. Should not exceed EVENT_BUFFER_SIZE/2 --Include SPI on AddOn connector constant INCLUDE_UART : integer := c_YES; diff --git a/ADA_Addon/trb3_periph_ADA.prj b/ADA_Addon/trb3_periph_ADA.prj index 12f240c..74f4af5 100644 --- a/ADA_Addon/trb3_periph_ADA.prj +++ b/ADA_Addon/trb3_periph_ADA.prj @@ -183,6 +183,17 @@ add_file -vhdl -lib work "../../tdc/base/cores/ecp3/FIFO/FIFO_36x64_OutReg.vhd" add_file -vhdl -lib work "../../tdc/base/cores/ecp3/FIFO/FIFO_36x32_OutReg.vhd" add_file -vhdl -lib work "../../tdc/base/cores/ecp3/PLL/pll_in125_out33.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_coin.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_delay.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_edgedetect.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_enable.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_inverter.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_logic.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_merge.vhd" +add_file -vhdl -lib work "../../triggerlogic/trigger_stretch.vhd" +add_file -vhdl -lib work "../../triggerlogic/cores/delay_shift_reg.vhd" + + if {$TDC_DATA_FORMAT == 0 | $TDC_DATA_FORMAT == 1 | $TDC_DATA_FORMAT == 14} { add_file -vhdl -lib work "tdc_release/Readout_record.vhd" add_file -vhdl -lib work "tdc_release/TriggerHandler.vhd" -- 2.51.0