script/synth_merge.pl untested

filter: Statementstmt 0.0% 0 / 32 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 8 MC/DCmcdc 0.0% 0 / 5 Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 58 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2  
3 use strict;
4 use warnings;
5 use 5.012;
6 use autodie;
7  
8 use Pod::Help qw(-h --help);
9 use Getopt::Std;
10 use Text::Cadenceparser;
11  
12  
13 my %opts;
14  
15 # Extract the power and area file options if they are passed.
16 getopt('pa', \%opts);
17  
18 Pod::Help->help() if (!defined $opts{a} && !defined $opts{p});
19  
20 # Set defaul values for the mode based on what files are specced
21 my $mode;
22 $mode = 'area' if (defined $opts{a});
23 $mode = 'active' if (defined $opts{p});
24  
25 # And override in case they are apssed as argument
26 $mode = $ARGV[0] || $mode;
27 my $threshold = $ARGV[1] || '';
28  
29  
30 my $parser = Text::Cadenceparser->new(
31 'key' => $mode,
32 'threshold' => $threshold,
33 'area_rpt' => $opts{a},
34 'power_rpt' => $opts{p}
35 );
36 $parser->report();
37  
38 exit;
39  
40 # ABSTRACT: Merge and sort the area and power reports of Cadence synthesis runs
41 # PODNAME: synth_merge.pl
42  
43 __END__