projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d905990
)
btor: Use is_mem_cell in one more place.
author
Marcelina Kościelnicka
<mwk@0x04.net>
Sun, 23 May 2021 16:08:34 +0000
(18:08 +0200)
committer
Marcelina Kościelnicka
<mwk@0x04.net>
Sun, 23 May 2021 18:34:52 +0000
(20:34 +0200)
backends/btor/btor.cc
patch
|
blob
|
history
diff --git
a/backends/btor/btor.cc
b/backends/btor/btor.cc
index 936cb20fb63e519c35d88dfdb8b64e86eed2274d..bc0504d6479d4b6ddcba10b65f9b14cbb7ba98f5 100644
(file)
--- a/
backends/btor/btor.cc
+++ b/
backends/btor/btor.cc
@@
-1083,7
+1083,7
@@
struct BtorWorker
for (auto &mem : memories)
mem_dict[mem.memid] = &mem;
for (auto cell : module->cells())
- if (cell->
type.in(ID($mem), ID($memwr), ID($memrd), ID($meminit)
))
+ if (cell->
is_mem_cell(
))
mem_cells[cell] = mem_dict[cell->parameters.at(ID::MEMID).decode_string()];
btorf_push("inputs");