Skip to content

Fix two syn correctness bugs#10755

Merged
povik merged 3 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:syn-fixes
Jun 25, 2026
Merged

Fix two syn correctness bugs#10755
povik merged 3 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:syn-fixes

Conversation

@povik

@povik povik commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix omitted mapping for feedthrough inverters, and port order confusion if both .lib and .sv supply competing definitions for a given macro

Type of Change

  • Bug fix

Impact

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have included tests to prevent regressions.
  • I have signed my commits (DCO).

Related Issues

Fixes #10745 #10746 #10747

povik added 2 commits June 25, 2026 19:16
Signed-off-by: Martin Povišer <povik@cutebit.org>
Signed-off-by: Martin Povišer <povik@cutebit.org>
@povik povik self-assigned this Jun 25, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the elaboration and target import flow to correctly handle macro cell connections when the Verilog instantiation port order does not match the Liberty definition. It introduces port-name-based mapping using offset maps, adds robust validation for port existence and width mismatches, and includes a new integration test with a dummy RAM macro. Additionally, elaborateText now accepts an optional sta::dbSta pointer, and combinational mapping tests are updated. The review feedback suggests replacing C-style casts with static_cast in import.cc to improve type safety and adhere to modern C++ standards.

Comment thread src/syn/src/flow/import.cc
Comment thread src/syn/src/flow/import.cc
@maliberty

Copy link
Copy Markdown
Member

@codex review

@maliberty

Copy link
Copy Markdown
Member
[2026-06-25T19:49:17.352Z] src/syn/test/elab_test.cc:14:10: error: use of private header from outside its module: 'flow/import.h' [-Wprivate-header]
[2026-06-25T19:49:17.352Z]    14 | #include "flow/import.h"

seems familiar from a PR from @hzeller

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 6e74077d34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Signed-off-by: Martin Povišer <povik@cutebit.org>
@povik povik enabled auto-merge June 25, 2026 21:36
@povik povik merged commit 9f87d49 into The-OpenROAD-Project:master Jun 25, 2026
15 of 16 checks passed
@openroad-ci openroad-ci deleted the syn-fixes branch June 25, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants