3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00

Only display log message if did_something

This commit is contained in:
Eddie Hung 2019-09-11 12:29:26 -07:00
parent edf90afd20
commit bbef0d2ac8

View file

@ -81,9 +81,9 @@ code
did_something = true;
mux->fixup_parameters();
dff->fixup_parameters();
log("dffmux pattern in %s: dff=%s, mux=%s; removed %d constant bits.\n", log_id(module), log_id(dff), log_id(mux), count);
}
log("dffmux pattern in %s: dff=%s, mux=%s; removed %d constant bits.\n", log_id(module), log_id(dff), log_id(mux), count);
accept;
}
endcode