From eb4fc8fb7b28497f3a2f79df79a72cefd803b6a8 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 29 Oct 2007 09:18:54 -0700 Subject: [PATCH] Warn that bit based signals cannot be converted to real. V0.8 does not have the code to covert bit based signals to a real value, so print a more descriptive error message before quiting. --- vvp/vpi_signal.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vvp/vpi_signal.cc b/vvp/vpi_signal.cc index 0fd908413..e257efeab 100644 --- a/vvp/vpi_signal.cc +++ b/vvp/vpi_signal.cc @@ -475,6 +475,11 @@ static void signal_get_value(vpiHandle ref, s_vpi_value*vp) break; } + case vpiRealVal: { + fprintf(stderr, "Sorry: V0.8 cannot convert a bit based signal to a real value.\n"); + assert(0); + } + default: fprintf(stderr, "vvp internal error: get_value: " "value type %u not implemented."