Quantcast
Channel: SystemC Language Forum RSS Feed
Viewing all articles
Browse latest Browse all 595

Passing maps within Constructors in SystemC struct

$
0
0

Hi Experts,

 

How do I pass "Maps" within constructors while using a SystemC struct? 

I want to instantiate this module 4 times and use 4 different maps for each instance.

 

struct Detector: sc_module
{
  

    SC_CTOR(Detector)
   
    {
     

        for (int i = 0 ; i<10 ; i++)
        {
          in_map[i]= map[i][0];  // in_map has been declared as private & map is passed on through the constructor
        }

    }
 

 

Thankyou in advance!


Viewing all articles
Browse latest Browse all 595

Trending Articles