From: Jan Michel Date: Wed, 6 Jan 2016 17:07:38 +0000 (+0100) Subject: Adding flexible FPGA type to compile script X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=3b77f154a53d0975880a1d417e8ddca33c4a8627;p=trb3sc.git Adding flexible FPGA type to compile script --- diff --git a/scripts/compile.pl b/scripts/compile.pl index 45025dd..e9d0f58 100755 --- a/scripts/compile.pl +++ b/scripts/compile.pl @@ -6,6 +6,13 @@ use FileHandle; use Getopt::Long; use Term::ANSIColor qw(:constants); + +my $FAMILYNAME="LatticeECP3"; +my $DEVICENAME="LFE3-150EA"; +my $PACKAGE="FPBGA1156"; +my $SPEEDGRADE="8"; + + my %config = do "config_compile.pl"; @@ -26,6 +33,11 @@ my $twr_number_of_errors = $config{twr_number_of_errors} || 10; my $pinout_file = $config{pinout_file} || $TOPNAME; my $nodelist_file = $config{nodelist_file} || 'nodelist.txt'; +$FAMILYNAME = $config{Familyname} if $config{Familyname}; +$DEVICENAME = $config{Devicename} if $config{Devicename}; +$PACKAGE = $config{Package} if $config{Package}; +$SPEEDGRADE = $config{Speedgrade} if $config{Speedgrade}; + ################################################################################### #Settings for this project @@ -109,10 +121,7 @@ $ENV{'SYNPLIFY_BINARY'}=$config{synplify_binary}; -my $FAMILYNAME="LatticeECP3"; -my $DEVICENAME="LFE3-150EA"; -my $PACKAGE="FPBGA1156"; -my $SPEEDGRADE="8"; + my $WORKDIR = "workdir"; unless(-d $WORKDIR) { @@ -132,7 +141,7 @@ if($con==1 || $all==1){ my $c = "cat ../pinout/basic_constraints.lpf >> $WORKDIR/$TOPNAME.lpf"; system($c); -# system("cat $TOPNAME.lpf >> $WORKDIR/$TOPNAME.lpf"); + system("cat $TOPNAME.lpf >> $WORKDIR/$TOPNAME.lpf"); if($include_TDC) { #system("cat ../../trb3sc/tdc_release/trbnet_constraints.lpf >> $WORKDIR/$TOPNAME.lpf");