1AFFECT(3)                      GENPAT functions                      AFFECT(3)
2
3
4

NAME

6       AFFECT, GENPAT Package
7
8

SYNOPSIS

10       AFFECT ("pattern_date", "ident", "value");
11
12

PARAMETERS

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       ident     Either  the  name of a bused signal or a scalar. Vectors must
22                 be referenced with their names only,  or  bit  per  bit.  For
23                 example,  if b(3 downto 0) exists, you can affect "b", "b(3)"
24                 or "b 3".  Path-name  must  be  specified  by  the  syntax  :
25                 instance1.instance11.name
26
27
28       value     The  value  associated  with the signal which may be either a
29                 based number (ex. binary: 0b011 ,hexa:  0x3F, octal: 0o56) or
30                 a  decimal number. Unknown value (value where a '*' appears),
31                 can be used when dealing with an output, a signal, a register
32                 or  an input/output when this last one is to be tested.  Star
33                 ('*') can appears everywhere  in  a  BASED  number,  but  the
34                 result  will  be  a "full star" value. (For example, "0B0*10"
35                 and "0B***" would give the  same  result.)  AFFECT  is  doing
36                 automatically the transformation of the value into a "forced"
37                 value or a "tested" value except for the  bidirectional  con‐
38                 nectors  affectation. When and bidirectional is to be tested,
39                 a '?' character must be added before  the  value  (example  :
40                 "?0x45f*" instead of "0x45f*").
41
42

DESCRIPTION

44       "Affect" a value to a signal. This value will be apllied to the signal,
45       at the specified simulation date, until the end of  the  simulation  or
46       until a new value is affected to the signal. Beware : Inputs have to be
47       affected at the beginning of the simulation (first pattern at 0 ps). By
48       default,  signals (except Inputs) are affected with a "full star" value
49       at the first pattern.
50
51
52       This fonction also set the current pattern.
53
54

EXAMPLES

56       SETTUNIT("ps");
57       AFFECT ("5", "b", "0B1");
58       result :            b
59       <      5 ps> :.....1...;
60
61
62       At simulation date 0 ps the signal b(3 downto  0)  receives  the  value
63       "0001".   This value will be kept until the end of the simulation if no
64       more affectation is made.
65
66       SETTUNIT("ns");
67       AFFECT ("0", "b", "0B0");
68       AFFECT ("2", "b", "0B1");
69       result :            b
70       <      0 ns> :.....0...;
71       <      2 ns> :.....1...;
72
73
74

SEE ALSO

76       genpat(1), pat(5)
77
78
79
80
81
82
83ASIM/LIP6                       October 1, 1997                      AFFECT(3)
Impressum