Only get the vpiSysTfCall in getsimtime.c when needed.

This commit is contained in:
Stephen Williams 2014-06-19 14:49:30 -07:00
parent dff9953bc2
commit d26a081cbc
1 changed files with 3 additions and 2 deletions

View File

@ -39,13 +39,14 @@ static ivl_u64_t pow10u(PLI_INT32 val)
}
static ivl_u64_t
scale(int high, int low, void*obj) {
vpiHandle hand = vpi_handle(vpiScope, vpi_handle(vpiSysTfCall,0));
scale(int high, int low, void*obj)
{
ivl_u64_t scaled;
vpiHandle use_obj = obj;
if (use_obj == 0) {
/* If object is not passed in, then use current scope. */
vpiHandle hand = vpi_handle(vpiScope, vpi_handle(vpiSysTfCall,0));
use_obj = hand;
} else {
/* If object IS passed in, make sure it is a scope. If