From: Jan Michel Date: Thu, 31 Jan 2019 14:19:09 +0000 (+0100) Subject: ADA Addon with extended trigger logic X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=58f32bf879299d8ce6ba723b6856dbd2defca625;p=trb3.git ADA Addon with extended trigger logic --- 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"