diff options
author | Claire Xenia Wolf <claire@clairexen.net> | 2022-03-11 14:21:12 +0100 |
---|---|---|
committer | Claire Xenia Wolf <claire@clairexen.net> | 2022-03-11 14:21:12 +0100 |
commit | d340f302f6255b6aedcf8351a6374b34889edbbc (patch) | |
tree | a5a3f1a89b17dc71e877d95f3f50ed6df95b45ad | |
parent | ebe2ee431eb452e24f833f3bf52a13a8a330a2c3 (diff) | |
download | yosys-d340f302f6255b6aedcf8351a6374b34889edbbc.tar.gz yosys-d340f302f6255b6aedcf8351a6374b34889edbbc.tar.bz2 yosys-d340f302f6255b6aedcf8351a6374b34889edbbc.zip |
Fix handling of some formal cells in btor back-end
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
-rw-r--r-- | backends/btor/btor.cc | 8 |
1 files changed, 2 insertions, 6 deletions
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); } |