]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Update TDC Project and Config files
authorJan Michel <j.michel@gsi.de>
Wed, 3 Mar 2021 14:37:33 +0000 (15:37 +0100)
committerJan Michel <j.michel@gsi.de>
Wed, 3 Mar 2021 14:40:19 +0000 (15:40 +0100)
32PinAddOn/config.vhd
ADA_Addon/config.vhd
ADA_Addon/config_compile_frankfurt.pl
ADA_Addon/trb3_periph_ADA.prj
gpin/config_compile_frankfurt.pl
gpin/trb3_periph_gpin.prj
trb3_gbe/trb3_central_gbe.prj
wasa/config.vhd
wasa/par.p2t
wasa/trb3_periph_padiwa.prj

index e671bf3830cd18b0c99e10395b4cc058c390229f..40e50bcfb18a62804a3b707b58d7fe69143dc4c5 100644 (file)
@@ -12,14 +12,14 @@ package config is
 --TDC settings
   constant FPGA_TYPE               : integer  := 3;  --3: ECP3, 5: ECP5
   constant NUM_TDC_MODULES         : integer range 1 to 4  := 1;  -- number of tdc modules to implement
-  constant NUM_TDC_CHANNELS        : integer range 1 to 65 := 5; -- number of tdc channels per module
-  constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6  := 6;  --the nearest power of two, for convenience reasons
+  constant NUM_TDC_CHANNELS        : integer range 1 to 65 := 9; -- number of tdc channels per module
+  constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6  := 3;  --the nearest power of two, for convenience reasons
   constant DOUBLE_EDGE_TYPE        : integer range 0 to 3  := 3;  --double edge type:  0, 1, 2,  3
   -- 0: single edge only,
   -- 1: same channel,
   -- 2: alternating channels,
   -- 3: same channel with stretcher
-  constant RING_BUFFER_SIZE        : integer range 0 to 7  := 0;  --ring buffer size
+  constant RING_BUFFER_SIZE        : integer range 0 to 7  := 7;  --ring buffer size
   -- mode:  0,  1,  2,   3,   7
   -- size: 32, 64, 96, 128, dyn
   constant TDC_DATA_FORMAT         : integer range 0 to 15 := 0;  --type of data format for the TDC
index fc0c0118f0ac25437b30859570fc077a01a3f2c6..0ceb7e6831eee7973bd67b43b2fd7c8d6ea3c666 100644 (file)
@@ -12,8 +12,8 @@ package config is
 --TDC settings
   constant FPGA_TYPE               : integer  := 3;  --3: ECP3, 5: ECP5
   constant NUM_TDC_MODULES         : integer range 1 to 4  := 1;  -- number of tdc modules to implement
-  constant NUM_TDC_CHANNELS        : integer range 1 to 65 := 17;  -- number of tdc channels per module
-  constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6  := 4;  --the nearest power of two, for convenience reasons 
+  constant NUM_TDC_CHANNELS        : integer range 1 to 65 := 33;  -- number of tdc channels per module
+  constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6  := 5;  --the nearest power of two, for convenience reasons 
   constant DOUBLE_EDGE_TYPE        : integer range 0 to 3  := 3;  --double edge type:  0, 1, 2,  3
   -- 0: single edge only,
   -- 1: same channel,
@@ -28,17 +28,17 @@ package config is
   -- 13: Debug - single fine time and the chain for the 0x3ff hits
   -- 14: Debug - single fine time and the ROM addresses for the two transitions
   -- 15: Debug - complete carry chain dump
-  constant USE_PINOUT : integer := 3; --1: normal, 3: every 4th channel (HPTDC)
+  constant USE_PINOUT : integer := 1; --1: normal, 3: every 4th channel (HPTDC)
   
   
   constant EVENT_BUFFER_SIZE       : integer range 9 to 13 := 13; -- size of the event buffer, 2**N
   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;
+  constant INCLUDE_UART           : integer  := c_NO;
   constant INCLUDE_SPI            : integer  := c_YES;
   constant INCLUDE_LCD            : integer  := c_NO;
-  constant INCLUDE_DEBUG_INTERFACE: integer  := c_YES;
+  constant INCLUDE_DEBUG_INTERFACE: integer  := c_NO;
   --constant SPI_FOR_PADI : integer := c_NO;  -- YES: PADI SPI    NO: Normal SPI
 
 --Add logic to generate configurable trigger signal from input signals.
@@ -57,7 +57,7 @@ package config is
 
 --Address settings
   constant INIT_ADDRESS           : std_logic_vector := x"F305";
-  constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"48";
+  constant BROADCAST_SPECIAL_ADDR : std_logic_vector := x"47";   --47: TOF
    
 ------------------------------------------------------------------------------
 --End of design configuration
