mirror of
https://github.com/verilator/verilator.git
synced 2026-09-08 18:36:36 +02:00
Support assoc array methods with wide value types (#7680)
This commit is contained in:
@@ -4352,6 +4352,12 @@ class WidthVisitor final : public VNVisitor {
|
||||
}
|
||||
void methodCallAssoc(AstMethodCall* nodep, AstAssocArrayDType* adtypep) {
|
||||
AstCMethodHard* newp = nullptr;
|
||||
if (nodep->withp() && adtypep->subDTypep()->isWide()) {
|
||||
nodep->v3warn(
|
||||
E_UNSUPPORTED,
|
||||
"Unsupported: `with` clause on assoc arrays with wide value types in method '"
|
||||
<< nodep->prettyName() << "'");
|
||||
}
|
||||
if (nodep->name() == "num" // function int num()
|
||||
|| nodep->name() == "size") {
|
||||
methodOkArguments(nodep, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user