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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [run/] [run_all] - Blame information for rev 87

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

Line No. Rev Author Line
1 73 olivier.gi
!/bin/bash
2 2 olivier.gi
 
3 65 olivier.gi
# Disable waveform dumping
4
OMSP_NODUMP=1
5
export OMSP_NODUMP
6
 
7 2 olivier.gi
rm -rf *.log
8
 
9
# Two-Operand Arithmetic test patterns
10
../bin/msp430sim two-op_mov          | tee two-op_mov.log
11
../bin/msp430sim two-op_mov-b        | tee two-op_mov-b.log
12
../bin/msp430sim two-op_add          | tee two-op_add.log
13
../bin/msp430sim two-op_add-b        | tee two-op_add-b.log
14
../bin/msp430sim two-op_addc         | tee two-op_addc.log
15
../bin/msp430sim two-op_sub          | tee two-op_sub.log
16
../bin/msp430sim two-op_subc         | tee two-op_subc.log
17
../bin/msp430sim two-op_cmp          | tee two-op_cmp.log
18
../bin/msp430sim two-op_bit          | tee two-op_bit.log
19
../bin/msp430sim two-op_bic          | tee two-op_bic.log
20
../bin/msp430sim two-op_bis          | tee two-op_bis.log
21
../bin/msp430sim two-op_xor          | tee two-op_xor.log
22
../bin/msp430sim two-op_and          | tee two-op_and.log
23
../bin/msp430sim two-op_dadd         | tee two-op_dadd.log
24
 
25
# Conditional Jump test patterns
26
../bin/msp430sim c-jump_jeq          | tee c-jump_jeq.log
27
../bin/msp430sim c-jump_jne          | tee c-jump_jne.log
28
../bin/msp430sim c-jump_jc           | tee c-jump_jc.log
29
../bin/msp430sim c-jump_jnc          | tee c-jump_jnc.log
30
../bin/msp430sim c-jump_jn           | tee c-jump_jn.log
31
../bin/msp430sim c-jump_jge          | tee c-jump_jge.log
32
../bin/msp430sim c-jump_jl           | tee c-jump_jl.log
33
../bin/msp430sim c-jump_jmp          | tee c-jump_jmp.log
34
 
35
# Single-Operand Arithmetic test patterns
36
../bin/msp430sim sing-op_rrc         | tee sing-op_rrc.log
37
../bin/msp430sim sing-op_rra         | tee sing-op_rra.log
38
../bin/msp430sim sing-op_swpb        | tee sing-op_swpb.log
39
../bin/msp430sim sing-op_sxt         | tee sing-op_sxt.log
40
../bin/msp430sim sing-op_push        | tee sing-op_push.log
41
../bin/msp430sim sing-op_call        | tee sing-op_call.log
42
../bin/msp430sim sing-op_reti        | tee sing-op_reti.log
43
 
44
# ROM Data Read access
45
../bin/msp430sim two-op_add_rom-rd   | tee two-op_add_rom-rd.log
46
../bin/msp430sim sing-op_push_rom-rd | tee sing-op_push_rom-rd.log
47
../bin/msp430sim sing-op_call_rom-rd | tee sing-op_call_rom-rd.log
48
 
49
# Power saving modes (CPUOFF, OSCOFF, SCG1)
50
../bin/msp430sim op_modes            | tee op_modes.log
51
 
52
# Basic clock module
53
../bin/msp430sim clock_module        | tee clock_module.log
54
 
55
# Serial Debug Interface
56
../bin/msp430sim dbg_uart            | tee dbg_uart.log
57
../bin/msp430sim dbg_cpu             | tee dbg_cpu.log
58
../bin/msp430sim dbg_mem             | tee dbg_mem.log
59
../bin/msp430sim dbg_hwbrk0          | tee dbg_hwbrk0.log
60
../bin/msp430sim dbg_hwbrk1          | tee dbg_hwbrk1.log
61
../bin/msp430sim dbg_hwbrk2          | tee dbg_hwbrk2.log
62
../bin/msp430sim dbg_hwbrk3          | tee dbg_hwbrk3.log
63
 
64
# Watchdog test patterns
65
../bin/msp430sim wdt_interval        | tee wdt_interval.log
66
../bin/msp430sim wdt_watchdog        | tee wdt_watchdog.log
67
../bin/msp430sim wdt_clkmux          | tee wdt_clkmux.log
68
 
69
# GPIO test patterns
70
../bin/msp430sim gpio_rdwr           | tee gpio_rdwr.log
71
../bin/msp430sim gpio_irq            | tee gpio_irq.log
72
 
73
# Peripheral templates test patterns
74
../bin/msp430sim template_periph_8b  | tee template_periph_8b.log
75
../bin/msp430sim template_periph_16b | tee template_periph_16b.log
76
 
77
# Timer A patterns
78
../bin/msp430sim tA_modes            | tee tA_modes.log
79
../bin/msp430sim tA_compare          | tee tA_compare.log
80
../bin/msp430sim tA_output           | tee tA_output.log
81
../bin/msp430sim tA_capture          | tee tA_capture.log
82
../bin/msp430sim tA_clkmux           | tee tA_clkmux.log
83
 
84
 
85 67 olivier.gi
# Hardware multiplier test patterns
86
../bin/msp430sim mpy_basic           | tee  mpy_basic.log
87 2 olivier.gi
 
88 67 olivier.gi
 
89 2 olivier.gi
grep FAILED  *.log
90
echo ""
91
echo " ================================"
92
echo -n "| Number of passed patterns: "
93
cat *.log | grep -c PASSED
94
echo -n "| Number of failed patterns: "
95
cat *.log | grep -c FAILED
96
echo "|--------------------------------"
97
echo -n "| Number of patterns:        "
98
ls -1 *.log | wc -l
99
echo " ================================"
100
echo " Make sure passed == total"
101
echo ""
102
echo ""

powered by: WebSVN 2.1.0

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