]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Include MDC as option in compile.pl for TDC constraints
authorJan Michel <j.michel@gsi.de>
Wed, 3 Mar 2021 14:37:55 +0000 (15:37 +0100)
committerJan Michel <j.michel@gsi.de>
Wed, 3 Mar 2021 14:40:19 +0000 (15:40 +0100)
scripts/compile.pl

index 5d27cbbc17f5654ff5120b65389c8c52267eb741..6ffa29d461820be77b1ee79311660fb0433382ae 100755 (executable)
@@ -132,10 +132,14 @@ if ($con==1 || $all==1) {
   #system("unlink $WORKDIR/Adder_304.ngo");
 
   if ($include_TDC && $include_CTS==0) {
-    if ($TOPNAME =~ /dirich/ || $TOPNAME =~ /trb5sc/ ) {
+    if ($TOPNAME =~ /dirich/ || $TOPNAME =~ /trb5sc/) {
       system("cat tdc_release/dirich_trbnet_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
       system("cat tdc_release/dirich_tdc_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
       system("ln -s $cwd/../../tdc/base/cores/ecp5/TDC/Adder_304.ngo $WORKDIR/Adder_304.ngo");
+    } elsif ($TOPNAME =~ /mdctdc/) {
+      system("cat tdc_release/mdctdc_trbnet_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
+      system("cat tdc_release/mdctdc_tdc_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
+      system("ln -s $cwd/../../tdc/base/cores/ecp5/TDC/Adder_304.ngo $WORKDIR/Adder_304.ngo");
     } else {
 #       system("cat tdc_release/trbnet_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
       system("cat tdc_release/tdc_constraints_64.lpf >> $WORKDIR/$TOPNAME.lpf");