Line 1... |
Line 1... |
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
# $Id: config_wrapper 402 2011-08-05 18:56:44Z mueller $
|
# $Id: config_wrapper 435 2011-12-04 20:15:25Z mueller $
|
#
|
#
|
# Copyright 2010-2011 by Walter F.J. Mueller
|
# Copyright 2010-2011 by Walter F.J. Mueller
|
#
|
#
|
# This program is free software; you may redistribute and/or modify it under
|
# This program is free software; you may redistribute and/or modify it under
|
# the terms of the GNU General Public License as published by the Free
|
# the terms of the GNU General Public License as published by the Free
|
Line 12... |
Line 12... |
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# for complete details.
|
# for complete details.
|
#
|
#
|
# Revision History:
|
# Revision History:
|
# Date Rev Version Comment
|
# Date Rev Version Comment
|
|
# 2011-12-03 435 1.1.5 add nexys3 support;
|
# 2011-08-04 402 1.1.4 add atlys support;
|
# 2011-08-04 402 1.1.4 add atlys support;
|
# 2011-07-25 399 1.1.3 add nexys2-500 support; bsdl path for sp605
|
# 2011-07-25 399 1.1.3 add nexys2-500 support; bsdl path for sp605
|
# 2011-07-18 395 1.1.2 cleanup bsdl path creation for jtag
|
# 2011-07-18 395 1.1.2 cleanup bsdl path creation for jtag
|
# 2011-07-17 394 1.1.1 add bit->svf conversion and config with jtag
|
# 2011-07-17 394 1.1.1 add bit->svf conversion and config with jtag
|
# 2011-07-11 393 1.1 renamed from impact_wrapper; add function parameter,
|
# 2011-07-11 393 1.1 renamed from impact_wrapper; add function parameter,
|
Line 41... |
Line 42... |
$opts{board} = "s3board";
|
$opts{board} = "s3board";
|
}
|
}
|
if (not defined $opts{path}) {
|
if (not defined $opts{path}) {
|
$opts{path} = "xc3s1000" if $opts{board} eq "s3board";
|
$opts{path} = "xc3s1000" if $opts{board} eq "s3board";
|
$opts{path} = "xc3s1200e" if $opts{board} eq "nexys2";
|
$opts{path} = "xc3s1200e" if $opts{board} eq "nexys2";
|
|
$opts{path} = "xc6slx16" if $opts{board} eq "nexys3";
|
$opts{path} = "xc6slx45" if $opts{board} eq "atlys";
|
$opts{path} = "xc6slx45" if $opts{board} eq "atlys";
|
$opts{path} = "xc6slx45t" if $opts{board} eq "sp605";
|
$opts{path} = "xc6slx45t" if $opts{board} eq "sp605";
|
}
|
}
|
|
|
sub print_help;
|
sub print_help;
|
Line 83... |
Line 85... |
$pfpga = 1;
|
$pfpga = 1;
|
} elsif ($board eq "nexys2" && $ipath eq "xc3s500e") { # nexys2-500
|
} elsif ($board eq "nexys2" && $ipath eq "xc3s500e") { # nexys2-500
|
@plist = ($ipath, "xcf04s");
|
@plist = ($ipath, "xcf04s");
|
$pfpga = 1;
|
$pfpga = 1;
|
|
|
|
} elsif ($board eq "nexys3" && $ipath eq "xc6slx16") { # nexys3
|
|
@plist = ($ipath);
|
|
$pfpga = 1;
|
|
|
} elsif ($board eq "atlys" && $ipath eq "xc6slx45") { # atlys
|
} elsif ($board eq "atlys" && $ipath eq "xc6slx45") { # atlys
|
@plist = ($ipath);
|
@plist = ($ipath);
|
$pfpga = 1;
|
$pfpga = 1;
|
|
|
} elsif ($board eq "sp605" && $ipath eq "xc6slx45t") { # sp605
|
} elsif ($board eq "sp605" && $ipath eq "xc6slx45t") { # sp605
|
@plist = ("xccace", $ipath);
|
@plist = ("xccace", $ipath);
|
$pfpga = 2;
|
$pfpga = 2;
|
} else {
|
} else {
|
print STDERR "config_wrapper-E: only s3board/nexys2/sp605 supported\n";
|
print STDERR
|
|
"config_wrapper-E: only s3board/nexys2,3/atlys/sp605 supported\n";
|
exit 1;
|
exit 1;
|
}
|
}
|
|
|
my @blist;
|
my @blist;
|
foreach my $part (@plist) {
|
foreach my $part (@plist) {
|