From f49922c1f1cde49f207280315c985996df1756c7 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 25 Oct 2020 15:52:01 +0100 Subject: [PATCH] If a new vector is created by the functions cph or ph, its type should be 'phase', not voltage. Thus prevent raw file entries (created by the 'write' command like 4 v(cph(vout2)) voltage --- src/frontend/evaluate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/evaluate.c b/src/frontend/evaluate.c index 7d6bda087..f49bedb24 100644 --- a/src/frontend/evaluate.c +++ b/src/frontend/evaluate.c @@ -937,6 +937,10 @@ apply_func(struct func *func, struct pnode *arg) vec_new(t); + /* try to figure out the v_type, depending on the function */ + if (eq(func->fu_name, "cph") || eq(func->fu_name, "ph")) + t->v_type = SV_PHASE; + if (end) end->v_link2 = t; else