-
Notifications
You must be signed in to change notification settings - Fork 150
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
Error with Vectors of Clock Reset and Enable #1606
Comments
Actually, I didn't think to try isolating further by testing out just clocks, resets, or enables by themselves in a vector |
Ah, interesting. There are a couple of things going on here which result in this bug:
The problem is that the transformations in 2. never took into account the specialized code-paths in 1. We/I will have to think about what the best way forward is. |
Also, looking at the code for the transformations of 2., I see that it is actually missing a check for "recursive" product types such as |
I encountered a runtime error in Clash when trying to synthesize VHDL for a larger project and managed to recreate it with this example. Trying to synthesize
functionA
causes the list-index operator (Prelude.!!
) to be called with an index that is too large. The offending!!
is in theArgGen
case ofClash.Netlist.BlackBox.Util.renderTag
inclash-lib
. MeanwhilefunctionB
can be synthesized, andfunctionC
fails with a slightly more informative error.Is it a normal usage of Clash to pass around Clock, Reset, and Enable signals explicitly like this as the results of functions?
The text was updated successfully, but these errors were encountered: