Skip to content

Ensuring flip flop behavior is captured by write_btor #3730

Answered by nakengelhardt
gussmith23 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think it's reliably possible to reverse the transformation to $ff that clk2fflogic does to reconstitute the original clock signal, so it might not be the right approach in a synthesis context (although if you keep the pre-clk2fflogic design around, you might be able to use the conclusions of the solver on that). There's a similar issue with abc, and there what we do is to separate each clock domain and pass them individually to abc to handle. For example here they are identified in abc:

yosys/passes/techmap/abc.cc

Lines 2006 to 2167 in a9c792d

CellTypes ct(design);
std::vector<RTLIL::Cell*> all_cells = mod->selected_cells();
pool<RTLIL::Cell*> unassigned…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gussmith23
Comment options

@gussmith23
Comment options

@nakengelhardt
Comment options

Answer selected by gussmith23
@gussmith23
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants