Skip to content

Add functions to retrieve connection distance#144

Merged
sherbst-openai merged 1 commit into
mainfrom
sherbst/pinning-update
Apr 30, 2026
Merged

Add functions to retrieve connection distance#144
sherbst-openai merged 1 commit into
mainfrom
sherbst/pinning-update

Conversation

@sherbst-openai

Copy link
Copy Markdown
Contributor

The main two functions added are:

PortSlice.get_connection_distance() -> Option<i64>
PortSlice.get_connected_port_slice_and_distance() -> Option<(PortSlice, i64)>

Limited to single-bit Port and PortSlice types, and will return None if there is a tieoff or multi-fanout.

I included some sample application code in examples/derived_pins.rs to show how these features can be used to write a report of connection distances for multi-bit ports, over a module hierarchy.

@sherbst-openai sherbst-openai merged commit 1095b3a into main Apr 30, 2026
2 checks passed
@sherbst-openai sherbst-openai deleted the sherbst/pinning-update branch April 30, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant