]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
Two new options for compile script: Option to use a par guide file (-g) and specifiyi...
authorJan Michel <j.michel@gsi.de>
Tue, 20 Oct 2015 11:40:38 +0000 (13:40 +0200)
committerJan Michel <j.michel@gsi.de>
Tue, 20 Oct 2015 11:40:38 +0000 (13:40 +0200)
scripts/compile.pl

index 7d4156eee1da37e7c48a0d23dea9c1523087e57e..3f30ee86003b4e6e27578d0c2184a7258dceb586 100755 (executable)
@@ -42,6 +42,7 @@ my $par        = 0;
 my $timing     = 0;
 my $bitgen     = 0;
 my $con        = 0;
+my $guidefile  = 0;
 
 my $result = GetOptions (
     "h|help"   => \$help,
@@ -53,6 +54,7 @@ my $result = GetOptions (
     "p|par"    => \$par,
     "t|timing" => \$timing,
     "b|bitgen" => \$bitgen,
+    "g|guide"  => \$guidefile,
     );
 
 if($help) {
@@ -98,6 +100,7 @@ $ENV{'SYNPLIFY'}=$synplify_path;
 $ENV{'LC_ALL'}="en_US\@UTF-8";
 $ENV{'SYN_DISABLE_RAINBOW_DONGLE'}=1;
 $ENV{'LM_LICENSE_FILE'}=$lm_license_file_for_synplify;
+$ENV{'SYNPLIFY_BINARY'}=$config{synplify_binary};
 
 
 my $FAMILYNAME="LatticeECP3";
@@ -136,6 +139,14 @@ if($con==1 || $all==1){
     system("ln -s ../../../tdc/base/cores/ecp3/TDC/Adder_304.ngo $WORKDIR/Adder_304.ngo");
     }
   }
+
+if($guidefile &&  -f "$TOPNAME.ncd") {
+  system("cp $TOPNAME.ncd guidefile.ncd");
+  $guidefile = " -g guidefile.ncd "
+  }
+else {
+  $guidefile = "";
+  }
   
 #generate timestamp
 my $t=time;
@@ -296,7 +307,7 @@ if($par==1 || $all==1){
     }
     else
     {
-        $c=qq|par -f "../par.p2t" $tpmap.ncd $TOPNAME.ncd $TOPNAME.prf|;
+        $c=qq|par -f "../par.p2t"  $guidefile $tpmap.ncd $TOPNAME.ncd $TOPNAME.prf|;
         execute($c);
         #my $c="cp $TOPNAME.dir/5_1.ncd $TOPNAME.ncd";
         #system($c);