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

Subversion Repositories sv_dir_tb

[/] [sv_dir_tb/] [trunk/] [examples/] [internal/] [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_VAR  TEMP_VAR1  xE
3
DEFINE_VAR  TEMP_VAR2  h10
4
DEFINE_VAR  TEMP_VAR3  b001110100
5
DEFINE_VAR  TEMP_VAR4  16
6
DEFINE_VAR  TEMP_VAR5  b100000
7
DEFINE_VAR  TEMP_VAR6  xff
8
DEFINE_VAR  TEMP_VAR7  4
9
 
10
DEFINE_VAR ADDR x10000000
11
DEFINE_VAR EXPECT 0
12
 
13
 
14
RESET
15
 
16
READ 0
17
READ x10000000
18
WRITE 0 1
19
--  fill with incrementing data
20
EQU_VAR EXPECT $TEMP_VAR4
21
LOOP 64
22
  WRITE $ADDR $EXPECT
23
  ADD_VAR ADDR 1
24
  ADD_VAR EXPECT 2
25
END_LOOP
26
 
27
EQU_VAR ADDR x10000000
28
EQU_VAR EXPECT $TEMP_VAR4
29
 
30
--  test the data
31
LOOP 64
32
  READ $ADDR
33
  VERIFY $EXPECT
34
  ADD_VAR EXPECT 2
35
  ADD_VAR ADDR 1
36
END_LOOP
37
 
38
 
39
EQU_VAR ADDR x20000000
40
WRITE $ADDR x0ffff
41
READ $ADDR
42
VERIFY x0ffff
43
 
44
WRITE x20000003 x55555555
45
 
46
READ x20000001
47
READ x20000001
48
WRITE x20000001 xaaaaaaaa
49
 
50
READ x20000001
51
READ x20000001
52
 
53
SET_I x12345678
54
READ x20000001
55
VERIFY x12340000
56
 
57
SET_I x87654321
58
READ x20000001
59
VERIFY x87650000
60
 
61
 
62
TEST_END:
63
FINISH
64
 

powered by: WebSVN 2.1.0

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