-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fall back to caption from module if instance caption is missing #15
Conversation
… caption. Signed-off-by: trembel <silvano.cortesi@hotmail.com>
I'm thus unsure if this already works. @Rahix can you please guide me on testing this PR (it compiles, but I've not tested it on an atdf)? |
Hey, thanks for starting work on this issue! My usual workflow for hacking In your case, I think you should expect to see a few peripherals with missing descriptions to gain one in the diff output. |
Thanks that helps!
|
For the AVR128DA its even stranger:
Also how do you deal with duplicate entries in the atdf (they are "synonyms", e.g. the same register entry), e.g. the double index 7, 9 or 10 |
Hmm, I'd say we shouldn't do anything in that case. The description can be added later via a patch in
Can you open a separate issue for discussing that? I suspect this might be similar to #4 and we need to add logic to account for these additional elements in the ATDF.
Ugh ... We need to warn and only add one, I don't think SVD can express this situation. But should be double checked ... Do you know if this is actual interrupt "re-use" or did they just duplicate them for "fun"?
IMO it is fine like it currently looks in your diff. You'll always have the peripheral name next to its description so I'd argue it is easy to understand what is going on ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my side this change looks good and I'd merge it as it is right now :)
Can you remove the PR draft state please? |
Thanks! |
This should solve #5, s.t. on a missing caption in the
<instance ...>
element, the caption of the parent<module ...>
is used.Signed-off-by: trembel silvano.cortesi@hotmail.com