From 761dc35e0b1adec96616aecb56e87c26b32ee475 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 5 Aug 2020 23:17:18 -0700 Subject: [PATCH] A queue or darray can be assign from a queue or darray. --- netmisc.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netmisc.cc b/netmisc.cc index 75892b257..def9f0d6d 100644 --- a/netmisc.cc +++ b/netmisc.cc @@ -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(tmp)) { + ivl_variable_type_t type = net->expr_type(); + if ((type == IVL_VT_DARRAY) || (type == IVL_VT_QUEUE)) + return tmp; + } if (dynamic_cast(pe)) return tmp; // fall through