mirror of https://github.com/YosysHQ/yosys.git
Allow non-unique modules without state in sim writeback-mode
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
parent
a9072dc23c
commit
1bc832a8e1
|
@ -685,10 +685,11 @@ struct SimInstance
|
|||
|
||||
void writeback(pool<Module*> &wbmods)
|
||||
{
|
||||
if (!ff_database.empty() || !mem_database.empty()) {
|
||||
if (wbmods.count(module))
|
||||
log_error("Instance %s of module %s is not unique: Writeback not possible. (Fix by running 'uniquify'.)\n", hiername().c_str(), log_id(module));
|
||||
|
||||
wbmods.insert(module);
|
||||
}
|
||||
|
||||
for (auto wire : module->wires())
|
||||
wire->attributes.erase(ID::init);
|
||||
|
|
Loading…
Reference in New Issue