-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Documentation to diplomacy.(LazyModule part) #2311
Conversation
@richardxia do you want to pull this into your PR, since you have chipsalliance access and it might be easier to incrementally work on @sequencer 's PR? |
Most Nodes documentation haven’t added yet. if you are not mind, I can work on these this weekend. But I’m still confused by |
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.
Thanks for doing this! Lots of suggestions for clarity and to add my understanding a bit more. My requested changes are to not make any actual functional code changes in this PR
@mwachs5 Thanks for your review! I mistakenly introduced some code change. |
Sorry for the late reply; was on international flights at the end of last week. There are two reasons I'm a bit hesitant to do this:
Regarding 1), if @sequencer checks the "Allow edits from maintainers" checkbox on the bottom right of his PR, then anyone with commit access to chipsalliance/rocket-chip.git will be able to push to his branch, even if it exists on his fork. Going to try to take a look at all the PRs/comments regarding Diplomacy docs, both in this PR and in mine now. |
Ah cool didn't know about that feature. |
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.
Some more comments, just getting started on Nodes.scala :)
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.
I am out of time at the moment to continue reviewing this, but I have left some detailed comments for at least part of this.
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.
Can we split the "Nodes.scala" PR separate from the other one? I think Nodes is super important, but shouldn't necessarily block the other.
Co-Authored-By: Megan Wachs <[email protected]>
Co-Authored-By: Richard Xia <[email protected]>
Co-Authored-By: Richard Xia <[email protected]> Co-Authored-By: Megan Wachs <[email protected]>
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.
@mwachs5 @richardxia I append a list of changed codes for clearer code reading experience, if not appropriate, I will revert these changes.
@richardxia this is blocked on you requesting changes. Can you re-review? |
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.
I haven't been very active on this PR in the last few months, but I took another quick look, and it looks great! Thinks for adding much-needed documentation on this!
Related issue: #2308
Type of change: other enhancement
Impact: no functional change
Development Phase: proposal
Release Notes
This work is based on my previously code analysis to diplomacy in https://github.com/cnrv/diplomacy.
Since @richardxia decides to implement a scaladoced diplomacy, I create this PR based on my originaly analysis.
Originally inline comments is based on my first (actually third, first and second are totally fails) diving to diplomacy codebase, thus, it contains some misunderstanding and inaccuracy. In this PR, I will base on my previously work, writing a specific documentation to diplomacy
LazyModule
andNode
.Diplomacy must be a elegant design from mind of geniuses. However is not fully documentated, which established a protective screen between normal users to diplomaty based Module ecosystem. I hope detailed documentation like this can help us to break this screen, making diplomacy being used by everyone, not only SiFive and UCB.
This PR may contains 3 to 4 commits before finish first version, hope it can be reviewed by designers for a better quality.