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

Sanity check for clash-prelude compilation #272

Open
bgamari opened this issue Dec 1, 2017 · 0 comments
Open

Sanity check for clash-prelude compilation #272

bgamari opened this issue Dec 1, 2017 · 0 comments

Comments

@bgamari
Copy link
Contributor

bgamari commented Dec 1, 2017

While clash-prelude has -fexpose-all-unfoldings in ghc-options, it is possible for the user to inadvertently configure their tree such to defeat this. In such cases very odd errors will arise since Clash lowers all things lacking unfoldings to Prims. It seems like there are two things that could be done to improve robustness here,

  • Explicitly check that all Prims mentioned in a program are known (e.g. have a blackbox)
  • Add a sanity check during initialization to verify that some representative bindings from clash-prelude have unfoldings (e.g. Clash.Signal.Bundle.$fBundle(,,))
@christiaanb christiaanb added this to the 1.1 milestone Dec 18, 2018
@christiaanb christiaanb modified the milestones: 1.1, 1.2 Jan 16, 2020
@martijnbastiaan martijnbastiaan removed this from the 1.4 milestone Jan 19, 2022
leonschoorl pushed a commit that referenced this issue Jul 31, 2023
Add bitstream generation to Shake
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

3 participants