-
Notifications
You must be signed in to change notification settings - Fork 874
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: Assert `GetSize(subexpr) == 1' failed in backends/smt2/smt2.cc:410. #2577
Labels
Comments
(I just checked with version |
Ok this boils down to to the memory size being |
ghost
pushed a commit
to kivikakk/yosys
that referenced
this issue
Jun 7, 2023
Fixes YosysHQ#2577. I first explored trying to do away with the address line related stuff entirely here, changing the state from `(Array (_ BitVec <abits>) (_ BitVec <width>))` to just `(_ BitVec <width>)` where abits == 0, drop the unnecessary `(select ...)` and `(store ...)` etc., but then ran into trouble where smtbmc interacts with related entities. It would be neater to use a single-member sort for the key (is there a "Unit" equivalent?) instead of `(_ BitVec 1)` where we only use the `#b0` index and not `#b1`, but this does get things working with minimally invasive changes. Tested with regular stat, `--stdt`, and `--stbv`; it looks like there's another latent stbv bug (probably similar to YosysHQ#525) I noted while testing. I think it's because we `makebits()` for the "#final" memstate variant at both lines 1245 and 801.
ghost
mentioned this issue
Jun 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running the following yosys script
I get the following assertion error:
I minimized my testcase to the following using
bugpoint
(and a manual call ofopt
afterbugpoint
was done)Here you can find the full design aswell.
The text was updated successfully, but these errors were encountered: