-
Notifications
You must be signed in to change notification settings - Fork 13
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 Digilent Nexys 4 DDR board #43
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.
Looks great, and thank you for taking care to reuse existing Resources!
Apart from the minor issue with the accelerometer, do you think you could adjust the formatting to (a) consistently wrap subsignals and keyword arguments past the first line, and (b) indent the second and further lines in a resource definition by 4 spaces? Similar to versa_ecp5
. This isn't a blocker for merging though, just a wish.
New commit available, please let me know what you think about it. Thanks for reviewing. |
a="T10", b="R10", c="K16", d="K13", e="P15", | ||
f="T11", g="L18", dp="H15", invert=True, | ||
attrs=Attrs(iIOSTANDARD="LVCMOS33")), | ||
Resource("display_7seg_an", 0, |
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.
What does _an
mean?
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.
an
stands for ANode. There are 8x7segments multiplexed on this board. At first, I whish I could have define these pins in Display7SegResource
.
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.
Gotcha. I deferred updating Display7SegResource because it was not clear which multiplexing schemes are in use. So this is OK for now.
nmigen_boards/nexys4ddr.py
Outdated
attrs=Attrs(IOSTANDARD="LVCMOS33")), | ||
Resource("accelerometer_int", 0, | ||
Pins("B13 C16", dir="i"), | ||
Attrs(IOSTANDARD="LVCMOS33", PULLUP="TRUE")), |
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.
Could you merge these two resources into one manually-defined one, similarly to how you tackled temp_sensor
below?
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.
Yes I'will do that
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.
Done
Thank you! |
Tested succesfully on the actual board with blinky and an UART demo with flow control.
The others resources are based on the official XDC (and schematic for the DDR2), but not tested.