Skip to content

SMALLFIX: Fix Liberty writer for slash and dollar bus names#464

Open
akashlevy wants to merge 1 commit into
parallaxsw:masterfrom
akashlevy:pr/liberty-escaped-names
Open

SMALLFIX: Fix Liberty writer for slash and dollar bus names#464
akashlevy wants to merge 1 commit into
parallaxsw:masterfrom
akashlevy:pr/liberty-escaped-names

Conversation

@akashlevy

Copy link
Copy Markdown
Contributor

Summary

  • Add portStaToLiberty helper to strip STA escape backslashes when writing Liberty names.
  • Quote bus_type values on write.
  • Allow $ in Liberty lexer TOKEN so dollar-prefixed bus/type names parse.
  • Add liberty_write_escaped_names round-trip regression (slash names + $vol_ts_new bus).

Motivation

Port/bus names containing / were written with STA escapes that Liberty cannot round-trip, and unquoted/$-prefixed bus names failed to parse or were written incorrectly.

Combines Silimate fixes for escaped slash names and dollar-bus quoting.

Test plan

  • ./regression liberty_write_escaped_names (local)

Made with Cursor

Round-trip pin/bus names that contain '/' by stripping STA escape
backslashes on write, quote bus_type values, and accept '$' in Liberty
lexer tokens so dollar-prefixed bus names parse.

Co-authored-by: Cursor <cursoragent@cursor.com>
@akashlevy akashlevy marked this pull request as ready for review July 11, 2026 20:37
@akashlevy akashlevy changed the title Fix Liberty writer for slash and dollar bus names SMALLFIX: Fix Liberty writer for slash and dollar bus names 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