lowRISC / lowRISC/opentitan

[reggen] Check for unused regwen

Open
#10,412 11 comments 0 reactions 0 assignees View on GitHub
Component:Tooling Earlgrey-PROD Triaged Priority:P2 Type:Enhancement Type:FutureRelease
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

We should add the ability to check for "dangling" regwen, ie, regwen's that are declared but not used.
At the moment, if we have situations like this, it's not clear it would be catch by DV's automated testing, since I believe DV checks for correct behavior for regwen's that are actually used.

Contributor guide

Open the contributing guide

Research direction

Start by locating the reggen entry point and reading how regwen declarations and uses are currently represented. Trace the existing checks and DV coverage, then define the unused-regwen diagnostic so a declaration with no use is reported and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.