Skip to content

mpl: delete the unread RTLMP_RPT_FILE/RTLMP_BLOCKAGE_FILE, default RTLMP_RPT_DIR - #4926

Open
oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:tcl-rtlmp-dead
Open

oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:tcl-rtlmp-dead

Conversation

@oharboe

@oharboe oharboe commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

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, config or test names them (git grep RTLMP_RPT_FILE RTLMP_BLOCKAGE_FILE partition.txt finds only these lines). They are left over from the first macro placer. Neither is in variables.yaml. This deletes both.

RTLMP_RPT_DIR, which is passed as -report_directory, gets the directory the script fills in as its variables.yaml default, $(OBJECTS_DIR)/rtlmp (make-expanded, as LEC_CHECK's default is), so FlowVariables.md says 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 when RTLMP_RPT_DIR is set to empty.

No TclContract.md line: the Makefile Contract already says it, "A variable a design or platform sets, or a stage script reads, is never missing from flow/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.blockage path 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_rx block with rtl_macro_placer; master vs this branch, logs (runtimes, memory and paths dropped) and every stage metric compared:

arm target -report_directory, before and after logs differing metrics differing
as configured, separate stages / KEEP_VARS=1 finish $(OBJECTS_DIR)/rtlmp 0 / 0 0 / 0
RTLMP_RPT_DIR=<dir> floorplan <dir> 0 0
RTLMP_RPT_DIR= (empty) floorplan $(OBJECTS_DIR)/rtlmp 0 0

make print-RTLMP_RPT_DIR gives <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/tclfmt 0.9.0 are clean; flow/test test_generate_vars.py and test_make_issue.py pass; this merges cleanly with each of #4910-#4925, and with the other open Tcl cleanup branches.

🤖 Generated with Claude Code

…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]>

@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 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
oharboe marked this pull request as ready for review December 1, 2026 11:21
@openroad-ci

openroad-ci commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

🔍 QoR check

Metrics reflect the PR merge build — i.e. what will land on the target branch.

Commit cd2d288 · Jenkins build #1 · Baseline: build · View build on dashboard

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 58710a4.

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.

2 participants