-
Notifications
You must be signed in to change notification settings - Fork 155
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
__VOID_TDECL_NOOP__
is not correctly matched
#2654
Comments
That's because the name is |
This is related to my comment in #2655: as soon as Clash needs to deduplicate, as here, it will prefix the name with a prefix based on name of the entity containing the ILA. At that point the pattern no longer matches. The pattern was probably only tested with a single ILA. If I only leave one ILA in your code above, I get this Just "__VOID_TDECL_NOOP__" but with the original code with two ILAs they are: Just "topEntity_ilaInst___VOID_TDECL_NOOP__"
Just "topEntity_ilaInst___VOID_TDECL_NOOP__" Note they haven't been deduplicated yet. [edit] |
Use the specified name if there is a `setName` tick, or the default name otherwise. Fixes #2654
If `Clash.Magic.setName` was used, use that name for the instance. Otherwise, use a fixed default name. Fixes #2654
As discovered during the discussion of #2649 by @christiaanb, the following pattern match does not seem to work correctly
clash-compiler/clash-cores/src/Clash/Cores/Xilinx/Ila/Internal.hs
Line 278 in 5e01ae2
still produces
The text was updated successfully, but these errors were encountered: