Skip to content

Fix clock and reset names in controller bind - #1072

Open
avinashkollu-git wants to merge 1 commit into
openhwfoundation:devfrom
avinashkollu-git:avinash_ctrl_bind_clk_20260924
Open

avinashkollu-git wants to merge 1 commit into
openhwfoundation:devfrom
avinashkollu-git:avinash_ctrl_bind_clk_20260924

Conversation

@avinashkollu-git

Copy link
Copy Markdown

Problem
In scripts/formal/src/cv32e40p_bind.sv, the controller assertions are connected to clk_i and rst_ni. The controller
does not have these signals. Its ports are clk and rst_n. So the tool creates new signals that nothing drives, and the
controller assertions have no working clock.

Verilator lint shows it: Signal definition not found, creating implicitly: 'clk_i' (suggested alternative: clk), and the
same for rst_ni.

Fix
Connect clk and rst_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.

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
avinashkollu-git force-pushed the avinash_ctrl_bind_clk_20260924 branch from a01c8e1 to c1534a3 Compare September 24, 2026 06:02
@avinashkollu-git avinashkollu-git changed the title formal: fix clock and reset names in the controller bind Fix clock and reset names in controller bind Sep 24, 2026
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