index d2785ecca09d0507d6ce1f37e8f7696ce19e9b4c..2b17a74a2059dfd30f5da06ed22705c03c980c21 100644 (file)
@@ -2,8 +2,8 @@ TOPNAME                      => "trb3_periph_ADA",
 project_path                 => "ADA_Addon",
 lm_license_file_for_synplify => "27020\@jspc29", #"27000\@lxcad01.gsi.de";
 lm_license_file_for_par      => "1702\@hadeb05.gsi.de",
-lattice_path                 => '/d/jspc29/lattice/diamond/3.9_x64',
-synplify_path                => '/d/jspc29/lattice/synplify/L-2016.09-1/',
+lattice_path                 => '/d/jspc29/lattice/diamond/3.11_x64',
+synplify_path                => '/d/jspc29/lattice/synplify/O-2018.09-SP1/',
 # synplify_command             => "/d/jspc29/lattice/diamond/3.5_x64/bin/lin64/synpwrap -fg -options",
 #synplify_command             => "/d/jspc29/lattice/synplify/J-2014.09-SP2/bin/synplify_premier_dp",
 
index 74f4af5db3840e718a9ae4a8783e384f414f0283..6cfeea31a24c801f58a4eb779359b36c68047e32 100644 (file)
@@ -86,7 +86,7 @@ add_file -vhdl -lib work "../../trbnet/trb_net16_iobuf.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_io_multiplexer.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_trigger.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_ipudata.vhd"
-add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full.vhd"
+add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full_gbe.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full_handler_record.vhd"
 
 add_file -vhdl -lib work "../../trbnet/basics/ram_dp.vhd"
index ad46ca4a3a6ad1d2af66c5e32ef8c19516f1c7d2..465a0293b350391afc7819b109c31ab07917a78c 100644 (file)
@@ -2,8 +2,8 @@ TOPNAME                      => "trb3_periph_gpin",
 project_path                 => "gpin",
 lm_license_file_for_synplify => "27020\@jspc29", #"27000\@lxcad01.gsi.de";
 lm_license_file_for_par      => "1702\@hadeb05.gsi.de",
-lattice_path                 => '/d/jspc29/lattice/diamond/3.9_x64',
-synplify_path                => '/d/jspc29/lattice/synplify/L-2016.09-1/',
+lattice_path                 => '/d/jspc29/lattice/diamond/3.11_x64',
+synplify_path                => '/d/jspc29/lattice/synplify/P-2019.09-SP1/',
 # synplify_command             => "/d/jspc29/lattice/diamond/3.5_x64/bin/lin64/synpwrap -fg -options",
 #synplify_command             => "/d/jspc29/lattice/synplify/J-2014.09-SP2/bin/synplify_premier_dp",
 
index 64aef30128ced23b82e2f31a83047d2e2b8e3ebb..09f6cd48f5a84e226f716603d199ab0148aa3c36 100644 (file)
@@ -83,7 +83,7 @@ add_file -vhdl -lib work "../../trbnet/trb_net16_iobuf.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_io_multiplexer.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_trigger.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_ipudata.vhd"
-add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full.vhd"
+add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full_gbe.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full_handler_record.vhd"
 
 add_file -vhdl -lib work "../../trbnet/basics/ram_dp.vhd"
index cb2e0819bc012c21cf0c6940a43c7a23666847dc..378b9f8957aaea55dba2bc73ce0180a1d7c362da 100644 (file)
@@ -69,6 +69,7 @@ add_file -vhdl -lib work "../../trbnet/special/spi_flash_and_fpga_reload.vhd"
 add_file -vhdl -lib work "../../trbnet/lattice/ecp3/lattice_ecp2m_fifo.vhd"
 add_file -vhdl -lib work "../../trbnet/lattice/ecp3/fifo/fifo_18x1k_oreg.vhd"
 add_file -vhdl -lib work "../../trbnet/lattice/ecp3/fifo/fifo_18x8k_oreg.vhd"
+add_file -vhdl -lib work "../../trbnet/lattice/ecp3/fifo/fifo_36x512_oreg.vhd"
 add_file -vhdl -lib work "../../trbnet/special/uart_rec.vhd"
 add_file -vhdl -lib work "../../trbnet/special/uart_trans.vhd"
 add_file -vhdl -lib work "../../trbnet/special/uart.vhd"
@@ -134,10 +135,12 @@ add_file -vhdl -lib work "../../trbnet/gbe_trb/ipcores/ecp3/fifo_4kx18x9_wcnt.vh
 
 #trbnet and base files
 
