Mercurial > pygar
diff config/bm/Pygar/processor_test/audio_core_benchmark.cfx @ 31:f41eef1bebfc pygar svn.32
[svn r32] Attempting to run soft core and audio
author | punk |
---|---|
date | Sat, 01 May 2010 11:50:20 -0400 |
parents | |
children | 0c775e733b81 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config/bm/Pygar/processor_test/audio_core_benchmark.cfx Sat May 01 11:50:20 2010 -0400 1.3 @@ -0,0 +1,47 @@ 1.4 +: # -*-Perl-*- 1.5 +eval 'exec perl -w "$0" ${1+"$@"}' 1.6 + if 0; 1.7 + 1.8 +## 1.9 +## Directory of hasim benchmarks 1.10 +## Remember to set this file as executable 1.11 + 1.12 +use Asim; 1.13 +use strict; 1.14 + 1.15 +my $gcfg = Asim::GenCFG->new(); 1.16 + 1.17 +my @tests = ("smipsv1_simple", 1.18 + "smipsv1_addiu", 1.19 + "smipsv1_bne", 1.20 + "smipsv1_lw", 1.21 + "smipsv1_sw", 1.22 + "smipsv2_addiu", 1.23 + "smipsv2_addu", 1.24 + "smipsv2_andi", 1.25 + "smipsv2_and", 1.26 + "smipsv2_beq", 1.27 + "smipsv2_bgez"); 1.28 + 1.29 +my @bmarks = ("null.wav", "reuben_james_1sec.wav"); 1.30 + 1.31 +foreach my $test (@tests) { 1.32 + $gcfg->add(name => $test, 1.33 + tree => [ "tests" ], 1.34 + setup => "scripts/setup-mit-6.375-bmark-processor --group instruction-tests --isa smips $test --compare=1 data=../benchmarks/audio_processor_test/$test $test --linkto=../tools/audio_processor_test/null/checker", 1.35 + feeder => "vcs", 1.36 + feedflags => "program.0/${test}.smips.vmh", 1.37 + ccount => 800000, 1.38 + ); 1.39 +} 1.40 + 1.41 +foreach my $bmark (@bmarks) { 1.42 + $gcfg->add(name => $bmark, 1.43 + tree => [ "benchmarks" ], 1.44 + setup => "scripts/setup-mit-6.375-bmark --silent=1 --compare=1 --data=../benchmarks/audio_processor_test/$bmark $bmark --linkto=../tools/audio_processor_test/null/checker", 1.45 + feeder => "none", 1.46 + ccount => 800000, #Hmmm.... may need to edit 1.47 + ); 1.48 +} 1.49 + 1.50 +$gcfg->action(@ARGV);