From fad37da1dc0df8cb55f04fe3ed1c483f919f9c97 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 5 May 2009 16:13:15 -0700 Subject: [PATCH] Fix %t to work with real system functions. Fix %t to get the real value when the argument comes from a real valued system function. --- vpi/sys_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vpi/sys_display.c b/vpi/sys_display.c index 35a63414c..3b8d5d7d3 100644 --- a/vpi/sys_display.c +++ b/vpi/sys_display.c @@ -583,7 +583,8 @@ static unsigned int get_format_char(char **rtn, int ljust, int plus, type = vpi_get(vpiType, info->items[*idx]); if (((type == vpiConstant || type == vpiParameter) && vpi_get(vpiConstType, info->items[*idx]) == vpiRealConst) || - type == vpiRealVar ) { + type == vpiRealVar || (type == vpiSysFuncCall && + vpi_get(vpiFuncType, info->items[*idx]) == vpiRealFunc)) { value.format = vpiRealVal; } else { value.format = vpiDecStrVal;