A method, system, and data structure for instrumenting a cross-hierarchical simulation
event are disclosed herein. The cross-hierarchical simulation event is a function
of a first simulation event residing at a first level of simulation model hierarchy
and a second simulation event residing at a second level of simulation model hierarchy.
In accordance with the present invention, a cross-hierarchical instrumentation
entity is defined within the first level of simulation model hierarchy utilizing
an instrumentation declaration comment containing data representing a cross-hierarchical
instrumentation entity. A first input of said instrumentation entity is connected
to the first simulation event and a second input of the instrumentation entity
is connected to the second simulation event utilizing an input port mapping comment
that declares the cross-hierarchical instrumentation entity to generate a cross-hierarchical
simulation event.