OpenROAD icon indicating copy to clipboard operation
OpenROAD copied to clipboard

gui: Add find by name to CTS viewer

Open LucasYuki opened this issue 1 year ago • 5 comments

Closes #5463.

Changes:

  • Makes the find dialog search instances in the CTS Viewer. (Implements #5463)
  • Find dialog focuses on the find text box when the popup opens

If instances are found, the CTS Viewer zooms to fit all found objects. When the design has multiple clock signals, the current tree changes to where the instances are found.

LucasYuki avatar Aug 27 '24 21:08 LucasYuki

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] avatar Aug 27 '24 22:08 github-actions[bot]

@LucasYuki FYI you can use the special keywords in GH to link a PR to an issue(s), that way when the PR gets merged, the issue will be closed. This needs to be done in the PR description.

AcKoucher avatar Aug 28 '24 13:08 AcKoucher

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] avatar Aug 28 '24 22:08 github-actions[bot]

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] avatar Aug 28 '24 22:08 github-actions[bot]

What is the thinking behind the option find_in_cts? In what scenarios do we not want to find in cts? The select command doesn't expose the option in tcl from what I see. The inspector always passes true for instances.

maliberty avatar Aug 29 '24 04:08 maliberty

@maliberty, the way it is implemented now it isn't possible to search nets in the Clock Tree Viewer, so when searching for nets we don't need to emit the findInCts signal.

I can remove this flag from the Gui::select and always pass as true the argument find_in_cts to the slot MainWindow::addSelected, but since the MainWindow::addSelected slot is responsible for emitting the findInCts signal and is called elsewhere, the flag is necessary on this slot.

Another alternative is to implement a checkbox in the find dialog, something like "Find the Clock Tree Viewer" to enable the search, so the user can choose to use or not this feature.

LucasYuki avatar Aug 29 '24 17:08 LucasYuki

We don't have such an option for find and the other displays (layout, inspector). @precisionmoon - you originally asked for this feature - do you need to have a find but not in CTS option?

maliberty avatar Sep 04 '24 23:09 maliberty

We don't have such an option for find and the other displays (layout, inspector). @precisionmoon - you originally asked for this feature - do you need to have a find but not in CTS option?

Sorry for the delayed response. No, we don't want an option to enable/disable search. Let's enable search all the time.

precisionmoon avatar Sep 11 '24 00:09 precisionmoon

You missed signing your last commit.

maliberty avatar Sep 16 '24 19:09 maliberty

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] avatar Sep 16 '24 19:09 github-actions[bot]

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] avatar Sep 16 '24 20:09 github-actions[bot]