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

NAME

6       insviambkrds - adds to RDS instance all the contacts from MBK instance
7

SYNOPSIS

9       #include "rfmnnn.h"
10         rdsrec_list ∗insviambkrds( 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 contacts to
17                           convert.
18
19       ModelMbk            Pointer to the model of the MBK instance.
20
21       InstanceRds         The instance which has to  receive  converted  seg‐
22                           ments from MBK to RDS format.
23

DESCRIPTION

25       This  function  adds  in  the  RDS instance all the contacts of the MBK
26       instance converted to  RDS  format.  All  newly  created  segments  are
27       chained  each  other  (circulary  list)  using  the  USER  field of the
28       rdsrec_list structure.
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 ∗RdsViaList;
57                   rdsrec_list ∗ScanVia;
58                   mbkenv();
59                   rdsenv();
60                   loadrdsparam();
61                   /∗ creates MbkFigure Named "core" ∗/
62                   MbkFigure        = addphfig("core");
63                   /∗ creates RdsFigure named "core_2" ∗/
64                   RdsFigure        = addrdsfig("core_2",sizeof(UserStruct));
65                   /∗ adds Mbk instance "n1_y" to MbkFigure named "core" ∗/
66                   MbkInstance      = addphins(MbkFigure,"n1_y","inv_1",NOSYM,4,9);
67                   /∗ Gets Model of instance n1_y ∗/
68                   MbkModelInstance = getphfig("n1_y",'A');
69                   /∗ creates Rds instance named "block_1" added to RdsFigure ∗/
70                   RdsInstance =
71                       addrdsins(RdsFigure,"block","block_1",RDS_NOSYM,8,6);
72                   /∗
73                      adds contacts of "inv_1" instance Mbk in Rds instance
74                      named "block_1"
75                   ∗/
76                   RdsViaList = insviambkrds ( MbkInstance,
77                                               MbkModelInstance,
78                                               RdsInstance);
79                   viewrdsrec ( RdsViaList );
80                   for ( ScanVia  = RdsViaList->USER ;
81                         ScanVia != RdsViaList ;
82                         ScanVia  = ScanVia->USER )
83                    {
84                      viewrdsrec ( (rdsrec_list ∗) ScanVia );
85                    }
86                 }
87

SEE ALSO

89       librfm, librds, loadrdsparam
90
91
92
93
94
95
96ASIM/LIP6                       October 1, 1997                INSVIAMBKRDS(3)
Impressum