my $lm_license_file_for_par = $config{lm_license_file_for_par};
my $synplify_command = $config{synplify_command};
-my $synplify_locale_workaround = "en_US\@UTF-8";
+#my $synplify_locale_workaround = "en_US\@UTF-8";
+my $synplify_locale_workaround = "C";
my $lattice_bin_path = "$lattice_path/bin/lin64"; # note the lin/lin64 at the end, no isfgpa needed
my $include_TDC = $config{include_TDC} || 0;
"g|guide" => \$guidefile,
);
+
+
if($help) {
print "Usage: compile_priph_gsi.de <OPTIONS><ARGUMENTS>\n\n";
print "-h --help\tPrints the usage manual.\n";
# source the standard lattice environment
$ENV{bindir}="$lattice_bin_path";
-open my $SOURCE, "bash -c '. $lattice_bin_path/diamond_env >& /dev/null; env'|" or
- die "Can't fork: $!";
-while (<$SOURCE>) {
- if (/^(.*)=(.*)/) {
- $ENV{$1} = ${2} ;
- }
-}
-close $SOURCE;
+#open my $SOURCE, "bash -c '. $lattice_bin_path/diamond_env >& /dev/null; env'|" or
+# die "Can't fork: $!";
+#while (<$SOURCE>) {
+# if (/^(.*)=(.*)/) {
+# print "setting A:$1 nach ${2}\n";
+# $ENV{$1} = ${2} ;
+# }
+#}
+#close $SOURCE;
$ENV{'PAR_DESIGN_NAME'}=$TOPNAME;
$ENV{'SYNPLIFY_BINARY'}=$config{synplify_binary};
+
+
my $FAMILYNAME="LatticeECP3";
my $DEVICENAME="LFE3-150EA";
my $PACKAGE="FPBGA1156";
system("ln -sfT $lattice_path $WORKDIR/lattice-diamond");
+
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");
+ my $c = "cat ../pinout/basic_constraints.lpf >> $WORKDIR/$TOPNAME.lpf";
+ system($c);
+
system("cat $TOPNAME.lpf >> $WORKDIR/$TOPNAME.lpf");
if($include_TDC) {
my ($c, $op) = @_;
#print "option: $op \n";
$op = "" if(!$op);
+ $c = ". $lattice_bin_path/diamond_env; " . $c;
print GREEN, "\n\ncommand to execute: $c \n", RESET;
$r=system($c);
if($r) {