elaborate dump cast operators.

This commit is contained in:
Stephen Williams 2014-12-02 16:50:42 -08:00
parent f287546f49
commit 35db02d35d
2 changed files with 11 additions and 0 deletions

View File

@ -1661,6 +1661,16 @@ void NetEBinary::dump(ostream&o) const
o << ")";
}
void NetECast::dump(ostream&fd) const
{
if (op_=='2')
fd << "bool<" << expr_width() << ">(" << *expr_ << ")";
else if (op_=='4')
fd << "logic<" << expr_width() << ">(" << *expr_ << ")";
else
NetEUnary::dump(fd);
}
void NetEConcat::dump(ostream&o) const
{
if (repeat_ != 1)

View File

@ -4650,6 +4650,7 @@ class NetECast : public NetEUnary {
virtual NetNet* synthesize(Design*, NetScope*scope, NetExpr*root);
virtual NetECast* dup_expr() const;
virtual ivl_variable_type_t expr_type() const;
virtual void dump(ostream&) const;
private:
virtual NetExpr* eval_arguments_(const NetExpr*ex) const;