-
Notifications
You must be signed in to change notification settings - Fork 47
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
seq-mem
outputs x
s when not explicitly assigning to write_en
#1955
Comments
Yeah I expected things like this to come up. There's not really a great solution to this other than figuring out the default assignment stuff. I have just been explicitly setting write_en to zero when calling content_en to do a read. Maybe we should just make write_en write_together(1) so it must be written to when content enable is set. |
@nathanielnrn could you provide a minimal example program where things break for you? We can then try to debug the |
EDIT: A working reproducible example is listed in another comment below
cc @rachitnigam |
Ok found a calyx program that reproduces these results. It should be noted that this only happens in In particular doing The difference between this and the first attempt above is that the above reads in the This program needs 2 groups because having a single group seems to create an
cc @rachitnigam |
It seems like #1610 made a previously-harmless bug regarding
default-assign
(I can't find an associated issue) more dangerous.Namely, before, if
write_en
was not assigned to, and therefore would (mistakenly?) default tox
, we could still read successfully by settingcontent_en
high. With the newseq_comb
implementation:We need to explicitly assign
write_en
to be able to read anything at all, otherwise thex
inwrite_en
gets propagated to the signalread_data
of our memories.The text was updated successfully, but these errors were encountered: