Fix clock and reset names in controller bind - #1072
Open
avinashkollu-git wants to merge 1 commit into
Open
avinashkollu-git wants to merge 1 commit into
avinashkollu-git wants to merge 1 commit into
Conversation
cv32e40p_controller has ports clk and rst_n, not clk_i and rst_ni. The bind used clk_i and rst_ni, which do not exist there, so the tool creates new signals that nothing drives. The controller assertions then have no working clock. Connect clk and rst_n, the same as the ID and EX stage binds already do. Signed-off-by: Avinash Kollu <avinashkollu123@gmail.com>
avinashkollu-git
force-pushed
the
avinash_ctrl_bind_clk_20260924
branch
from
September 24, 2026 06:02
a01c8e1 to
c1534a3
Compare
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.
Problem
In
scripts/formal/src/cv32e40p_bind.sv, the controller assertions are connected toclk_iandrst_ni. The controllerdoes not have these signals. Its ports are
clkandrst_n. So the tool creates new signals that nothing drives, and thecontroller assertions have no working clock.
Verilator lint shows it:
Signal definition not found, creating implicitly: 'clk_i'(suggested alternative:clk), and thesame for
rst_ni.Fix
Connect
clkandrst_n, the same as the ID and EX stage binds already do. Two lines. After the change the lint warnings are gone.Please note
I do not have Questa, so I could not rerun the existing controller assertions. It would be good to rerun them after this change.