-
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
iterate
cannot be used to describe a reset value
#1240
Labels
Comments
A work-around is to use TemplateHaskell: module Test where
import Clash.Prelude
topEntity = register @System $(lift (iterate d1 not True)) |
christiaanb
added a commit
that referenced
this issue
Mar 20, 2020
But use `GHC.Magic.inline` to make sure it doesn't want to share the value for powerup and reset. Fixes #1240
PR #1240 is reverted in 1.2, but should also be reverted in master, reopening this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following fails to compile:
giving the following error:
looking at the debug output we see:
i.e.
which is semantically a constant, because the second element of the list is never used, but not syntactically; and so Clash doesn't want to inline it.
The text was updated successfully, but these errors were encountered: