Skip to content

[Fix] Backport OBI typedef underflow fix to common-cells-v2 - #47

Merged
DanielKellerM merged 1 commit into
common-cells-v2from
backport/obi-typedef-underflow
Sep 1, 2026
Merged

DanielKellerM merged 1 commit into
common-cells-v2from
backport/obi-typedef-underflow

Conversation

@DanielKellerM

@DanielKellerM DanielKellerM commented Aug 31, 2026 •

Copy link
Copy Markdown

Backports bdd7939 ("[Fix] Fix underflow in OBI typedefs", #39) from main onto common-cells-v2

@DanielKellerM
DanielKellerM marked this pull request as ready for review September 1, 2026 07:47
@DanielKellerM
DanielKellerM requested review from colluca and a lite review from Copilot September 1, 2026 07:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR backports the underflow fix for OBI typedef signal widths onto the common-cells-v2 branch by introducing a “minimum width” macro and applying it to width-dependent packed-array typedef fields to prevent [0-1:0] underflows in simulators.

Changes:

  • Introduces OBI_TYPEDEF_MIN_WIDTH(WIDTH) to clamp zero widths to 1.
  • Applies the clamp to ID and optional-signal widths in OBI_TYPEDEF_* channel/optional typedef macros.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@DanielKellerM
DanielKellerM merged commit 7e0bcc1 into common-cells-v2 Sep 1, 2026
1 check passed
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.

2 participants