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

how to get full hierarchical instance name inside systemc module?

$
0
0

Hi,

 

In my design I have one module instantiated 3 level down the hierarchy from sc_main. And I want to get the full hierarchical path inside that module as I have to generate different files based on the full hierarchy path.

 

To do that I have used-

 

sc_module(my_module)

{

 

const char *instance_name;

 

sc_has_process(my_module);

 

my_module(sc_module_name name) : sc_module(name)
{
instance_name = name;
 
 
 
}
 
 
};
 
 
By doing this at "instance_name" I am getting only one level hierarchy, not the full hierarchy. Can you inform me how to get full hierarchy path inside any module?
 
 

Viewing all articles
Browse latest Browse all 595

Trending Articles