mirror of https://github.com/YosysHQ/yosys.git
fix crash when no fst input
This commit is contained in:
parent
ad48639cdd
commit
8e02b3ca30
|
@ -246,7 +246,8 @@ struct SimInstance
|
||||||
{
|
{
|
||||||
std::string name = cell->parameters.at(ID::MEMID).decode_string();
|
std::string name = cell->parameters.at(ID::MEMID).decode_string();
|
||||||
mem_cells[cell] = name;
|
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))) {
|
if (cell->type.in(ID($assert), ID($cover), ID($assume))) {
|
||||||
formal_database.insert(cell);
|
formal_database.insert(cell);
|
||||||
|
|
Loading…
Reference in New Issue