From 101314a572d7ef8bb085513625c07e94195523fe Mon Sep 17 00:00:00 2001 From: Ludwig Rogiers Date: Fri, 22 May 2020 21:09:47 +1000 Subject: [PATCH] Add VPI error reset to vpi_get_time() (#2347) --- docs/CONTRIBUTORS | 1 + include/verilated_vpi.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index 05ee52ac1..cf256fc45 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -24,6 +24,7 @@ Julien Margetts Kanad Kanhere Kevin Kiningham Kuba Ober +Ludwig Rogiers Lukasz Dalek Maarten De Braekeleer Maciej Sobkowski diff --git a/include/verilated_vpi.cpp b/include/verilated_vpi.cpp index ef21e6924..7462a82dc 100644 --- a/include/verilated_vpi.cpp +++ b/include/verilated_vpi.cpp @@ -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");