mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Added hardlinks to derivative configs to imperas.ic for lockstep
This commit is contained in:
parent
d55a16b678
commit
37c459ba89
@ -88,6 +88,16 @@ foreach my $key (@derivnames) {
|
||||
open(my $unmod, $configunmod) or die "Could not open file '$configunmod' $!";
|
||||
open(my $fh, '>>', $config) or die "Could not open file '$config' $!";
|
||||
|
||||
# Create symlink to imperas.ic for deriv if exists
|
||||
my $baseimperas_ic = "$ENV{WALLY}/config/$basederiv{$key}/imperas.ic";
|
||||
if (! -e $baseimperas_ic) {
|
||||
my $baseimperas_ic = "$ENV{WALLY}/config/deriv/$basederiv{$key}/config.vh";
|
||||
}
|
||||
if (-e $baseimperas_ic) { # If imperas.ic exists for base derivative, create hardlink to it
|
||||
my $imperas_ic = "$dir/imperas.ic";
|
||||
system("ln -T $baseimperas_ic $imperas_ic");
|
||||
}
|
||||
|
||||
my $datestring = localtime();
|
||||
my %hit = ();
|
||||
print $fh "// Config $key automatically derived from $basederiv{$key} on $datestring using derivgen.pl\n";
|
||||
|
@ -1 +0,0 @@
|
||||
../rv64gc/imperas.ic
|
Loading…
Reference in New Issue
Block a user