Length functions
length_functions
Length function for calculating length of manhattan routes.
LengthFunction
Bases: Protocol
Protocol for a function which calculates the length of a route.
Source code in kfactory/routing/length_functions.py
21 22 23 24 25 | |
get_length_from_area
get_length_from_area(
layer: LayerInfo | None = None,
) -> LengthFunction
Get length from are in dbu.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
layer
|
LayerInfo | None
|
The layer for which to calculate the area. |
None
|
Returns:
| Type | Description |
|---|---|
LengthFunction
|
Length in dbu. |
Source code in kfactory/routing/length_functions.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |