A queue or darray can be assign from a queue or darray.

This commit is contained in:
Cary R 2020-08-05 23:17:18 -07:00
parent 2f317065aa
commit 761dc35e0b
1 changed files with 5 additions and 0 deletions

View File

@ -1017,6 +1017,11 @@ NetExpr* elab_and_eval(Design*des, NetScope*scope, PExpr*pe,
switch (cast_type) {
case IVL_VT_DARRAY:
case IVL_VT_QUEUE:
if (NetESignal*net = dynamic_cast<NetESignal*>(tmp)) {
ivl_variable_type_t type = net->expr_type();
if ((type == IVL_VT_DARRAY) || (type == IVL_VT_QUEUE))
return tmp;
}
if (dynamic_cast<PEAssignPattern*>(pe))
return tmp;
// fall through