Hi,
I always wondered what could be the application of associative array which has class or struct type as index? Anyone every tried or saw usage of such associative array?
Thanks in advance,
Chander
Hi,
I always wondered what could be the application of associative array which has class or struct type as index? Anyone every tried or saw usage of such associative array?
Thanks in advance,
Chander
In reply to Chander_M:
Anyone can think of any application/use here?
In reply to Chander_M:
You can use an associative array to build a simple relational database, which is like adding an extra field to your class object or struct without having to extend it (And you can’t extend a struct in SystemVerilog). People do this when trying to collect statistics about object usage similar to coverage data. Another application is when using the DPI to map SystemVerilog class handles to C/C++ pointers.