1INIT(3) GENPAT functions INIT(3)
2
3
4
6 INIT, GENPAT Package
7
8
10 INIT("pattern_date","ident","value");
11
12
14 pattern_date
15 : pattern date which may be either : integer (absolute date)
16 or + integer (relative date, the date of the current pattern
17 (last modified using INIT or AFFECT) is the reference). All
18 dates are supposed to be expressed in the same time unit
19 which may be set only once using SETTUNIT.
20
21
22 ident Either the name of a bused register or a simple register.
23 Path-name must be specified by the syntax :
24 instance1.instance11.name
25
26 value The value associated with the signal which may be either a
27 based number (ex. 0B011 or 0H3F) or a decimal.
28
29
31 Initialize registers at indicated values and set current pattern.
32
33
35 SETTUNIT("ns");
36 INIT( "25","regt","0B1");
37 INIT("+50","y 3 downto 0","0xF");
38
39 result :
40 At simulation time 25 ns, the register named regt receive "1"
41 regt <= B"1" ;
42 < 25 ns> : .............;
43
44 At simulation time +50 ns, (related to the date of the current pattern),
45 the vector y is affected with the value 15 in decimal or F in hexadecimal.
46 regt <= X"F" ;
47 < 75 ns> : .............;
48
49
51 genpat(1), pat(5), AFFECT(3)
52
53
54
55
56
57
58ASIM/LIP6 October 1, 1997 INIT(3)