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

Dubious primitive instantiation for GHC.Num.Integer.integerToInt# when using xpmCdcHandshake #2744

Closed
jvnknvlgl opened this issue Jun 27, 2024 · 1 comment

Comments

@jvnknvlgl
Copy link
Collaborator

When I use xpmCdcHandshake (or specifically: xpmCdcMaybeLossy from Bittide) in my project, I get the following warning:

[WARNING] Dubious primitive instantiation for GHC.Num.Integer.integerToInt#: GHC.Num.Integer.integerToInt#: Integers are dynamically sized in simulation, but fixed-length after synthesis. Use carefully. (disable with -fclash-no-prim-warn)

I have tried to move some of the @Integers in the instantiation of the IP blocks for xpm_cdc_handshake and xpm_cdc_single to Bit or Index, but this did not resolve this warning and I can't really see where else this could go wrong.

@jvnknvlgl
Copy link
Collaborator Author

jvnknvlgl commented Aug 2, 2024

Alright, I just discovered this is a duplicate of #2386. Using xpmCdcMaybeLossy required me to derive BitPack for one of my data types and that's what caused the warning.

@jvnknvlgl jvnknvlgl closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant