Skip to content

dogfooding: test generated logic by constant propagation - #1197

Merged
oharboe merged 1 commit into
mainfrom
skills/dogfooding-behaviour-by-propagation
Oct 8, 2026
Merged

oharboe merged 1 commit into
mainfrom
skills/dogfooding-behaviour-by-propagation

Conversation

@oharboe

@oharboe oharboe commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

dogfooding rule 5 says a public PR's test checks intended behaviour, not golden output. This adds how, for generated logic, without a simulator: case analysis on the inputs and the storage, sta::pin_sim_logic_value on the outputs, and OpenSTA's constant propagation through the cells in between.

The worked example is The-OpenROAD-Project/OpenROAD#11669 src/ram/test/regfile_checks.tcl: reads, writes, clock gates, both reset polarities and write priority, each with a negative control that fails. Plus one pitfall: tee -variable runs its script unsubstituted.

🤖 Generated with Claude Code

Rule 5 says to test intended behaviour rather than golden output; this
adds how, for generated logic, without a simulator: case analysis on the
inputs and storage, sta::pin_sim_logic_value on the outputs, OpenSTA's
constant propagation between. The worked example is OpenROAD#11669's
register-file tests, each with a negative control. And a pitfall: tee
-variable runs its script unsubstituted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe
oharboe merged commit 9d65faa into main Oct 8, 2026
1 check passed
@oharboe
oharboe deleted the skills/dogfooding-behaviour-by-propagation branch October 8, 2026 06:33
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.

1 participant