librelane 3.1.0.dev5__py3-none-any.whl → 3.1.0.dev6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. librelane/common/drc.py +2 -0
  2. librelane/scripts/odbpy/apply_def_template.py +2 -3
  3. librelane/scripts/odbpy/cell_frequency.py +3 -3
  4. librelane/scripts/odbpy/check_antenna_properties.py +4 -3
  5. librelane/scripts/odbpy/contextualize.py +1 -1
  6. librelane/scripts/odbpy/defutil.py +8 -8
  7. librelane/scripts/odbpy/diodes.py +7 -6
  8. librelane/scripts/odbpy/disconnected_pins.py +9 -8
  9. librelane/scripts/odbpy/eco_buffer.py +10 -8
  10. librelane/scripts/odbpy/eco_diode.py +9 -7
  11. librelane/scripts/odbpy/filter_unannotated.py +7 -7
  12. librelane/scripts/odbpy/io_place.py +23 -33
  13. librelane/scripts/odbpy/ioplace_parser/__init__.py +3 -1
  14. librelane/scripts/odbpy/ioplace_parser/parse.py +3 -4
  15. librelane/scripts/odbpy/label_macro_pins.py +1 -1
  16. librelane/scripts/odbpy/placers.py +7 -7
  17. librelane/scripts/odbpy/power_utils.py +14 -13
  18. librelane/scripts/odbpy/random_place.py +1 -1
  19. librelane/scripts/odbpy/reader.py +25 -6
  20. librelane/scripts/odbpy/remove_buffers.py +7 -6
  21. librelane/scripts/odbpy/wire_lengths.py +2 -4
  22. librelane/scripts/openroad/common/io.tcl +10 -42
  23. librelane/scripts/openroad/common/set_routing_layers.tcl +1 -4
  24. librelane/scripts/openroad/drt.tcl +2 -0
  25. librelane/scripts/openroad/rcx.tcl +2 -3
  26. librelane/scripts/pyosys/synthesize.py +2 -0
  27. librelane/steps/magic.py +10 -10
  28. librelane/steps/openroad.py +49 -35
  29. {librelane-3.1.0.dev5.dist-info → librelane-3.1.0.dev6.dist-info}/METADATA +1 -1
  30. {librelane-3.1.0.dev5.dist-info → librelane-3.1.0.dev6.dist-info}/RECORD +32 -32
  31. {librelane-3.1.0.dev5.dist-info → librelane-3.1.0.dev6.dist-info}/WHEEL +0 -0
  32. {librelane-3.1.0.dev5.dist-info → librelane-3.1.0.dev6.dist-info}/entry_points.txt +0 -0
librelane/common/drc.py CHANGED
@@ -289,6 +289,8 @@ class DRC:
289
289
 
290
290
  with ET.xmlfile(out, encoding="utf8", buffered=False) as xf:
291
291
  xf.write_declaration()
292
+ xf.write(ET.Comment(" KLayout Marker Database "))
293
+ xf.write(ET.Comment(" Created using LibreLane DRC Rosetta "))
292
294
  with xf.element("report-database"):
293
295
  # 1. Cells
294
296
  with xf.element("cells"):
@@ -13,9 +13,8 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  import defutil
16
- import utl
17
16
 
18
- from reader import click_odb, click
17
+ from reader import click, click_odb, lln_metric
19
18
 
20
19
 
21
20
  @click.command()
@@ -42,7 +41,7 @@ def cli(reader, input_lefs, permissive, copy_def_power, def_template):
42
41
  )
43
42
  area = defutil.get_die_area(def_template, input_lefs)
44
43
  area_metric = f"{area[0]} {area[1]} {area[2]} {area[3]}"
45
- utl.metric("design__die__bbox", area_metric)
44
+ lln_metric("design__die__bbox", area_metric)
46
45
 
47
46
 
48
47
  if __name__ == "__main__":
@@ -13,13 +13,13 @@
13
13
  # limitations under the License.
14
14
  import os
15
15
  import re
16
-
17
16
  from collections import Counter
18
- from reader import click, click_odb, OdbReader
19
17
 
20
18
  import rich
21
- from rich.table import Table
22
19
  from rich.console import Console
20
+ from rich.table import Table
21
+
22
+ from reader import OdbReader, click, click_odb
23
23
 
24
24
 
25
25
  @click.command()
@@ -12,11 +12,12 @@
12
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
- import yaml
16
-
17
15
  from tempfile import NamedTemporaryFile
18
16
  from textwrap import dedent
19
- from reader import click_odb, click, odb
17
+
18
+ import yaml
19
+
20
+ from reader import click, click_odb, odb
20
21
 
21
22
 
22
23
  def check_cells(odb_cells):
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
  import odb
15
15
 
16
- from reader import OdbReader, click_odb, click
16
+ from reader import OdbReader, click, click_odb
17
17
 
18
18
 
19
19
  @click.command()
@@ -12,15 +12,15 @@
12
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
- import odb
16
-
17
15
  import os
18
16
  import re
19
17
  import sys
20
18
  from decimal import Decimal
19
+ from typing import List, Tuple
20
+
21
+ import odb
21
22
 
22
- from reader import click_odb, click
23
- from typing import Tuple, List
23
+ from reader import click, click_odb
24
24
 
25
25
 
26
26
  @click.group()
@@ -238,7 +238,7 @@ def relocate_pins(db, input_lefs, template_def, permissive, copy_def_power=False
238
238
  )
239
239
 
240
240
  if mismatches_found and not permissive:
241
- exit(os.EX_DATAERR)
241
+ sys.exit(os.EX_DATAERR)
242
242
 
243
243
  if copy_def_power:
244
244
  # If asked, we copy power pins from template
@@ -339,7 +339,7 @@ def relocate_pins(db, input_lefs, template_def, permissive, copy_def_power=False
339
339
  "[ERROR] Some pins were grid-misaligned. Please check the log.",
340
340
  file=sys.stderr,
341
341
  )
342
- exit(os.EX_DATAERR)
342
+ sys.exit(os.EX_DATAERR)
343
343
 
344
344
 
345
345
  @click.command("relocate_pins")
@@ -478,8 +478,8 @@ def parse_obstructions(obstructions) -> List[Tuple[str, List[int]]]:
478
478
  )
479
479
 
480
480
  obs_list = []
481
- for obs in obstructions:
482
- obs = obs.strip()
481
+ for obs_raw in obstructions:
482
+ obs = obs_raw.strip()
483
483
  m = re.match(RE_OBS, obs)
484
484
  if m is None:
485
485
  print(
@@ -14,14 +14,15 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
- import odb
18
-
19
- import sys
20
- import click
21
17
  import random
18
+ import sys
22
19
  from decimal import Decimal
23
- from typing import Optional, List
24
- from reader import click_odb, OdbReader
20
+ from typing import List, Optional
21
+
22
+ import click
23
+ import odb
24
+
25
+ from reader import OdbReader, click_odb
25
26
 
26
27
 
27
28
  @click.group()
@@ -16,13 +16,10 @@ from dataclasses import dataclass
16
16
  from typing import Dict, Literal, Optional, Sequence, Union
17
17
 
18
18
  import odb
19
- import utl
20
-
21
- from reader import click, click_odb, OdbReader
22
- from reader import rich
23
- from reader import Table
24
19
  from rich.console import Console
25
20
 
21
+ from reader import OdbReader, Table, click, click_odb, lln_metric_i, rich
22
+
26
23
 
27
24
  def is_connected(term: Union[odb.dbITerm, odb.dbBTerm]) -> bool:
28
25
  if isinstance(term, odb.dbITerm):
@@ -295,9 +292,13 @@ def main(
295
292
  )
296
293
  console.print(full_table)
297
294
 
298
- utl.metric_integer("design__disconnected_pin__count", disconnected_pin_count)
299
- utl.metric_integer(
300
- "design__critical_disconnected_pin__count", critical_disconnected_pin_count
295
+ lln_metric_i(
296
+ "design__disconnected_pin__count",
297
+ disconnected_pin_count,
298
+ )
299
+ lln_metric_i(
300
+ "design__critical_disconnected_pin__count",
301
+ critical_disconnected_pin_count,
301
302
  )
302
303
 
303
304
 
@@ -13,9 +13,11 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  import sys
16
- from reader import click_odb, click, odb
16
+
17
17
  import grt as GRT
18
18
 
19
+ from reader import click, click_odb, odb
20
+
19
21
 
20
22
  def average_location(instances):
21
23
  locations = [instance.getLocation() for instance in instances]
@@ -55,12 +57,12 @@ def cli(reader):
55
57
  f"[ERROR] Buffer type '{buffer_master}' not found.",
56
58
  file=sys.stderr,
57
59
  )
58
- exit(-1)
60
+ sys.exit(-1)
59
61
 
60
62
  target = reader.block.findInst(name_escaped)
61
63
  if target is None:
62
64
  print(f"[ERROR] Instance '{target_name}' not found.", file=sys.stderr)
63
- exit(-1)
65
+ sys.exit(-1)
64
66
 
65
67
  target_iterm = target.findITerm(target_pin)
66
68
  if target_iterm is None:
@@ -68,7 +70,7 @@ def cli(reader):
68
70
  f"[ERROR] Pin '{target_pin}' not found for instance '{target_name}'.",
69
71
  file=sys.stderr,
70
72
  )
