]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
CTS compile script fixes to make it work for Manuel...
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Tue, 2 Dec 2014 11:59:15 +0000 (12:59 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Tue, 2 Dec 2014 11:59:15 +0000 (12:59 +0100)
cts/compile_central_frankfurt_proposal.pl

index 82514661cc34f9eb8a17dc0c2f266e77dac04302..a2907a27f48f5c8b3bab526f31b65f8e3ddf0936 100755 (executable)
@@ -22,6 +22,7 @@ my $lattice_bin_path             = "$lattice_path/bin/lin64"; # note the lin or
 my $config_vhd                   = 'config_default.vhd';
 ###################################################################################
 
+system("ln -f -s $config_vhd config.vhd");
 system("./compile_constraints.pl");
 
 symlink($CbmNetPath, '../cbmnet/cbmnet') unless (-e '../cbmnet/cbmnet');
@@ -47,17 +48,6 @@ my $DEVICENAME="LFE3-150EA";
 my $PACKAGE="FPBGA1156";
 my $SPEEDGRADE="8";
 
-my $WORKDIR = "workdir";
-unless(-d $WORKDIR) {
-  mkdir $WORKDIR or die "can't create workdir '$WORKDIR': $!";
-  system ("cd workdir; ../../base/linkdesignfiles.sh; cd ..;");
-  system ("ln -sfT ../tdc_release/Adder_304.ngo $WORKDIR/Adder_304.ngo");
-  system ("cp ../base/mulipar_nodelist_example.txt $WORKDIR/nodelist.txt");
-}
-
-system("ln -sfT $lattice_path $WORKDIR/lattice-diamond");
-system("ln -f -s $config_vhd config.vhd");
-
 #generate timestamp
 my $t=time;
 my $fh = new FileHandle(">version.vhd");
@@ -86,7 +76,7 @@ my $c="$synplify_path/bin/synplify_premier_dp -batch $TOPNAME.prj";
 $r=execute($c, "do_not_exit" );
 
 
-chdir $WORKDIR;
+chdir './workdir';
 $fh = new FileHandle("<$TOPNAME".".srr");
 my @a = <$fh>;
 $fh -> close;