Merge
merge
MergeDiff
dataclass
Dataclass to hold geometric info about the layout diff.
Source code in kfactory/merge.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
loglevel
class-attribute
instance-attribute
loglevel: LogLevel | int = field(default=CRITICAL)
Log level at which to log polygon errors.
__post_init__
__post_init__() -> None
Initialize the DiffInfo.
Source code in kfactory/merge.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
compare
compare() -> bool
Run the comparing.
Returns: True if there are differences, nothing otherwise
Source code in kfactory/merge.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
on_begin_cell
on_begin_cell(cell_a: Cell, cell_b: Cell) -> None
Set the cells to the new cell.
Source code in kfactory/merge.py
70 71 72 73 | |
on_begin_layer
on_begin_layer(
layer: LayerInfo, layer_a: int, layer_b: int
) -> None
Set the layers to the new layer.
Source code in kfactory/merge.py
75 76 77 78 79 | |
on_cell_meta_info_differs
on_cell_meta_info_differs(
name: str,
meta_a: LayoutMetaInfo | None,
meta_b: LayoutMetaInfo | None,
) -> None
Called when there is a difference in meta infos of cells.
Source code in kfactory/merge.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
on_dbu_differs
on_dbu_differs(dbu_a: float, dbu_b: float) -> None
Called when the DBU differs between the two layouts.
Source code in kfactory/merge.py
60 61 62 63 64 65 66 67 68 | |
on_end_layer
on_end_layer() -> None
Before switching to a new layer, copy the xor to the xor layout.
Source code in kfactory/merge.py
131 132 133 134 135 136 137 138 139 140 141 | |
on_instance_in_a_only
on_instance_in_a_only(
instance: CellInstArray, propid: int
) -> None
Called when there is only an instance in the cell_a.
Source code in kfactory/merge.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |
on_instance_in_b_only
on_instance_in_b_only(
instance: CellInstArray, propid: int
) -> None
Called when there is only an instance in the cell_b.
Source code in kfactory/merge.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
on_polygon_in_a_only
on_polygon_in_a_only(poly: Polygon, propid: int) -> None
Called when there is only a polygon in the cell_a.
Source code in kfactory/merge.py
81 82 83 84 85 | |
on_polygon_in_b_only
on_polygon_in_b_only(poly: Polygon, propid: int) -> None
Called when there is only a polygon in the cell_b.
Source code in kfactory/merge.py
125 126 127 128 129 | |