Skip to content

fix: use DESIGN_DIR instead of custom dir variables in chameleon/microwatt#4080

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
oharboe:design-dir-consistency
Apr 1, 2026
Merged

fix: use DESIGN_DIR instead of custom dir variables in chameleon/microwatt#4080
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
oharboe:design-dir-consistency

Conversation

@oharboe
Copy link
Copy Markdown
Collaborator

@oharboe oharboe commented Mar 30, 2026

DESIGN_DIR is already defined in the Makefile as $(dir $(DESIGN_CONFIG)). These two designs defined redundant custom variables (chameleon_DIR, microwatt_DIR) that were identical to DESIGN_DIR. Use the standard variable to simplify config and remove non-standard patterns.

@oharboe oharboe requested a review from maliberty March 30, 2026 20:04
@maliberty maliberty enabled auto-merge March 30, 2026 21:50
@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented Mar 30, 2026

Just FYI:

I'm trying to spin of a number of these cleanup issues to whittle down the amount of patches I have to carry in https://github.com/The-OpenROAD-Project/bazel-orfs/tree/main/orfs/patches

As things settle down and I see the exact shape of changes to ORFS and they are stable, I'll start filing various other patches from that list.

@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented Mar 31, 2026

@maliberty Why on earth would this cause???

21:24:39  [ERROR] globalroute__antenna_diodes_count fail test: 4276 <= 2635

@maliberty
Copy link
Copy Markdown
Member

I would expect this to be a no-op so something isn't right. Do the wildcard matches yield the same results?

@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented Mar 31, 2026

I would expect this to be a no-op so something isn't right. Do the wildcard matches yield the same results?

I can't tell these two apart, I haven't tried to investigate. I would have dismissed it as unstable master, but it is from the same design that I changed.

oharboe and others added 2 commits April 1, 2026 06:11
…owatt

DESIGN_DIR is already defined in the Makefile as $(dir $(DESIGN_CONFIG)).
These two designs defined redundant custom variables (chameleon_DIR,
microwatt_DIR) that were identical to DESIGN_DIR. Use the standard
variable to simplify config and remove non-standard patterns.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
$(dir ...) in GNU Make always appends a trailing slash, so
DESIGN_DIR ended up as e.g. ".../chameleon/". When config.mk
files use $(DESIGN_DIR)/gds/file.gds, this produced paths with
"//" instead of "/". Mind-bogglingly, this was the only
difference we could find that caused CI metric failures
(antenna_diodes_count) in PR The-OpenROAD-Project#4080.

Strip the trailing slash with $(patsubst %/,%,...) so that
replacing custom _DIR variables with DESIGN_DIR is a true no-op.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
auto-merge was automatically disabled April 1, 2026 04:11

Head branch was pushed to by a user without write access

@oharboe oharboe force-pushed the design-dir-consistency branch from 94845ad to dc44f64 Compare April 1, 2026 04:11
@oharboe oharboe requested a review from maliberty April 1, 2026 04:11
@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented Apr 1, 2026

@maliberty I had my guy dig into it.

@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented Apr 1, 2026

@maliberty If this works, then doesn't this merit further investigation? Why would diode thingy fail due to an extra '/'?

@maliberty
Copy link
Copy Markdown
Member

Locally I ran this change and did not reproduce the problem. I ran the prior commit and got the same results. I'm guessing the 'fix' from your guy is just luck rather than anything real and there is a real non-determinism.

@maliberty maliberty enabled auto-merge April 1, 2026 04:24
@oharboe
Copy link
Copy Markdown
Collaborator Author

oharboe commented Apr 1, 2026

Locally I ran this change and did not reproduce the problem. I ran the prior commit and got the same results. I'm guessing the 'fix' from your guy is just luck rather than anything real and there is a real non-determinism.

Can we deterministically reproduce the non-determinism with this one?

If so, gold.

@maliberty maliberty merged commit 703e904 into The-OpenROAD-Project:master Apr 1, 2026
7 of 8 checks passed
@oharboe oharboe deleted the design-dir-consistency branch April 19, 2026 19:29
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