CoolFace
Apppublic

gofeco/support

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
api.get_drivers.txt37 linesDownload Raw Back to src_en
1<h3 id='___get_drivers'>get_drivers</h3>2<pre>Get the drivers of a net or pin (LLM: drivers)3<b>Usage:</b> @drivers = get_drivers($point, @options);4$point: net name or pin name, 'n12345' or 'U12345/A1'5@options:6   -nonbuf: Trace the drivers until none buffer 7@drivers: An array of the drivers, if the point is floating, @drivers is empty, 8         if the point has multi-drivers, @drivers has more than one items.9         For each item in @drivers10         Index 0: instance, it is empty if the driver is port11         Index 1: pin or port, if the driver is port, return port12         Index 2: string "pin" or "port" depending on the driver is port or leaf cell13         Index 3: indicating drive path inverted or not14         If 'nonbuf' is present, the last item in @drivers is the non-buffer driver15         So '$nonbuf = pop @drivers' can get the non-buffer driver 16<b>Note:</b>17Use 'get_driver' instead if the net has only one driver and 'nonbuf' option is not used18 19<b>Examples:</b>20 21#1. Get drivers of a net22@drivers = get_drivers("net12345");23@drivers has content of (["U1247", "Y", "pin"]);24 25#2. 'port_abc' is input port26@drivers = get_drivers("port_abc"); 27@drivers has content of (["", "port_abc", "port"]);28   29#3. Buffers in the path30 @drivers = get_drivers("state_reg/CK", "-nonbuf");31 @drivers has content of32  (33    ["buf_inst0", "Y", "pin"],34    ["inv_inst1", "Y", "pin"],35    ["and_inst2", "Y", "pin"]36  )37</pre>