Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tmw-wdc committed Aug 13, 2019
2 parents 68f4383 + 4e161e6 commit 2108e72
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions configs/swerv.config
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ This script documents, and generates the {`#} define/include files for verilog/a
User options:
-target = { default, magellan }
-target = { default, generic }
use default settings for one of the targets
-set=var=value
Expand Down Expand Up @@ -246,8 +246,8 @@ my $perlfile = "$build_path/perl_configs.pl";

my $no_secondary_alu=0;

if ($target eq "magellan") {
print "$self: Using target \"magellan\"\n";
if ($target eq "generic") {
print "$self: Using target \"generic\"\n";
if (!defined($ret_stack_size)) { $ret_stack_size=4; }
if (!defined($btb_size)) { $btb_size=32; }
if (!defined($bht_size)) { $bht_size=128; }
Expand Down Expand Up @@ -297,7 +297,7 @@ elsif ($target eq "default") {
# default is AXI bus
}
else {
die "$self: ERROR! Unsupported target \"$target\". Supported targets are: \"default,magellan\"!\n";
die "$self: ERROR! Unsupported target \"$target\". Supported targets are: \"default,generic\"!\n";
}

# general stuff - can't set from command line other than -set
Expand Down Expand Up @@ -1254,11 +1254,11 @@ for ($rgn = 15;$rgn >= 0; $rgn--) {
}
$config{memmap}{debug_sb_mem} = sprintf("0x%08x", $config{memmap}{debug_sb_mem});

# Boot magellan from ICCM
if ($target eq "magellan") {
# Boot generic from ICCM
if ($target eq "generic") {
$config{reset_vec} = $config{iccm}{iccm_sadr};
$config{testbench}{magellan} = 1;
print "$self: Setting reset_vec = ICCM start address for Magellan\n";
$config{testbench}{generic} = 1;
print "$self: Setting reset_vec = ICCM start address for Generic\n";
}


Expand Down

0 comments on commit 2108e72

Please sign in to comment.