Improved comments.

This commit is contained in:
Stephen Williams 2008-08-25 21:52:40 -07:00
parent 0341679360
commit c26ee8534d
2 changed files with 7 additions and 4 deletions

View File

@ -53,7 +53,7 @@ class PExpr : public LineInfo {
// be. It is used by elaboration of assignments to figure out // be. It is used by elaboration of assignments to figure out
// the width of the expression. // the width of the expression.
// //
// The "min" is the width of the local context, so it the // The "min" is the width of the local context, so is the
// minimum width that this function should return. Initially // minimum width that this function should return. Initially
// this is the same as the lval width. // this is the same as the lval width.
// //
@ -581,6 +581,7 @@ class PEBinary : public PExpr {
NetExpr*elaborate_expr_base_lshift_(Design*, NetExpr*lp, NetExpr*rp, int use_wid) const; NetExpr*elaborate_expr_base_lshift_(Design*, NetExpr*lp, NetExpr*rp, int use_wid) const;
NetExpr*elaborate_expr_base_rshift_(Design*, NetExpr*lp, NetExpr*rp, int use_wid) const; NetExpr*elaborate_expr_base_rshift_(Design*, NetExpr*lp, NetExpr*rp, int use_wid) const;
NetExpr*elaborate_expr_base_add_(Design*, NetExpr*lp, NetExpr*rp, int use_wid) const;
static void suppress_operand_sign_if_needed_(NetExpr*lp, NetExpr*rp); static void suppress_operand_sign_if_needed_(NetExpr*lp, NetExpr*rp);

View File

@ -137,9 +137,11 @@ extern unsigned count_lval_width(const class NetAssign_*first);
* The expr_width is the width of the context where the expression is * The expr_width is the width of the context where the expression is
* being elaborated, or -1 if the expression is self-determined width. * being elaborated, or -1 if the expression is self-determined width.
* *
* Also, the prune_width is the maximum width of the result, and it * The prune_width is the maximum width of the result, and is passed
* passed to the eval_tree method of the expression to limit constant * to the eval_tree method of the expression to limit constant
* results if possible. * results. The evaluation will prune any constant result down to the
* prune_width (if >0) so should only be used at the point where it is
* bound to the destination.
*/ */
class PExpr; class PExpr;
extern NetExpr* elab_and_eval(Design*des, NetScope*scope, extern NetExpr* elab_and_eval(Design*des, NetScope*scope,