Skip to content

SMALLFIX: Fix port-to-pin conversion for names containing slashes#463

Open
akashlevy wants to merge 1 commit into
parallaxsw:masterfrom
akashlevy:pr/slash-port
Open

SMALLFIX: Fix port-to-pin conversion for names containing slashes#463
akashlevy wants to merge 1 commit into
parallaxsw:masterfrom
akashlevy:pr/slash-port

Conversation

@akashlevy

Copy link
Copy Markdown
Contributor

Summary

  • Replace find_pin [get_name $port] with get_port_pin $port in CmdArgs.tcl and NetworkEdit.tcl when converting Port objects to pins.
  • Fix arglilst typo in get_port_pins_error so backslash escaping of the argument list is applied.
  • Add slash_port_test regression with escaped hierarchical port names (level1/level2/level3, a/b, etc.).

Motivation

Escaped Verilog port names that contain / are valid but were broken when Port→Pin conversion used the leaf name with find_pin, which treats / as hierarchy.

Test plan

  • ./regression slash_port_test (local)

Made with Cursor

Use get_port_pin instead of find_pin on the port leaf name so escaped
hierarchical port names like level1/level2/level3 resolve correctly.
Also fix arglilst typo in get_port_pins_error.

Co-authored-by: Cursor <cursoragent@cursor.com>
@akashlevy
akashlevy marked this pull request as ready for review July 11, 2026 20:38
@akashlevy akashlevy changed the title Fix port-to-pin conversion for names containing slashes SMALLFIX: Fix port-to-pin conversion for names containing slashes Jul 12, 2026
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