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

Diplomatic tilelink "v1" parameter fixes #2428

Merged
merged 3 commits into from
Apr 23, 2020

Conversation

hcook
Copy link
Member

@hcook hcook commented Apr 22, 2020

#2320 introduced a bug in TLSlaveParameters.v1copy that was then rolled out at large via #2353. The wrong name val was used in the copy constructor. Outcome of the bug is that many TLSlaves have been reporting their name as "disconnected". However, in practice these names seem to only appear in e.g. diplomatic require failures that attempt to use the name of the failing slave in their error message. I don't believe any verilog emission was actually affected by this bug.

I fixed the bug in 8ab8246, but I think this bug could have been avoided by making setName an Option so that name and setName have different types. Handling it this way cleans up the setName code; there is a fundamental difference between setting/not-setting the name and choosing to name something "". I make this further change in f29b0c9. Since the API is private I think this is still a free action, thought it might impact #2365.

@hcook hcook force-pushed the diplomatic-tilelink-parameter-fixes branch from f29b0c9 to 30963e5 Compare April 22, 2020 21:12
@hcook hcook requested a review from rmac-sifive April 22, 2020 21:49
@hcook hcook merged commit 662921b into master Apr 23, 2020
@hcook hcook deleted the diplomatic-tilelink-parameter-fixes branch May 13, 2020 21:33
@hcook hcook restored the diplomatic-tilelink-parameter-fixes branch May 13, 2020 21:33
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