From e5d9100c9251d69def218185ac1893b6b3991df4 Mon Sep 17 00:00:00 2001 From: Cahit Date: Thu, 2 Jul 2015 15:55:15 +0200 Subject: [PATCH] edited compile script for cbmtof design --- cbmtof/cbmtof.ldf | 309 ----------------------------------- cbmtof/cbmtof.prj | 58 ++++--- cbmtof/cbmtof.vhd | 2 +- cbmtof/compile.pl | 1 + cbmtof/config.vhd | 6 +- cbmtof/config_compile.pl | 1 + cbmtof/config_compile_gsi.pl | 17 ++ cbmtof/currentRelease | 1 - cbmtof/tdc_release | 1 + scripts/compile.pl | 2 + 10 files changed, 57 insertions(+), 341 deletions(-) delete mode 100644 cbmtof/cbmtof.ldf create mode 120000 cbmtof/compile.pl create mode 120000 cbmtof/config_compile.pl create mode 100644 cbmtof/config_compile_gsi.pl delete mode 120000 cbmtof/currentRelease create mode 120000 cbmtof/tdc_release diff --git a/cbmtof/cbmtof.ldf b/cbmtof/cbmtof.ldf deleted file mode 100644 index a6d33e7..0000000 --- a/cbmtof/cbmtof.ldf +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cbmtof/cbmtof.prj b/cbmtof/cbmtof.prj index bbe2ed0..8c3e0d9 100644 --- a/cbmtof/cbmtof.prj +++ b/cbmtof/cbmtof.prj @@ -52,11 +52,11 @@ impl -active "workdir" #add_file options add_file -vhdl -lib work "version.vhd" -add_file -vhdl -lib work "currentRelease/tdc_version.vhd" +add_file -vhdl -lib work "tdc_release/tdc_version.vhd" add_file -vhdl -lib work "config.vhd" add_file -vhdl -lib work "../../trbnet/trb_net_std.vhd" add_file -vhdl -lib work "../../trbnet/trb_net_components.vhd" -add_file -vhdl -lib "work" "../base/trb3_components.vhd" +add_file -vhdl -lib work "../base/trb3_components.vhd" add_file -vhdl -lib work "../../trbnet/trb_net16_term_buf.vhd" add_file -vhdl -lib work "../../trbnet/trb_net_CRC.vhd" @@ -142,7 +142,7 @@ add_file -vhdl -lib work "../../trbnet/media_interfaces/ecp3_sfp/sfp_0_200_ctc. 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 "../base/cores/pll_in200_out100.vhd" add_file -vhdl -lib work "../../trbnet/media_interfaces/sync/med_sync_define.vhd" @@ -157,28 +157,32 @@ add_file -vhdl -lib work "../../trbnet/media_interfaces/ecp3_sfp/serdes_sync_0.v #Change path to tdc release also in compile script! ############### -#add_file -vhdl -lib "work" "currentRelease/Adder_304.vhd" -add_file -vhdl -lib "work" "currentRelease/bit_sync.vhd" -add_file -vhdl -lib "work" "currentRelease/BusHandler.vhd" -add_file -vhdl -lib "work" "currentRelease/Channel.vhd" -add_file -vhdl -lib "work" "currentRelease/Channel_200.vhd" -add_file -vhdl -lib "work" "currentRelease/Encoder_304_Bit.vhd" -add_file -vhdl -lib "work" "currentRelease/LogicAnalyser.vhd" -add_file -vhdl -lib "work" "currentRelease/Readout.vhd" -add_file -vhdl -lib "work" "currentRelease/ROM_encoder_3.vhd" -add_file -vhdl -lib "work" "currentRelease/ShiftRegisterSISO.vhd" -add_file -vhdl -lib "work" "currentRelease/TDC.vhd" -add_file -vhdl -lib "work" "currentRelease/TriggerHandler.vhd" -add_file -vhdl -lib "work" "currentRelease/up_counter.vhd" -add_file -vhdl -lib "work" "currentRelease/fallingEdgeDetect.vhd" -add_file -vhdl -lib "work" "currentRelease/risingEdgeDetect.vhd" -add_file -vhdl -lib "work" "currentRelease/hit_mux.vhd" -add_file -vhdl -lib "work" "../base/cores/FIFO_36x128_OutReg.vhd" -add_file -vhdl -lib "work" "../base/cores/FIFO_DC_36x128_OutReg.vhd" -add_file -vhdl -lib "work" "../base/code/input_to_trigger_logic.vhd" -add_file -vhdl -lib "work" "../base/code/input_statistics.vhd" -add_file -vhdl -lib "work" "../base/code/sedcheck.vhd" - - -add_file -vhdl -lib "work" "cbmtof.vhd" +#add_file -vhdl -lib work "tdc_release/Adder_304.vhd" +add_file -vhdl -lib work "tdc_release/tdc_components.vhd" +add_file -vhdl -lib work "tdc_release/bit_sync.vhd" +add_file -vhdl -lib work "tdc_release/BusHandler.vhd" +add_file -vhdl -lib work "tdc_release/Channel.vhd" +add_file -vhdl -lib work "tdc_release/Channel_200.vhd" +add_file -vhdl -lib work "tdc_release/Encoder_304_Bit.vhd" +add_file -vhdl -lib work "tdc_release/LogicAnalyser.vhd" +add_file -vhdl -lib work "tdc_release/Readout.vhd" +add_file -vhdl -lib work "tdc_release/ROM_encoder_ecp3.vhd" +add_file -vhdl -lib work "tdc_release/ShiftRegisterSISO.vhd" +add_file -vhdl -lib work "tdc_release/Stretcher_A.vhd" +add_file -vhdl -lib work "tdc_release/Stretcher_B.vhd" +add_file -vhdl -lib work "tdc_release/Stretcher.vhd" +add_file -vhdl -lib work "tdc_release/TDC.vhd" +add_file -vhdl -lib work "tdc_release/TriggerHandler.vhd" +add_file -vhdl -lib work "tdc_release/up_counter.vhd" +add_file -vhdl -lib work "tdc_release/fallingEdgeDetect.vhd" +add_file -vhdl -lib work "tdc_release/risingEdgeDetect.vhd" +add_file -vhdl -lib work "tdc_release/hit_mux.vhd" +add_file -vhdl -lib work "../../tdc/base/cores/ecp3/FIFO/FIFO_DC_36x128_DynThr_OutReg.vhd" +add_file -vhdl -lib work "../../tdc/base/cores/ecp3/FIFO/FIFO_36x128_OutReg.vhd" +add_file -vhdl -lib work "../base/code/input_to_trigger_logic.vhd" +add_file -vhdl -lib work "../base/code/input_statistics.vhd" +add_file -vhdl -lib work "../base/code/sedcheck.vhd" + + +add_file -vhdl -lib work "cbmtof.vhd" diff --git a/cbmtof/cbmtof.vhd b/cbmtof/cbmtof.vhd index 9e76f79..c348716 120000 --- a/cbmtof/cbmtof.vhd +++ b/cbmtof/cbmtof.vhd @@ -1 +1 @@ -currentRelease/cbmtof.vhd \ No newline at end of file +tdc_release/cbmtof.vhd \ No newline at end of file diff --git a/cbmtof/compile.pl b/cbmtof/compile.pl new file mode 120000 index 0000000..4456748 --- /dev/null +++ b/cbmtof/compile.pl @@ -0,0 +1 @@ +../scripts/compile.pl \ No newline at end of file diff --git a/cbmtof/config.vhd b/cbmtof/config.vhd index f48d2a8..76c5b96 100644 --- a/cbmtof/config.vhd +++ b/cbmtof/config.vhd @@ -12,8 +12,8 @@ package config is --TDC settings 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 := 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 + 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 := 2; --double edge type: 0, 1, 2, 3 -- 0: single edge only, -- 1: same channel, -- 2: alternating channels, @@ -35,7 +35,7 @@ package config is --Run wih 125 MHz instead of 100 MHz, use received clock from serdes or external clock input constant USE_125_MHZ : integer := c_NO; --not implemented yet! - constant USE_RXCLOCK : integer := c_YES; --not implemented yet! + constant USE_RXCLOCK : integer := c_NO; --not implemented yet! constant USE_EXTERNALCLOCK : integer := c_YES; constant USE_CLK_MANAGER_REF_TIME : integer := c_YES; --reference time through clk manager or direct diff --git a/cbmtof/config_compile.pl b/cbmtof/config_compile.pl new file mode 120000 index 0000000..67b86a0 --- /dev/null +++ b/cbmtof/config_compile.pl @@ -0,0 +1 @@ +config_compile_gsi.pl \ No newline at end of file diff --git a/cbmtof/config_compile_gsi.pl b/cbmtof/config_compile_gsi.pl new file mode 100644 index 0000000..e683d9b --- /dev/null +++ b/cbmtof/config_compile_gsi.pl @@ -0,0 +1,17 @@ +TOPNAME => "cbmtof", +lm_license_file_for_synplify => "27000\@lxcad01.gsi.de", +lm_license_file_for_par => "1702\@hadeb05.gsi.de", +lattice_path => '/opt/lattice/diamond/3.4_x64/', +synplify_path => '/opt/synplicity/J-2014.09-SP2', +#synplify_command => "/opt/lattice/diamond/3.4_x64/bin/lin64/synpwrap -fg -options", +synplify_command => "/opt/synplicity/J-2014.09-SP2/bin/synplify_premier_dp", + +#Include only necessary lpf files +include_TDC => 1, +include_GBE => 0, + +#Report settings +firefox_open => 0, +twr_number_of_errors => 20, + + diff --git a/cbmtof/currentRelease b/cbmtof/currentRelease deleted file mode 120000 index bc38bfc..0000000 --- a/cbmtof/currentRelease +++ /dev/null @@ -1 +0,0 @@ -../tdc_releases/tdc_v2.1.2 \ No newline at end of file diff --git a/cbmtof/tdc_release b/cbmtof/tdc_release new file mode 120000 index 0000000..7733c1d --- /dev/null +++ b/cbmtof/tdc_release @@ -0,0 +1 @@ +../../tdc/releases/tdc_v2.1.5 \ No newline at end of file diff --git a/scripts/compile.pl b/scripts/compile.pl index ef5f8c4..f0b5452 100755 --- a/scripts/compile.pl +++ b/scripts/compile.pl @@ -128,6 +128,8 @@ if($include_TDC) { system("ln -s ../../../tdc/base/cores/ecp3/TDC/Adder_304.ngo $WORKDIR/Adder_304.ngo"); } +system("cd workdir; ../../base/linkdesignfiles.sh; cd .."); + #generate timestamp my $t=time; my $fh = new FileHandle(">version.vhd"); -- 2.43.0