OpenCores
URL https://opencores.org/ocsvn/bluespec-h264/bluespec-h264/trunk

Subversion Repositories bluespec-h264

[/] [bluespec-h264/] [trunk/] [test-post-synth/] [test.pl] - Blame information for rev 100

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 89 jamey.hick
#!/usr/bin/perl
2
# The MIT License
3
 
4
# Copyright (c) 2006-2007 Massachusetts Institute of Technology
5
 
6
# Permission is hereby granted, free of charge, to any person obtaining a copy
7
# of this software and associated documentation files (the "Software"), to deal
8
# in the Software without restriction, including without limitation the rights
9
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
# copies of the Software, and to permit persons to whom the Software is
11
# furnished to do so, subject to the following conditions:
12
# The above copyright notice and this permission notice shall be included in
13
# all copies or substantial portions of the Software.
14
 
15
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
# THE SOFTWARE.
22
 
23
#build the code.
24
 
25
# build the golden decoder
26
`cd ../test/decoder/ldecod && make`;
27
 
28 95 jamey.hick
@h264files = `ls ./h264`;
29 89 jamey.hick
 
30
foreach(@h264files)
31
{
32
   chomp($_);
33
 
34
  print $_;
35
  print " ";
36 95 jamey.hick
  `cp ./h264/$_  input.264`;
37 89 jamey.hick
  system("wc input.264 | awk \'{printf(\"%08x\\n%08x\\n\", \$3, \$3, \$3, \$3)}\' > input_size.hex");
38
  `perl ../test/hexfilegen.pl input.264`;
39
  system("./simv | grep \"OUT\" | awk \'{print \$2}\' >  out.hex");
40
  `perl ../test/dehex.pl out.hex out_hw.yuv`;
41
  `../test/decoder/bin/ldecod.exe -i input.264 -o out_gold.yuv`;
42
  $out=`diff -q out_gold.yuv out_hw.yuv`;
43
  print $out;
44
  print "\n";
45
}
46
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.