mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Added log_warning() API
This commit is contained in:
@@ -85,7 +85,7 @@ struct SubmodWorker
|
||||
for (auto &conn : cell->connections())
|
||||
flag_signal(conn.second, true, ct.cell_output(cell->type, conn.first), ct.cell_input(cell->type, conn.first), false, false);
|
||||
} else {
|
||||
log("WARNING: Port directions for cell %s (%s) are unknown. Assuming inout for all ports.\n", cell->name.c_str(), cell->type.c_str());
|
||||
log_warning("Port directions for cell %s (%s) are unknown. Assuming inout for all ports.\n", cell->name.c_str(), cell->type.c_str());
|
||||
for (auto &conn : cell->connections())
|
||||
flag_signal(conn.second, true, true, true, false, false);
|
||||
}
|
||||
@@ -102,7 +102,7 @@ struct SubmodWorker
|
||||
for (auto &conn : cell->connections())
|
||||
flag_signal(conn.second, false, false, false, true, true);
|
||||
if (flag_found_something)
|
||||
log("WARNING: Port directions for cell %s (%s) are unknown. Assuming inout for all ports.\n", cell->name.c_str(), cell->type.c_str());
|
||||
log_warning("Port directions for cell %s (%s) are unknown. Assuming inout for all ports.\n", cell->name.c_str(), cell->type.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user