From 26a036ed5421f48462da389a960dc01bb6db2023 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 2 Aug 2014 11:45:11 +0200 Subject: [PATCH] inpcom.c, inp_chk_for_multi_in_vcvs(), comment --- src/frontend/inpcom.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index f58688ed6..b521fc608 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1174,6 +1174,22 @@ inp_fix_gnd_name(struct line *c) } +/* + * transform a VCVS "gate" instance into a XSPICE instance + * + * Exx out+ out- {nand|nor|and|or}(n) + * + in[1]+ in[1]- ... in[n]+ in[n]- + * + x1,y1 x2,y2 + * ==> + * Axx %vd[ in[1]+ in[1]- ... in[n]+ in[n]- ] + * + %vd( out+ out- ) Exx + * .model Exx multi_input_pwd ( x = [x1 x2] x = [y1 y2] model = {nand|nor|and|or} ) + * + * fixme, + * `n' is not checked + * the x,y list is fixed to length 2 + */ + static void inp_chk_for_multi_in_vcvs(struct line *c, int *line_number) {