projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad48639
)
fix crash when no fst input
author
Miodrag Milanovic
<mmicko@gmail.com>
Wed, 4 May 2022 09:21:39 +0000
(11:21 +0200)
committer
Miodrag Milanovic
<mmicko@gmail.com>
Wed, 4 May 2022 09:21:39 +0000
(11:21 +0200)
passes/sat/sim.cc
patch
|
blob
|
history
diff --git
a/passes/sat/sim.cc
b/passes/sat/sim.cc
index 654378d09ec234ae84c043830905ad4c37b6f49d..d085fab2dfec4b233598c04a77d7425be26f1528 100644
(file)
--- a/
passes/sat/sim.cc
+++ b/
passes/sat/sim.cc
@@
-246,7
+246,8
@@
struct SimInstance
{
std::string name = cell->parameters.at(ID::MEMID).decode_string();
mem_cells[cell] = name;
- fst_memories[name] = shared->fst->getMemoryHandles(scope + "." + RTLIL::unescape_id(name));
+ if (shared->fst)
+ fst_memories[name] = shared->fst->getMemoryHandles(scope + "." + RTLIL::unescape_id(name));
}
if (cell->type.in(ID($assert), ID($cover), ID($assume))) {
formal_database.insert(cell);