Add vpiTopModule

This patch adds functionality for vpiTopModule.
This commit is contained in:
Cary R 2007-11-08 09:56:18 -08:00 committed by Stephen Williams
parent 83a1ee8cf5
commit 77ed103682
2 changed files with 5 additions and 0 deletions

View File

@ -308,6 +308,7 @@ typedef struct t_vpi_delay {
#define vpiName 2
#define vpiFullName 3
#define vpiSize 4
#define vpiTopModule 7
#define vpiDefName 9
#define vpiTimeUnit 11
#define vpiTimePrecision 12

View File

@ -66,8 +66,12 @@ static int scope_get(int code, vpiHandle obj)
switch (code) {
case vpiTimeUnit:
return ref->time_units;
case vpiTimePrecision:
return ref->time_precision;
case vpiTopModule:
return 0x0 == ref->scope;
}
return 0;