In Specman, how can I tell if a reference to a unit has the do-not-generate modifier, '!', at the reference's definition?
e.g.
unit foo_u {
};
extend sys {
foo : foo_u is instance;
foo_ptr_generated : foo_u;
keep foo_ptr_generated == foo;
!foo_ptr_notgenerated : foo_u;
connect_pointers() is also {
foo_ptr_notgenerated = foo;
};
};
Without inspecting the code or relying on a naming convention, how can I tell that foo_ptr_generated
went through Specman's constraint solver and foo_ptr_notgenerated
was procedurally set?
Best Solution
Finally figured this out. This code will determine which references are generated and which aren't in Specman 6 via the reflection interface:
Running with:
Produces: