Pass file/line information for part selects.

Propagate the file and line information for a part select
expression and LPM (continuous assign).
This commit is contained in:
Cary R 2009-08-25 10:37:42 -07:00 committed by Stephen Williams
parent ecb00017cb
commit 06997c63ed
2 changed files with 2 additions and 0 deletions

View File

@ -351,6 +351,7 @@ void dll_target::expr_select(const NetESelect*net)
expr_ = (ivl_expr_t)calloc(1, sizeof(struct ivl_expr_s)); expr_ = (ivl_expr_t)calloc(1, sizeof(struct ivl_expr_s));
assert(expr_); assert(expr_);
FILE_NAME(expr_, net);
expr_->type_ = IVL_EX_SELECT; expr_->type_ = IVL_EX_SELECT;
expr_->value_= IVL_VT_VECTOR; expr_->value_= IVL_VT_VECTOR;

View File

@ -2147,6 +2147,7 @@ bool dll_target::part_select(const NetPartSelect*net)
obj->type = IVL_LPM_PART_PV; obj->type = IVL_LPM_PART_PV;
break; break;
} }
FILE_NAME(obj, net);
obj->name = net->name(); // NetPartSelect names are permallocated. obj->name = net->name(); // NetPartSelect names are permallocated.
assert(net->scope()); assert(net->scope());
obj->scope = find_scope(des_, net->scope()); obj->scope = find_scope(des_, net->scope());