71
- exit(-1)
73
+ sys.exit(-1)
72
74
 
73
75
  net = target_iterm.getNet()
74
76
  if net is None:
@@ -76,7 +78,7 @@ def cli(reader):
76
78
  f"[ERROR] Net not found on pin '{target_pin}' of instance '{target_name}'.",
77
79
  file=sys.stderr,
78
80
  )
79
- exit(-1)
81
+ sys.exit(-1)
80
82
 
81
83
  new_buf_name = f"eco_buffer_{i}"
82
84
  new_net_name = f"eco_buffer_{i}_net"
@@ -102,7 +104,7 @@ def cli(reader):
102
104
  f"[ERROR] Buffer {buffer_master} has no input signals.",
103
105
  file=sys.stderr,
104
106
  )
105
- exit(-1)
107
+ sys.exit(-1)
106
108
 
107
109
  buffer_x = None
108
110
  for iterm in buffer_iterms:
@@ -114,7 +116,7 @@ def cli(reader):
114
116
  f"[ERROR] Buffer {buffer_master} has no output signals.",
115
117
  file=sys.stderr,
116
118
  )
117
- exit(-1)
119
+ sys.exit(-1)
118
120
 
119
121
  location_instances = [target]
120
122
  net_iterms = net.getITerms()
@@ -145,7 +147,7 @@ def cli(reader):
145
147
  f"[ERROR] {target_name}/{target_pin} is neither an INPUT or an OUTPUT and is unsupported by this script. To buffer an INOUT port, buffer its drivers instead.",
146
148
  file=sys.stderr,
147
149
  )
148
- exit(-1)
150
+ sys.exit(-1)
149
151
 
150
152
  if target_info.get("placement") is not None:
151
153
  eco_x, eco_y = target_info["placement"]
@@ -13,9 +13,11 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  import sys
16
- from reader import click_odb, click, odb
16
+
17
17
  import grt as GRT
18
18
 
19
+ from reader import click, click_odb, odb
20
+
19
21
 
20
22
  @click.command()
21
23
  @click_odb
@@ -49,7 +51,7 @@ def cli(reader):
49
51
  f"[ERROR] Instance '{target_name}' not found.",
50
52
  file=sys.stderr,
51
53
  )
52
- exit(-1)
54
+ sys.exit(-1)
53
55
 
54
56
  master = reader.db.findMaster(diode_master)
55
57
  if master is None:
@@ -57,7 +59,7 @@ def cli(reader):
57
59
  f"[ERROR] Cell kind '{diode_master}' not found.",
58
60
  file=sys.stderr,
59
61
  )
60
- exit(-1)
62
+ sys.exit(-1)
61
63
 
62
64
  target_iterm = target.findITerm(target_pin)
63
65
  if target_iterm is None:
@@ -65,14 +67,14 @@ def cli(reader):
65
67
  f"[ERROR] Pin '{target_pin}' not found for instance {target_name}.",
66
68
  file=sys.stderr,
67
69
  )
68
- exit(-1)
70
+ sys.exit(-1)
69
71
 
70
72
  if target_iterm.getIoType() not in ["INPUT", "INOUT"]:
71
73
  print(
72
74
  f"[ERROR] Pin {target_info['target']} is an OUTPUT pin.",
73
75
  file=sys.stderr,
74
76
  )
75
- exit(-1)
77
+ sys.exit(-1)
76
78
 
77
79
  net = target_iterm.getNet()
78
80
  if net is None:
@@ -80,7 +82,7 @@ def cli(reader):
80
82
  f"[ERROR] Pin {target_info['target']} has no nets connected.",
81
83
  file=sys.stderr,
82
84
  )
83
- exit(-1)
85
+ sys.exit(-1)
84
86
 
85
87
  eco_diode_name = f"eco_diode_{i}"
86
88
  while reader.block.findInst(eco_diode_name) is not None:
@@ -99,7 +101,7 @@ def cli(reader):
99
101
  f"[ERROR] Pin '{diode_pin}' on ECO diode not found- invalid DIODE_CELL definition.",
100
102
  file=sys.stderr,
101
103
  )
102
- exit(-1)
104
+ sys.exit(-1)
103
105
 
104
106
  sys.stdout.flush()
105
107
 
@@ -12,14 +12,13 @@
12
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
- import re
16
15
  import pprint
16
+ import re
17
17
  from collections import namedtuple
18
18
 
19
- from reader import click_odb, click
20
-
21
19
  import odb
22
- import utl
20
+
21
+ from reader import click, click_odb, lln_metric_i
23
22
 
24
23
 
25
24
  def filter_net(net: odb.dbNet) -> bool:
@@ -86,10 +85,11 @@ def main(reader, corner, checks_report):
86
85
  ]
87
86
  print("Filtered nets:")
88
87
  pprint.pprint(connected_nets)
89
- utl.metric_integer(
90
- f"timing__unannotated_net__count__corner:{corner}", len(reported_nets)
88
+ lln_metric_i(
89
+ f"timing__unannotated_net__count__corner:{corner}",
90
+ len(reported_nets),
91
91
  )
92
- utl.metric_integer(
92
+ lln_metric_i(
93
93
  f"timing__unannotated_net_filtered__count__corner:{corner}",
94
94
  len(connected_nets),
95
95
  )
@@ -11,19 +11,19 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- from functools import partial
15
- import odb
16
-
14
+ import math
17
15
  import os
16
+ import random
18
17
  import re
19
18
  import sys
20
- import math
21
- import click
22
- import random
23
19
  from decimal import Decimal
20
+ from functools import partial
24
21
 
25
- from reader import click_odb
22
+ import click
26
23
  import ioplace_parser
24
+ import odb
25
+
26
+ from reader import click_odb
27
27
 
28
28
 
29
29
  def grid_to_tracks(origin, count, step):
@@ -246,16 +246,14 @@ def io_place(
246
246
  #S|#N|#E|#W
247
247
  """
248
248
  config_file_name = config
249
- micron_in_units = reader.dbunits
249
+ dbus_per_micron = reader.dbunits
250
250
 
251
- H_EXTENSION = int(micron_in_units * hor_extension)
252
- V_EXTENSION = int(micron_in_units * ver_extension)
251
+ H_EXTENSION = int(dbus_per_micron * hor_extension)
252
+ V_EXTENSION = int(dbus_per_micron * ver_extension)
253
253
 
254
- if H_EXTENSION < 0:
255
- H_EXTENSION = 0
254
+ H_EXTENSION = max(H_EXTENSION, 0)
256
255
 
257
- if V_EXTENSION < 0:
258
- V_EXTENSION = 0
256
+ V_EXTENSION = max(V_EXTENSION, 0)
259
257
 
260
258
  H_LAYER = reader.tech.findLayer(hor_layer)
261
259
  V_LAYER = reader.tech.findLayer(ver_layer)
@@ -264,26 +262,18 @@ def io_place(
264
262
  V_WIDTH = int(Decimal(ver_width_mult) * V_LAYER.getWidth())
265
263
 
266
264
  if hor_length is not None:
267
- H_LENGTH = int(micron_in_units * hor_length)
265
+ H_LENGTH = int(dbus_per_micron * hor_length)
268
266
  else:
269
267
  H_LENGTH = max(
270
- int(
271
- math.ceil(
272
- H_LAYER.getArea() * micron_in_units * micron_in_units / H_WIDTH
273
- )
274
- ),
268
+ int(math.ceil(H_LAYER.getArea() / H_WIDTH)),
275
269
  H_WIDTH,
276
270
  )
277
271
 
278
272
  if ver_length is not None:
279
- V_LENGTH = int(micron_in_units * ver_length)
273
+ V_LENGTH = int(dbus_per_micron * ver_length)
280
274
  else:
281
275
  V_LENGTH = max(
282
- int(
283
- math.ceil(
284
- V_LAYER.getArea() * micron_in_units * micron_in_units / V_WIDTH
285
- )
286
- ),
276
+ int(math.ceil(V_LAYER.getArea() / V_WIDTH)),
287
277
  V_WIDTH,
288
278
  )
289
279
 
@@ -294,7 +284,7 @@ def io_place(
294
284
  info_by_side = ioplace_parser.parse(config_file_str)
295
285
  except ValueError as e:
296
286
  print(f"An exception occurred: {e}")
297
- exit(os.EX_DATAERR)
287
+ sys.exit(os.EX_DATAERR)
298
288
 
299
289
  print("Top-level design name:", reader.name)
300
290
 
@@ -309,7 +299,7 @@ def io_place(
309
299
  (V_WIDTH + V_LAYER.getSpacing())
310
300
  if side in ["N", "S"]
311
301
  else (H_WIDTH + H_LAYER.getSpacing())
312
- ) / reader.dbunits
302
+ ) / dbus_per_micron
313
303
  if side_info.min_distance is None:
314
304
  side_info.min_distance = min
315
305
  if side_info.min_distance < min:
@@ -381,7 +371,7 @@ def io_place(
381
371
 
382
372
  if mismatches_found:
383
373
  print("Critical mismatches found.")
384
- exit(os.EX_DATAERR)
374
+ sys.exit(os.EX_DATAERR)
385
375
 
386
376
  if len(not_in_config) > 0:
387
377
  print("Assigning random sides to unmatched pins…")
@@ -409,7 +399,7 @@ def io_place(
409
399
  pin_tracks = {}
410
400
  for side in pin_placement:
411
401
  if side in ["N", "S"]:
412
- min_distance = info_by_side[side].min_distance * micron_in_units
402
+ min_distance = info_by_side[side].min_distance * dbus_per_micron
413
403
  pin_tracks[side] = [
414
404
  v_tracks[i]
415
405
  for i in range(len(v_tracks))
@@ -423,7 +413,7 @@ def io_place(
423
413
  i
424
414
  % (
425
415
  math.ceil(
426
- info_by_side[side].min_distance * micron_in_units / h_step
416
+ info_by_side[side].min_distance * dbus_per_micron / h_step
427
417
  )
428
418
  )
429
419
  )
@@ -436,9 +426,9 @@ def io_place(
436
426
  pin_placement[side].reverse()
437
427
 
438
428
  # create the pins
439
- for side in pin_placement:
429
+ for side, side_pin_placement in pin_placement.items():
440
430
  slots, pin_placement[side] = equally_spaced_sequence(
441
- side, pin_placement[side], pin_tracks[side]
431
+ side, side_pin_placement, pin_tracks[side]
442
432
  )
443
433
 
444
434
  assert len(slots) == len(pin_placement[side])
@@ -20,4 +20,6 @@ This is a modified version of https://github.com/efabless/ioplace_parser that
20
20
  does NOT use Antlr4 and instead uses a custom parser that is faster and
21
21
  dependency-free.
22
22
  """
23
- from .parse import Side, Order, parse
23
+ from .parse import Order, Side, parse
24
+
25
+ __all__ = ["Order", "Side", "parse"]
@@ -16,12 +16,11 @@
16
16
  # See the License for the specific language governing permissions and
17
17
  # limitations under the License.
18
18
  import re
19
- from enum import IntEnum
20
- from typing import Literal, Optional, Dict, List, Union
21
- from decimal import Decimal
22
19
  import warnings
23
-
24
20
  from dataclasses import dataclass, field
21
+ from decimal import Decimal
22
+ from enum import IntEnum
23
+ from typing import Dict, List, Literal, Optional, Union
25
24
 
26
25
 
27
26
  class Order(IntEnum):
@@ -14,7 +14,7 @@
14
14
  # limitations under the License.
15
15
  import odb
16
16
 
17
- from reader import OdbReader, click_odb, click
17
+ from reader import OdbReader, click, click_odb
18
18
 
19
19
 
20
20
  @click.command()
@@ -15,7 +15,7 @@
15
15
  import sys
16
16
  from decimal import Decimal
17
17
 
18
- from reader import click_odb, click
18
+ from reader import click, click_odb
19
19
 
20
20
 
21
21
  @click.group
@@ -72,10 +72,10 @@ def manual_macro_placement(reader, config, fixed):
72
72
  with open(config, "r") as config_file:
73
73
  for line in config_file:
74
74
  # Discard comments and empty lines
75
- line = line.split("#")[0].strip()
75
+ line = line.split("#")[0].strip() # noqa: PLW2901
76
76
  if not line:
77
77
  continue
78
- line = line.split()
78
+ line = line.split() # noqa: PLW2901
79
79
  name, x, y, orientation = line
80
80
  macro_data = [
81
81
  name,
@@ -111,11 +111,11 @@ def manual_macro_placement(reader, config, fixed):
111
111
  inst.setPlacementStatus("PLACED")
112
112
  del macros[inst_name]
113
113
 
114
- if len(macros):
114
+ if macros:
115
115
  print("Declared macros not instantiated in design:", file=sys.stderr)
116
116
  for macro in macros.values():
117
117
  print(f"* {macro[0]}", file=sys.stderr)
118
- exit(1)
118
+ sys.exit(1)
119
119
 
120
120
  print(f"Successfully placed {macros_cnt} instances.")
121
121
 
@@ -147,13 +147,13 @@ def manual_global_placement(reader):
147
147
  if not found:
148
148
  not_found.append(instance)
149
149
 
150
- if len(not_found):
150
+ if not_found:
151
151
  print(
152
152
  "[ERROR] One or more instances not found. Make sure you use their Verilog and not their LEF names."
153
153
  )
154
154
  for instance in not_found:
155
155
  print(f"* {instance}")
156
- exit(1)
156
+ sys.exit(1)
157
157
 
158
158
 
159
159
  cli.add_command(manual_global_placement)
@@ -12,15 +12,16 @@
12
12
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
- import odb
16
- import utl
17
-
18
- import re
19
15
  import json
16
+ import re
17
+ import sys
20
18
  from dataclasses import dataclass
21
19
  from typing import Dict, List, Optional
22
20
 
23
- from reader import OdbReader, click_odb, click
21
+ import odb
22
+ import utl
23
+
24
+ from reader import OdbReader, click, click_odb
24
25
 
25
26
 
26
27
  @click.group()
@@ -72,7 +73,7 @@ class Design(object):
72
73
  print(
73
74
  f"[ERROR] No LEF view for {module_name} was found in the database even though it is declared in the Verilog."
74
75
  )
75
- exit(-1)
76
+ sys.exit(-1)
76
77
  pins = {pin.getName(): pin for pin in master.getMTerms()}
77
78
  self.pins_by_module_name[module_name] = pins
78
79
  return self.pins_by_module_name[module_name]
@@ -83,7 +84,7 @@ class Design(object):
83
84
  print(
84
85
  f"[ERROR] No pin {pin_name} found in the module {module_name}'s LEF view: the LEF and Verilog views of the module may be mismatched."
85
86
  )
86
- exit(-1)
87
+ sys.exit(-1)
87
88
 
88
89
  return module_pins[pin_name].getSigType() == "POWER"
89
90
 
@@ -93,7 +94,7 @@ class Design(object):
93
94
  print(
94
95
  f"[ERROR] No pin {pin_name} found in the module {module_name}'s LEF view: the LEF and Verilog views of the module may be mismatched."
95
96
  )
96
- exit(-1)
97
+ sys.exit(-1)
97
98
 
98
99
  return module_pins[pin_name].getSigType() == "GROUND"
99
100
 
@@ -106,7 +107,7 @@ class Design(object):
106
107
  print(
107
108
  f"[ERROR] Could not find master for cell type '{module_name}' in the database."
108
109
  )
109
- exit(-1)
110
+ sys.exit(-1)
110
111
 
111
112
  lef_pg_pins = []
112
113
  for pin in master.getMTerms():
@@ -125,7 +126,7 @@ class Design(object):
125
126
  print(
126
127
  f"[ERROR] Unexpectedly found more than one bit connected to {sigtype} pin {module_name}/{pin_name}."
127
128
  )
128
- exit(-1)
129
+ sys.exit(-1)
129
130
  if len(connection_bits) == 1:
130
131
  connection_bit = connection_bits[0]
131
132
  connected_to_v = self.get_verilog_net_name_by_bit(
@@ -234,7 +235,7 @@ class Design(object):
234
235
  region = design.getBlock().findRegion(region)
235
236
  if region is None:
236
237
  utl.error(utl.PDN, 1504, f"Region {region} not defined")
237
- exit(-1)
238
+ sys.exit(-1)
238
239
 
239
240
  inst_def_name = self.reader.escape_verilog_name(inst_name)
240
241
  pin_def_name = self.reader.escape_verilog_name(pin_name)
@@ -262,12 +263,12 @@ class Design(object):
262
263
  print(
263
264
  f"[ERROR] add_global_connections failed to make any connections for '{inst_name}/{pin_name}' to {net_name}."
264
265
  )
265
- exit(-1)
266
+ sys.exit(-1)
266
267
  elif connected_items > 1:
267
268
  print(
268
269
  f"[ERROR] add_global_connections somehow made {connected_items} connections for '{inst_name}/{pin_name}' to {net_name} -- please report this as a bug"
269
270
  )
270
- exit(-1)
271
+ sys.exit(-1)
271
272
 
272
273
 
273
274
  @click.command()
@@ -14,7 +14,7 @@
14
14
  # limitations under the License.
15
15
  import random
16
16
 
17
- from reader import click_odb, click
17
+ from reader import click, click_odb
18
18
 
19
19
 
20
20
  def gridify(n, f):
@@ -37,12 +37,6 @@ import click
37
37
  import rich
38
38
  from rich.table import Table
39
39
 
40
- # Re-export for subfunctions
41
- rich
42
- click
43
- Table
44
- odb
45
-
46
40
  write_fn: Dict[str, Callable] = {
47
41
  "def": lambda reader, file: file and reader.design.writeDef(file),
48
42
  "odb": lambda reader, file: file and reader.design.writeDb(file),
@@ -248,3 +242,28 @@ def click_odb(function):
248
242
  wrapper = click.argument("input_db")(wrapper)
249
243
 
250
244
  return wrapper
245
+
246
+
247
+ def lln_metric(name: str, metric: str):
248
+ print(f"%OL_METRIC {name} {metric}")
249
+
250
+
251
+ def lln_metric_i(name: str, metric: int):
252
+ print(f"%OL_METRIC_I {name} {metric}")
253
+
254
+
255
+ def lln_metric_f(name: str, metric: float):
256
+ print(f"%OL_METRIC_F {name} {metric}")
257
+
258
+
259
+ __all__ = [
260
+ "click",
261
+ "rich",
262
+ "Table",
263
+ "odb",
264
+ "OdbReader",
265
+ "click_odb",
266
+ "lln_metric",
267
+ "lln_metric_i",
268
+ "lln_metric_f",
269
+ ]
@@ -11,12 +11,13 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- import odb
15
-
16
14
  import re
15
+ import sys
17
16
  from typing import List
18
17
 
19
- from reader import click_odb, click
18
+ import odb
19
+
20
+ from reader import click, click_odb
20
21
 
21
22
 
22
23
  def get_pin_name(pin: odb.dbITerm):
@@ -109,10 +110,10 @@ def remove_buffers(reader, rx_str):
109
110
 
110
111
  if len(drivers) > 1:
111
112
  print(f"Net {net_name} is driven by multiple cells.")
112
- exit(1)
113
+ sys.exit(1)
113
114
  elif len(drivers) == 0:
114
- print(f"Net {net_name} is not driven by any cell..")
115
- exit(1)
115
+ print(f"Net {net_name} is not driven by any cell.")
116
+ sys.exit(1)
116
117
 
117
118
  buffer = drivers[0]
118
119
  buffer_name = drivers[0].getName()
@@ -13,9 +13,7 @@
13
13
  # limitations under the License.
14
14
  from decimal import Decimal
15
15
 
16
- import utl
17
-
18
- from reader import click, click_odb, OdbReader
16
+ from reader import OdbReader, click, click_odb, lln_metric_f
19
17
 
20
18
 
21
19
  def to_si(microns: Decimal) -> str:
@@ -86,7 +84,7 @@ def main(
86
84
  f"Net {net.getName()} is above the length threshold ({length_microns}/{threshold} µm)."
87
85
  )
88
86
 
89
- utl.metric_float("route__wirelength__max", float(max_wire_length))
87
+ lln_metric_f("route__wirelength__max", float(max_wire_length))
90
88
 
91
89
 
92
90
  if __name__ == "__main__":
@@ -20,62 +20,30 @@ source $::env(SCRIPTS_DIR)/openroad/common/set_global_connections.tcl
20
20
 
21
21
  namespace eval lln {
22
22
  proc scene_name {scene} {
23
- # OpenSTA >= 3.1 (commit 998806cb, 2026-06-30) bridges scenes as SWIG
24
- # objects instead of strings. Older OpenSTA 3 bridges them as strings,
25
- # in which case the value already is the name.
26
23
  if { [sta::is_object $scene] } {
27
24
  return [sta::get_property $scene name]
28
25
  }
29
26
  return $scene
30
27
  }
31
28
  proc get_corner_names {} {
32
- # returns: names as a Tcl list, compatible with both OpenSTA 2 and 3
33
- if {[string length [namespace which sta::scenes]] != 0} {
34
- set result [list]
35
- foreach scene [sta::scenes] {
36
- lappend result [scene_name $scene]
37
- }
38
- return $result
39
- } else {
40
- # corners are not bridged as strings
41
- set result [list]
42
- foreach corner [sta::corners] {
43
- lappend result [$corner name]
44
- }
45
- return $result
29
+ set result [list]
30
+ foreach scene [sta::scenes] {
31
+ lappend result [scene_name $scene]
46
32
  }
33
+ return $result
47
34
  }
35
+
48
36
  proc get_corner_dict {} {
49
- # returns: Tcl dictionary from corner names to whatever object is
50
- # interpreted as a corner for internal commands that expect corners:
51
- # - in OpenSTA 3, that's whatever sta::find_scene returns (a name in
52
- # OpenSTA 3.0, a Scene object since 3.1)
53
- # - in OpenSTA 2, that's an opaque Tcl pointer
54
37
  set result [dict create]
55
- if {[string length [namespace which sta::scenes]] != 0} {
56
- foreach scene [sta::scenes] {
57
- set name [scene_name $scene]
58
- dict set result $name [sta::find_scene $name]
59
- }
60
- } else {
61
- foreach corner [sta::corners] {
62
- dict set result [$corner name] $corner
63
- }
38
+ foreach scene [sta::scenes] {
39
+ set name [scene_name $scene]
40
+ dict set result $name $scene
64
41
  }
65
42
  return $result
66
43
  }
67
44
 
68
45
  proc set_sta_cmd_corner {corner_name} {
69
- # sta::set_scene takes a name in every OpenSTA 3; sta::set_cmd_scene
70
- # takes a name before 998806cb and a Scene object after.
71
- if {[string length [namespace which sta::set_scene]] != 0} {
72
- sta::set_scene $corner_name
73
- } elseif {[string length [namespace which sta::set_cmd_scene]] != 0} {
74
- sta::set_cmd_scene $corner_name
75
- } else {
76
- set corner_object [sta::find_corner $corner_name]
77
- sta::set_cmd_corner $corner_object
78
- }
46
+ sta::set_scene $corner_name
79
47
  }
80
48
  };
81
49
 
@@ -430,7 +398,7 @@ proc read_current_odb {args} {
430
398
  set_global_vars
431
399
 
432
400
  # Read supporting views (if applicable)
433
- read_current_sdc
401
+ log_cmd read_current_sdc
434
402
  set_dont_use_cells
435
403
  }
436
404
 
@@ -24,7 +24,4 @@ if { [info exists ::env(RT_CLOCK_MAX_LAYER)]} {
24
24
  set clock_max_layer $::env(RT_CLOCK_MAX_LAYER)
25
25
  }
26
26
 
27
- puts "\[INFO\] Setting signal min routing layer to: $signal_min_layer and clock min routing layer to $clock_min_layer. "
28
- puts "\[INFO\] Setting signal max routing layer to: $signal_max_layer and clock max routing layer to $clock_max_layer. "
29
-
30
- set_routing_layers -signal [subst $signal_min_layer]-[subst $signal_max_layer] -clock [subst $clock_min_layer]-[subst $clock_max_layer]
27
+ log_cmd set_routing_layers -signal [subst $signal_min_layer]-[subst $signal_max_layer] -clock [subst $clock_min_layer]-[subst $clock_max_layer]
@@ -30,6 +30,8 @@ proc drt_run {i args} {
30
30
  source $::env(SCRIPTS_DIR)/openroad/common/io.tcl
31
31
  read_current_odb
32
32
 
33
+ source $::env(SCRIPTS_DIR)/openroad/common/set_routing_layers.tcl
34
+
33
35
  # Create NDRs
34
36
  if { [info exists ::env(NON_DEFAULT_RULES)] } {
35
37
  dict for {ndr_name values} $::env(NON_DEFAULT_RULES) {
@@ -26,7 +26,6 @@ if { !$::env(RCX_MERGE_VIA_WIRE_RES) } {
26
26
  # RCX
27
27
  puts "Using RCX ruleset '$::env(RCX_RULESET)'…"
28
28
  define_process_corner -ext_model_index 0 CURRENT_CORNER
29
- log_cmd extract_parasitics $rcx_flags\
30
- -ext_model_file $::env(RCX_RULESET)\
31
- -lef_res
29
+ set_extraction_rules_file $::env(RCX_RULESET)
30
+ log_cmd extract_parasitics $rcx_flags -lef_res
32
31
  write_views
@@ -524,6 +524,8 @@ def synthesize(
524
524
  ]
525
525
  d.run_pass(*abc_pass)
526
526
 
527
+ d.run_pass("opt_clean") # remove $buf with 1'z
528
+
527
529
  if value := config.get("SYNTH_TIE_UNDEFINED"):
528
530
  flag = "-zero" if value == "low" else "-one"
529
531
  d.run_pass("setundef", flag)
librelane/steps/magic.py CHANGED
@@ -18,6 +18,7 @@
18
18
  import os
19
19
  import re
20
20
  import shutil
21
+ import pathlib
21
22
  import subprocess
22
23
  from os.path import abspath
23
24
  from signal import SIGKILL
@@ -38,7 +39,7 @@ from .tclstep import TclStep
38
39
  from ..state import DesignFormat, State
39
40
 
40
41
  from ..config import Variable
41
- from ..common import get_script_dir, DRC as DRCObject, Path, mkdirp, count_occurences
42
+ from ..common import get_script_dir, DRC as DRCObject, Path, count_occurences
42
43
  from ..logging import warn
43
44
 
44
45
 
@@ -529,8 +530,8 @@ class DRC(MagicStep):
529
530
  return os.path.join(get_script_dir(), "magic", "drc.tcl")
530
531
 
531
532
  def run(self, state_in: State, **kwargs) -> Tuple[ViewsUpdate, MetricsUpdate]:
532
- reports_dir = os.path.join(self.step_dir, "reports")
533
- mkdirp(reports_dir)
533
+ reports_dir = pathlib.Path(self.step_dir) / "reports"
534
+ reports_dir.mkdir(parents=True, exist_ok=True)
534
535
 
535
536
  # Check that the DEF exists if needed
536
537
  if not self.config["MAGIC_DRC_USE_GDS"]:
@@ -538,20 +539,19 @@ class DRC(MagicStep):
538
539
 
539
540
  views_updates, metrics_updates = super().run(state_in, **kwargs)
540
541
 
541
- report_path = os.path.join(reports_dir, "drc.magic.rpt")
542
- klayout_db_path = os.path.join(reports_dir, "drc.magic.lyrdb")
542
+ report_path = reports_dir / "drc.magic.rpt"
543
+ klayout_lyrdb_path = reports_dir / "drc.magic.lyrdb"
543
544
 
544
545
  # report_stats = os.stat(report_path)
545
546
  # drc_db_file = None
546
547
  # if report_stats.st_size >= 0: # 134217728:
547
548
  # drc_db_file = os.path.join(reports_dir, "drc.db")
548
549
 
549
- drc, bbox_count = DRCObject.from_magic(
550
- open(report_path, encoding="utf8"),
551
- # db_file=drc_db_file,
552
- )
550
+ with open(report_path, encoding="utf8") as f:
551
+ drc, bbox_count = DRCObject.from_magic(f)
553
552
 
554
- drc.to_klayout_xml(open(klayout_db_path, "wb"))
553
+ with open(klayout_lyrdb_path, "wb") as f:
554
+ drc.to_klayout_xml(f)
555
555
 
556
556
  metrics_updates["magic__drc_error__count"] = bbox_count
557
557
 
@@ -19,9 +19,8 @@ import io
19
19
  import os
20
20
  import re
21
21
  import json
22
- import subprocess
23
- import textwrap
24
22
  import pathlib
23
+ import subprocess
25
24
  from abc import abstractmethod
26
25
  from base64 import b64encode
27
26
  from concurrent.futures import Future, ThreadPoolExecutor
@@ -44,7 +43,6 @@ from typing import (
44
43
 
45
44
  import rich
46
45
  import rich.table
47
- import yaml
48
46
 
49
47
  from ..common import (
50
48
  Path,
@@ -1453,22 +1451,11 @@ class UnplaceAll(OpenROADStep):
1453
1451
 
1454
1452
 
1455
1453
  def get_psm_error_count(rpt: io.TextIOWrapper) -> int:
1456
- sio = io.StringIO()
1457
-
1458
- # Turn almost-YAML into YAML
1459
- VIO_TYPE_PFX = "violation type: "
1454
+ error_count = 0
1460
1455
  for line in rpt:
1461
- if line.startswith(VIO_TYPE_PFX):
1462
- vio_type = line[len(VIO_TYPE_PFX) :].strip()
1463
- sio.write(f"- type: {vio_type}\n")
1464
- elif "bbox = " in line:
1465
- sio.write(f" {textwrap.dedent(line.replace('bbox = ', '- bbox ='))}")
1466
- else:
1467
- sio.write(f" {textwrap.dedent(line)}")
1468
-
1469
- sio.seek(0)
1470
- violations = yaml.load(sio, Loader=yaml.SafeLoader) or []
1471
- return sum(len(violation["srcs"]) for violation in violations)
1456
+ if "bbox =" in line:
1457
+ error_count += 1
1458
+ return error_count
1472
1459
 
1473
1460
 
1474
1461
  @Step.factory.register()
@@ -1485,12 +1472,28 @@ class GeneratePDN(OpenROADStep):
1485
1472
  OpenROADStep.config_vars
1486
1473
  + pdn_variables
1487
1474
  + [
1475
+ Variable(
1476
+ "FP_MACRO_HORIZONTAL_HALO",
1477
+ Decimal,
1478
+ "Specify the horizontal halo size around macros.",
1479
+ default=10,
1480
+ units="µm",
1481
+ deprecated_names=["FP_TAP_HORIZONTAL_HALO"],
1482
+ ),
1483
+ Variable(
1484
+ "FP_MACRO_VERTICAL_HALO",
1485
+ Decimal,
1486
+ "Specify the vertical halo size around macros.",
1487
+ default=10,
1488
+ units="µm",
1489
+ deprecated_names=["FP_TAP_VERTICAL_HALO"],
1490
+ ),
1488
1491
  Variable(
1489
1492
  "PDN_CFG",
1490
1493
  Optional[Path],
1491
1494
  "A custom PDN configuration file. If not provided, the default PDN config will be used.",
1492
1495
  deprecated_names=["FP_PDN_CFG"],
1493
- )
1496
+ ),
1494
1497
  ]
1495
1498
  )
1496
1499
 
@@ -1499,9 +1502,20 @@ class GeneratePDN(OpenROADStep):
1499
1502
 
1500
1503
  def run(self, state_in: State, **kwargs) -> Tuple[ViewsUpdate, MetricsUpdate]:
1501
1504
  kwargs, env = self.extract_env(kwargs)
1505
+ if self.config["PDN_HORIZONTAL_HALO"] > self.config["FP_MACRO_HORIZONTAL_HALO"]:
1506
+ self.warn(
1507
+ f"PDN_HORIZONTAL_HALO ({self.config['PDN_HORIZONTAL_HALO']}) is set higher than FP_MACRO_HORIZONTAL_HALO ({self.config['FP_MACRO_HORIZONTAL_HALO']}). This may cause PDN generation to fail."
1508
+ )
1509
+ if self.config["PDN_VERTICAL_HALO"] > self.config["FP_MACRO_VERTICAL_HALO"]:
1510
+ self.warn(
1511
+ f"PDN_VERTICAL_HALO ({self.config['PDN_VERTICAL_HALO']}) is set higher than FP_MACRO_VERTICAL_HALO ({self.config['FP_MACRO_VERTICAL_HALO']}). This may cause PDN generation to fail."
1512
+ )
1502
1513
  if self.config["PDN_CFG"] is None:
1503
1514
  env["PDN_CFG"] = os.path.join(
1504
- get_script_dir(), "openroad", "common", "pdn_cfg.tcl"
1515
+ get_script_dir(),
1516
+ "openroad",
1517
+ "common",
1518
+ "pdn_cfg.tcl",
1505
1519
  )
1506
1520
  info(f"'PDN_CFG' not explicitly set, setting it to {env['PDN_CFG']}…")
1507
1521
  views_updates, metrics_updates = super().run(state_in, env=env, **kwargs)
@@ -1510,14 +1524,14 @@ class GeneratePDN(OpenROADStep):
1510
1524
  error_reports = glob(os.path.join(self.step_dir, "*-grid-errors.rpt"))
1511
1525
  for report in error_reports:
1512
1526
  net = os.path.basename(report).split("-", maxsplit=1)[0]
1513
- no_terminals = any(
1514
- alert.code == "PSM-0025" and alert.message.startswith(net)
1527
+ count = 1
1528
+ # ensure current net has no PSM-0025 error
1529
+ if all(
1530
+ alert.code != "PSM-0025" or not alert.message.startswith(net)
1515
1531
  for alert in alerts
1516
- )
1517
- if no_terminals:
1518
- count = 1
1519
- else:
1520
- count = get_psm_error_count(open(report, encoding="utf8"))
1532
+ ):
1533
+ with open(report, encoding="utf8") as f:
1534
+ count = get_psm_error_count(f)
1521
1535
  metrics_updates[f"design__power_grid_violation__count__net:{net}"] = count
1522
1536
 
1523
1537
  metric_updates_with_aggregates = aggregate_metrics(
@@ -2049,15 +2063,15 @@ class DetailedRouting(OpenROADStep):
2049
2063
 
2050
2064
  drc_paths = list(pathlib.Path(self.step_dir).rglob("*.drc*"))
2051
2065
  for path in drc_paths:
2052
- drc, _ = DRCObject.from_openroad(
2053
- open(path, encoding="utf8"), self.config["DESIGN_NAME"]
2054
- )
2066
+ klayout_lyrdb_path = path.with_name(path.name + ".lyrdb")
2067
+
2068
+ with open(path, encoding="utf8") as rpt:
2069
+ drc, _ = DRCObject.from_openroad(rpt, self.config["DESIGN_NAME"])
2070
+
2071
+ with open(klayout_lyrdb_path, "wb") as rpt_xml:
2072
+ drc.to_klayout_xml(rpt_xml)
2055
2073
 
2056
- drc.to_klayout_xml(open(pathlib.Path(str(path) + ".xml"), "wb"))
2057
- # if violation_count > 0:
2058
- # self.warn(
2059
- # f"DRC errors found after routing. View the report file at {report_path}.\nView KLayout xml file at {klayout_db_path}"
2060
- # )
2074
+ klayout_lyrdb_path.with_suffix(".xml").symlink_to(klayout_lyrdb_path.name)
2061
2075
 
2062
2076
  return views_updates, metrics_updates
2063
2077
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: librelane
3
- Version: 3.1.0.dev5
3
+ Version: 3.1.0.dev6
4
4
  Summary: An infrastructure for implementing chip design flows
5
5
  License-Expression: Apache-2.0
6
6
  Maintainer: Mohamed Gaber
@@ -3,7 +3,7 @@ librelane/__main__.py,sha256=QLV5xjX9p_xXltrb9JgXkvG9gC6G3oxMfM6vOvrY138,14904
3
3
  librelane/__version__.py,sha256=TRnK0R8jG4P_eiX1VVShHpLWZljMLwhDggTIYW1lBSk,1598
4
4
  librelane/common/__init__.py,sha256=wrVBpwXBQTVRy7COwWulyTHwnV2Rx5nh2gWNMVEf06w,1592
5
5
  librelane/common/cli.py,sha256=XeNFI1B-lM-luGJfCVa88wUl9Q5S4btEwzXTAui1xYU,2413
6
- librelane/common/drc.py,sha256=ujwGdwQoq8aXBwpJNn2r-o808iUfj8IJx2SglBzw5YU,12853
6
+ librelane/common/drc.py,sha256=7I0NCNehLLS3edu1m_PJ0sDpwfQ8W9yvfE_wi-7QMgU,12989
7
7
  librelane/common/generic_dict.py,sha256=ASa5wtVcLuGlsBqGfLxLYXrYksqQB62iHljV04plIqI,10010
8
8
  librelane/common/metrics/__init__.py,sha256=nzdmeia1fN4CDPT604v-OHaBVydz-M4hz232g-jxJ6M,1521
9
9
  librelane/common/metrics/__main__.py,sha256=w1OPmMteK0X2sK8NZAbixjdd7i9dauzCTYaWYVZ8cHc,8871
@@ -85,35 +85,35 @@ librelane/scripts/magic/open.tcl,sha256=v-4xFkcFxoLl_IpKCcEBoclZO4S0zkJLHhd60Qax
85
85
  librelane/scripts/magic/spice_rcx.tcl,sha256=b6RimpEF3xh27pFjPMTrixyCjUk1W7mSUApat4OEzKg,2170
86
86
  librelane/scripts/magic/wrapper.tcl,sha256=qO33N2AiEYBTABMB5vWMWWEd2FpyOhg8JlcGsBVD6MY,712
87
87
  librelane/scripts/netgen/setup.tcl,sha256=_NfZUGFeSxFzanm32r0ytipSYg6JXVjC3oPdIgYj7NY,1281
88
- librelane/scripts/odbpy/apply_def_template.py,sha256=Tn6y65biu0bAQ6XilYxq5jn3a_KqjTl423-aXWI864k,1534
89
- librelane/scripts/odbpy/cell_frequency.py,sha256=NfGgM8wxIvjM1C_GHUghZPOh8gpdasLOWR4qBdHHLFE,3105
90
- librelane/scripts/odbpy/check_antenna_properties.py,sha256=qDoR-f_9SNwwhZgAFVYcm45zf_UALxUocdkT3Dv2n6o,3938
91
- librelane/scripts/odbpy/contextualize.py,sha256=G8EEgmK6ISikXD2-Pw-RTs1JxLWPnuppwL7oPfAsb84,4020
92
- librelane/scripts/odbpy/defutil.py,sha256=YzxP_0ePGLAVGxUvszTmfP1tArRuMx8K447emOU1lrQ,18252
93
- librelane/scripts/odbpy/diodes.py,sha256=qpsTW2RQlqNm4pzrUFm7d0Jj4x4zSQqladcv5SJF7XI,11752
94
- librelane/scripts/odbpy/disconnected_pins.py,sha256=hS_Iletg7N6K6yN_ccvWxZ3nWNZp4ecUJM-oY0kkEfA,11139
95
- librelane/scripts/odbpy/eco_buffer.py,sha256=lb7KtVZUzXSkPq9mRTXPVnSo_isy4845wohLFPhDN30,6292
96
- librelane/scripts/odbpy/eco_diode.py,sha256=LSM3D0ygE7_vSHbXt49DU1R068NkqmSYVlb32a3scZI,4307
97
- librelane/scripts/odbpy/filter_unannotated.py,sha256=Gvcaj_WNr6TPiHk-36nkMu4betNHZo1g2lD3UcA9hDQ,2950
98
- librelane/scripts/odbpy/io_place.py,sha256=LSJIJQDLSOpENyQOg_kVTIbh1AbYLiHIXx0siduo-lg,15589
99
- librelane/scripts/odbpy/ioplace_parser/__init__.py,sha256=_xCDqam3PxWO-uhTZ6afdn3dpuu4XlX2T_RaOn7QqJQ,877
100
- librelane/scripts/odbpy/ioplace_parser/parse.py,sha256=L2GXzNA-gkjyySZcTWXrRRP8rllabE5pGap9dtiFfOo,5584
101
- librelane/scripts/odbpy/label_macro_pins.py,sha256=n3o9-_g6HkVP8k49yNnCkQJms9f_ykCE0Rye7bVFtIk,8620
88
+ librelane/scripts/odbpy/apply_def_template.py,sha256=b0fo8w1kLal-mvZ0xZ9KuaYpY7-E6KaJzR-liN6Bww0,1535
89
+ librelane/scripts/odbpy/cell_frequency.py,sha256=wOG8UMK-L6LMUKLSCR5JNhlWMW1sIFhU4Pa12Glw1eU,3105
90
+ librelane/scripts/odbpy/check_antenna_properties.py,sha256=dSjTZWZH3uRf-QsON6LM1liKNg4p8rYz-h_4zgKPt0c,3939
91
+ librelane/scripts/odbpy/contextualize.py,sha256=sb9V56PaI2D4qvwIpnlhgCqWzD7bUnO7FU3rRiTGm8o,4020
92
+ librelane/scripts/odbpy/defutil.py,sha256=YXh7cJLvvzx9PCI9xWPSfpkPoo1WMPv1wfoC_Xw63w8,18268
93
+ librelane/scripts/odbpy/diodes.py,sha256=Dklri7V1d44sHJKeT835d5nAec1Zgh-ldjxCqiNXaU8,11753
94
+ librelane/scripts/odbpy/disconnected_pins.py,sha256=byY4ZhBDF4B7ecmORAnaL71fzdlNbfmgAcnw8ny78k4,11126
95
+ librelane/scripts/odbpy/eco_buffer.py,sha256=C8TMPWA6sSXtFbh34w2Qw0XMWN94a7NACdsN6kqCHSA,6322
96
+ librelane/scripts/odbpy/eco_diode.py,sha256=L0Qvo7-oRp_kjNwwRKPwoB_LwLALjouBaeC7eoqxB44,4333
97
+ librelane/scripts/odbpy/filter_unannotated.py,sha256=IPQEz9hVjrp1Few1THkyHuA-D2vmJIPMW60v_dejePU,2950
98
+ librelane/scripts/odbpy/io_place.py,sha256=Y8mbBm40cnckM5b48mccZ3VkaZtJXplGJjnOrSaq_R8,15397
99
+ librelane/scripts/odbpy/ioplace_parser/__init__.py,sha256=fhsi3A8uLGPbw0VkJu_qQR1co3KpiGPWaYz1MIN0B18,915
100
+ librelane/scripts/odbpy/ioplace_parser/parse.py,sha256=Z5QZJrp56jz3tNUgWNBXxoZ26gCUGifsS9xGCEXTyGI,5583
101
+ librelane/scripts/odbpy/label_macro_pins.py,sha256=cJllQiEDrQ-UnL_7Hmq4GVn8j3pbxOB9zzCPL3eCofc,8620
102
102
  librelane/scripts/odbpy/lefutil.py,sha256=XhfWSGHdn96yZWYQAPisgJM0iuY3xw4SW7jmMTzbpZs,3064
103
- librelane/scripts/odbpy/placers.py,sha256=mgy_-GYeLDPMG41YAopMTtJyCHP6ucJRk7cJzI9PLRQ,4572
104
- librelane/scripts/odbpy/power_utils.py,sha256=GloHWoHc-NB7adQFr4i015YWyEa7rUUJg_CmTpJzWLc,15172
105
- librelane/scripts/odbpy/random_place.py,sha256=TEsV4LtXQTP8OJvnBh09Siu9fKkwG9UpIkCkQpdXAgU,1649
106
- librelane/scripts/odbpy/reader.py,sha256=uoLHGKfXRoMdrfXmkgIj3HHa_sqMOFvB3DIUT3vSSQw,8542
107
- librelane/scripts/odbpy/remove_buffers.py,sha256=f-kGZIPnMtu4gnl2r2CDkng8U8vUMJKJWNV_akOpc38,5460
103
+ librelane/scripts/odbpy/placers.py,sha256=JsvZxYDxR8gbg3TVXx1E5QiKBrORm6d7DjtwwCFrq68,4604
104
+ librelane/scripts/odbpy/power_utils.py,sha256=O_ZF9ElHRT52mfYg_XasSI0rPoyrX6wX7HojlGsOtwA,15215
105
+ librelane/scripts/odbpy/random_place.py,sha256=JTeXR-F4qFDPr-X9NorJ_ydGiqg5ZZawFt8KwEPbxpE,1649
106
+ librelane/scripts/odbpy/reader.py,sha256=2e7L2ojwznE5zZK_zzdXKrdZd3vuNiILfapYGydyWIo,8907
107
+ librelane/scripts/odbpy/remove_buffers.py,sha256=sP6WdQ8hWgd-EDGzjTlQ7FpGnXfAzGgeBTuZoGiAWrs,5478
108
108
  librelane/scripts/odbpy/snap_to_grid.py,sha256=lULRWlcYXvrTBUpemUPlpO2dBnbFeriuG-DlI4KnViE,1743
109
- librelane/scripts/odbpy/wire_lengths.py,sha256=pSPhVnLlvcvmgEh89G8nu8DRaZVP66r-4ieVoV3zrm4,2737
109
+ librelane/scripts/odbpy/wire_lengths.py,sha256=wMkqXp0tPbtDcofg9E9iqci1KvYyjOYgwrwH1LpzCHk,2735
110
110
  librelane/scripts/openroad/antenna_check.tcl,sha256=HPnypzv45yvbgjMlJXr8qJoFk_bp4jH7pVqmnf3dkLM,810
111
111
  librelane/scripts/openroad/antenna_repair.tcl,sha256=rImp2v1G5fiAPSypk3qF8uyNGeaqNhcmFBOuUvRmY7E,1231
112
112
  librelane/scripts/openroad/buffer_list.tcl,sha256=sXygy1KRSUS4dZi1UOpBkGGOuXRVLME45iZUAshThps,185
113
113
  librelane/scripts/openroad/common/dpl.tcl,sha256=T_rzoZy8i7S9C92TOmiN79w0MCfudafEhkXcHmB1BAM,920
114
114
  librelane/scripts/openroad/common/dpl_cell_pad.tcl,sha256=KWVuj8u1-y3ZUiQr48TAsFv1GSzOCVnAjdqfBjtoQxQ,1066
115
115
  librelane/scripts/openroad/common/grt.tcl,sha256=VbZORyX7DljoylaUXyhY5vDIjAoYMlLGgrY_ZnXiJoE,1111
116
- librelane/scripts/openroad/common/io.tcl,sha256=KYuS2-jsLLGP8HUNFfE9fZnKNsA2BblxUZHol31ZfMQ,26591
116
+ librelane/scripts/openroad/common/io.tcl,sha256=ex7eXeJPNl9V3HMRsRXC1dk4xNJ5qn0h1mMtZ4RL1Xk,24941
117
117
  librelane/scripts/openroad/common/pad_cfg.tcl,sha256=2WMNEwWJUZq3UQsTVJBDJfZE5dDdVKkYQ6b-_3iDO5g,10643
118
118
  librelane/scripts/openroad/common/pdn_cfg.tcl,sha256=ovCfiwTD-ft6OXksI9hwgZZ6ynwQohC79HIU88fHvf4,6354
119
119
  librelane/scripts/openroad/common/resizer.tcl,sha256=OhjpVxw_8IOx5Bmh2_gh_EIHxKaX84NS37Of9Rlchpw,2255
@@ -121,11 +121,11 @@ librelane/scripts/openroad/common/set_global_connections.tcl,sha256=gMbxRe40okHg
121
121
  librelane/scripts/openroad/common/set_layer_adjustments.tcl,sha256=xqAIDXsTa1_JsGmKXf6eG2Rni2EZSilSsHfJAhCl1xY,1037
122
122
  librelane/scripts/openroad/common/set_power_nets.tcl,sha256=_2n2AKl8UTh9-KeUOOwKaeyRw_4zi1Ifgh8oa9HIWc4,1253
123
123
  librelane/scripts/openroad/common/set_rc.tcl,sha256=TTOM9Gi2RGUjgBWNuGs1wZZqB5ftiR-yTkv8P5OE_s4,7128
124
- librelane/scripts/openroad/common/set_routing_layers.tcl,sha256=fCQsIjcFRsHJPFQvk87ta4mPj-gl27KLOCK3SNXH0jM,1335
124
+ librelane/scripts/openroad/common/set_routing_layers.tcl,sha256=Uiz6LAKyVfFJQmJYyGQw71HnxUJxfZXPv--eUi1xQdY,1100
125
125
  librelane/scripts/openroad/cts.tcl,sha256=Q29PifKQ8UzCyYKQeveainn59Wtk6b_oP_Y2Ns5mCNU,4052
126
126
  librelane/scripts/openroad/cut_rows.tcl,sha256=8RN4_muN1FXkXCU1VGVI_nox3BQNVGVNlQn_21HRCKM,1403
127
127
  librelane/scripts/openroad/dpl.tcl,sha256=U5iTPBf7H4w3cmCM8-yTjLTVr8npwc5G7hVuszljCVc,777
128
- librelane/scripts/openroad/drt.tcl,sha256=5-TkmE3_l26W_fQlYbGFAAvCqaOiFVO5vHgc-u-URH8,5138
128
+ librelane/scripts/openroad/drt.tcl,sha256=wC7vueI7ThkUFcDmN8yC32c9Ol1lCRqIdj4QbhdrSw8,5205
129
129
  librelane/scripts/openroad/dump_rc.tcl,sha256=-23saGdpUu9cLFnjQNjovrh7f86jHkzr4eERrjn_lFM,4455
130
130
  librelane/scripts/openroad/fill.tcl,sha256=djxPglVtei5Wfi5cStdnowVNysXZ331R0rWT5tT1lVk,976
131
131
  librelane/scripts/openroad/floorplan.tcl,sha256=UdtYPq2tGRK46igAv0QyjDfFzTUvIv9M4B3V-FMbsxI,5740
@@ -137,7 +137,7 @@ librelane/scripts/openroad/ioplacer.tcl,sha256=hiNzJ8pAueOokRk4ogFaMkLwZLwyrDPFE
137
137
  librelane/scripts/openroad/irdrop.tcl,sha256=bXhNY_87xPV-ocF9v8wOWqjlnFPaVO_6K_DWbBHAAPs,1974
138
138
  librelane/scripts/openroad/pad.tcl,sha256=ZEFhUfGDfWm-eNp-HkB_Q82jkdPNsK8vTN4QKzlxIaI,801
139
139
  librelane/scripts/openroad/pdn.tcl,sha256=WiKVmLw3g_ZN1Hs4iiAzc6Qah7ZwCn6o-OA5iNmlTtY,1566
140
- librelane/scripts/openroad/rcx.tcl,sha256=kyEhli4sGFMEj-He9UXZDGb0Tmxlw7d6iZD7t6adUx8,1057
140
+ librelane/scripts/openroad/rcx.tcl,sha256=1X9riAmrF8HgDWvSWpnnxfAJWvkclvCda69tIurs8Es,1057
141
141
  librelane/scripts/openroad/repair_design.tcl,sha256=wG1owFuh5iriSUR7hd8ehCHOoq4i5DeFpOfQlsjhco8,2523
142
142
  librelane/scripts/openroad/repair_design_postgrt.tcl,sha256=utJS58-WRWZN5j4mNXjzJJv5UzqFpSAwT7wdbBulN5k,1759
143
143
  librelane/scripts/openroad/rsz_timing_postcts.tcl,sha256=ztDJ__R7f3eK7-xAg9SklGXqL5F1jydGPQDH7X5twNE,2553
@@ -150,7 +150,7 @@ librelane/scripts/openroad/write_cdl.tcl,sha256=pp-l-7JkuwpdtR1bypIVI_PKCOGCoUOD
150
150
  librelane/scripts/openroad/write_views.tcl,sha256=-MxTJsB4EF7l5trDaZe-VBFjhfzqRt8F5_DZrADTs0U,892
151
151
  librelane/scripts/pyosys/construct_abc_script.py,sha256=x_of9UOxxme-lFWlnZ75-W6I-UAWm-wJy8odnQ1alPE,6830
152
152
  librelane/scripts/pyosys/json_header.py,sha256=LSoDHLMKch3tUwsjrps2HdF6PJZ3ydxM8NZHf3z0Bz4,2525
153
- librelane/scripts/pyosys/synthesize.py,sha256=0QMrvrMxX6swrvwWM_l1gydH1DfpwZmbi-QDUuEVA9M,20822
153
+ librelane/scripts/pyosys/synthesize.py,sha256=nn6LivZXOnnFLHGEAmhPSFEcstg57gBX7izEmEHNPPg,20879
154
154
  librelane/scripts/pyosys/ys_common.py,sha256=lhyA8k1DCM59RTvRkyFxxt1oBP19sp2vl_WCL8GpCSs,5492
155
155
  librelane/scripts/tclsh/hello.tcl,sha256=kkR3akY7QnGHYXsQODYwLkMkUEOgWcNFtzaMTTEV2bY,34
156
156
  librelane/state/__init__.py,sha256=DZ_RyKMr2oj4p5d32u8MmDKfCxR7OEdDw-1HWKTpatA,949
@@ -162,18 +162,18 @@ librelane/steps/__main__.py,sha256=7TaEmJGiphnIqEbAALyThNQPNlelXeJRHg114P6DZ4M,1
162
162
  librelane/steps/checker.py,sha256=CxGshm_2K1-zFTso-aPZNFuu-Y9hdSv5KkjumN6pbLY,22655
163
163
  librelane/steps/common_variables.py,sha256=tTEVB9bnZ8AnufEVZUGS6fnpQWfpyyBVK_Eax5DVD64,14990
164
164
  librelane/steps/klayout.py,sha256=lVZwzGYWDpzoJMOAlKy8yHGV5BltXW1jz9FhfK5rrpo,46848
165
- librelane/steps/magic.py,sha256=GS2TzOzf3XZuYIzz5P3CQ3T_QHb47YTMaTbA9-ggb0M,28044
165
+ librelane/steps/magic.py,sha256=F_JoUZF_I4YJbNOHDvjPvEVtRJ5S5tQnVyt0I3ewXzA,28051
166
166
  librelane/steps/misc.py,sha256=3O-6V3QPnqsYACoogg9I7SrJ7C0VMQbtA0anF13wa7w,5806
167
167
  librelane/steps/netgen.py,sha256=tfHaY2ItpmmbKhSuduPvGmMw8Rqb7O1sLpXEDKSVEXg,9454
168
168
  librelane/steps/odb.py,sha256=Nrk37F33-qKz-pcCYAWvWkOlSHiLMwSqpeYldx33v1Q,40772
169
- librelane/steps/openroad.py,sha256=EIhmk6y_OwLwq2piJW09ZOLnsNSXeavMRaUrVxjICu8,111650
169
+ librelane/steps/openroad.py,sha256=Ezdf7nvV54LrhS-AfVOPy8MozEWq72yhnRj0hNlm6to,112409
170
170
  librelane/steps/openroad_alerts.py,sha256=IJyB4piBDCKXhkJswHGMYCRDwbdQsR0GZlrGGDhmW6Q,3364
171
171
  librelane/steps/pyosys.py,sha256=P7iZuht8JtUYFpDl16ucayRHVHUjsdixcBumox-SxDQ,27823
172
172
  librelane/steps/step.py,sha256=iyqPXeiG-YQ4xKbFXvOKjhCk70gj2OotYy8_Ktl8QR8,55817
173
173
  librelane/steps/tclstep.py,sha256=nBCzsu9NWQ4kjOfrX5E5va1vOo8UI8nimxSY6F_Rvq4,10188
174
174
  librelane/steps/verilator.py,sha256=h5v5l7etVitFLReI3QSgD_Z57ZmB5Mv6Sszv5Lzz7IE,9913
175
175
  librelane/steps/yosys.py,sha256=BM1R_-omt1bSZa7J_REsbDPyW4MKv5A-ZfFzCzWu4QI,12762
176
- librelane-3.1.0.dev5.dist-info/METADATA,sha256=PqcYL4HGNeoURjS-VCAc44bkij7DOsUqY-x8IXBHTNs,8974
177
- librelane-3.1.0.dev5.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
178
- librelane-3.1.0.dev5.dist-info/entry_points.txt,sha256=Ub2wE2U4uZPjJgBVTPYFeXtwhNyqAqaKT8q4jGoKIUk,274
179
- librelane-3.1.0.dev5.dist-info/RECORD,,
176
+ librelane-3.1.0.dev6.dist-info/METADATA,sha256=dEVk-4ZRDqkHTPzl5cFIWfwd9WTydbenA4zaqPupqHo,8974
177
+ librelane-3.1.0.dev6.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
178
+ librelane-3.1.0.dev6.dist-info/entry_points.txt,sha256=Ub2wE2U4uZPjJgBVTPYFeXtwhNyqAqaKT8q4jGoKIUk,274
179
+ librelane-3.1.0.dev6.dist-info/RECORD,,