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/] [stimulus_file.stm] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sckoarn
 
2
--  define variables  use all notations.
3
DEFINE_VAR  TEMP_VAR1  xE
4
DEFINE_VAR  TEMP_VAR2  h10
5
DEFINE_VAR  TEMP_VAR3  b001110100
6
DEFINE_VAR  TEMP_VAR4  16
7
DEFINE_VAR  TEMP_VAR5  b100000
8
DEFINE_VAR  TEMP_VAR6  xff
9
DEFINE_VAR  TEMP_VAR7  4
10
 
11
--  DUT access instructions
12
RESET
13
 
14
WRITE 0 x55555555
15
WRITE 1 xaaaaaaaa
16
 
17
READ 0
18
VERIFY x55555555
19
READ 1
20
VERIFY xaaaaaaaa
21
 
22
 
23
--  Rest of this test case demonstrates default instructions.
24
IF $TEMP_VAR1 == 15
25
  VERIFY xaaaaaaaa   "Fell into the IF statement.
26
ELSEIF $TEMP_VAR1 < 14
27
  VERIFY xaaaaaaaa   "Fell into the ELSEIF statement.
28
ELSE
29
  VERIFY xaaaaaaaa   "Fell into the ELSE statement.
30
END_IF
31
 
32
WHILE $TEMP_VAR2 <= 20
33
  ADD_VAR TEMP_VAR2 1  "$TEMP_VAR2
34
END_WHILE
35
 
36
ADD_VAR   TEMP_VAR1  1  "Test $TEMP_VAR1 string  1
37
ADD_VAR   TEMP_VAR2  2  "Test $TEMP_VAR1 string  $TEMP_VAR1 2
38
ADD_VAR   TEMP_VAR3  3  "Test string  3
39
ADD_VAR   TEMP_VAR4  4  "Test string  4
40
ADD_VAR   TEMP_VAR5  5  "Test string  5
41
ADD_VAR   TEMP_VAR6  6  "Test string  6
42
ADD_VAR   TEMP_VAR7  7  "Test string  7
43
 
44
LOOP 10
45
  ADD_VAR   TEMP_VAR2  2
46
  ADD_VAR   TEMP_VAR3  2
47
  ADD_VAR   TEMP_VAR4  2
48
  ADD_VAR   TEMP_VAR5  2
49
END_LOOP
50
 
51
CALL $TEST_CALL
52
 
53
JUMP $JUMP1_LOC
54
 
55
 
56
TEST_END:
57
FINISH
58
 
59
--  more instructions in the include file.
60
INCLUDE  "../stm/test_include.stm
61
 

powered by: WebSVN 2.1.0

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