这是indexloc提供的服务,不要输入任何密码
Skip to content

[adc_ctrl, verissimo][UVM69] UVM new() functions #27426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KinzaQamar
Copy link
Contributor

Verissimo complains:
The class 'adc_ctrl_env_pkg::adc_ctrl_env_cov' constructor's argument 'name' default value is not an empty string!

We create the class object through the create call which creates the object as well as register it to UVM factory. So, leaving the name argument empty inside the constructor will not affect any functionality.

@KinzaQamar KinzaQamar requested a review from a team as a code owner June 12, 2025 13:32
@KinzaQamar KinzaQamar requested review from matutem and rswarbrick and removed request for a team and matutem June 12, 2025 13:32
Copy link
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that Verissimo will actually complain elsewhere about this too: components don't actually need default values for their arguments because we don't create them with the factory. (Or that's what I remember! Maybe check with @antmarzam to make sure I've remembered rightl). So it might be best to drop the default values entirely.

Verissimo complains:
The class 'adc_ctrl_env_pkg::adc_ctrl_env_cov' constructor's
argument 'name' default value is not an empty string!

We create the class object through the create call which
creates the object as well as register it to UVM factory. So,
leaving the name argument empty inside the constructor will
not affect any functionality.

Signed-off-by: Kinza Qamar <kqzaman@lowrisc.org>
@KinzaQamar KinzaQamar reopened this Jul 23, 2025
@KinzaQamar KinzaQamar requested a review from rswarbrick July 23, 2025 15:14
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