Merge branch 'master' of github.com:verilog-to-routing/vtr-verilog-to-routing
diff --git a/.gitignore b/.gitignore index f20f093..75d6e4b 100644 --- a/.gitignore +++ b/.gitignore
@@ -55,6 +55,11 @@ *~ # +# LibreOffice +# +\.~lock*\# + +# #Ctags # .tags*
diff --git a/vtr_flow/scripts/parse_vtr_task.pl b/vtr_flow/scripts/parse_vtr_task.pl index 6a67a55..19c066c 100755 --- a/vtr_flow/scripts/parse_vtr_task.pl +++ b/vtr_flow/scripts/parse_vtr_task.pl
@@ -55,6 +55,7 @@ my $calc_geomean = 0; # QoR geomeans are not computed by default; my $exp_num = 0; my $revision; +my $verbose = 0; while ( $token = shift(@ARGV) ) { @@ -83,6 +84,9 @@ elsif ( $token eq "-revision" ) { $revision = shift(@ARGV); } + elsif ( $token eq "-v" ) { + $verbose = 1; + } elsif ( $token =~ /^-/ ) { die "Invalid option: $token\n"; } @@ -412,6 +416,7 @@ my $failed = 0; print "$task_name..."; + print "\n" if $verbose; # Code to check the results against the golden results my $golden_file = "$task_path/config/golden_results.txt"; @@ -573,6 +578,8 @@ 0 .. $#golden_params; my $test_value = @test_line[$index]; my $golden_value = @golden_line[$index]; + + if ( $type{$value} eq "Range" ) { # Check because of division by 0 @@ -586,6 +593,14 @@ } else { my $ratio = $test_value / $golden_value; + + if($verbose) { + print "\tParam: $value\n"; + print "\t\tTest: $test_value\n"; + print "\t\tGolden Value: $golden_value\n"; + print "\t\tRatio: $ratio\n"; + } + if ( $ratio < $min_threshold{$value} or $ratio > $max_threshold{$value} ) {