Zack63 Posted June 28, 2013 Report Share Posted June 28, 2013 Hello, I would like to determine port connectivity after elaboration. For example, I want to put code inside an SC_MODULE that would find the names of other ports that are connect to this module. Or, maybe there is a way to walk the hierarchy tree, and extract connectivity? The name() function gives my current instance hierarchy, but I cannot find any information on port connections. Any ideas? Thanks, -Mike Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted June 28, 2013 Report Share Posted June 28, 2013 Mike, there are several functions in SystemC to access/traverse the object hierarchy and analyze the individual elements: sc_get_toplevel_objects() sc_object::get_parent_object() sc_object::get_child_objects() sc_object::kind() (or C++'s dynamic_cast) sc_port_base::get_interface() You can find a description of their functionality in IEEE 1666-2011. See the following thread for some ideas: http://forums.accellera.org/topic/129-extract-structural-information-from-systemc/ Greetings from Oldenburg, Philipp maehne 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.