librelane 3.0.0.dev38__tar.gz → 3.0.0.dev40__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.
Potentially problematic release.
This version of librelane might be problematic. Click here for more details.
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/PKG-INFO +16 -16
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/Readme.md +2 -2
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/metrics/__main__.py +4 -3
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/flow.py +2 -2
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/variable.py +1 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/cli.py +15 -12
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/flow.py +10 -5
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/drc.tcl +7 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/io.tcl +11 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/pdn_cfg.tcl +73 -14
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/ioplacer.tcl +6 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/sta/check_macro_instances.tcl +1 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/pyosys/synthesize.py +33 -7
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/pyosys/ys_common.py +10 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/common_variables.py +45 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/magic.py +14 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/openroad.py +7 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/pyosys.py +22 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/step.py +3 -1
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/verilator.py +37 -8
- librelane-3.0.0.dev40/pyproject.toml +73 -0
- librelane-3.0.0.dev38/pyproject.toml +0 -73
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/__main__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/__version__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/cli.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/drc.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/generic_dict.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/metrics/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/metrics/library.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/metrics/metric.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/metrics/util.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/misc.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/ring_buffer.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/tcl.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/toolbox.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/tpe.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/common/types.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/__main__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/config.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/pdk_compat.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/preprocessor.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/config/removals.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/container.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/env_info.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm/config.yaml +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm/pin_order.cfg +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm/src/impl.sdc +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm/src/signoff.sdc +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm/src/spm.v +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm/verify/spm_tb.v +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm-user_project_wrapper/SPM_example.v +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm-user_project_wrapper/base_sdc_file.sdc +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm-user_project_wrapper/config-tut.json +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm-user_project_wrapper/config.json +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm-user_project_wrapper/defines.v +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm-user_project_wrapper/template.def +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/examples/spm-user_project_wrapper/user_project_wrapper.v +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/builtins.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/classic.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/misc.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/optimizing.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/sequential.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/flows/synth_explore.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/help/__main__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/logging/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/logging/logger.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/pdk_hashes.yaml +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/plugins.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/py.typed +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/base.sdc +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/klayout/Readme.md +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/klayout/open_design.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/klayout/render.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/klayout/stream_out.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/klayout/xml_drc_report_to_json.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/klayout/xor.drc +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/Readme.md +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/common/read.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/def/antenna_check.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/def/mag.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/def/mag_gds.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/extract_spice.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/gds/drc_batch.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/gds/erase_box.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/gds/extras_mag.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/gds/mag_with_pointers.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/get_bbox.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/lef/extras_maglef.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/lef/maglef.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/lef.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/open.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/magic/wrapper.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/netgen/setup.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/apply_def_template.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/cell_frequency.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/check_antenna_properties.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/contextualize.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/defutil.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/diodes.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/disconnected_pins.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/eco_buffer.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/eco_diode.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/filter_unannotated.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/io_place.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/ioplace_parser/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/ioplace_parser/parse.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/label_macro_pins.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/lefutil.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/placers.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/power_utils.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/random_place.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/reader.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/remove_buffers.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/snap_to_grid.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/odbpy/wire_lengths.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/antenna_check.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/antenna_repair.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/basic_mp.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/buffer_list.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/dpl.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/dpl_cell_pad.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/grt.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/resizer.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/set_global_connections.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/set_layer_adjustments.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/set_power_nets.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/set_rc.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/set_routing_layers.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/cts.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/cut_rows.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/dpl.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/drt.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/dump_rc.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/fill.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/floorplan.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/gpl.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/grt.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/gui.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/insert_buffer.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/irdrop.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/pdn.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/rcx.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/repair_design.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/repair_design_postgrt.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/rsz_timing_postcts.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/rsz_timing_postgrt.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/sta/corner.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/tapcell.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/ungpl.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/write_cdl.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/write_views.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/pyosys/construct_abc_script.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/pyosys/json_header.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/tclsh/hello.tcl +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/state/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/state/__main__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/state/design_format.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/state/state.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/__init__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/__main__.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/checker.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/cvc_rv.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/klayout.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/misc.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/netgen.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/odb.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/openroad_alerts.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/tclstep.py +0 -0
- {librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/steps/yosys.py +0 -0
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: librelane
|
|
3
|
-
Version: 3.0.0.
|
|
3
|
+
Version: 3.0.0.dev40
|
|
4
4
|
Summary: An infrastructure for implementing chip design flows
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Requires-Python: >=3.8.1,<4
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Maintainer: Mohamed Gaber
|
|
7
|
+
Maintainer-email: me@donn.website
|
|
8
|
+
Requires-Python: >=3.10
|
|
11
9
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
13
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
-
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Requires-Dist: ciel (>=2.3.1,<3)
|
|
18
16
|
Requires-Dist: click (>=8,<8.2)
|
|
19
17
|
Requires-Dist: cloup (>=3.0.5,<4)
|
|
20
18
|
Requires-Dist: deprecated (>=1.2.10,<2)
|
|
21
19
|
Requires-Dist: httpx (>=0.22.0,<0.29)
|
|
22
|
-
Requires-Dist: klayout (>=0.29.0,<0.
|
|
23
|
-
Requires-Dist: libparse (
|
|
20
|
+
Requires-Dist: klayout (>=0.29.0,<0.32.0)
|
|
21
|
+
Requires-Dist: lln-libparse (==0.56.*)
|
|
24
22
|
Requires-Dist: lxml (>=4.9.0)
|
|
25
23
|
Requires-Dist: psutil (>=5.9.0)
|
|
26
24
|
Requires-Dist: pyyaml (>=5,<7)
|
|
27
25
|
Requires-Dist: rapidfuzz (>=3.9.0,<4)
|
|
28
26
|
Requires-Dist: rich (>=12,<15)
|
|
29
|
-
Requires-Dist: semver (>=3.0.2,<4
|
|
30
|
-
Requires-Dist: yamlcore (>=0.0.2,<0.0
|
|
27
|
+
Requires-Dist: semver (>=3.0.2,<4)
|
|
28
|
+
Requires-Dist: yamlcore (>=0.0.2,<0.1.0)
|
|
29
|
+
Project-URL: Bug Tracker, https://github.com/librelane/librelane/issues
|
|
31
30
|
Project-URL: Documentation, https://librelane.readthedocs.io
|
|
31
|
+
Project-URL: Homepage, https://librelane.org/
|
|
32
32
|
Project-URL: Repository, https://github.com/librelane/librelane
|
|
33
33
|
Description-Content-Type: text/markdown
|
|
34
34
|
|
|
35
35
|
<h1 align="center">LibreLane</h1>
|
|
36
36
|
<p align="center">
|
|
37
37
|
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0"/></a>
|
|
38
|
-
<a href="https://www.python.org"><img src="https://img.shields.io/badge/Python-3.
|
|
38
|
+
<a href="https://www.python.org"><img src="https://img.shields.io/badge/Python-3.10-3776AB.svg?style=flat&logo=python&logoColor=white" alt="Python ≥3.10" /></a>
|
|
39
39
|
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code Style: black"/></a>
|
|
40
40
|
<a href="https://mypy-lang.org/"><img src="https://www.mypy-lang.org/static/mypy_badge.svg" alt="Checked with mypy"/></a>
|
|
41
41
|
<a href="https://nixos.org/"><img src="https://img.shields.io/static/v1?logo=nixos&logoColor=white&label=&message=Built%20with%20Nix&color=41439a" alt="Built with Nix"/></a>
|
|
@@ -72,7 +72,7 @@ Colaboratory by following
|
|
|
72
72
|
|
|
73
73
|
You'll need the following:
|
|
74
74
|
|
|
75
|
-
* Python **3.
|
|
75
|
+
* Python **3.10** or higher with PIP, Venv and Tkinter
|
|
76
76
|
|
|
77
77
|
### Nix (Recommended)
|
|
78
78
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<h1 align="center">LibreLane</h1>
|
|
2
2
|
<p align="center">
|
|
3
3
|
<a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0"/></a>
|
|
4
|
-
<a href="https://www.python.org"><img src="https://img.shields.io/badge/Python-3.
|
|
4
|
+
<a href="https://www.python.org"><img src="https://img.shields.io/badge/Python-3.10-3776AB.svg?style=flat&logo=python&logoColor=white" alt="Python ≥3.10" /></a>
|
|
5
5
|
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code Style: black"/></a>
|
|
6
6
|
<a href="https://mypy-lang.org/"><img src="https://www.mypy-lang.org/static/mypy_badge.svg" alt="Checked with mypy"/></a>
|
|
7
7
|
<a href="https://nixos.org/"><img src="https://img.shields.io/static/v1?logo=nixos&logoColor=white&label=&message=Built%20with%20Nix&color=41439a" alt="Built with Nix"/></a>
|
|
@@ -38,7 +38,7 @@ Colaboratory by following
|
|
|
38
38
|
|
|
39
39
|
You'll need the following:
|
|
40
40
|
|
|
41
|
-
* Python **3.
|
|
41
|
+
* Python **3.10** or higher with PIP, Venv and Tkinter
|
|
42
42
|
|
|
43
43
|
### Nix (Recommended)
|
|
44
44
|
|
|
@@ -358,9 +358,10 @@ def compare_remote(
|
|
|
358
358
|
for chunk in r.iter_bytes(chunk_size=8192):
|
|
359
359
|
bio_gz.write(chunk)
|
|
360
360
|
bio_gz.seek(0)
|
|
361
|
-
with
|
|
362
|
-
fileobj=bio,
|
|
363
|
-
|
|
361
|
+
with (
|
|
362
|
+
gzip.GzipFile(fileobj=bio_gz) as bio,
|
|
363
|
+
tarfile.TarFile(fileobj=bio, mode="r") as tf,
|
|
364
|
+
):
|
|
364
365
|
for file in tf:
|
|
365
366
|
if file.isdir():
|
|
366
367
|
continue
|
|
@@ -107,13 +107,13 @@ pdk_variables = [
|
|
|
107
107
|
Variable(
|
|
108
108
|
"FP_IO_HLAYER",
|
|
109
109
|
str,
|
|
110
|
-
"The metal layer on which to place
|
|
110
|
+
"The metal layer on which to place horizontally-aligned (long side parallel with the horizon) pins alongside the east and west edges of the die.",
|
|
111
111
|
pdk=True,
|
|
112
112
|
),
|
|
113
113
|
Variable(
|
|
114
114
|
"FP_IO_VLAYER",
|
|
115
115
|
str,
|
|
116
|
-
"The metal layer on which to place
|
|
116
|
+
"The metal layer on which to place vertically-aligned (long side perpendicular to the horizon) pins alongside the north and south edges of the die.",
|
|
117
117
|
pdk=True,
|
|
118
118
|
),
|
|
119
119
|
Variable("RT_MIN_LAYER", str, "The lowest metal layer to route on.", pdk=True),
|
|
@@ -440,7 +440,7 @@ class Variable:
|
|
|
440
440
|
return_value = list()
|
|
441
441
|
raw = value
|
|
442
442
|
if isinstance(raw, list) or isinstance(raw, tuple):
|
|
443
|
-
if
|
|
443
|
+
if type_origin == list and type_args == (str,):
|
|
444
444
|
if any(isinstance(item, List) for item in raw):
|
|
445
445
|
Variable.__flatten_list(value)
|
|
446
446
|
pass
|
|
@@ -218,27 +218,30 @@ def cloup_flow_opts(
|
|
|
218
218
|
function decorated with @cloup.command (https://cloup.readthedocs.io/en/stable/autoapi/cloup/index.html#cloup.command).
|
|
219
219
|
|
|
220
220
|
The following keyword arguments will be passed to the decorated function.
|
|
221
|
+
|
|
221
222
|
* Those postfixed ‡ are compatible with the constructor for :class:`Flow`.
|
|
222
223
|
* Those postfixed § are compatible with the :meth:`Flow.start`.
|
|
223
224
|
|
|
225
|
+
---
|
|
226
|
+
|
|
224
227
|
* Flow configuration options (if parameter ``config_options`` is ``True``):
|
|
225
228
|
* ``flow_name``: ``Optional[str]``: A valid flow ID to be used with :meth:`Flow.factory.get`
|
|
226
|
-
* ``config_override_strings
|
|
229
|
+
* ``config_override_strings`` ‡: ``Optional[Iterable[str]]``
|
|
227
230
|
* Sequential flow controls (if parameter ``sequential_flow_controls`` is ``True``)
|
|
228
|
-
* ``frm
|
|
229
|
-
* ``to
|
|
230
|
-
* ``skip
|
|
231
|
+
* ``frm`` §: ``Optional[str]``: Start from a step with this ID. Supported by sequential flows.
|
|
232
|
+
* ``to`` §: ``Optional[str]``: Stop at a step with this id. Supported by sequential flows.
|
|
233
|
+
* ``skip`` §: ``Iterable[str]``: Skip these steps. Supported by sequential flows.
|
|
231
234
|
* Sequential flow reproducible (if parameter ``sequential_flow_reproducible`` is ``True``)
|
|
232
|
-
* ``reproducible
|
|
235
|
+
* ``reproducible`` §: ``str``: Create a reproducible for a step with is ID, aborting the flow afterwards. Supported by sequential flows.
|
|
233
236
|
* Flow run options (if parameter ``run_options`` is ``True``):
|
|
234
|
-
* ``tag
|
|
235
|
-
* ``last_run
|
|
236
|
-
* ``with_initial_state
|
|
237
|
+
* ``tag`` §: ``Optional[str]``
|
|
238
|
+
* ``last_run`` §: ``bool``: If ``True``, ``tag`` is guaranteed to be None.
|
|
239
|
+
* ``with_initial_state`` §: ``Optional[State]``
|
|
237
240
|
* PDK options
|
|
238
|
-
* ``use_volare
|
|
239
|
-
* ``pdk_root
|
|
240
|
-
* ``pdk
|
|
241
|
-
* ``scl
|
|
241
|
+
* ``use_volare`` : ``bool``
|
|
242
|
+
* ``pdk_root`` ‡: ``Optional[str]``
|
|
243
|
+
* ``pdk`` ‡: ``str``
|
|
244
|
+
* ``scl`` ‡: ``Optional[str]``
|
|
242
245
|
* ``config_files``: ``Iterable[str]``: Paths to configuration files (if
|
|
243
246
|
parameter ``accept_config_files`` is ``True``)
|
|
244
247
|
|
|
@@ -534,8 +534,11 @@ class Flow(ABC):
|
|
|
534
534
|
|
|
535
535
|
:param with_initial_state: An optional initial state object to use.
|
|
536
536
|
If not provided:
|
|
537
|
+
|
|
537
538
|
* If resuming a previous run, the latest ``state_out.json`` (by filesystem modification date)
|
|
539
|
+
|
|
538
540
|
* If not, an empty state object is created.
|
|
541
|
+
|
|
539
542
|
:param tag: A name for this invocation of the flow. If not provided,
|
|
540
543
|
one based on a date string will be created.
|
|
541
544
|
|
|
@@ -913,9 +916,10 @@ class Flow(ABC):
|
|
|
913
916
|
# Despite the name, this is the Magic DRC report simply
|
|
914
917
|
# converted into a KLayout-compatible format. Confusing!
|
|
915
918
|
drc_xml_out = os.path.join(openlane_signoff_dir, "drc.klayout.xml")
|
|
916
|
-
with
|
|
917
|
-
|
|
918
|
-
|
|
919
|
+
with (
|
|
920
|
+
open(drc_xml, encoding="utf8") as i,
|
|
921
|
+
open(drc_xml_out, "w", encoding="utf8") as o,
|
|
922
|
+
):
|
|
919
923
|
o.write(
|
|
920
924
|
"<!-- Despite the name, this is the Magic DRC report in KLayout format. -->\n"
|
|
921
925
|
)
|
|
@@ -999,8 +1003,9 @@ class Flow(ABC):
|
|
|
999
1003
|
A factory singleton for Flows, allowing Flow types to be registered and then
|
|
1000
1004
|
retrieved by name.
|
|
1001
1005
|
|
|
1002
|
-
See
|
|
1003
|
-
|
|
1006
|
+
See
|
|
1007
|
+
`Factory (object-oriented programming) on Wikipedia <https://en.wikipedia.org/wiki/Factory_(object-oriented_programming)>`_
|
|
1008
|
+
for a primer.
|
|
1004
1009
|
"""
|
|
1005
1010
|
|
|
1006
1011
|
__registry: ClassVar[Dict[str, Type[Flow]]] = {}
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
+
# Flatten cells
|
|
16
|
+
if { [info exists ::env(MAGIC_GDS_FLATGLOB)] } {
|
|
17
|
+
foreach {gds_flatglob} $::env(MAGIC_GDS_FLATGLOB) {
|
|
18
|
+
gds flatglob $gds_flatglob
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
if { $::env(MAGIC_DRC_USE_GDS) } {
|
|
16
23
|
gds read $::env(CURRENT_GDS)
|
|
17
24
|
} else {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# Copyright 2025 LibreLane Contributors
|
|
2
|
+
#
|
|
3
|
+
# Adapted from OpenLane
|
|
4
|
+
#
|
|
1
5
|
# Copyright 2022-2025 Efabless Corporation
|
|
2
6
|
#
|
|
3
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -641,6 +645,13 @@ proc append_if_not_flag {list_arg glob_variable_name flag} {
|
|
|
641
645
|
}
|
|
642
646
|
}
|
|
643
647
|
|
|
648
|
+
proc append_if_equals {list_arg glob_variable_name value flag} {
|
|
649
|
+
upvar $list_arg local_array
|
|
650
|
+
if { [info exists ::env($glob_variable_name)] && $::env($glob_variable_name) == $value } {
|
|
651
|
+
lappend local_array $flag
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
644
655
|
# Code below adapted from OpenROAD Flow Scripts under the following license:
|
|
645
656
|
#
|
|
646
657
|
# BSD 3-Clause License
|
{librelane-3.0.0.dev38 → librelane-3.0.0.dev40}/librelane/scripts/openroad/common/pdn_cfg.tcl
RENAMED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# Copyright 2025 LibreLane Contributors
|
|
2
|
+
#
|
|
3
|
+
# Adapted from OpenLane
|
|
4
|
+
#
|
|
1
5
|
# Copyright 2020-2022 Efabless Corporation
|
|
2
6
|
#
|
|
3
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -12,6 +16,7 @@
|
|
|
12
16
|
# See the License for the specific language governing permissions and
|
|
13
17
|
# limitations under the License.
|
|
14
18
|
|
|
19
|
+
source $::env(SCRIPTS_DIR)/openroad/common/io.tcl
|
|
15
20
|
source $::env(SCRIPTS_DIR)/openroad/common/set_global_connections.tcl
|
|
16
21
|
set_global_connections
|
|
17
22
|
|
|
@@ -43,12 +48,24 @@ foreach vdd $::env(VDD_NETS) gnd $::env(GND_NETS) {
|
|
|
43
48
|
set_voltage_domain -name CORE -power $::env(VDD_NET) -ground $::env(GND_NET) \
|
|
44
49
|
-secondary_power $secondary
|
|
45
50
|
|
|
51
|
+
|
|
52
|
+
|
|
46
53
|
if { $::env(PDN_MULTILAYER) == 1 } {
|
|
54
|
+
|
|
55
|
+
set arg_list [list]
|
|
56
|
+
if { $::env(PDN_ENABLE_PINS) } {
|
|
57
|
+
lappend arg_list -pins "$::env(PDN_VERTICAL_LAYER) $::env(PDN_HORIZONTAL_LAYER)"
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
define_pdn_grid \
|
|
48
61
|
-name stdcell_grid \
|
|
49
62
|
-starts_with POWER \
|
|
50
63
|
-voltage_domain CORE \
|
|
51
|
-
|
|
64
|
+
{*}$arg_list
|
|
65
|
+
|
|
66
|
+
set arg_list [list]
|
|
67
|
+
append_if_equals arg_list PDN_EXTEND_TO "core_ring" -extend_to_core_ring
|
|
68
|
+
append_if_equals arg_list PDN_EXTEND_TO "boundary" -extend_to_boundary
|
|
52
69
|
|
|
53
70
|
add_pdn_stripe \
|
|
54
71
|
-grid stdcell_grid \
|
|
@@ -57,7 +74,8 @@ if { $::env(PDN_MULTILAYER) == 1 } {
|
|
|
57
74
|
-pitch $::env(PDN_VPITCH) \
|
|
58
75
|
-offset $::env(PDN_VOFFSET) \
|
|
59
76
|
-spacing $::env(PDN_VSPACING) \
|
|
60
|
-
-starts_with POWER
|
|
77
|
+
-starts_with POWER \
|
|
78
|
+
{*}$arg_list
|
|
61
79
|
|
|
62
80
|
add_pdn_stripe \
|
|
63
81
|
-grid stdcell_grid \
|
|
@@ -66,17 +84,28 @@ if { $::env(PDN_MULTILAYER) == 1 } {
|
|
|
66
84
|
-pitch $::env(PDN_HPITCH) \
|
|
67
85
|
-offset $::env(PDN_HOFFSET) \
|
|
68
86
|
-spacing $::env(PDN_HSPACING) \
|
|
69
|
-
-starts_with POWER
|
|
87
|
+
-starts_with POWER \
|
|
88
|
+
{*}$arg_list
|
|
70
89
|
|
|
71
90
|
add_pdn_connect \
|
|
72
91
|
-grid stdcell_grid \
|
|
73
92
|
-layers "$::env(PDN_VERTICAL_LAYER) $::env(PDN_HORIZONTAL_LAYER)"
|
|
74
93
|
} else {
|
|
94
|
+
|
|
95
|
+
set arg_list [list]
|
|
96
|
+
if { $::env(PDN_ENABLE_PINS) } {
|
|
97
|
+
lappend arg_list -pins "$::env(PDN_VERTICAL_LAYER)"
|
|
98
|
+
}
|
|
99
|
+
|
|
75
100
|
define_pdn_grid \
|
|
76
101
|
-name stdcell_grid \
|
|
77
102
|
-starts_with POWER \
|
|
78
103
|
-voltage_domain CORE \
|
|
79
|
-
|
|
104
|
+
{*}$arg_list
|
|
105
|
+
|
|
106
|
+
set arg_list [list]
|
|
107
|
+
append_if_equals arg_list PDN_EXTEND_TO "core_ring" -extend_to_core_ring
|
|
108
|
+
append_if_equals arg_list PDN_EXTEND_TO "boundary" -extend_to_boundary
|
|
80
109
|
|
|
81
110
|
add_pdn_stripe \
|
|
82
111
|
-grid stdcell_grid \
|
|
@@ -85,7 +114,8 @@ if { $::env(PDN_MULTILAYER) == 1 } {
|
|
|
85
114
|
-pitch $::env(PDN_VPITCH) \
|
|
86
115
|
-offset $::env(PDN_VOFFSET) \
|
|
87
116
|
-spacing $::env(PDN_VSPACING) \
|
|
88
|
-
-starts_with POWER
|
|
117
|
+
-starts_with POWER \
|
|
118
|
+
{*}$arg_list
|
|
89
119
|
}
|
|
90
120
|
|
|
91
121
|
# Adds the standard cell rails if enabled.
|
|
@@ -105,21 +135,50 @@ if { $::env(PDN_ENABLE_RAILS) == 1 } {
|
|
|
105
135
|
# Adds the core ring if enabled.
|
|
106
136
|
if { $::env(PDN_CORE_RING) == 1 } {
|
|
107
137
|
if { $::env(PDN_MULTILAYER) == 1 } {
|
|
138
|
+
set arg_list [list]
|
|
139
|
+
append_if_flag arg_list PDN_CORE_RING_ALLOW_OUT_OF_DIE -allow_out_of_die
|
|
140
|
+
append_if_flag arg_list PDN_CORE_RING_CONNECT_TO_PADS -connect_to_pads
|
|
141
|
+
append_if_equals arg_list PDN_EXTEND_TO "boundary" -extend_to_boundary
|
|
142
|
+
|
|
143
|
+
set pdn_core_vertical_layer $::env(PDN_VERTICAL_LAYER)
|
|
144
|
+
set pdn_core_horizontal_layer $::env(PDN_HORIZONTAL_LAYER)
|
|
145
|
+
|
|
146
|
+
if { [info exists ::env(PDN_CORE_VERTICAL_LAYER)] } {
|
|
147
|
+
set pdn_core_vertical_layer $::env(PDN_CORE_VERTICAL_LAYER)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if { [info exists ::env(PDN_CORE_HORIZONTAL_LAYER)] } {
|
|
151
|
+
set pdn_core_horizontal_layer $::env(PDN_CORE_HORIZONTAL_LAYER)
|
|
152
|
+
}
|
|
153
|
+
|
|
108
154
|
add_pdn_ring \
|
|
109
|
-
-allow_out_of_die \
|
|
110
155
|
-grid stdcell_grid \
|
|
111
|
-
-layers "
|
|
156
|
+
-layers "$pdn_core_vertical_layer $pdn_core_horizontal_layer" \
|
|
112
157
|
-widths "$::env(PDN_CORE_RING_VWIDTH) $::env(PDN_CORE_RING_HWIDTH)" \
|
|
113
158
|
-spacings "$::env(PDN_CORE_RING_VSPACING) $::env(PDN_CORE_RING_HSPACING)" \
|
|
114
|
-
-core_offset "$::env(PDN_CORE_RING_VOFFSET) $::env(PDN_CORE_RING_HOFFSET)"
|
|
159
|
+
-core_offset "$::env(PDN_CORE_RING_VOFFSET) $::env(PDN_CORE_RING_HOFFSET)" \
|
|
160
|
+
{*}$arg_list
|
|
161
|
+
|
|
162
|
+
if { [info exists ::env(PDN_CORE_VERTICAL_LAYER)] } {
|
|
163
|
+
add_pdn_connect \
|
|
164
|
+
-grid stdcell_grid \
|
|
165
|
+
-layers "$::env(PDN_CORE_VERTICAL_LAYER) $::env(PDN_HORIZONTAL_LAYER)"
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if { [info exists ::env(PDN_CORE_HORIZONTAL_LAYER)] } {
|
|
169
|
+
add_pdn_connect \
|
|
170
|
+
-grid stdcell_grid \
|
|
171
|
+
-layers "$::env(PDN_CORE_HORIZONTAL_LAYER) $::env(PDN_VERTICAL_LAYER)"
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if { [info exists ::env(PDN_CORE_VERTICAL_LAYER)] && [info exists ::env(PDN_CORE_HORIZONTAL_LAYER)] } {
|
|
175
|
+
add_pdn_connect \
|
|
176
|
+
-grid stdcell_grid \
|
|
177
|
+
-layers "$::env(PDN_CORE_VERTICAL_LAYER) $::env(PDN_CORE_HORIZONTAL_LAYER)"
|
|
178
|
+
}
|
|
179
|
+
|
|
115
180
|
} else {
|
|
116
181
|
throw APPLICATION "PDN_CORE_RING cannot be used when PDN_MULTILAYER is set to false."
|
|
117
|
-
# add_pdn_ring \
|
|
118
|
-
# -grid stdcell_grid \
|
|
119
|
-
# -layers "$::env(PDN_VERTICAL_LAYER)" \
|
|
120
|
-
# -widths "$::env(PDN_CORE_RING_VWIDTH)" \
|
|
121
|
-
# -spacings "$::env(PDN_CORE_RING_VSPACING)" \
|
|
122
|
-
# -core_offset "$::env(PDN_CORE_RING_VOFFSET)"
|
|
123
182
|
}
|
|
124
183
|
}
|
|
125
184
|
|
|
@@ -53,6 +53,12 @@ if { $::env(IO_PIN_PLACEMENT_MODE) == "annealing" } {
|
|
|
53
53
|
lappend arg_list -annealing
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
if { [info exists ::env(IO_EXCLUDE_PIN_REGION)] } {
|
|
57
|
+
foreach exclude $::env(IO_EXCLUDE_PIN_REGION) {
|
|
58
|
+
lappend arg_list -exclude $exclude
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
set HMETAL $::env(FP_IO_HLAYER)
|
|
57
63
|
set VMETAL $::env(FP_IO_VLAYER)
|
|
58
64
|
|
|
@@ -27,7 +27,7 @@ read_timing_info
|
|
|
27
27
|
|
|
28
28
|
set error_count 0
|
|
29
29
|
foreach {instance_name macro_name} $::env(_check_macro_instances) {
|
|
30
|
-
set instances [get_cells
|
|
30
|
+
set instances [get_cells $instance_name]
|
|
31
31
|
set instance_count [llength $instances]
|
|
32
32
|
if { $instance_count < 1 } {
|
|
33
33
|
puts stderr "\[ERROR\] No macro instance $instance_name found."
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
import os
|
|
35
35
|
import json
|
|
36
36
|
import shutil
|
|
37
|
+
from typing import List, Optional
|
|
37
38
|
|
|
38
39
|
import click
|
|
39
40
|
|
|
@@ -142,11 +143,37 @@ def librelane_opt(
|
|
|
142
143
|
|
|
143
144
|
|
|
144
145
|
def librelane_synth(
|
|
145
|
-
d,
|
|
146
|
+
d,
|
|
147
|
+
top,
|
|
148
|
+
flatten,
|
|
149
|
+
report_dir,
|
|
150
|
+
*,
|
|
151
|
+
booth=False,
|
|
152
|
+
abc_dff=False,
|
|
153
|
+
undriven=True,
|
|
154
|
+
keep_hierarchy_min_cost: Optional[int],
|
|
155
|
+
keep_hierarchy_instances: List[str],
|
|
156
|
+
keep_hierarchy_modules: List[str],
|
|
146
157
|
):
|
|
158
|
+
|
|
147
159
|
d.run_pass("hierarchy", "-check", "-top", top, "-nokeep_prints", "-nokeep_asserts")
|
|
148
160
|
librelane_proc(d, report_dir)
|
|
149
161
|
|
|
162
|
+
if keep_hierarchy_min_cost:
|
|
163
|
+
d.run_pass("keep_hierarchy", "-min_cost", str(keep_hierarchy_min_cost))
|
|
164
|
+
|
|
165
|
+
if keep_hierarchy_instances:
|
|
166
|
+
for keep_hierarchy_instance in keep_hierarchy_instances:
|
|
167
|
+
d.run_pass(
|
|
168
|
+
"setattr", "-set", "keep_hierarchy", "1", keep_hierarchy_instance
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
if keep_hierarchy_modules:
|
|
172
|
+
for keep_hierarchy_module in keep_hierarchy_modules:
|
|
173
|
+
d.run_pass(
|
|
174
|
+
"setattr", "-mod", "-set", "keep_hierarchy", "1", keep_hierarchy_module
|
|
175
|
+
)
|
|
176
|
+
|
|
150
177
|
if flatten:
|
|
151
178
|
d.run_pass("flatten") # Flatten the design hierarchy
|
|
152
179
|
|
|
@@ -294,12 +321,10 @@ def synthesize(
|
|
|
294
321
|
)
|
|
295
322
|
d.run_pass("rename", "-top", config["DESIGN_NAME"])
|
|
296
323
|
d.run_pass("select", "-module", config["DESIGN_NAME"])
|
|
297
|
-
|
|
324
|
+
if config["SYNTH_SHOW"]:
|
|
298
325
|
d.run_pass(
|
|
299
326
|
"show", "-format", "dot", "-prefix", os.path.join(step_dir, "hierarchy")
|
|
300
327
|
)
|
|
301
|
-
except Exception:
|
|
302
|
-
pass
|
|
303
328
|
if config["SYNTH_NORMALIZE_SINGLE_BIT_VECTORS"]:
|
|
304
329
|
d.run_pass("attrmap", "-remove", "single_bit_vector")
|
|
305
330
|
d.run_pass("select", "-clear")
|
|
@@ -356,12 +381,15 @@ def synthesize(
|
|
|
356
381
|
booth=config["SYNTH_MUL_BOOTH"],
|
|
357
382
|
abc_dff=config["SYNTH_ABC_DFF"],
|
|
358
383
|
undriven=config.get("SYNTH_TIE_UNDEFINED") is not None,
|
|
384
|
+
keep_hierarchy_min_cost=config["SYNTH_KEEP_HIERARCHY_MIN_COST"],
|
|
385
|
+
keep_hierarchy_instances=config["SYNTH_KEEP_HIERARCHY_INSTANCES"],
|
|
386
|
+
keep_hierarchy_modules=config["SYNTH_KEEP_HIERARCHY_MODULES"],
|
|
359
387
|
)
|
|
360
388
|
|
|
361
389
|
d.run_pass("delete", "t:$print")
|
|
362
390
|
d.run_pass("delete", "t:$assert")
|
|
363
391
|
|
|
364
|
-
|
|
392
|
+
if config["SYNTH_SHOW"]:
|
|
365
393
|
d.run_pass(
|
|
366
394
|
"show",
|
|
367
395
|
"-format",
|
|
@@ -369,8 +397,6 @@ def synthesize(
|
|
|
369
397
|
"-prefix",
|
|
370
398
|
os.path.join(step_dir, "primitive_techmap"),
|
|
371
399
|
)
|
|
372
|
-
except Exception:
|
|
373
|
-
pass
|
|
374
400
|
|
|
375
401
|
d.run_pass("opt")
|
|
376
402
|
d.run_pass("opt_clean", "-purge")
|
|
@@ -112,7 +112,14 @@ def _Design_add_blackbox_models(
|
|
|
112
112
|
|
|
113
113
|
if ext in [".v", ".sv", ".vh"]:
|
|
114
114
|
self.run_pass(
|
|
115
|
-
"read_verilog",
|
|
115
|
+
"read_verilog",
|
|
116
|
+
"-sv",
|
|
117
|
+
"-setattr",
|
|
118
|
+
"keep_hierarchy",
|
|
119
|
+
"-lib",
|
|
120
|
+
*include_args,
|
|
121
|
+
*define_args,
|
|
122
|
+
model,
|
|
116
123
|
)
|
|
117
124
|
elif ext in [".lib"]:
|
|
118
125
|
self.run_pass(
|
|
@@ -121,6 +128,8 @@ def _Design_add_blackbox_models(
|
|
|
121
128
|
"-ignore_miss_dir",
|
|
122
129
|
"-setattr",
|
|
123
130
|
"blackbox",
|
|
131
|
+
"-setattr",
|
|
132
|
+
"keep_hierarchy",
|
|
124
133
|
model,
|
|
125
134
|
)
|
|
126
135
|
else:
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# Copyright 2025 LibreLane Contributors
|
|
2
|
+
#
|
|
3
|
+
# Adapted from OpenLane
|
|
4
|
+
#
|
|
1
5
|
# Copyright 2023 Efabless Corporation
|
|
2
6
|
#
|
|
3
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -12,7 +16,7 @@
|
|
|
12
16
|
# See the License for the specific language governing permissions and
|
|
13
17
|
# limitations under the License.
|
|
14
18
|
from decimal import Decimal
|
|
15
|
-
from typing import Optional, List
|
|
19
|
+
from typing import Optional, List, Literal
|
|
16
20
|
|
|
17
21
|
from ..config import Variable
|
|
18
22
|
|
|
@@ -238,6 +242,20 @@ pdn_variables = [
|
|
|
238
242
|
pdk=True,
|
|
239
243
|
deprecated_names=["FP_PDN_CORE_RING_HOFFSET"],
|
|
240
244
|
),
|
|
245
|
+
Variable(
|
|
246
|
+
"PDN_CORE_RING_CONNECT_TO_PADS",
|
|
247
|
+
bool,
|
|
248
|
+
"If specified, the core side of the pad pins will be connected to the ring.",
|
|
249
|
+
default=False,
|
|
250
|
+
pdk=True,
|
|
251
|
+
),
|
|
252
|
+
Variable(
|
|
253
|
+
"PDN_CORE_RING_ALLOW_OUT_OF_DIE",
|
|
254
|
+
bool,
|
|
255
|
+
"If specified, the ring shapes are allowed to be outside the die boundary.",
|
|
256
|
+
default=True,
|
|
257
|
+
pdk=True,
|
|
258
|
+
),
|
|
241
259
|
Variable(
|
|
242
260
|
"PDN_RAIL_LAYER",
|
|
243
261
|
str,
|
|
@@ -267,6 +285,32 @@ pdn_variables = [
|
|
|
267
285
|
deprecated_names=["FP_PDN_VERTICAL_LAYER", "FP_PDN_LOWER_LAYER"],
|
|
268
286
|
pdk=True,
|
|
269
287
|
),
|
|
288
|
+
Variable(
|
|
289
|
+
"PDN_CORE_HORIZONTAL_LAYER",
|
|
290
|
+
Optional[str],
|
|
291
|
+
"Defines the horizontal PDN layer for the core ring. Falls back to `PDN_HORIZONTAL_LAYER` if undefined.",
|
|
292
|
+
pdk=True,
|
|
293
|
+
),
|
|
294
|
+
Variable(
|
|
295
|
+
"PDN_CORE_VERTICAL_LAYER",
|
|
296
|
+
Optional[str],
|
|
297
|
+
"Defines the vertical PDN layer for the core ring. Falls back to `PDN_VERTICAL_LAYER` if undefined.",
|
|
298
|
+
pdk=True,
|
|
299
|
+
),
|
|
300
|
+
Variable(
|
|
301
|
+
"PDN_EXTEND_TO",
|
|
302
|
+
Literal["core_ring", "boundary"],
|
|
303
|
+
"Defines how far the stripes and rings extend.",
|
|
304
|
+
default="core_ring",
|
|
305
|
+
pdk=True,
|
|
306
|
+
),
|
|
307
|
+
Variable(
|
|
308
|
+
"PDN_ENABLE_PINS",
|
|
309
|
+
bool,
|
|
310
|
+
"If specified, the power straps will be promoted to block pins.",
|
|
311
|
+
default=True,
|
|
312
|
+
pdk=True,
|
|
313
|
+
),
|
|
270
314
|
]
|
|
271
315
|
|
|
272
316
|
routing_layer_variables = [
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# Copyright 2025 LibreLane Contributors
|
|
2
|
+
#
|
|
3
|
+
# Adapted from OpenLane
|
|
4
|
+
#
|
|
1
5
|
# Copyright 2023 Efabless Corporation
|
|
2
6
|
#
|
|
3
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -389,7 +393,7 @@ class DRC(MagicStep):
|
|
|
389
393
|
name = "DRC"
|
|
390
394
|
long_name = "Design Rule Checks"
|
|
391
395
|
|
|
392
|
-
inputs = [DesignFormat.DEF, DesignFormat.GDS]
|
|
396
|
+
inputs = [DesignFormat.DEF.mkOptional(), DesignFormat.GDS]
|
|
393
397
|
outputs = []
|
|
394
398
|
|
|
395
399
|
config_vars = MagicStep.config_vars + [
|
|
@@ -399,6 +403,11 @@ class DRC(MagicStep):
|
|
|
399
403
|
"A flag to choose whether to run the Magic DRC checks on GDS or not. If not, then the checks will be done on the DEF view of the design, which is a bit faster, but may be less accurate as some DEF/LEF elements are abstract.",
|
|
400
404
|
default=True,
|
|
401
405
|
),
|
|
406
|
+
Variable(
|
|
407
|
+
"MAGIC_GDS_FLATGLOB",
|
|
408
|
+
Optional[List[str]],
|
|
409
|
+
"Flatten cells by name pattern on input. May be used to avoid false positive DRC errors. The strings may use standard shell-type glob patterns, with * for any length string match, ? for any single character match, \\ for special characters, and [] for matching character sets or ranges.",
|
|
410
|
+
),
|
|
402
411
|
]
|
|
403
412
|
|
|
404
413
|
def get_script_path(self):
|
|
@@ -408,6 +417,10 @@ class DRC(MagicStep):
|
|
|
408
417
|
reports_dir = os.path.join(self.step_dir, "reports")
|
|
409
418
|
mkdirp(reports_dir)
|
|
410
419
|
|
|
420
|
+
# Check that the DEF exists if needed
|
|
421
|
+
if not self.config["MAGIC_DRC_USE_GDS"]:
|
|
422
|
+
assert state_in.get(DesignFormat.DEF)
|
|
423
|
+
|
|
411
424
|
views_updates, metrics_updates = super().run(state_in, **kwargs)
|
|
412
425
|
|
|
413
426
|
report_path = os.path.join(reports_dir, "drc_violations.magic.rpt")
|
|
@@ -1213,6 +1213,12 @@ class IOPlacement(OpenROADStep):
|
|
|
1213
1213
|
Optional[Path],
|
|
1214
1214
|
"Points to the DEF file to be used as a template.",
|
|
1215
1215
|
),
|
|
1216
|
+
Variable(
|
|
1217
|
+
"IO_EXCLUDE_PIN_REGION",
|
|
1218
|
+
Optional[List[str]],
|
|
1219
|
+
"List of regions where pins cannot be placed. The regions are strings in the format `{edge}:{interval}` where edge is `top|bottom|left|right` and the interval is either `*` to exclude the entire edge or `{begin}-{end}` to exclude a part of the edge, where `begin` and `end` are either absolute distance values or themselves `*` to denote the very start or end of an edge.",
|
|
1220
|
+
units="µm",
|
|
1221
|
+
),
|
|
1216
1222
|
]
|
|
1217
1223
|
)
|
|
1218
1224
|
|
|
@@ -2394,7 +2400,7 @@ class RepairDesignPostGPL(ResizerStep):
|
|
|
2394
2400
|
Variable(
|
|
2395
2401
|
"DESIGN_REPAIR_BUFFER_OUTPUT_PORTS",
|
|
2396
2402
|
bool,
|
|
2397
|
-
"Specifies whether or not to insert buffers on
|
|
2403
|
+
"Specifies whether or not to insert buffers on output ports when design repairs are run.",
|
|
2398
2404
|
default=True,
|
|
2399
2405
|
deprecated_names=["PL_RESIZER_BUFFER_OUTPUT_PORTS"],
|
|
2400
2406
|
),
|