-
Notifications
You must be signed in to change notification settings - Fork 147
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
Blackbox Error Caused by Simple map #960
Comments
If I pass an 'SNat n' and 'SNat d' as extra parameters and compute the size of the 'Vec' and use 'indices', instaed of 'indicesI', the problem doesn't show any more. Regards, Paddy |
I don't think it's caused by the map. I think it's triggering due to Adding a constraint that computes the size of the
Compiling with |
Thanks Rowan, Nice analysis. Is this '-fclash-compile-ultra' flasg documented anywhere? Regards, Paddy |
It's not documented anywhere currently. I think #961 will document it. But be aware that this flag can increase the time to compile considerably. |
As @rowanG077 said: this is caused by the Clash tries to evaluate the clash-compiler/clash-ghc/src-ghc/Clash/GHC/Evaluator.hs Lines 1088 to 1092 in 9a57643
And as the comment says this is "Very fragile", because we're matching on some generated name for some internal function. And now it seems this name has changed, with ghc-8.6 it's called: $fSingI->^@#@$_f And with ghc-8.8 it changed again to: %^_f
|
Hi again,
Clash, version 1.0.1 (using clash-lib, version: 1.0.1) gives me the following error when synthesising (Clash -> vhdl):
Compiling the following triggers the error. If I change the RHS of the equation to
minBound
, the error disappears.Any suggestions?
TIA for your help.
Regards,
Paddy
The text was updated successfully, but these errors were encountered: