librelane 3.1.0.dev4__tar.gz → 3.1.0.dev6__tar.gz

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 (178) hide show
  1. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/PKG-INFO +7 -5
  2. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/Readme.md +6 -4
  3. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/drc.py +2 -0
  4. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/variable.py +2 -0
  5. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/apply_def_template.py +2 -3
  6. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/cell_frequency.py +3 -3
  7. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/check_antenna_properties.py +4 -3
  8. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/contextualize.py +1 -1
  9. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/defutil.py +8 -8
  10. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/diodes.py +7 -6
  11. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/disconnected_pins.py +9 -8
  12. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/eco_buffer.py +10 -8
  13. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/eco_diode.py +9 -7
  14. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/filter_unannotated.py +7 -7
  15. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/io_place.py +23 -33
  16. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/ioplace_parser/__init__.py +3 -1
  17. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/ioplace_parser/parse.py +3 -4
  18. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/label_macro_pins.py +1 -1
  19. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/placers.py +7 -7
  20. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/power_utils.py +14 -13
  21. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/random_place.py +1 -1
  22. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/reader.py +25 -6
  23. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/remove_buffers.py +7 -6
  24. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/wire_lengths.py +2 -4
  25. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/io.tcl +40 -66
  26. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/set_routing_layers.tcl +1 -4
  27. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/drt.tcl +2 -0
  28. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/gui.tcl +4 -4
  29. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/rcx.tcl +2 -3
  30. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/sta/corner.tcl +3 -3
  31. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/pyosys/synthesize.py +26 -3
  32. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/magic.py +10 -10
  33. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/openroad.py +49 -35
  34. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/pyosys.py +2 -2
  35. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/step.py +8 -5
  36. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/pyproject.toml +16 -4
  37. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/__init__.py +0 -0
  38. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/__main__.py +0 -0
  39. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/__version__.py +0 -0
  40. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/__init__.py +0 -0
  41. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/cli.py +0 -0
  42. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/generic_dict.py +0 -0
  43. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/metrics/__init__.py +0 -0
  44. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/metrics/__main__.py +0 -0
  45. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/metrics/compare.py +0 -0
  46. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/metrics/library.py +0 -0
  47. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/metrics/metric.py +0 -0
  48. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/metrics/util.py +0 -0
  49. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/misc.py +0 -0
  50. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/ring_buffer.py +0 -0
  51. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/tcl.py +0 -0
  52. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/toolbox.py +0 -0
  53. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/tpe.py +0 -0
  54. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/common/types.py +0 -0
  55. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/__init__.py +0 -0
  56. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/__main__.py +0 -0
  57. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/config.py +0 -0
  58. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/flow.py +0 -0
  59. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/pdk_compat.py +0 -0
  60. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/preprocessor.py +0 -0
  61. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/config/removals.py +0 -0
  62. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/container.py +0 -0
  63. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/env_info.py +0 -0
  64. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/hold_eco_demo/config.yaml +0 -0
  65. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/hold_eco_demo/demo.v +0 -0
  66. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm/config.yaml +0 -0
  67. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm/pin_order.cfg +0 -0
  68. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm/src/impl.sdc +0 -0
  69. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm/src/signoff.sdc +0 -0
  70. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm/src/spm.v +0 -0
  71. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm/verify/spm_tb.v +0 -0
  72. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm-user_project_wrapper/SPM_example.v +0 -0
  73. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm-user_project_wrapper/base_sdc_file.sdc +0 -0
  74. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm-user_project_wrapper/config-tut.json +0 -0
  75. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm-user_project_wrapper/config.json +0 -0
  76. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm-user_project_wrapper/defines.v +0 -0
  77. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm-user_project_wrapper/template.def +0 -0
  78. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/examples/spm-user_project_wrapper/user_project_wrapper.v +0 -0
  79. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/__init__.py +0 -0
  80. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/builtins.py +0 -0
  81. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/chip.py +0 -0
  82. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/classic.py +0 -0
  83. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/cli.py +0 -0
  84. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/flow.py +0 -0
  85. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/misc.py +0 -0
  86. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/optimizing.py +0 -0
  87. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/sequential.py +0 -0
  88. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/flows/synth_explore.py +0 -0
  89. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/help/__main__.py +0 -0
  90. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/logging/__init__.py +0 -0
  91. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/logging/logger.py +0 -0
  92. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/pdk_hashes.yaml +0 -0
  93. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/plugins.py +0 -0
  94. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/py.typed +0 -0
  95. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/base.sdc +0 -0
  96. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/klayout/Readme.md +0 -0
  97. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/klayout/insert_cell.py +0 -0
  98. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/klayout/open_design.py +0 -0
  99. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/klayout/render.py +0 -0
  100. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/klayout/stream_out.py +0 -0
  101. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/klayout/xml_drc_report_to_json.py +0 -0
  102. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/klayout/xor.drc +0 -0
  103. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/Readme.md +0 -0
  104. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/common/read.tcl +0 -0
  105. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/def/antenna_check.tcl +0 -0
  106. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/def/mag.tcl +0 -0
  107. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/def/mag_gds.tcl +0 -0
  108. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/drc.tcl +0 -0
  109. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/extract_spice.tcl +0 -0
  110. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/gds/drc_batch.tcl +0 -0
  111. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/gds/erase_box.tcl +0 -0
  112. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/gds/extras_mag.tcl +0 -0
  113. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/gds/mag_with_pointers.tcl +0 -0
  114. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/get_bbox.tcl +0 -0
  115. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/lef/extras_maglef.tcl +0 -0
  116. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/lef/maglef.tcl +0 -0
  117. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/lef.tcl +0 -0
  118. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/open.tcl +0 -0
  119. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/spice_rcx.tcl +0 -0
  120. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/magic/wrapper.tcl +0 -0
  121. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/netgen/setup.tcl +0 -0
  122. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/lefutil.py +0 -0
  123. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/odbpy/snap_to_grid.py +0 -0
  124. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/antenna_check.tcl +0 -0
  125. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/antenna_repair.tcl +0 -0
  126. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/buffer_list.tcl +0 -0
  127. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/dpl.tcl +0 -0
  128. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/dpl_cell_pad.tcl +0 -0
  129. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/grt.tcl +0 -0
  130. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/pad_cfg.tcl +0 -0
  131. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/pdn_cfg.tcl +0 -0
  132. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/resizer.tcl +0 -0
  133. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/set_global_connections.tcl +0 -0
  134. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/set_layer_adjustments.tcl +0 -0
  135. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/set_power_nets.tcl +0 -0
  136. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/common/set_rc.tcl +0 -0
  137. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/cts.tcl +0 -0
  138. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/cut_rows.tcl +0 -0
  139. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/dpl.tcl +0 -0
  140. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/dump_rc.tcl +0 -0
  141. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/fill.tcl +0 -0
  142. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/floorplan.tcl +0 -0
  143. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/gpl.tcl +0 -0
  144. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/grt.tcl +0 -0
  145. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/insert_buffer.tcl +0 -0
  146. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/ioplacer.tcl +0 -0
  147. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/irdrop.tcl +0 -0
  148. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/pad.tcl +0 -0
  149. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/pdn.tcl +0 -0
  150. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/repair_design.tcl +0 -0
  151. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/repair_design_postgrt.tcl +0 -0
  152. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/rsz_timing_postcts.tcl +0 -0
  153. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/rsz_timing_postgrt.tcl +0 -0
  154. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/sta/check_macro_instances.tcl +0 -0
  155. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/tapcell.tcl +0 -0
  156. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/ungpl.tcl +0 -0
  157. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/write_cdl.tcl +0 -0
  158. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/openroad/write_views.tcl +0 -0
  159. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/pyosys/construct_abc_script.py +0 -0
  160. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/pyosys/json_header.py +0 -0
  161. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/pyosys/ys_common.py +0 -0
  162. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/scripts/tclsh/hello.tcl +0 -0
  163. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/state/__init__.py +0 -0
  164. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/state/__main__.py +0 -0
  165. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/state/design_format.py +0 -0
  166. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/state/state.py +0 -0
  167. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/__init__.py +0 -0
  168. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/__main__.py +0 -0
  169. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/checker.py +0 -0
  170. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/common_variables.py +0 -0
  171. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/klayout.py +0 -0
  172. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/misc.py +0 -0
  173. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/netgen.py +0 -0
  174. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/odb.py +0 -0
  175. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/openroad_alerts.py +0 -0
  176. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/tclstep.py +0 -0
  177. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/verilator.py +0 -0
  178. {librelane-3.1.0.dev4 → librelane-3.1.0.dev6}/librelane/steps/yosys.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: librelane
3
- Version: 3.1.0.dev4
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
@@ -80,7 +80,7 @@ LibreLane includes two reference flows (`Classic` and `Chip`) that are built
80
80
  entirely using open-source EDA tools.
81
81
 
82
82
  You can find the documentation
83
- [here](https://librelane.readthedocs.io/en/latest/getting_started/) to get
83
+ [here](https://librelane.readthedocs.io/en/stable/getting_started/) to get
84
84
  started. You can discuss LibreLane in the
85
85
  [FOSSi Chat Matrix Server](https://fossi-chat.org).
86
86
 
@@ -121,7 +121,7 @@ Works for macOS and Linux (x86-64 and aarch64). Recommended, as it is more
121
121
  integrated with your filesystem and overall has less upload and download deltas.
122
122
 
123
123
  See
124
- [Nix-based installation](https://librelane.readthedocs.io/en/latest/installation/nix_installation/index.html)
124
+ [Nix-based installation](https://librelane.readthedocs.io/en/stable/installation/nix_installation/index.html)
125
125
  in the docs for more info.
126
126
 
127
127
  ### Docker
@@ -129,7 +129,7 @@ in the docs for more info.
129
129
  Works for Windows, macOS and Linux (x86-64 and aarch64).
130
130
 
131
131
  See
132
- [Docker-based installation](https://librelane.readthedocs.io/en/latest/installation/docker_installation/index.html)
132
+ [Docker-based installation](https://librelane.readthedocs.io/en/stable/installation/docker_installation/index.html)
133
133
  in the docs for more info.
134
134
 
135
135
  Do note you'll need to add `--dockerized` right after `librelane` in most CLI
@@ -145,7 +145,9 @@ python3 -m pip install --upgrade librelane
145
145
  ```
146
146
 
147
147
  Python-only installations are presently unsupported and entirely at your own
148
- risk.
148
+ risk, but you may consult
149
+ [Manual installation](https://librelane.readthedocs.io/en/stable/installation/manual_installation/index.html)
150
+ in the docs for more info.
149
151
 
150
152
  ## Usage
151
153
 
@@ -45,7 +45,7 @@ LibreLane includes two reference flows (`Classic` and `Chip`) that are built
45
45
  entirely using open-source EDA tools.
46
46
 
47
47
  You can find the documentation
48
- [here](https://librelane.readthedocs.io/en/latest/getting_started/) to get
48
+ [here](https://librelane.readthedocs.io/en/stable/getting_started/) to get
49
49
  started. You can discuss LibreLane in the
50
50
  [FOSSi Chat Matrix Server](https://fossi-chat.org).
51
51
 
@@ -86,7 +86,7 @@ Works for macOS and Linux (x86-64 and aarch64). Recommended, as it is more
86
86
  integrated with your filesystem and overall has less upload and download deltas.
87
87
 
88
88
  See
89
- [Nix-based installation](https://librelane.readthedocs.io/en/latest/installation/nix_installation/index.html)
89
+ [Nix-based installation](https://librelane.readthedocs.io/en/stable/installation/nix_installation/index.html)
90
90
  in the docs for more info.
91
91
 
92
92
  ### Docker
@@ -94,7 +94,7 @@ in the docs for more info.
94
94
  Works for Windows, macOS and Linux (x86-64 and aarch64).
95
95
 
96
96
  See
97
- [Docker-based installation](https://librelane.readthedocs.io/en/latest/installation/docker_installation/index.html)
97
+ [Docker-based installation](https://librelane.readthedocs.io/en/stable/installation/docker_installation/index.html)
98
98
  in the docs for more info.
99
99
 
100
100
  Do note you'll need to add `--dockerized` right after `librelane` in most CLI
@@ -110,7 +110,9 @@ python3 -m pip install --upgrade librelane
110
110
  ```
111
111
 
112
112
  Python-only installations are presently unsupported and entirely at your own
113
- risk.
113
+ risk, but you may consult
114
+ [Manual installation](https://librelane.readthedocs.io/en/stable/installation/manual_installation/index.html)
115
+ in the docs for more info.
114
116
 
115
117
  ## Usage
116
118
 
@@ -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"):
@@ -245,6 +245,8 @@ class Macro:
245
245
 
246
246
  # we need to make a copy here, as we're modifying the dictionary as we iterate
247
247
  for instance_name, instance in self.instances.copy().items():
248
+ if not isinstance(instance, Instance):
249
+ instance = Instance(**instance)
248
250
  if (array := instance.array) is not None:
249
251
  # we have a macro to expand
250
252
  # first, check it's valid
@@ -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)