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!