For an input report the expression is pruned vs padded.

There was a single message when the expression width was larger
than the port width. This patch makes it a bit more clear by
saying that the expression was pruned.
(cherry picked from commit 1fbe777c81)
This commit is contained in:
Cary R 2011-03-13 12:01:10 -07:00 committed by Stephen Williams
parent 6b4de9aa82
commit ea78ae51c7
1 changed files with 5 additions and 1 deletions

View File

@ -1534,7 +1534,11 @@ void PGModule::elaborate_mod_(Design*des, Module*rmod, NetScope*scope) const
<< " high bits of the port."
<< endl;
} else {
cerr << get_fileline() << ": : Padding ";
if (prts[0]->port_type() == NetNet::PINPUT) {
cerr << get_fileline() << ": : Pruning ";
} else {
cerr << get_fileline() << ": : Padding ";
}
if (as_signed) cerr << "(signed) ";
cerr << (sig->vector_width()-prts_vector_width)
<< " high bits of the expression."