diff --git a/vpi/sys_fst.c b/vpi/sys_fst.c index a0a770c6b..6dfcec908 100644 --- a/vpi/sys_fst.c +++ b/vpi/sys_fst.c @@ -83,7 +83,7 @@ static void show_this_item(struct vcd_info*info) } else { value.format = vpiBinStrVal; vpi_get_value(info->item, &value); - fstWriterEmitValueChange(dump_file, info->handle, value.value.str); + fstWriterEmitValueChange(dump_file, info->handle, (type != vpiNamedEvent) ? value.value.str : "1"); } }