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/] [smart-netrace/] [verify.perl] - Blame information for rev 48

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 48 alirezamon
#!/usr/bin/perl -w
2
package ProNOC;
3
 
4
 
5
 
6
 
7
use File::Copy::Recursive qw(dircopy);
8
use File::Basename;
9
use File::Copy;
10
use Data::Dumper;
11
use File::Find::Rule;
12
 
13
#add home dir in perl 5.6
14
use FindBin;
15
use lib $FindBin::Bin;
16
use constant::boolean;
17
 
18
 
19
 
20
 
21
use strict;
22
use warnings;
23
 
24
use base 'Class::Accessor::Fast';
25
 
26
__PACKAGE__->mk_accessors(qw{
27
        models
28
});
29
 
30
my $app = __PACKAGE__->new();
31
 
32
 
33
 
34
my $dirname = dirname(__FILE__);
35
require "$dirname/src/src.pl";
36
 
37
my $paralel_run= 4;
38
#defne minimum , maximum and increasing step of injection ratio
39
my ($MIN,$MAX,$STEP)= (5,80,25);
40
 
41
 
42
 
43
if(defined $ARGV[0]){
44
 $paralel_run= $ARGV[0] if(is_integer($ARGV[0]));
45
}
46
 
47
if(defined $ARGV[1]){
48
 $MIN= $ARGV[1] if(is_integer($ARGV[1]));
49
}
50
 
51
if(defined $ARGV[2]){
52
 $MAX= $ARGV[2] if(is_integer($ARGV[2]));
53
}
54
 
55
if(defined $ARGV[3]){
56
 $STEP= $ARGV[3] if(is_integer($ARGV[3]));
57
}
58
 
59
my @inputs =($paralel_run,$MIN,$MAX,$STEP);
60
 
61
 
62
print "Maximum number of parallel simulation is $paralel_run.\n The injection ratio is set as MIN=$MIN,MAX=$MAX,STEP=$STEP.\n";
63
 
64
 
65
 
66
 
67
my @log_report_match =("Error","Warning" );
68
 
69
 
70
 
71
save_file ("$dirname/report","Verification Results:\n");
72
 
73
 
74
copy_src_files();
75
 
76
gen_models();
77
 
78
compile_models($app,\@inputs);
79
 
80
check_compilation($app,\@log_report_match,\@inputs);
81
 
82
run_all_models($app,\@inputs);
83
 
84
 
85
 
86
print "done!\n"
87
 
88
 
89
 
90
 

powered by: WebSVN 2.1.0

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