@@ -44,16 +44,31 @@ def __init__(self):
44
44
45
45
def _define_geomtry_dll_functions (self ):
46
46
"""Define C++ API DLL functions."""
47
+ self ._dll .setEnableDistributedCapacitorSections .argtype = c_bool
48
+ self ._dll .setEnableDistributedCapacitorSections .restype = c_int
49
+ self ._dll .getEnableDistributedCapacitorSections .argtype = POINTER (c_bool )
50
+ self ._dll .getEnableDistributedCapacitorSections .restype = c_int
51
+
47
52
self ._dll .setDistributedCapacitorSections .argtype = c_char_p
48
53
self ._dll .setDistributedCapacitorSections .restype = int
49
54
self ._dll .getDistributedCapacitorSections .argtypes = [c_char_p , c_int ]
50
55
self ._dll .getDistributedCapacitorSections .restype = int
51
56
57
+ self ._dll .setEnableDistributedInductorSections .argtype = c_bool
58
+ self ._dll .setEnableDistributedInductorSections .restype = c_int
59
+ self ._dll .getEnableDistributedInductorSections .argtype = POINTER (c_bool )
60
+ self ._dll .getEnableDistributedInductorSections .restype = c_int
61
+
52
62
self ._dll .setDistributedInductorSections .argtype = c_char_p
53
63
self ._dll .setDistributedInductorSections .restype = c_int
54
64
self ._dll .getDistributedInductorSections .argtypes = [c_char_p , c_int ]
55
65
self ._dll .getDistributedInductorSections .restype = c_int
56
66
67
+ self ._dll .setEnableDistributedSplitHeightRatio .argtype = c_bool
68
+ self ._dll .setEnableDistributedSplitHeightRatio .restype = c_int
69
+ self ._dll .getEnableDistributedSplitHeightRatio .argtype = POINTER (c_bool )
70
+ self ._dll .getEnableDistributedSplitHeightRatio .restype = c_int
71
+
57
72
self ._dll .setDistributedSplitHeightRatio .argtype = c_char_p
58
73
self ._dll .setDistributedSplitHeightRatio .restype = c_int
59
74
self ._dll .getDistributedSplitHeightRatio .argtypes = [c_char_p , c_int ]
@@ -94,6 +109,29 @@ def _define_geomtry_dll_functions(self):
94
109
self ._dll .getDistributedAdjustLengthOnLimit .argtype = POINTER (c_bool )
95
110
self ._dll .getDistributedAdjustLengthOnLimit .restype = c_int
96
111
112
+ @property
113
+ def fixed_width_to_height_ratio_capacitor_sections_enabled (self ) -> bool :
114
+ """Flag indicating if the fixed width-to-substrate height ratios for all segments and stubs in the
115
+ translated lumped capacitor sections are enabled.
116
+
117
+ Returns
118
+ -------
119
+ bool
120
+ """
121
+ fixed_width_to_height_ratio_capacitor_sections_enabled = c_bool ()
122
+ status = self ._dll .getEnableDistributedCapacitorSections (
123
+ byref (fixed_width_to_height_ratio_capacitor_sections_enabled )
124
+ )
125
+ self ._dll_interface .raise_error (status )
126
+ return bool (fixed_width_to_height_ratio_capacitor_sections_enabled .value )
127
+
128
+ @fixed_width_to_height_ratio_capacitor_sections_enabled .setter
129
+ def fixed_width_to_height_ratio_capacitor_sections_enabled (
130
+ self , fixed_width_to_height_ratio_capacitor_sections_enabled : bool
131
+ ):
132
+ status = self ._dll .setEnableDistributedCapacitorSections (fixed_width_to_height_ratio_capacitor_sections_enabled )
133
+ self ._dll_interface .raise_error (status )
134
+
97
135
@property
98
136
def fixed_width_to_height_ratio_capacitor_sections (self ) -> str :
99
137
"""Fixed width-to-substrate height ratios for all segments and stubs in the
@@ -115,6 +153,29 @@ def fixed_width_to_height_ratio_capacitor_sections(self, fixed_width_to_height_r
115
153
self ._dll .setDistributedCapacitorSections , fixed_width_to_height_ratio_capacitor_sections_string
116
154
)
117
155
156
+ @property
157
+ def fixed_width_to_height_ratio_inductor_sections_enabled (self ) -> bool :
158
+ """Flag indicating if the fixed width-to-substrate height ratios for all segments and stubs in the
159
+ translated lumped inductor sections are enabled.
160
+
161
+ Returns
162
+ -------
163
+ bool
164
+ """
165
+ fixed_width_to_height_ratio_inductor_sections_enabled = c_bool ()
166
+ status = self ._dll .getEnableDistributedInductorSections (
167
+ byref (fixed_width_to_height_ratio_inductor_sections_enabled )
168
+ )
169
+ self ._dll_interface .raise_error (status )
170
+ return bool (fixed_width_to_height_ratio_inductor_sections_enabled .value )
171
+
172
+ @fixed_width_to_height_ratio_inductor_sections_enabled .setter
173
+ def fixed_width_to_height_ratio_inductor_sections_enabled (
174
+ self , fixed_width_to_height_ratio_inductor_sections_enabled : bool
175
+ ):
176
+ status = self ._dll .setEnableDistributedInductorSections (fixed_width_to_height_ratio_inductor_sections_enabled )
177
+ self ._dll_interface .raise_error (status )
178
+
118
179
@property
119
180
def fixed_width_to_height_ratio_inductor_sections (self ) -> str :
120
181
"""Fixed width-to-substrate height ratios for all segments and stubs in the
@@ -136,6 +197,24 @@ def fixed_width_to_height_ratio_inductor_sections(self, fixed_width_to_height_ra
136
197
self ._dll .setDistributedInductorSections , fixed_width_to_height_ratio_inductor_sections_string
137
198
)
138
199
200
+ @property
201
+ def split_wide_stubs_enabled (self ) -> bool :
202
+ """Flag indicating if the wide stubs width into two thinner parallel stubs is enabled.
203
+
204
+ Returns
205
+ -------
206
+ bool
207
+ """
208
+ split_wide_stubs_enabled = c_bool ()
209
+ status = self ._dll .getEnableDistributedSplitHeightRatio (byref (split_wide_stubs_enabled ))
210
+ self ._dll_interface .raise_error (status )
211
+ return bool (split_wide_stubs_enabled .value )
212
+
213
+ @split_wide_stubs_enabled .setter
214
+ def split_wide_stubs_enabled (self , split_wide_stubs_enabled : bool ):
215
+ status = self ._dll .setEnableDistributedSplitHeightRatio (split_wide_stubs_enabled )
216
+ self ._dll_interface .raise_error (status )
217
+
139
218
@property
140
219
def wide_stubs_width_to_substrate_height_ratio (self ) -> str :
141
220
"""Stub width to substrate height ratio of stubs to be split into thinner stubs.
0 commit comments