From: <Primrose.Mbanefo@Infineon.com> - 2006-10-16 17:35:49
|
Hi there, I am reviewing part of my code in order to write it properly, at least to some extent, and I believe I have duplicated existing functionality. 1) I would for example like to get the gcc tree representing sc_object so that I can weed all systemc objects out of a declaration list. The same goes for sc_event. I am not talking about an instance of sc_object like sc_module or sc_port but really of the tree representing an sc_object. If this isn't in pinapa already, then I could give you some really ugly code which finds it... 2) Given a tree, how can I find out which systemc element it refers to? I can also get trees from all existing systemc elements and check them against the given tree but I would like to know if something like this exists already. I can see a situation coming where I have the systemc name in some files and in others the variabale name. Thanks, Primrose |