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

Constraint generation from platform resource with DiffPairs of type LVDS incorrect. #1365

Closed
lethalbit opened this issue May 21, 2024 · 1 comment · Fixed by #1383
Closed
Labels
Milestone

Comments

@lethalbit
Copy link

When helping someone out with something involving Amaranth, I noticed that the latest main does not generate proper constraints for LVDS DiffPairs, causing place and route to fail due to it wanting to bind to both signals for the buffer and not just the non-inverted end of the signal.

In this case it was using the VersaECP5Platform from amaranth-boards. Specifically that board has a differential LVDS clock as the default clock, and as it stands any design using that platform is unable to be fully placed and routed due to that.

Using the minimal blink example, the generated constraints for the LVDS signal are:

LOCATE COMP "clk100_0__p" SITE "P3";
IOBUF PORT "clk100_0__p" IO_TYPE=LVDS;
LOCATE COMP "clk100_0__n" SITE "P4";
IOBUF PORT "clk100_0__n" IO_TYPE=LVDS;

Which is not correct.

I ran a git bisect from when v0.5.0.dev0 was first tagged (597b1b8) up to HEAD from main, and it looks like commit cf53448 is the commit that caused the failure.

I've not done much more digging into the cause, but I figured y'all would like to know.

@whitequark whitequark added the bug label May 22, 2024
@whitequark whitequark added this to the 0.5 milestone May 22, 2024
@whitequark
Copy link
Member

We'll look into it. Thanks!

@wanda-phi

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

Successfully merging a pull request may close this issue.

2 participants