Subject: [sv-cc] DPI context - setting/preserving&resetting a scope
From: Andrzej Litwiniuk (Andrzej.Litwiniuk@synopsys.com)
Date: Thu Mar 13 2003 - 06:43:14 PST
Joao,
Consider the folowing sequence of DPI calls (interleaved context and
non-context functions):
SV --> context_cfunc1 --> SV --> non_context_cfunc2 --> SV
The scope set at the call of context_cfunc1 is preserved and that way
still avaialble while non_context_cfunc2 is executed; we don't want
to do anything with a scope (overhead!) for non-context calls, do we?
I have no problem with such a scenario; I don't want to prohibit it.
It simply makes the description of semantics more complicated.
Because what's weird in this scenario, is that non-context function
called from SV may successfully call an exported SV function.
Of course, this could be viewed in a different way, too: a context function
is allowed to call SV also indirectly, regardless whether a call chain goes
thru SV functions and non-context functions, or not:
SV --> context_cfunc1 --> ....... --> SV
[transparent call chain]
Andrzej
This archive was generated by hypermail 2b28 : Thu Mar 13 2003 - 06:44:01 PST