OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [run/] [run_all_mpy] - Blame information for rev 134

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 73 olivier.gi
#!/bin/bash
2 67 olivier.gi
 
3
# Enable/Disable waveform dumping
4
OMSP_NODUMP=1
5
export OMSP_NODUMP
6
 
7 134 olivier.gi
# Choose simulator:
8
#                   - iverilog  : Icarus Verilog  (default)
9
#                   - cver      : CVer
10
#                   - verilog   : Verilog-XL
11
#                   - ncverilog : NC-Verilog
12
#                   - vcs       : VCS
13
#                   - vsim      : Modelsim
14
#                   - isim      : Xilinx simulator
15
OMSP_SIMULATOR=iverilog
16
export OMSP_SIMULATOR
17
 
18
rm -rf ./log/*.log
19
mkdir  ./log
20
 
21 67 olivier.gi
echo ""
22
echo " ===================================================="
23
echo "| WARNING: Complete Hardware Multiplier verification |"
24
echo "|         regression might take several hours.       |"
25
echo " ===================================================="
26
echo ""
27
 
28
# Hardware multiplier test patterns
29 134 olivier.gi
../bin/msp430sim mpy_basic   | tee  ./log/mpy_basic.log
30
../bin/msp430sim mpy_mpy     | tee  ./log/mpy_mpy.log
31
../bin/msp430sim mpy_mpys    | tee  ./log/mpy_mpys.log
32
../bin/msp430sim mpy_mac     | tee  ./log/mpy_mac.log
33
../bin/msp430sim mpy_macs    | tee  ./log/mpy_macs.log
34 67 olivier.gi
 
35 134 olivier.gi
grep SKIPPED ./log/*.log
36
grep FAILED  ./log/*.log
37 67 olivier.gi
echo ""
38
echo " ================================"
39 134 olivier.gi
echo -n "| Number of passed patterns : "
40
cat ./log/*.log | grep -c PASSED
41
echo -n "| Number of failed patterns : "
42
cat ./log/*.log | grep -c FAILED
43
echo -n "| Number of skipped patterns: "
44
cat ./log/*.log | grep -c SKIPPED
45 67 olivier.gi
echo "|--------------------------------"
46
echo -n "| Number of patterns:        "
47 134 olivier.gi
ls -1 ./log/*.log | wc -l
48 67 olivier.gi
echo " ================================"
49
echo " Make sure passed == total"
50
echo ""
51
echo ""

powered by: WebSVN 2.1.0

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