OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [perl_gui/] [lib/] [perl/] [compile.pl] - Diff between revs 48 and 56

Show entire file | Details | Blame | View Log

Rev 48 Rev 56
Line 356... Line 356...
 
 
        return $table;
        return $table;
 
 
}
}
 
 
 
my $cpu_num;
sub select_parallel_process_num {
sub select_parallel_process_num {
        my ($self,$name,$top,$target_dir)=@_;
        my ($self,$name,$top,$target_dir)=@_;
        my $table = def_table(2, 2, FALSE);
        my $table = def_table(2, 2, FALSE);
        my $col=0;
        my $col=0;
        my $row=0;
        my $row=0;
 
 
        #get total number of processor in the system
        #get total number of processor in the system
        my $cmd = "nproc\n";
        my $cmd = "nproc\n";
        my $cpu_num=4;
        if(!defined $cpu_num){
        my ($stdout,$exit,$stderr)=run_cmd_in_back_ground_get_stdout($cmd);
        my ($stdout,$exit,$stderr)=run_cmd_in_back_ground_get_stdout($cmd);
        if(length $stderr>1){
        if(length $stderr>1){
                #nproc command has failed. set default 4 paralel processor
                #nproc command has failed. set default 4 paralel processor
 
 
        }else {
        }else {
                 my ($number ) = $stdout =~ /(\d+)/;
                 my ($number ) = $stdout =~ /(\d+)/;
                 if (defined  $number ){
                 if (defined  $number ){
                        $cpu_num =$number if  ($number > 0 );
                        $cpu_num =$number if  ($number > 0 );
                 }
                 }
        }
        }
 
        }
        ($row,$col)= add_param_widget ($self,"Paralle run:" , "cpu_num", 1, 'Spin-button', "1,$cpu_num,1","specify the number of processors the Verilator can use at once to run parallel compilations/simulations", $table,$row,$col,1, 'compile', undef,undef,'vertical');
        ($row,$col)= add_param_widget ($self,"Paralle run:" , "cpu_num", 1, 'Spin-button', "1,$cpu_num,1","specify the number of processors the Verilator can use at once to run parallel compilations/simulations", $table,$row,$col,1, 'compile', undef,undef,'vertical');
        return $table;
        return $table;
}
}
 
 
sub select_parallel_thread_num {
sub select_parallel_thread_num {
        my ($self,$name,$top,$target_dir)=@_;
        my ($self,$name,$top,$target_dir)=@_;
        my $table = def_table(2, 2, FALSE);
        my $table = def_table(2, 2, FALSE);
        my $col=0;
        my $col=0;
        my $row=0;
        my $row=0;
 
 
        #get total number of processor in the system
        #get total number of processor in the system
        my $cmd = "nproc\n";
        my $cmd = "nproc\n";
        my $cpu_num=4;
        if(!defined $cpu_num){
        my ($stdout,$exit,$stderr)=run_cmd_in_back_ground_get_stdout($cmd);
        my ($stdout,$exit,$stderr)=run_cmd_in_back_ground_get_stdout($cmd);
        if(length $stderr>1){
        if(length $stderr>1){
                #nproc command has failed. set default 4 paralel processor
                #nproc command has failed. set default 4 paralel processor
 
 
        }else {
        }else {
                 my ($number ) = $stdout =~ /(\d+)/;
                 my ($number ) = $stdout =~ /(\d+)/;
                 if (defined  $number ){
                 if (defined  $number ){
                        $cpu_num =$number if  ($number > 0 );
                        $cpu_num =$number if  ($number > 0 );
                 }
                 }
        }
        }
 
        }
        ($row,$col)= add_param_widget ($self,"Thread run:" , "thread_num", 1, 'Spin-button', "1,$cpu_num,1","specify the number of threads the Verilator can use at once in one simulation", $table,$row,$col,1, 'compile', undef,undef,'vertical');
        ($row,$col)= add_param_widget ($self,"Thread run:" , "thread_num", 1, 'Spin-button', "1,$cpu_num,1","specify the number of threads the Verilator can use at once in one simulation", $table,$row,$col,1, 'compile', undef,undef,'vertical');
        return $table;
        return $table;
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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