Add vpiTopModule
This patch adds functionality for vpiTopModule.
This commit is contained in:
parent
83a1ee8cf5
commit
77ed103682
|
|
@ -308,6 +308,7 @@ typedef struct t_vpi_delay {
|
||||||
#define vpiName 2
|
#define vpiName 2
|
||||||
#define vpiFullName 3
|
#define vpiFullName 3
|
||||||
#define vpiSize 4
|
#define vpiSize 4
|
||||||
|
#define vpiTopModule 7
|
||||||
#define vpiDefName 9
|
#define vpiDefName 9
|
||||||
#define vpiTimeUnit 11
|
#define vpiTimeUnit 11
|
||||||
#define vpiTimePrecision 12
|
#define vpiTimePrecision 12
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,12 @@ static int scope_get(int code, vpiHandle obj)
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case vpiTimeUnit:
|
case vpiTimeUnit:
|
||||||
return ref->time_units;
|
return ref->time_units;
|
||||||
|
|
||||||
case vpiTimePrecision:
|
case vpiTimePrecision:
|
||||||
return ref->time_precision;
|
return ref->time_precision;
|
||||||
|
|
||||||
|
case vpiTopModule:
|
||||||
|
return 0x0 == ref->scope;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue