1RESTOREDIRVBE(3) MBK LOGICAL FUNCTIONS RESTOREDIRVBE(3)
2
3
4
6 restoredirvbe - restore connectors directions from behavioral view
7
9 #include "mlo.h"
10 int restoredirvbe(ptfig)
11 lofig_list ∗ptfig;
12
14 ptfig Pointer to a lofig_list
15
17 The restoredirvbe function read the PORT section of the vhdl
18 behavuoiral view of the figure, restores the externals connectors
19 directions and order them as indicated in the vbe.
20
22 restoredirvbe returns 1 on success, 0 if there is an error while read‐
23 ing the vbe file, -1 if their is no vbe.
24
26 "∗∗∗ mbk error ∗∗∗ restoredirvbe : no figure given"
27 The ptfig parameter is NULL.
28 "∗∗∗ mbk error ∗∗∗ restoredirvbe : figure %s have more connectors than
29 vbe"
30 Number of connetors in vbe and in figure must be identical. If
31 the vbe have more connectors, the getlocon function give an
32 error on the unknown connector.
33 "∗∗∗ mbk error ∗∗∗ restoredirvbe : cannot read port well!"
34 To restore the connectors directions, the vbe description must
35 have a port well.
36 "∗∗∗ mbk error ∗∗∗ restoredirvbe : bit_vect neither to nor downto"
37 In a port section of a vbe, the bit vector must have indication
38 of the sens of incrementation.
39
41 #include "mut.h"
42 #include "mlo.h"
43 lofig_list ∗ getgoodlofig(figname, mode)
44 char ∗figname;
45 char mode;
46 {
47 lofig_list ∗ptfig;
48 ptfig = getlofig(figname, mode);
49 restoredirvbe(ptfig);
50 return ptfig;
51 }
52
54 mbk(1), lofig(3), locon(3), getlofig(3),
55
56
57
58
59
60
61ASIM/LIP6 October 1, 1997 RESTOREDIRVBE(3)