my $par = 0;
my $timing = 0;
my $bitgen = 0;
+my $con = 0;
my $result = GetOptions (
"h|help" => \$help,
"m|mpar=i" => \$nrNodes,
"a|all" => \$all,
+ "c|con" => \$con,
"s|syn" => \$syn,
"mp|map" => \$map,
"p|par" => \$par,
print "-h --help\tPrints the usage manual.\n";
print "-a --all\tRun all compile script. By default the script is going to run the whole process.\n";
print "-s --syn\tRun synthesis part of the compile script.\n";
+ print "-c --con\tCompile constraints only.\n";
print "-mp --map\tRun map part of the compile script.\n";
print "-p --par\tRun par part of the compile script.\n";
print "-t --timing\tRun timing analysis part of the compile script.\n";
system("ln -sfT $lattice_path $WORKDIR/lattice-diamond");
-#create full lpf file
-print GREEN, "Generating constraints file...\n\n", RESET;
-system("cp ../pinout/$pinout_file.lpf $WORKDIR/$TOPNAME.lpf");
-system("cat ../pinout/trb3sc_basic.lpf >> $WORKDIR/$TOPNAME.lpf");
-system("cat ../pinout/basic_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
-system("cat $TOPNAME.lpf >> $WORKDIR/$TOPNAME.lpf");
-
-if($include_TDC) {
- system("cat ../tdc_release/trbnet_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
- system("cat ../tdc_release/tdc_constraints_64.lpf >> $WORKDIR/$TOPNAME.lpf");
- system("cat ../tdc_release/unimportant_lines_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
- }
-if($include_GBE) {
+if($con==1 || $all==1){
+ #create full lpf file
+ print GREEN, "Generating constraints file...\n\n", RESET;
+ system("cp ../pinout/$pinout_file.lpf $WORKDIR/$TOPNAME.lpf");
+ system("cat ../pinout/trb3sc_basic.lpf >> $WORKDIR/$TOPNAME.lpf");
+ system("cat ../pinout/basic_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
+ system("cat $TOPNAME.lpf >> $WORKDIR/$TOPNAME.lpf");
+
+ if($include_TDC) {
+ system("cat ../tdc_release/trbnet_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
+ system("cat ../tdc_release/tdc_constraints_64.lpf >> $WORKDIR/$TOPNAME.lpf");
+ system("cat ../tdc_release/unimportant_lines_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");
+ }
+ if($include_GBE) {
- }
+ }
-#copy delay line to project folder
-if($include_TDC) {
- system("rm $WORKDIR/Adder_304.ngo");
- system("ln -s ../../../tdc/base/cores/ecp3/TDC/Adder_304.ngo $WORKDIR/Adder_304.ngo");
+ #copy delay line to project folder
+ if($include_TDC) {
+ system("rm $WORKDIR/Adder_304.ngo");
+ system("ln -s ../../../tdc/base/cores/ecp3/TDC/Adder_304.ngo $WORKDIR/Adder_304.ngo");
+ }
}
-
+
#generate timestamp
my $t=time;
my $fh = new FileHandle(">$WORKDIR/version.vhd");