gofeco/support
0
1<h3 id='___get_driver'>get_driver</h3>2<pre>Get the driver of a net or pin (LLM: driver)3<b>Usage:</b> @driver = get_driver($point, @options);4$point: net name or pin name, 'n12345' or 'U12345/A1'5@options:6 -pin: Return in "inst/pin" format, E.G. "state_reg/Q"7 Return an array if '-pin' is not present8 -nonbuf: Trace the drivers until none buffer 9@driver: The driver in array format, if '-pin' is not present.10 If the point is floating, @driver is empty, 11 $driver[0]: Driver instance name. It is empty if the driver is port12 $driver[1]: Driver pin or port name. If the driver is a port, it is the port name13 $driver[2]: Driver type. It is string "pin" or "port" depending on the driver is port or leaf cell14 $driver[3]: Driver phase. It is valid when -nonbuf is present, 15 indicating if the driver path is inverted16 0: not inverted 1: inverted 17 18<b>Note:</b>191. If '-pin' is present, return a scalar, $driver = get_driver("n12345", "-pin");202. Use 'get_drivers' if there are multiple drivers, the return data has different structure21 22<b>Examples:</b>23 24#1. Get driver of a net25@driver = get_driver("net12345");26@driver has content of ("U1247", "Y", "pin");27 28#2. port_abc is input port29@driver = get_driver("port_abc"); 30@driver has content of ("", "port_abc", "port");31 32#3. Return in instance/pin format33$driver = get_driver("net12345", "-pin");34$driver has content of "U1247/Y"35</pre>