From: Jan Michel Date: Tue, 20 Oct 2015 11:40:38 +0000 (+0200) Subject: Two new options for compile script: Option to use a par guide file (-g) and specifiyi... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=f78b1c5c7f40947c6549945c71701212ca8aae9c;p=trb3sc.git Two new options for compile script: Option to use a par guide file (-g) and specifiying the synplify binary (not needed for config_compile_gsi) --- diff --git a/scripts/compile.pl b/scripts/compile.pl index 7d4156e..3f30ee8 100755 --- a/scripts/compile.pl +++ b/scripts/compile.pl @@ -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);