1INSCONMBKRDS(3)             RDS PHYSICAL FUNCTIONS             INSCONMBKRDS(3)
2
3
4

NAME

6        insconmbkrds - adds in RDS instance all the connectors of MBK instance
7

SYNOPSIS

9       #include "rfmnnn.h"
10       rdsrec_list ∗insconmbkrds( InstanceMbk, ModelMbk, InstanceRds )
11          phins_list  ∗InstanceMbk;
12          phfig_list  ∗ModelMbk;
13          rdsins_list ∗InstanceRds;
14

PARAMETER

16       InstanceMbk         The  MBK  instance which contains the connectors to
17                           convert.
18
19       ModelMbk            Pointer to the model of the MBK instance.
20
21       InstanceRds         The instance which has to receive converted connec‐
22                           tors from MBK to RDS format.
23

DESCRIPTION

25       This  function  adds  in  the  RDS instance all connectors from the MBK
26       instance converted to RDS format.  All  newly  created  connectors  are
27       chained  each  other  (circulary  list)  using  the  USER  field of the
28       rdsrec_list structure (see librds).
29

RETURN VALUE

31       Pointer to the head  of  list  of  the  added  rectangles  to  the  RDS
32       instance.
33

ERRORS

35       "Rds202: rdsalloc error, can't continue !"
36              it's impossible to allocate the memory size desired
37

EXAMPLE

39               #include "mphnnn.h"
40               #include "mutnnn.h"
41               #include "rdsnnn.h"
42               #include "rfmnnn.h"
43               #include "rtlnnn.h"
44               typedef struct UserStruct
45                {
46                  char ∗STRING;
47                  void ∗USER1;
48                } UserStruct;
49               main()
50                 {
51                   phfig_list  ∗MbkFigure;
52                   phins_list  ∗MbkInstance;
53                   phfig_list  ∗MbkModelInstance;
54                   rdsfig_list ∗RdsFigure;
55                   rdsins_list ∗RdsInstance;
56                   rdsrec_list ∗RdsConnectorList;
57                   mbkenv();
58                   rdsenv();
59                   loadrdsparam();
60                   /∗ creates MbkFigure Named "core" ∗/
61                   MbkFigure        = addphfig("core");
62                   /∗ creates RdsFigure named "core_2" ∗/
63                   RdsFigure        = addrdsfig("core_2",sizeof(UserStruct));
64                   /∗ adds Mbk instance "n1_y" to MbkFigure named "core" ∗/
65                   MbkInstance      = addphins(MbkFigure,"n1_y","inv_1",NOSYM,4,9);
66                   /∗ gets Model of instance n1_y ∗/
67                   MbkModelInstance = getphfig("n1_y",'A');
68                   /∗ creates Rds instance named "block_1" added to RdsFigure ∗/
69                   RdsInstance =
70                       addrdsins(RdsFigure,"block","block_1",RDS_NOSYM,8,6);
71                   /∗
72                         adds connectors of "inv_1" instance Mbk in Rds instance named
73                         "block_1"
74                   ∗/
75                   RdsConnectorList   = insconmbkrds ( MbkInstance,
76                                                             MbkModelInstance,
77                                                             RdsInstance );
78                   viewrfmrec ( RdsConnectorList );
79                 }
80

SEE ALSO

82       librfm librds, viewrfmrec, loadrdsparam
83
84
85
86
87
88
89ASIM/LIP6                       October 1, 1997                INSCONMBKRDS(3)
Impressum