From dec9a8b5274783c38b42f5ee2511fe50fab890f6 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 5 Nov 2017 09:26:33 +0000 Subject: [PATCH] Fix $printtimescale to support 10s and 100s values. (cherry picked from commit e54d19e2d2f3838cd23e8027ec4ef6162d9ed7cf) --- vpi/sys_display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vpi/sys_display.c b/vpi/sys_display.c index b5e0737c8..30200d85a 100644 --- a/vpi/sys_display.c +++ b/vpi/sys_display.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2015 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2017 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -1887,6 +1887,8 @@ static const char *pts_convert(int value) { const char *string; switch (value) { + case 2: string = "100s"; break; + case 1: string = "10s"; break; case 0: string = "1s"; break; case -1: string = "100ms"; break; case -2: string = "10ms"; break;