-add_file -vhdl -lib work "../../trbnet/trb_net16_api_ipu_streaming.vhd"
-add_file -vhdl -lib work "../../trbnet/trb_net16_hub_streaming_port.vhd"
-add_file -vhdl -lib work "../../trbnet/trb_net16_hub_streaming_port_sctrl_record.vhd"
+add_file -vhdl -lib work "../../trbnet/trb_net16_api_ipu_streaming_accel.vhd"
+add_file -vhdl -lib work "../../trbnet/trb_net16_hub_streaming_port_sctrl_accel.vhd"
+#add_file -vhdl -lib work "../../trbnet/trb_net16_api_ipu_streaming.vhd"
+#add_file -vhdl -lib work "../../trbnet/trb_net16_hub_streaming_port_sctrl_record.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_ipudata.vhd"
+add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full.vhd"
 
 
 add_file -vhdl -lib work "../../trbnet/trb_net_CRC.vhd"
@@ -172,6 +175,8 @@ add_file -vhdl -lib work "../../trbnet/trb_net16_ibuf.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_api_base.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_iobuf.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_io_multiplexer.vhd"
+add_file -vhdl -lib work "../../trbnet/trb_net16_trigger.vhd"
+
 add_file -vhdl -lib work "../../trbnet/trb_net16_hub_base.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_hub_logic_2.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_hub_ipu_logic.vhd"
index 9968ce0464c788dd2d01d92db414d37e317b2ac6..f4e3ba0b5f732cc2a3c3c268b6e60f52db34a404 100644 (file)
@@ -13,8 +13,8 @@ package config is
 --TDC settings
   constant FPGA_TYPE               : integer  := 3;  --3: ECP3, 5: ECP5
   constant NUM_TDC_MODULES         : integer range 1 to 4  := 1;  -- number of tdc modules to implement
-  constant NUM_TDC_CHANNELS        : integer range 1 to 65 := 33;  -- number of tdc channels per module
-  constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6  := 5;  --the nearest power of two, for convenience reasons 
+  constant NUM_TDC_CHANNELS        : integer range 1 to 65 := 49;  -- number of tdc channels per module
+  constant NUM_TDC_CHANNELS_POWER2 : integer range 0 to 6  := 6;  --the nearest power of two, for convenience reasons 
   constant DOUBLE_EDGE_TYPE        : integer range 0 to 3  := 3;  --double edge type:  0, 1, 2,  3
   -- 0: single edge only,
   -- 1: same channel,
@@ -45,7 +45,7 @@ package config is
 --Add logic to generate configurable trigger signal from input signals.
   constant INCLUDE_TRIGGER_LOGIC : integer := c_YES;
   constant INCLUDE_STATISTICS    : integer := c_YES;  --Do histos of all inputs
-  constant PHYSICAL_INPUTS       : integer := 48;  --number of inputs connected
+  constant PHYSICAL_INPUTS       : integer := 52;  --number of inputs connected
   constant TRIG_GEN_OUTPUT_NUM   : integer := 4;
   constant MONITOR_INPUT_NUM     : integer := PHYSICAL_INPUTS+TRIG_GEN_OUTPUT_NUM;    
   constant TRIG_GEN_INPUT_NUM    : integer := PHYSICAL_INPUTS;
index 37870ba9559af2c429a33ef6644faf31f22b81f7..a9f69174d62621f112835f7283ea0057b54d0cfc 100644 (file)
@@ -4,7 +4,7 @@
 #-m nodelist.txt       # Controlled by the compile.pl script.
 #-n 1                          # Controlled by the compile.pl script.
 -s 12
--t 1
+-t 8
 -c 1
 -e 2
 -i 15
index a24e88c4099e4802413849b92a045c6242f52875..971b09a4911b14a58d52f27931249588a34944ad 100644 (file)
@@ -84,7 +84,7 @@ add_file -vhdl -lib work "../../trbnet/trb_net16_iobuf.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_io_multiplexer.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_trigger.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_ipudata.vhd"
-add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full.vhd"
+add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full_gbe.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net16_endpoint_hades_full_handler_record.vhd"
 
 add_file -vhdl -lib work "../../trbnet/basics/ram_dp.vhd"
@@ -145,7 +145,8 @@ add_file -vhdl -lib work "../../trbnet/media_interfaces/ecp3_sfp/sfp_1_125_int.v
 add_file -vhdl -lib work "../../trbnet/media_interfaces/trb_net16_lsm_sfp.vhd"
 add_file -vhdl -lib work "../../trbnet/media_interfaces/trb_net16_med_ecp3_sfp.vhd"
 
-add_file -vhdl -lib work "../base/cores/pll_in200_out100.vhd"
+add_file -vhdl -lib work "../../trb3sc/cores/pll_in200_out100.vhd"
+#add_file -vhdl -lib work "../base/cores/pll_in200_out100.vhd"
 add_file -vhdl -lib work "../base/code/input_to_trigger_logic_record.vhd"
 add_file -vhdl -lib work "../base/code/input_statistics.vhd"
 add_file -vhdl -lib work "../base/code/sedcheck.vhd"