Added hardlinks to derivative configs to imperas.ic for lockstep

This commit is contained in:
slmnemo 2024-11-03 19:51:30 -08:00
parent d55a16b678
commit 37c459ba89
2 changed files with 10 additions and 1 deletions

View File

@ -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";

View File

@ -1 +0,0 @@
../rv64gc/imperas.ic