From 82235e6c6fbac62ef4ff708f5a358c49d22a2aad Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 22 Oct 2013 20:10:43 -0400 Subject: [PATCH] Fix vpi_get of vpiSuppressVal, bug687. --- Changes | 2 ++ include/verilated_vpi.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Changes b/Changes index 9f23c64e3..397069f58 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,8 @@ indicates the contributor was also the author of the fix; Thanks! * Verilator 3.854 devel +**** Support vpi_get of vpiSuppressVal, bug687. [Varun Koyyalagunta] + **** Fix evaluation of chained parameter functions, bug684. [Ted Campbell] **** Fix multiple VPI variable callbacks, bug679. [Rich Porter] diff --git a/include/verilated_vpi.h b/include/verilated_vpi.h index 7e2644c2e..e2d0a77b6 100644 --- a/include/verilated_vpi.h +++ b/include/verilated_vpi.h @@ -1015,6 +1015,8 @@ void vpi_get_value(vpiHandle object, p_vpi_value value_p) { VL_FUNC, VerilatedVpiError::strFromVpiVal(value_p->format), vop->fullname()); return; } + } else if (value_p->format == vpiSuppressVal) { + return; } _VL_VPI_ERROR(__FILE__, __LINE__, "%s: Unsupported format (%s) as requested for %s", VL_FUNC, VerilatedVpiError::strFromVpiVal(value_p->format), vop->fullname());