# HG changeset patch # User rlm # Date 1273080238 14400 # Node ID 97d1959f7c5ca020c5becc8d64d74f732f22b7fc # Parent adcfa79d2c674e40b10ca5cd599e505347e1f691 [svn r48] changed sctipt to use our own programs, changed rlp.wav and rlp1.wav to be shorter diff -r adcfa79d2c67 -r 97d1959f7c5c benchProgs/thru.smips.vmh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/benchProgs/thru.smips.vmh Wed May 05 13:23:58 2010 -0400 @@ -0,0 +1,90 @@ + +@400 // <__start> +3c1d0002 // 00001000 lui $sp,0x2 +0c00042c // 00001004 jal 10b0
+00000000 // 00001008 nop +00000000 // 0000100c nop + +@404 // +24020001 // 00001010 li $v0,1 +03e00008 // 00001014 jr $ra + +@406 // +4084a800 // 00001018 mtc0 $a0,$21 +08000407 // 0000101c j 101c +00000000 // 00001020 nop + +@409 // +40845000 // 00001024 mtc0 $a0,$10 +03e00008 // 00001028 jr $ra +00000000 // 0000102c nop + +@40c // +24020001 // 00001030 li $v0,1 +4082d000 // 00001034 mtc0 $v0,$26 +03e00008 // 00001038 jr $ra +00000000 // 0000103c nop + +@410 // +4003c800 // 00001040 mfc0 $v1,$25 +24020001 // 00001044 li $v0,1 +10620004 // 00001048 beq $v1,$v0,105c +4005e000 // 0000104c mfc0 $a1,$28 +00000000 // 00001050 nop +ac850000 // 00001054 sw $a1,0($a0) +03e00008 // 00001058 jr $ra +ac800000 // 0000105c sw $zero,0($a0) +00001021 // 00001060 move $v0,$zero +03e00008 // 00001064 jr $ra + +@41a // +4084d800 // 00001068 mtc0 $a0,$27 +03e00008 // 0000106c jr $ra +00000000 // 00001070 nop + +@41d // +27bdffa8 // 00001074 addiu $sp,$sp,-88 +afbf0050 // 00001078 sw $ra,80($sp) +0c000409 // 0000107c jal 1024 +27a40010 // 00001080 addiu $a0,$sp,16 +0c000410 // 00001084 jal 1040 +00021400 // 00001088 sll $v0,$v0,0x10 +10400003 // 0000108c beqz $v0,109c +8fa40010 // 00001090 lw $a0,16($sp) +0c00041a // 00001094 jal 1068 +08000420 // 00001098 j 1080 +00002021 // 0000109c move $a0,$zero +0c000409 // 000010a0 jal 1024 +8fbf0050 // 000010a4 lw $ra,80($sp) +27bd0058 // 000010a8 addiu $sp,$sp,88 +03e00008 // 000010ac jr $ra + +@42c //
+27bdffe8 // 000010b0 addiu $sp,$sp,-24 +24040001 // 000010b4 li $a0,1 +afbf0010 // 000010b8 sw $ra,16($sp) +0c00041d // 000010bc jal 1074 +0c000404 // 000010c0 jal 1010 +00402021 // 000010c4 move $a0,$v0 +0c000406 // 000010c8 jal 1018 +0c00040c // 000010cc jal 1030 +8fbf0010 // 000010d0 lw $ra,16($sp) +27bd0018 // 000010d4 addiu $sp,$sp,24 +03e00008 // 000010d8 jr $ra +00000000 // 000010dc nop + +@438 // <_heapend> +00000000 // 000010e0 nop + +@439 // +00000000 // 000010e4 nop +00000000 // 000010e8 nop +00000000 // 000010ec nop + +@43c // <.reginfo> +a000003c // 000010f0 sb $zero,60($zero) +00000000 // 000010f4 nop +00000000 // 000010f8 nop +00000000 // 000010fc nop +00000000 // 00001100 nop +000090d0 // 00001104 0x90d0 diff -r adcfa79d2c67 -r 97d1959f7c5c benchmarks/audio_processor_test/rlp.wav Binary file benchmarks/audio_processor_test/rlp.wav has changed diff -r adcfa79d2c67 -r 97d1959f7c5c benchmarks/audio_processor_test/rlp1.wav Binary file benchmarks/audio_processor_test/rlp1.wav has changed diff -r adcfa79d2c67 -r 97d1959f7c5c config/bm/Pygar/processor_test/audio_core_benchmark.cfx --- a/config/bm/Pygar/processor_test/audio_core_benchmark.cfx Wed May 05 12:43:51 2010 -0400 +++ b/config/bm/Pygar/processor_test/audio_core_benchmark.cfx Wed May 05 13:23:58 2010 -0400 @@ -11,7 +11,9 @@ my $gcfg = Asim::GenCFG->new(); -my @tests = ("smipsv1_simple", +my @tests = ( + "thru", + "smipsv1_simple", "smipsv1_addiu", "smipsv1_bne", "smipsv1_lw", @@ -27,6 +29,12 @@ my @bmarks = ("null.wav", "reuben_james_1sec.wav", "rlp.wav"); + + + + + + foreach my $test (@tests) { $gcfg->add(name => $test, tree => [ "tests" ], diff -r adcfa79d2c67 -r 97d1959f7c5c modules/bluespec/Pygar/core/audioCorePipeline.bsv --- a/modules/bluespec/Pygar/core/audioCorePipeline.bsv Wed May 05 12:43:51 2010 -0400 +++ b/modules/bluespec/Pygar/core/audioCorePipeline.bsv Wed May 05 13:23:58 2010 -0400 @@ -49,6 +49,11 @@ module [CONNECTED_MODULE] mkConnectedApplication (); Core core <- mkCore; + // RLM:: + // the simple existance of this additional core causes the dreaded + // beast to emerge --- the ASSERTION FAILURE: sw/model/stats-device.cpp:317 Cycle:0 + //stats device: Duplicate entry DATA_CACHE_NUM_WRITEBACKS, postion 0 + //Core core1 <- mkCore; Reg#(int) cycle <- mkReg(0); // Reg#(Bit#(32)) ac_fini <- mkReg(0); diff -r adcfa79d2c67 -r 97d1959f7c5c scripts/setup-mit-6.375-bmark-audio-core --- a/scripts/setup-mit-6.375-bmark-audio-core Wed May 05 12:43:51 2010 -0400 +++ b/scripts/setup-mit-6.375-bmark-audio-core Wed May 05 13:23:58 2010 -0400 @@ -70,6 +70,9 @@ print "DST: $dstdir\n"; print "BASE: $basedir\n"; +$pygarRoot = "$srcdir/.."; + + if (! defined($group)) { $group = $bmark; } @@ -87,15 +90,25 @@ mkdir("program.${context}") or ErrorExit("Failed to make program directory"); chdir("program.${context}") or ErrorExit("Failed to cd to program directory"); + #print "***********************\n\n$benchmark_root --- ${benchmark_root}\n\n******************************\n"; + if (defined($binary)) { $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${binary}"; } + + elsif (-f "$pygarRoot/benchProgs/${bmark}.${isa}.vmh"){ + print"\n*******************\n rlm:using speciel Pygar program\n**************************\n"; + $src_prog = "$pygarRoot/benchProgs/${bmark}.${isa}.vmh";} + elsif (-f "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.bin") { $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.bin"; } elsif (-f "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.vmh") { $src_prog = "${benchmark_root}/hasim/${isa}/${group}/${bmark}.${isa}.vmh"; } + + + else { print STDERR "Can't find binary in ${benchmark_root}/hasim/${isa}/${group}\n"; exit(1);