[sv-cc] vpiInstance 1 to 1 relation from Class variable

From: Radoslaw Nawrot <Radoslaw.Nawrot@aldec.com.pl>
Date: Tue Sep 25 2012 - 03:49:49 PDT
Hi,
I found construction that is unexplained in LRM .
 
I have class :
 
class C;
int i;
endclass
 
in module top I have vpiClassVar:
 
module top();
C cvar;
initial 
    cvar =new;
endmoudle
 
On VPI side I have handle to top.cvar.i (let it be in hnd )
What should I receive from routine:
vpi_handle(vpiInstance,hnd) ?
According to LRM 1800-2009 I should receive one of  4th types (vpiPackage,
vpiInterafce, vpiModule, vpiProgram)
37.10:
" 

3) vpiInstance shall always return the immediate instance (package, module,
interface, or program) in which the

object is instantiated.

"

Shoudl I get null handle?
Or should It be vpiClassObj ?
 
Regards,
Radek
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Sep 25 03:50:50 2012

This archive was generated by hypermail 2.1.8 : Tue Sep 25 2012 - 03:51:08 PDT