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

Add serdes resources to Versa ECP5 boards #254

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eibach
Copy link

@eibach eibach commented Feb 17, 2025

No description provided.

Resource("serdes", 1,
Subsignal("rx", DiffPairs("Y8", "Y7")),
Subsignal("tx", DiffPairs("W8", "W9")),
),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the reason I didn't add these resources originally is because:

  1. The two channels of a SerDes are not interchangeable so provided you are using a given dual, there is completely zero point in constraining anything as it will not result in any change to the netlist (but it might cause a placement error);
  2. Early on, nextpnr did not even support constraining SerDes instances via their pins;
  3. Most of the time you pick the dual by its explicit location on die, not by its pins.

However I don't object to merging it either. (The comment seems useless since it is fully implied by the code below it.)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are totally right, this is somewhat sketchy since ther serdes pins are fixed on ECP5 anyway.
The Luna ECP5 serdes implementation uses these for building with Diamond and the comment says it does not work without. I guess I will find out later if it is really required. For the time being my local package is good enough for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants