1DECLAR(3) GENPAT functions DECLAR(3)
2
3
4
6 DECLAR, GENPAT Package
7
8
10 DECLAR("ident",":nb_space","format",mode,size,option);
11
12
14 ident External connector, internal observing points or register's
15 name. For the hierarchical descriptions, the path-name of the
16 internal observing points or registers must be specified by
17 the syntax : instance1.instance11.name .
18
19 nb_space Specify the number of blank space between each group of value
20 associated to the connectors, signals or registers in the
21 output file. 0,1,2,3,4,5,6,7,8,9 or nothing.
22
23 format Specify the format that will be used to represent the value
24 associated to the connectors, signals or registers. X for
25 Hexadecimal, O for Octal and B for Binary.
26
27 mode Specify the type of the connectors. IN for Input, OUT for
28 Output, INOUT for Input/Output, SIGNAL for internal observing
29 point, REGISTER for register. IN, OUT, INOUT, SIGNAL, REGISā
30 TER are constants (defines) provided by genpat.
31
32 size Specify the size of the bused connectors : empty ("") for the
33 scalar connectors, "nb1" for the numbered connectors, "nb1 TO
34 nb2" or "(nb1 TO nb2)" (nb1 < nb2), "nb1 DOWNTO nb2" or "(nb1
35 DOWNTO nb2)" (nb2 < nb1) for the vectors. Where nb1 and nb2
36 are integer.
37
38 option Specify options of the connector. "S" for a spied connector,
39 empty ("") for a normal connector.
40
41
43 Describes a set of connectors, signals or registers of the same format,
44 size and mode.
45
46
48 DECLAR("a", ":2", "X", OUT, "3 DOWNTO 0", "S");
49
50 describes : a 3, a 2, a 1, a 0
51 format : Hexadecimal.
52 mode : Output.
53 option : Spied connector.
54
55 the group is separated of the others with 2 blank spaces.
56 result :
57 out a(3 downto 0) X spy ;;;
58
59 DECLAR ("toto", ":", "O", INOUT, "7 TO 11", "");
60
61 describes : toto 7, toto 8, toto 9, toto 10, toto 11.
62 format : Octal.
63 mode : Input/Output.
64 option : none.
65
66 the group is separated of the following with 0 blank space.
67 result :
68 inout toto(7 to 11) O ;
69
70 DECLAR ("ck", ":2", "B", IN, "", "");
71
72 describes : ck.
73 format : Binary.
74 mode : Input.
75 option : none.
76
77 the port is separated of the following with 2 blank spaces.
78 result :
79 in ck ;;;
80
81 DECLAR ("accu.f", ":", "B", SIGNAL, "", "S");
82
83 describes : accu.f .
84 format : Binary.
85 mode : Signal.
86 option : Spied connector.
87
88 the signal is separated of the following with 0 blank space.
89 result :
90 signal accu.f spy ;
91
92 DECLAR ("accu.reg", ":1", "B", REGISTER, "(3)", "");
93
94 describes : accu.reg .
95 format : Binary.
96 mode : Register.
97 option : none.
98
99 the signal is separated of the following with 1 blank space.
100 result :
101 register accu.reg(3) ;;;;
102
103
104
106 The DECLAR function from the 4.0 release have a new parameter (option).
107
108
110 ARRAY(3), genpat(1), pat(5)
111
112
113
114
115
116
117ASIM/LIP6 October 1, 1997 DECLAR(3)