mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Support appending to queue via [] (#5421)
This commit is contained in:
+5
-1
@@ -492,8 +492,12 @@ class TaskVisitor final : public VNVisitor {
|
||||
if (VN_IS(pinp, VarRef) || VN_IS(pinp, MemberSel) || VN_IS(pinp, StructSel)
|
||||
|| VN_IS(pinp, ArraySel)) {
|
||||
refArgOk = true;
|
||||
} else if (const AstCMethodHard* const cMethodp = VN_CAST(pinp, CMethodHard)) {
|
||||
} else if (AstCMethodHard* const cMethodp = VN_CAST(pinp, CMethodHard)) {
|
||||
refArgOk = cMethodp->name() == "at" || cMethodp->name() == "atBack";
|
||||
if (VN_IS(cMethodp->fromp()->dtypep()->skipRefp(), QueueDType)) {
|
||||
cMethodp->name(cMethodp->name() == "at" ? "atWriteAppend"
|
||||
: "atWriteAppendBack");
|
||||
}
|
||||
}
|
||||
if (refArgOk) {
|
||||
if (AstVarRef* const varrefp = VN_CAST(pinp, VarRef)) {
|
||||
|
||||
Reference in New Issue
Block a user