From 32e12077820728412772852c7e12a7f85788abd6 Mon Sep 17 00:00:00 2001 From: Stefan Wallentowitz Date: Wed, 18 Sep 2019 07:22:59 -0400 Subject: [PATCH] Fix vpiType accessor, bug1509. Signed-off-by: Wilson Snyder --- Changes | 2 ++ include/verilated_vpi.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 45fe14e86..09ba95cbd 100644 --- a/Changes +++ b/Changes @@ -16,6 +16,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix false warning on backward indexing, bug1507. [Hao Shi] +**** Fix vpiType accessor, bug1509. [Stefan Wallentowitz] + * Verilator 4.018 2019-08-29 diff --git a/include/verilated_vpi.cpp b/include/verilated_vpi.cpp index 1d37151e7..60e17ec36 100644 --- a/include/verilated_vpi.cpp +++ b/include/verilated_vpi.cpp @@ -1154,7 +1154,7 @@ PLI_INT32 vpi_get(PLI_INT32 property, vpiHandle object) { return VL_TIME_PRECISION; } case vpiType: { - VerilatedVpio* vop = VerilatedVpioVar::castp(object); + VerilatedVpio* vop = VerilatedVpio::castp(object); if (VL_UNLIKELY(!vop)) return 0; return vop->type(); }