Krishna, I don't know if this will work or not because I have not had a chance to try it yet, but my suggestion would be to have a public function within each module that is something like this. That way, all of the tracer functions would eventually be called recursively from the top level. I hope this helps, and again I have not had a chance to try it out yet, so let me know if it works or not. This gives compiler error. This compiles fine, but creates a segmentation fault at run-time.
Any help is appreciated.
I am trying to trace a clock signal that triggers a module, and don't seem to hit the right way to do it.