1VIEWRDSINS(3) RDS PHYSICAL FUNCTIONS VIEWRDSINS(3)
2
3
4
6 viewrdsins - Displays caracteristics of an instance
7
9 #include "rdsnnn.h"
10 void viewrdsins( Instance )
11 rdsins_list ∗Instance;
12
14 Instance Instance to display.
15
17 The viewrdsins function displays caracteristics of the instance pointed
18 by ´Instance´ and its items.
19
20 instance's parameters displayed :
21
22 INSNAME name of the instance.
23
24 FIGNAME model's name of the instance.
25
26 X,Y position of the lower left corner of the
27 instance.
28
29 TRANSF transformation applied to the instance.
30
31 SIZE size of the user structure added to the
32 rdsrec_list structure.
33 This function displays also rectangles of the instance (see viewrd‐
34 srec() function).
35
37 nothing
38
40 none
41
43 #include "mutnnn.h"
44 #include "rdsnnn.h"
45 #include "rtlnnn.h"
46 typedef struct UserStruct
47 {
48 char ∗STRING;
49 void ∗USER1;
50 } UserStruct;
51 main()
52 {
53 rdsfig_list ∗Figure;
54 rdsrec_list ∗Rectangle;
55 rdsins_list ∗Instance;
56 mbkenv();
57 rdsenv();
58 loadrdsparam();
59 Figure = addrdsfig ("core",sizeof ( UserStruct ) );
60 Instance = addrdsins (Figure,"na2_y","and2",RDS_NOSYM,8,6);
61 Rectangle =
62 addrdsinsrec(Instance,"Alu1",RDS_ALU1,2,4,12,1);
63 /∗
64 visualization of the instance and its rectangle
65 ∗/
66 /∗ ∗/ viewrdsins ( Instance );
67 }
68
70 librds, viewrdsfig, viewrdsrec
71
72
73
74
75
76
77ASIM/LIP6 October 1, 1997 VIEWRDSINS(3)