Detect and auto-rename duplicate cell names before writing#998
Open
joamatab wants to merge 217 commits into
Open
Detect and auto-rename duplicate cell names before writing#998joamatab wants to merge 217 commits into
joamatab wants to merge 217 commits into
Conversation
…a lot of test regression errors
add support for nets with more than two ports
update to new kfnetlist and normalize netlist
update dependencies
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v4...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ions/cache-5 Bump actions/cache from 4 to 5
rework factories, enclosure, and cross section registration
Cross Section based cells
update taper and virtual cells to cross section bases
GDS/OASIS formats require unique cell names. Add a pre-write check that raises DuplicateCellNameError with details about which names collide, helping users diagnose the issue before it corrupts output. Also suppress a ty type-checker false positive for os.sched_getaffinity (platform-dependent attribute handled at runtime via AttributeError).
Deduplicate the repetitive name-conflict branches in TKCell.name setter into a single code path. Also add _check_duplicate_cell_names to KCLayout.write() so the layout-level write path catches duplicates the same way ProtoTKCell.write() does.
Replaces try/except AttributeError with a hasattr check so that ty can narrow the type on both macOS (attribute absent) and Linux (attribute present) without needing a platform-specific ignore comment.
Collaborator
|
umm... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
write_cells/write_oas/KCLayout.write) and auto-rename them with$1,$2, … suffixes to prevent corrupt GDS/OASIS outputTKCell.namesetter — collapse duplicated branches into a single code path, raiseDuplicateCellNameError(new exception) whendebug_namesis enabledhasattrguard foros.sched_getaffinityinconf.pyinstead of catchingAttributeErrorTest plan
$Nsuffix)kf.config.debug_names = TrueraisesDuplicateCellNameErroron name conflicts