Add VPI error reset to vpi_get_time() (#2347)

This commit is contained in:
Ludwig Rogiers
2020-05-22 07:09:47 -04:00
committed by GitHub
parent 01f3e81a36
commit 101314a572
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ Julien Margetts
Kanad Kanhere
Kevin Kiningham
Kuba Ober
Ludwig Rogiers
Lukasz Dalek
Maarten De Braekeleer
Maciej Sobkowski
+1
View File
@@ -1907,6 +1907,7 @@ void vpi_put_value_array(vpiHandle /*object*/, p_vpi_arrayvalue /*arrayvalue_p*/
void vpi_get_time(vpiHandle object, p_vpi_time time_p) {
VerilatedVpiImp::assertOneCheck();
_VL_VPI_ERROR_RESET();
// cppcheck-suppress nullPointer
if (VL_UNLIKELY(!time_p)) {
_VL_VPI_WARNING(__FILE__, __LINE__, "Ignoring vpi_get_time with NULL value pointer");