Search code examples
verilogsystem-verilogvlsi

Associative array with wildcard in system verilog


Is it possible to iterate over an associative array with wildcard "*" using foreach loop?


Solution

  • No. IEEE 1800-2012 § 7.8.1 Wildcard index type states:

    Associative arrays that specify a wildcard index type shall not be used in a foreach loop (see 12.7.3) or with an array manipulation method (see 7.12) that returns an index value or array of values.