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

Subversion Repositories sv_dir_tb

[/] [sv_dir_tb/] [trunk/] [examples/] [standard/] [stm/] [test_include.stm] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sckoarn
DEFINE_VAR  VAR1  0
2
DEFINE_VAR  VAR2  0
3
DEFINE_VAR  VAR3  0
4
DEFINE_VAR  VAR4  0
5
DEFINE_VAR  VAR5  0
6
DEFINE_VAR  VAR6  0
7
DEFINE_VAR  VAR7  0
8
DEFINE_VAR  VAR8  0
9
DEFINE_VAR  VAR9  0
10
 
11
--  CALL depth testing
12
TEST1_CALL:
13
  ADD_VAR VAR1  2  "The Call TEST1_CALL ...
14
  CALL $TEST2_CALL
15
RETURN_CALL
16
 
17
TEST2_CALL:
18
  ADD_VAR VAR1  2  "The Call TEST2_CALL ...
19
  CALL $TEST3_CALL
20
RETURN_CALL
21
 
22
TEST3_CALL:
23
  ADD_VAR VAR1  2  "The Call TEST3_CALL ...
24
  CALL $TEST4_CALL
25
RETURN_CALL
26
 
27
TEST4_CALL:
28
  ADD_VAR VAR1  2  "The Call TEST4_CALL ...
29
  CALL $TEST5_CALL
30
RETURN_CALL
31
 
32
TEST7_CALL:
33
  ADD_VAR VAR1  2  "The Call TEST7_CALL ...
34
RETURN_CALL
35
 
36
TEST_CALL:
37
  ADD_VAR VAR1  1  "The Call TEST_CALL ...
38
  ADD_VAR VAR2  2
39
  CALL $TEST1_CALL
40
RETURN_CALL
41
 
42
TEST5_CALL:
43
  ADD_VAR VAR1  2  "The Call TEST5_CALL ...
44
  CALL $TEST6_CALL
45
RETURN_CALL
46
 
47
TEST6_CALL:
48
  ADD_VAR VAR1  2  "The Call TEST6_CALL ...
49
  CALL $TEST7_CALL
50
RETURN_CALL
51
 
52
--  test  JUMP location
53
JUMP1_LOC:
54
 
55
--  LOOP testing
56
LOOP 10  "Loop top variable  comment??
57
  ADD_VAR VAR1  1  "Jump Loops  ...
58
  ADD_VAR VAR2  2
59
  ADD_VAR VAR3  3
60
  ADD_VAR VAR4  4
61
  ADD_VAR VAR5  5
62
  ADD_VAR VAR6  6
63
  ADD_VAR VAR7  7
64
  ADD_VAR VAR8  8
65
  ADD_VAR VAR9  9
66
END_LOOP
67
 
68
LOOP 5
69
  SUB_VAR VAR1  1
70
  SUB_VAR VAR2  2
71
  SUB_VAR VAR3  3
72
  SUB_VAR VAR4  4
73
  SUB_VAR VAR5  5
74
  SUB_VAR VAR6  6
75
  SUB_VAR VAR7  7
76
  SUB_VAR VAR8  8
77
  SUB_VAR VAR9  9
78
END_LOOP
79
 
80
--  Loops in Loops  ....
81
LOOP 2
82
  LOOP 2
83
    LOOP 2
84
      LOOP 2
85
        ADD_VAR VAR1 1  "Loop level 4
86
      END_LOOP
87
      ADD_VAR VAR1 1  "Loop level 3
88
    END_LOOP
89
    ADD_VAR VAR1 1  "Loop level 2
90
  END_LOOP
91
  ADD_VAR VAR1 1  "Loop level 1
92
END_LOOP
93
 
94
 
95
JUMP $TEST_END  "Jumping to the end ...

powered by: WebSVN 2.1.0

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