I've developed a perl script to run UVM-SystemC example codes.
#!/usr/bin/perl
use warnings;
use strict;
sub main();
my $CLIBS = "\$SYSTEMC_HOME/lib-linux64";
my $UVMCLIBS = "\$UVMSYSTEMC_HOME/lib-linux64";
my $CINC = "\$SYSTEMC_HOME/include";
my $UVMCINC = "\$UVMSYSTEMC_HOME/include";
main();
sub main(){
eval{
$ARGV[0];
}or do{
print("\n\tRun the script with SystemC <filename> as argument\n\n");
exit 1;
};
system "g++ -I$CINC -I$UVMCINC -L$CLIBS -lsystemc -L$UVMCLIBS -luvm-systemc $ARGV[0] -Wl,-rpath,$CLIBS -Wl,-rpath,$UVMCLIBS";
#system "./sim";
}
Here, $ variables point to respective paths of SystemC and UVM-SystemC installation. And script expects *.cpp file as argument to $ARGV[0] Both libraries example commands running properly by make check
but the script is giving error. Detailed error log error.log