From ea78ae51c7ec45bb19e7bf835c8d33679d44c32d Mon Sep 17 00:00:00 2001 From: Cary R Date: Sun, 13 Mar 2011 12:01:10 -0700 Subject: [PATCH] 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 1fbe777c811f0ab5a056a6ef4a83abc4465a0d0f) --- elaborate.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/elaborate.cc b/elaborate.cc index accf89281..2f33c9e15 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -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."