-
Notifications
You must be signed in to change notification settings - Fork 110
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
Factor out DDR3. #162
Factor out DDR3. #162
Conversation
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.
The main concern I have with this PR is the complex interplay between the various attrs
parameters. It seems hard to understand looking at the call site. Moreover, the way attributes are overridden both implicitly (by the platform code) and explicitly (by the or
clauses) seems like it would make writing correct definitions challenging.
I agree, I am not sure myself what the best way forward is if we want to have a Similarly with the Arrow DECA platform I have been noticing that the peripherals are not as straight-forward, as most of the resources have pins that require two different I/O standards (e.g. 1.2V and 1.8V). |
This is what I've leaned towards so far. There's nothing inherently wrong with writing out the |
All right, that is clear! I will work on this in my next cycle. |
This is a simplified version of the previous commit where the |
Thank you! |
The following commit factors out any instance of the
Resource
function specifying a 'ddr3' resource with a call toDDR3Resource
. See also issue #15. The following boards have been updated to useDDR3Resource
:As DDR3 uses differential signalling,
DDR3Resource
acceptsdiff_attrs
in addition toattrs
. Some board also specify different attributes for specific pins like the rst, dq and dqs pins.