Skip to content

Add systematic PRE/POST Tcl hooks for flow steps - #3961

Merged
maliberty merged 6 commits into
The-OpenROAD-Project:masterfrom
Dhirenderchoudhary:fix/pre-post-step-hooks
Mar 12, 2026
Merged

maliberty merged 6 commits into
The-OpenROAD-Project:masterfrom
Dhirenderchoudhary:fix/pre-post-step-hooks

Conversation

@Dhirenderchoudhary

@Dhirenderchoudhary Dhirenderchoudhary commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Date : 6 March 2026
Developer name : @Dhirenderchoudhary

Description

Implement systematic PRE/POST Tcl step hooks across ORFS so users can inject custom Tcl before and after each major flow step without editing core scripts.

This adds:

Generic hook resolver helper in flow/scripts/util.tcl
PRE_TCL and POST_TCL sourcing in flow step scripts (synth/floorplan/place/cts/route/final)
Variable metadata entries in flow/scripts/variables.yaml
Regenerated hook documentation in docs/user/FlowVariables.md

Related Issue

Closes #3177

Type of Change

  • New feature
  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactor / cleanup
  • CI/CD or build change

Testing

  • Existing tests pass
  • New tests added - tests for commit URL extraction, GitBox support, and pipeline integration
  • Manually verified

Checklist

  • Self-reviewed the code
  • Follows existing importer patterns (v2 pipeline)
  • No new warnings or errors introduced

@Dhirenderchoudhary
Dhirenderchoudhary force-pushed the fix/pre-post-step-hooks branch from 300713a to d7ad043 Compare March 6, 2026 13:27
@Dhirenderchoudhary
Dhirenderchoudhary marked this pull request as ready for review March 6, 2026 13:46
Comment thread flow/scripts/variables.yaml Resolved
Comment thread flow/scripts/variables.yaml Resolved
Comment thread flow/scripts/variables.yaml Resolved
Comment thread flow/scripts/global_place.tcl Resolved
Signed-off-by: Dhirenderchoudhary <dhirenderchoudhary0001@gmail.com>
@Dhirenderchoudhary
Dhirenderchoudhary force-pushed the fix/pre-post-step-hooks branch from d7ad043 to c8b1170 Compare March 6, 2026 14:27
@Dhirenderchoudhary
Dhirenderchoudhary marked this pull request as draft March 6, 2026 14:27
Signed-off-by: Dhirender Choudhary <dhirenderchoudhary0001@gmail.com>
Signed-off-by: Dhirenderchoudhary <dhirenderchoudhary0001@gmail.com>
Signed-off-by: Dhirenderchoudhary <dhirenderchoudhary0001@gmail.com>
@Dhirenderchoudhary

Copy link
Copy Markdown
Contributor Author

@maliberty fixed as per requirements please have a look

@Dhirenderchoudhary
Dhirenderchoudhary marked this pull request as ready for review March 11, 2026 11:54
Comment thread flow/scripts/util.tcl Resolved
Comment thread flow/scripts/detail_route.tcl Resolved
Comment thread flow/scripts/cts.tcl Resolved
…f-by: Dhirenderchoudhary

Signed-off-by: Dhirenderchoudhary <dhirenderchoudhary0001@gmail.com>
Remove unused source_step_tcl procedure.

Signed-off-by: Dhirender Choudhary <dhirenderchoudhary0001@gmail.com>
@maliberty
maliberty merged commit b71a488 into The-OpenROAD-Project:master Mar 12, 2026
5 checks 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.

need PRE_STEP_TCL variables to be implemented

2 participants