Repository navigation
Conversation
…RPT_DIR macro_place_util.tcl fills in RTLMP_RPT_FILE and RTLMP_BLOCKAGE_FILE when they are empty, but nothing reads either: rtl_macro_placer is not given them, and no other script, Makefile or config names them. They are left over from the first macro placer. Delete both. RTLMP_RPT_DIR gets the directory the script fills in as its variables.yaml default, `$(OBJECTS_DIR)/rtlmp`, so the documentation says where the reports go. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Øyvind Harboe <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the default value of the RTLMP_RPT_DIR variable to $(OBJECTS_DIR)/rtlmp in both the documentation (FlowVariables.md) and the variables configuration (variables.yaml). Additionally, it removes the redundant default initializations for RTLMP_RPT_FILE and RTLMP_BLOCKAGE_FILE from macro_place_util.tcl. There are no review comments, and I have no feedback to provide.
oharboe
marked this pull request as ready for review
December 1, 2026 11:21
Member
🔍 QoR checkMetrics reflect the PR merge build — i.e. what will land on the target branch. Commit 62 design(s) checked — 0 with regression(s), 0 without a comparable baseline. ✅ QoR is compared against the master build at this PR's merge base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
macro_place_util.tclfills inRTLMP_RPT_FILEandRTLMP_BLOCKAGE_FILEwhen they are empty, but nothing reads either:rtl_macro_placeris not given them, and no other script, Makefile, config or test names them (git grep RTLMP_RPT_FILE RTLMP_BLOCKAGE_FILE partition.txtfinds only these lines). They are left over from the first macro placer. Neither is invariables.yaml. This deletes both.RTLMP_RPT_DIR, which is passed as-report_directory, gets the directory the script fills in as itsvariables.yamldefault,$(OBJECTS_DIR)/rtlmp(make-expanded, asLEC_CHECK's default is), soFlowVariables.mdsays where the reports go. The script's own fill-in for it stays for now: its first line is next to the line #4913 changes, and whichever lands second can drop it. With the default in place it is reached only whenRTLMP_RPT_DIRis set to empty.No
TclContract.mdline: the Makefile Contract already says it, "A variable a design or platform sets, or a stage script reads, is never missing fromflow/scripts/variables.yaml" and "A variable that has a default is never read through an existence check".Why
Easier to read: two variables that do nothing no longer look like settings. Failures are hard and early: nobody sets a dead variable expecting an effect and gets none. And fewer squirrels for AI to chase: a
partition.txt.blockagepath that no command reads is exactly the kind of thing an agent follows to find out what consumes it, and nothing does.Test
gf180/uart-blocks, whose parent places the
uart_rxblock withrtl_macro_placer; master vs this branch, logs (runtimes, memory and paths dropped) and every stage metric compared:-report_directory, before and afterKEEP_VARS=1finish$(OBJECTS_DIR)/rtlmpRTLMP_RPT_DIR=<dir>floorplan<dir>RTLMP_RPT_DIR=(empty)floorplan$(OBJECTS_DIR)/rtlmpmake print-RTLMP_RPT_DIRgives<WORK_HOME>/objects/gf180/uart-blocks/base/rtlmp. The two deleted variables were never read, so there is nothing to show for them beyond identical logs.tclint/tclfmt0.9.0 are clean;flow/testtest_generate_vars.pyandtest_make_issue.pypass; this merges cleanly with each of #4910-#4925, and with the other open Tcl cleanup branches.🤖 Generated with Claude Code