view config/bm/Pygar/processor_test/audio_core_benchmark.cfx @ 32:0c775e733b81 pygar svn.33

[svn r33] audio core benchmark script added and the benchmark setup is half-way to working
author punk
date Mon, 03 May 2010 09:53:56 -0400
parents f41eef1bebfc
children 1a21b4cd85ee
line wrap: on
line source
1 : # -*-Perl-*-
2 eval 'exec perl -w "$0" ${1+"$@"}'
3 if 0;
5 ##
6 ## Directory of hasim benchmarks
7 ## Remember to set this file as executable
9 use Asim;
10 use strict;
12 my $gcfg = Asim::GenCFG->new();
14 my @tests = ("smipsv1_simple",
15 "smipsv1_addiu",
16 "smipsv1_bne",
17 "smipsv1_lw",
18 "smipsv1_sw",
19 "smipsv2_addiu",
20 "smipsv2_addu",
21 "smipsv2_andi",
22 "smipsv2_and",
23 "smipsv2_beq",
24 "smipsv2_bgez",
25 "smipsv2_bgtz",
26 "smipsv2_blez");
28 my @bmarks = ("null.wav", "reuben_james_1sec.wav");
30 foreach my $test (@tests) {
31 $gcfg->add(name => $test,
32 tree => [ "tests" ],
33 setup => "scripts/setup-mit-6.375-bmark-audio-core --group instruction-tests --isa smips $test --compare=1 --data=../benchmarks/audio_processor_test/reuben_james_quarter_sec.wav --linkto=../tools/audio_processor_test/null/checker",
34 feeder => "vcs",
35 feedflags => "program.0/${test}.smips.vmh",
36 ccount => 800000,
37 );
38 }
40 foreach my $bmark (@bmarks) {
41 $gcfg->add(name => $bmark,
42 tree => [ "benchmarks" ],
43 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",
44 feeder => "none",
45 ccount => 800000, #Hmmm.... may need to edit
46 );
47 }
49 $gcfg->action(@ARGV);