From: Claire Xenia Wolf Date: Fri, 11 Mar 2022 13:21:12 +0000 (+0100) Subject: Fix handling of some formal cells in btor back-end X-Git-Tag: yosys-0.16~52^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d340f302f6255b6aedcf8351a6374b34889edbbc;p=yosys.git Fix handling of some formal cells in btor back-end Signed-off-by: Claire Xenia Wolf --- diff --git a/backends/btor/btor.cc b/backends/btor/btor.cc index e0283da8a..73e88c049 100644 --- a/backends/btor/btor.cc +++ b/backends/btor/btor.cc @@ -678,11 +678,7 @@ struct BtorWorker int sid = get_bv_sid(GetSize(sig_y)); int nid = next_nid++; - btorf("%d state %d", nid, sid); - if (sig_y.is_wire() && sig_y.as_wire()->name.c_str()[0]!='$') - btorf(" %s\n", log_id(sig_y.as_wire())); - else - btorf("\n"); + btorf("%d state %d%s\n", nid, sid, getinfo(cell).c_str()); if (cell->type == ID($anyconst)) { int nid2 = next_nid++; @@ -703,7 +699,7 @@ struct BtorWorker int one_nid = get_sig_nid(State::S1); int zero_nid = get_sig_nid(State::S0); initstate_nid = next_nid++; - btorf("%d state %d\n", initstate_nid, sid); + btorf("%d state %d%s\n", initstate_nid, sid, getinfo(cell).c_str()); btorf("%d init %d %d %d\n", next_nid++, sid, initstate_nid, one_nid); btorf("%d next %d %d %d\n", next_nid++, sid, initstate_nid, zero_nid); }