]> jspc29.x-matter.uni-frankfurt.de Git - dirich.git/commitdiff
Committing missing changes from depc363
authorJan Michel <j.michel@gsi.de>
Fri, 1 Apr 2016 08:44:18 +0000 (10:44 +0200)
committerJan Michel <j.michel@gsi.de>
Fri, 1 Apr 2016 08:44:18 +0000 (10:44 +0200)
dirich/compile.pl
dirich/config.vhd
dirich/config_compile_gsi.pl
dirich/diamond/dirich.ldf
dirich/dirich.prj
dirich/dirich.vhd
dirich/par.p2t
pinout/dirich.lpf

index 8a19aa687e9ce69f56c9c1ed9bf6f366dcc1b061..933ff60e0f11ce91609a877af1352c5888dd6f93 120000 (symlink)
@@ -1 +1 @@
-../../trb3sc/scripts/compile.pl
\ No newline at end of file
+../../trb3/scripts/compile.pl
\ No newline at end of file
index a16a010c5a97f653be59c037c6b7e396d75450f9..39c7d80efdea0721436e0c266ab9b1c060a991d2 100644 (file)
@@ -11,15 +11,21 @@ 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 := 41;  -- number of tdc channels per module
+  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,
   -- 2: alternating channels,
   -- 3: same channel with stretcher
-  constant RING_BUFFER_SIZE         : integer range 0 to 7  := 7;  --ring buffer size:  0, 1, 2,  3,  7   --> change names in constraints file
-                                                                  --ring buffer size: 32,64,96,128,dyn
+  constant RING_BUFFER_SIZE         : integer range 0 to 7  := 0;  --ring buffer size
+  -- mode:  0,  1,  2,   3,   7
+  -- size: 32, 64, 96, 128, dyn
+  constant TDC_DATA_FORMAT          : integer range 0 to 3 := 0;  --type of data format for the TDC
+  --  0: Single fine time as the sum of the two transitions
+  --  1: Double fine time, individual transitions
+  -- 14: Debug - single fine time and the ROM addresses for the two transitions
+  -- 15: Debug - complete carry chain dump
 
   constant EVENT_BUFFER_SIZE        : integer range 9 to 13 := 13; -- size of the event buffer, 2**N
   constant EVENT_MAX_SIZE           : integer := 4096;             --maximum event size. Should not exceed EVENT_BUFFER_SIZE/2
@@ -120,4 +126,4 @@ function generateIncludedFeatures return std_logic_vector is
 
   constant INCLUDED_FEATURES : std_logic_vector(63 downto 0) := generateIncludedFeatures;    
 
-end package body;
\ No newline at end of file
+end package body;
index e7f0dff2b687af8ccae7e91206d42a5385adfd96..cc419beb85b3aa3e8fbbf761d76eccb7c8b29381 100644 (file)
@@ -13,6 +13,8 @@ synplify_command             => "/opt/synplicity/K-2015.09/bin/synplify_premier_
 
 nodelist_file                => '../nodes_lxhadeb07.txt',
 pinout_file                  => 'dirich',
+par_options                  => '../par.p2t',
+
     
 include_TDC                  => 1,
 include_GBE                  => 0,
index 42fd87b48d90ef7e321261f1c4e7c8348270a2d5..ce805210d944d61d2a45d756e445991b4a3d8ee5 100644 (file)
@@ -2,7 +2,7 @@
 <BaliProject version="3.2" title="dirich" device="LFE5UM-85F-8BG381C" default_implementation="project">
     <Options/>
     <Implementation title="project" dir="project" description="project" synthesis="synplify" default_strategy="Strategy1">
-        <Options def_top="med_ecp5_sfp_sync" top="dirich"/>
+        <Options def_top="bit_sync" top="dirich"/>
         <Source name="../workdir/version.vhd" type="VHDL" type_short="VHDL">
             <Options lib="work"/>
         </Source>
         <Source name="../../../trbnet/media_interfaces/ecp5/serdes_sync_0/serdes_sync_0.vhd" type="VHDL" type_short="VHDL">
             <Options/>
         </Source>
+        <Source name="../tdc_release/TDC_record.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/tdc_version.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/TriggerHandler.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/up_counter.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/Stretcher_B.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/Stretcher.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/tdc_components.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/Stretcher_A.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/risingEdgeDetect.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/Readout_record.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/hit_mux.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/Encoder_288_Bit.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/Channel.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/Channel_200.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/BusHandler_record.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/bit_sync.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../tdc_release/ROM_encoder_ecp5.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
+        <Source name="../../../tdc/base/cores/ecp5/FIFO/FIFO_36x128_OutReg/FIFO_36x128_OutReg.vhd" type="VHDL" type_short="VHDL">
+            <Options/>
+        </Source>
         <Source name="../workdir/dirich.lpf" type="Logic Preference" type_short="LPF">
             <Options/>
         </Source>
index 02e46e3b0461892ffbab9d5294e8e7068b3b3088..bea3ecb94527ade2e4f89b73ec1c2289f4bffd91 100644 (file)
@@ -201,12 +201,12 @@ add_file -vhdl -lib work "tdc_release/TDC_record.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/base/cores/ecp5/FIFO/FIFO_DC_36x128_DynThr_OutReg/FIFO_DC_36x128_DynThr_OutReg.vhd"
-add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_DC_36x128_OutReg.vhd"
-add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_DC_36x64_OutReg.vhd"
-add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_DC_36x32_OutReg.vhd"
+add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_DC_36x128_OutReg/FIFO_DC_36x128_OutReg.vhd"
+add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_DC_36x64_OutReg/FIFO_DC_36x64_OutReg.vhd"
+add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_DC_36x32_OutReg/FIFO_DC_36x32_OutReg.vhd"
 add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_36x128_OutReg/FIFO_36x128_OutReg.vhd"
-add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_36x64_OutReg.vhd"
-add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_36x32_OutReg.vhd"
+add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_36x64_OutReg/FIFO_36x64_OutReg.vhd"
+add_file -vhdl -lib work "../../tdc/base/cores/ecp5/FIFO/FIFO_36x32_OutReg/FIFO_36x32_OutReg.vhd"
 add_file -vhdl -lib work "../../tdc/base/cores/ecp5/PLL/pll_in125_out33/pll_in125_out33.vhd"
 
 
index 94ff711425177cade6490a4be9b4461a9c08ccc5..5cace1b8e77c0b57cff56ef2ab230a80b1f4f38c 100644 (file)
@@ -395,8 +395,8 @@ THE_PWM_GEN : entity work.pwm_generator
   -- For ToT Measurements
   gen_double : if DOUBLE_EDGE_TYPE = 2 generate
     Gen_Hit_In_Signals : for i in 1 to 16 generate
-      hit_in_i(i*2-1) <= INPUT(i-1);
-      hit_in_i(i*2)   <= not INPUT(i-1);
+      hit_in_i(i*2-1) <= INPUT(i);
+      hit_in_i(i*2)   <= not INPUT(i);
     end generate Gen_Hit_In_Signals;
   end generate;
 
index f72683d37d07df4478957ce4d254eeb1207e5d15..37870ba9559af2c429a33ef6644faf31f22b81f7 100644 (file)
@@ -1,21 +1,69 @@
 -w
--i 15
--l 5
--n 1
 -y
+-l 5
+#-m nodelist.txt       # Controlled by the compile.pl script.
+#-n 1                          # Controlled by the compile.pl script.
 -s 12
--t 24
+-t 1
 -c 1
 -e 2
-#-g guidefile.ncd
-#-m nodelist.txt
-# -w
-# -i 6
-# -l 5
-# -n 1
-# -t 1
-# -s 1
-# -c 0
-# -e 0
+-i 15
+-exp parCDP=1:parCDR=1:parPlcInLimit=0:parPlcInNeighborSize=1:parPathBased=ON:parHold=ON:parHoldLimit=10000:paruseNBR=1:
+
+
+#General PAR Command Line Options
+#  -w    With this option, any files generated will overwrite existing files
+#        (e.g., any .par, .pad files).
+#  -y    Adds the Delay Summary Report in the .par file and creates the delay
+#        file (in .dly format) at the end of the par run.
+#
+#PAR Placement Command Line Options
+#  -l    Specifies the effort level of the design from 1 (simplest designs)
+#        to 5 (most complex designs).
+#  -m     Multi-tasking option. Controlled by the compile.pl script.
+#  -n    Sets the number of iterations performed at the effort level
+#        specified by the -l option. Controlled by the compile.pl script.
+#  -s     Save the number of best results for this run.
+#  -t    Start placement at the specified cost table. Default is 1.
+#
+#PAR Routing Command Line Options
+#  -c    Run number of cost-based cleanup passes of the router.
+#  -e    Run number of delay-based cleanup passes of the router on
+#        completely-routed designs only.
+#  -i    Run a maximum number of passes, stopping earlier only if the routing
+#        goes to 100 percent completion and all constraints are met.
 #
--exp parCDP=1:parCDR=1:parPlcInLimit=0:parPlcInNeighborSize=1:parPathBased=ON:parHold=ON:parHoldLimit=10000:paruseNBR=1
+#PAR Explorer Command Line Options
+#  parCDP            Enable the congestion-driven placement (CDP) algorithm. CDP is
+#                    compatible with all Lattice FPGA device families; however, most
+#                    benefit has been demonstrated with benchmarks targeted to ECP5,
+#                    LatticeECP2/M, LatticeECP3, and LatticeXP2 device families.
+#  parCDR            Enable the congestion-driven router (CDR) algorithm.
+#                    Congestion-driven options like parCDR and parCDP can improve
+#                    performance given a design with multiple congestion “hotspots.” The
+#                    Layer > Congestion option of the Design Planner Floorplan View can
+#                    help visualize routing congestion. Large congested areas may prevent
+#                    the options from finding a successful solution.
+#                    CDR is compatible with all Lattice FPGA device families however most
+#                    benefit has been demonstrated with benchmarks targeted to ECP5,
+#                    LatticeECP2/M,LatticeECP3, and LatticeXP2 device families. 
+#  paruseNBR         NBR Router or Negotiation-based routing option. Supports all
+#                    FPGA device families except LatticeXP and MachXO.
+#                    When turned on, an alternate routing engine from the traditional
+#                    Rip-up-based routing selection (RBR) is used. This involves an
+#                    iterative routing algorithm that routes connections to achieve
+#                    minimum delay cost. It does so by computing the demand on each
+#                    routing resource and applying cost values per node. It will
+#                    complete when an optimal solution is arrived at or the number of
+#                    iterations is reached.
+#  parPathBased              Path-based placement option. Path-based timing driven
+#                    placement will yield better performance and more
+#                    predictable results in many cases. 
+#  parHold           Additional hold time correction option. This option
+#                    forces the router to automatically insert extra wires to compensate for the
+#                    hold time violation. 
+#  parHoldLimit              This option allows you to set a limit on the number of
+#                    hold time violations to be processed by the auto hold time correction option
+#                    parHold. 
+#  parPlcInLimit              Cannot find in the online help
+#  parPlcInNeighborSize        Cannot find in the online help
index 012f2a580fac4097befa7656f37e613eee653712..f8cda3d955f51662fde49a31ef62e52e5f4cdb85 100644 (file)
@@ -147,4 +147,4 @@ LOCATE COMP "TEST_LINE[12]"                         SITE "M1";
 LOCATE COMP "TEST_LINE[13]"                         SITE "P4";
 LOCATE COMP "TEST_LINE[14]"                         SITE "N1";
 DEFINE PORT GROUP "TEST_group" "TEST*" ;
-IOBUF GROUP  "TEST_group" IO_TYPE=LVCMOS25  DRIVE=8 BANK_VCCIO=2.5;
\ No newline at end of file
+IOBUF GROUP  "TEST_group" IO_TYPE=LVCMOS25  DRIVE=8 BANK_VCCIO=2.5;