-
Notifications
You must be signed in to change notification settings - Fork 299
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
[SMT] How to go from Verilog to smtlib2 like with Yosys? #7786
Comments
Hey Flavien! Can you show what you're getting in your
|
Hey @flaviens! Yeah, I think I know what the problem is here but @maerhart might be able to confirm. Currently the SMTLIB infrastructure we have is just focused on our internal verification tooling, so the SMT dialect operations correspond to building nodes of the SMTLIB AST, rather than actually building standalone operations. This means that although your SMT dialect file in or.mlir contains the construction of all the nodes in the AST, there's no We should definitely document this better, sorry for the confusion! A workaround for now might just be to add a |
Hi Flavien, thanks for checking out the SMT lowering! I agree that we should add such a pass (or modify HWToSMT) and also support emitting SMT ops that are not in a solver scope. |
Hi there, Thank you for all the answers! Here are the file contents:
I tried adding assertions in the sv file but I couldn't write any that is accepted by the circt frontend (I might have done something wrong). I also tried adding Do you have concrete ideas how to work around the current state to produce some smt2 output? Thanks! |
Hi there!
I was exploring whether it was possible to export some simple design from verilog to some smtlib2 representation like with Yosys.
The following naive experiment produced an empty file.
my_or.v
The commands I run:
Do you have some indications?
Thanks!
Flavien
The text was updated successfully, but these errors were encountered: