Skip to content
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

Add support for emitting string-valued plusargs and plusargs with no default #2453

Merged
merged 5 commits into from
May 11, 2020

Conversation

jwright6323
Copy link
Contributor

Type of change: other enhancement

Impact: API modification

Development Phase: implementation

I came across a case where I needed to add a plusarg in a BlackBoxed verilog module and found that I needed to use PlusArgArtefacts.append for verilator to correctly parse my plusarg. This worked fine, but to get the help text to make sense I needed to add some features. This does change the API for PlusArgInfo, but other function calls are backwards compatible.

@hcook
Copy link
Member

hcook commented May 8, 2020

lgtm but @seldridge is the contributor and primary user of PlusArgInfo specifically so I'd like him to weigh in about the backwards compatibiltiy aspect

@jwright6323 jwright6323 changed the title Add support for emitting string-valued and plusargs with no default Add support for emitting string-valued plusargs and plusargs with no default May 8, 2020
Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

This is looking good.

I have some inline comments on how to do this without breaking backwards compatibility.

src/main/scala/util/PlusArg.scala Outdated Show resolved Hide resolved
src/main/scala/util/PlusArg.scala Outdated Show resolved Hide resolved
src/main/scala/util/PlusArg.scala Outdated Show resolved Hide resolved
@seldridge
Copy link
Member

Forgot to mention: Scaladoc for anything added in the PR would be good, too!

@jwright6323 jwright6323 requested a review from seldridge May 8, 2020 21:16
Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

Still lgtm

Copy link
Member

@hcook hcook left a comment

Choose a reason for hiding this comment

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

nice implicit type pattern

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.

3 participants