Replace the "Pause" button with a sticky "Display Step" checkbox - #3720
Replace the "Pause" button with a sticky "Display Step" checkbox#3720kevinxing-a12 wants to merge 20 commits into
Conversation
There was a problem hiding this comment.
Looks good, thanks.
For the documentation, I see some updates that I'd like to get you to do, but can be in another PR.
- Update the screenshot of the Misc menu.
- I think we should add a "Misc. Display Controls" major heading
and group the manual moves and display step as subitems under it. - Document the 'save' button (outputs current graphics to a file)
- Add a subheading that for the 'Debug' button. Text would be "The CAD optimization algorithms can be paused at different user-specified points so you can examine the current placement and/or routing solution, as detailed at' (link to): https://vtr--3720.org.readthedocs.build/en/3720/vpr/debug_aids/#placer-and-router-debugger
- I think we should delete the 'Button Description Table' as we don't use simple buttons to control these features anymore.
- Add a screenshot of the analytical placement view, and update the text to say we can visualize global (analytical) placement, detailed (SA) placement, and routing.
Make sense?
| draw_state->forced_pause = true; | ||
| draw_state->display_step = checked; | ||
|
|
||
| application->update_message(draw_state->default_message); |
There was a problem hiding this comment.
Not sure why we're doing the application->update_message().
|
Should we merge this and leave the doc updates for another PR, or put them in this PR? I'm OK either way. |
|
I'm working on a new feature which I will push shortly. It will be part of this PR. |
AmirhosseinPoolad
left a comment
There was a problem hiding this comment.
I like it, thanks! Had some minor comments.
|
Question: is the spinbox greyed out when the proceed by step option is turned off? I think it should be if possible. |
|
Yes it is.
The line |
|
@vaughnbetz @AmirhosseinPoolad I updated the graphics doc by following these:
I also updated the Critical Path section so we mention that we can now draw multiple critical paths and how you can do that. Available here: https://vtr--3720.org.readthedocs.build/en/3720/vpr/graphics/ |

Description
In the GUI, I replaced the "Pause" pushbutton under the "Misc." menu with a sticky "Display Step" checkbox:

After this change, I came into some compile errors from the GUI test cases, so I changed the parts that originally corresponds to the "Pause" pushbutton to the new "Display Step" checkbox.
I also updated descriptions about this display step feature in the graphics doc, and removed the old ones.
Related Issue
Motivation and Context
Previously, if people wanted to stop the graphics at every iteration/update during placement/routing, they would have to click on the "Pause" button every time before clicking on "Next Step".
Now, the graphics will automatically stop at the next iteration/update whenever people click on "Next Step", provided that this "Display Step" checkbox is toggled. When it is off, the graphics will proceed as normal.
How Has This Been Tested?
Tested this new feature on multiple regression tests. During testing, the checkbox was toggled at several different flow stages, and no bug was spotted.
Types of changes
Checklist: