Skip to content

Commit a8a65db

Browse files
authored
Merge pull request #4791 from YosysHQ/lofty/demote-dfflibmap-warnings
dfflibmap: demote some warnings to debug
2 parents 912b38e + fd05f73 commit a8a65db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

passes/techmap/dfflibmap.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static bool parse_next_state(const LibertyAst *cell, const LibertyAst *attr, std
116116

117117
if (tree.kind == LibertyExpression::Kind::EMPTY) {
118118
if (!warned_cells.count(cell_name)) {
119-
log_warning("Invalid expression '%s' in next_state attribute of cell '%s' - skipping.\n", expr.c_str(), cell_name.c_str());
119+
log_debug("Invalid expression '%s' in next_state attribute of cell '%s' - skipping.\n", expr.c_str(), cell_name.c_str());
120120
warned_cells.insert(cell_name);
121121
}
122122
return false;
@@ -135,7 +135,7 @@ static bool parse_next_state(const LibertyAst *cell, const LibertyAst *attr, std
135135
// position that gives better diagnostics here.
136136
if (!pin_names.count(ff_output)) {
137137
if (!warned_cells.count(cell_name)) {
138-
log_warning("Inference failed on expression '%s' in next_state attribute of cell '%s' because it does not contain ff output '%s' - skipping.\n", expr.c_str(), cell_name.c_str(), ff_output.c_str());
138+
log_debug("Inference failed on expression '%s' in next_state attribute of cell '%s' because it does not contain ff output '%s' - skipping.\n", expr.c_str(), cell_name.c_str(), ff_output.c_str());
139139
warned_cells.insert(cell_name);
140140
}
141141
return false;
@@ -184,7 +184,7 @@ static bool parse_next_state(const LibertyAst *cell, const LibertyAst *attr, std
184184
}
185185

186186
if (!warned_cells.count(cell_name)) {
187-
log_warning("Inference failed on expression '%s' in next_state attribute of cell '%s' because it does not evaluate to an enable flop - skipping.\n", expr.c_str(), cell_name.c_str());
187+
log_debug("Inference failed on expression '%s' in next_state attribute of cell '%s' because it does not evaluate to an enable flop - skipping.\n", expr.c_str(), cell_name.c_str());
188188
warned_cells.insert(cell_name);
189189
}
190190
return false;
@@ -220,10 +220,10 @@ static bool parse_pin(const LibertyAst *cell, const LibertyAst *attr, std::strin
220220
For now, we'll simply produce a warning to let the user know something is up.
221221
*/
222222
if (pin_name.find_first_of("^*|&") == std::string::npos) {
223-
log_warning("Malformed liberty file - cannot find pin '%s' in cell '%s' - skipping.\n", pin_name.c_str(), cell->args[0].c_str());
223+
log_debug("Malformed liberty file - cannot find pin '%s' in cell '%s' - skipping.\n", pin_name.c_str(), cell->args[0].c_str());
224224
}
225225
else {
226-
log_warning("Found unsupported expression '%s' in pin attribute of cell '%s' - skipping.\n", pin_name.c_str(), cell->args[0].c_str());
226+
log_debug("Found unsupported expression '%s' in pin attribute of cell '%s' - skipping.\n", pin_name.c_str(), cell->args[0].c_str());
227227
}
228228

229229
return false;

0 commit comments

Comments
 (0)