OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [tools/] [simulation/] [run_sims] - Diff between revs 126 and 128

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 126 Rev 128
Line 123... Line 123...
my @components   = yp::lib::find_components("socgen:componentConfiguration",$vendor,$project);
my @components   = yp::lib::find_components("socgen:componentConfiguration",$vendor,$project);
 
 
foreach my $component (@components)
foreach my $component (@components)
   {
   {
   my $sogen_file     = $parser->parse_file(yp::lib::find_socgen("socgen:componentConfiguration",$vendor,$project,$component));
   my $sogen_file     = $parser->parse_file(yp::lib::find_socgen("socgen:componentConfiguration",$vendor,$project,$component));
 
   my $sim_library_path   = $sogen_file->findnodes("//socgen:componentConfiguration/socgen:sim/socgen:library_path/text()")->to_literal;
 
 
 
 
 
 
   #/*********************************************************************************************/
   #/*********************************************************************************************/
   #/   files for simulation                                                                     */
   #/   files for simulation                                                                     */
   #/                                                                                            */
   #/                                                                                            */
   #/*********************************************************************************************/
   #/*********************************************************************************************/
Line 136... Line 139...
      my($sim_name)     = $i_name ->findnodes('./text()')->to_literal ;
      my($sim_name)     = $i_name ->findnodes('./text()')->to_literal ;
      my($sim_configuration)  = $i_name ->findnodes('../socgen:configuration/text()')->to_literal ;
      my($sim_configuration)  = $i_name ->findnodes('../socgen:configuration/text()')->to_literal ;
      my($sim_variant)  = $i_name ->findnodes('../socgen:variant/text()')->to_literal ;
      my($sim_variant)  = $i_name ->findnodes('../socgen:variant/text()')->to_literal ;
 
 
      print "  SIMs     $sim_name        $sim_configuration   $sim_variant   ";
      print "  SIMs     $sim_name        $sim_configuration   $sim_variant   ";
      chdir  ".${work_site}/${vendor}__${project}/ip/${component}/sim/icarus/${sim_name}";
      chdir  ".${work_site}/${vendor}__${project}${sim_library_path}/icarus/${sim_name}";
 
 
      $cmd ="iverilog -f filelist.sim  -D VCD TestBench 2>   ./${sim_name}_sim.log  | tee >> ./${$sim_name}_sim.log \n";
      $cmd ="iverilog   -f ../../testbenches/filelists/${sim_variant}.sim -D VCD  2>   ./${sim_name}_elab.log  | tee >> ./${$sim_name}_elab.log \n";
      if (system($cmd)) {}
      if (system($cmd)) {}
      $cmd ="./a.out 2>    ./${sim_name}_sim.log     | tee >> ./${sim_name}_sim.log  \n";
      $cmd ="./a.out 2>    ./${sim_name}_sim.log     | tee >> ./${sim_name}_sim.log  \n";
      if (system($cmd)) {}
      if (system($cmd)) {}
      $cmd ="grep PASSED  ./${sim_name}_sim.log \n";
      $cmd ="grep PASSED  ./${sim_name}_sim.log \n";
      if (system($cmd)) {}
      if (system($cmd)) {}
Line 158... Line 161...
      {
      {
      my($sim_name)     = $i_name ->findnodes('./text()')->to_literal ;
      my($sim_name)     = $i_name ->findnodes('./text()')->to_literal ;
      my($sim_configuration)  = $i_name ->findnodes('../socgen:configuration/text()')->to_literal ;
      my($sim_configuration)  = $i_name ->findnodes('../socgen:configuration/text()')->to_literal ;
      my($sim_variant)  = $i_name ->findnodes('../socgen:variant/text()')->to_literal ;
      my($sim_variant)  = $i_name ->findnodes('../socgen:variant/text()')->to_literal ;
      print "  VSIMs     $sim_name        $sim_configuration   $sim_variant   ";
      print "  VSIMs     $sim_name        $sim_configuration   $sim_variant   ";
      chdir  ".${work_site}/${vendor}__${project}/ip/${component}/sim/verilator/${sim_name}";
      chdir  ".${work_site}/${vendor}__${project}${sim_library_path}/verilator/${sim_name}";
      $cmd ="make verilator\n";
      $cmd ="make verilator\n";
      if (system($cmd)) {}
      if (system($cmd)) {}
      chdir $home;
      chdir $home;
      }
      }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.