$q_full should return x for an invalid id.
After some more thought I believe it is better for $q_full to return
'bx instead of 2 when $q_full is given an invalid id. This will make
the typical full/not full checks both return false. We still return
an error code in the status variable.
(cherry picked from commit 10b2310c52)
This commit is contained in:
parent
323f12ebfd
commit
8e4008ae19
|
|
@ -1193,9 +1193,7 @@ static PLI_INT32 sys_q_full_calltf(PLI_BYTE8 *name)
|
|||
val.format = vpiIntVal;
|
||||
val.value.integer = IVL_QUEUE_UNDEFINED_ID;
|
||||
vpi_put_value(status, &val, 0, vpiNoDelay);
|
||||
val.format = vpiIntVal;
|
||||
val.value.integer = 2; /* An error value. */
|
||||
vpi_put_value(callh, &val, 0, vpiNoDelay);
|
||||
fill_variable_with_x(callh);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue