Print the JSON encoding of a vl-ansi-portdecl-p to ps.
(vl-jp-ansi-portdecl x &key (ps 'ps)) → ps
Function:
(defun vl-jp-ansi-portdecl-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-ansi-portdecl-p x))) (let ((__function__ 'vl-jp-ansi-portdecl)) (declare (ignorable __function__)) (vl-ps-seq (vl-print "{\"tag\": ") (jp-sym ':vl-ansi-portdecl) (vl-print ", ") (vl-print-str "\"name\": ") (jp-str (vl-ansi-portdecl->name x)) (vl-println? ", ") (vl-print-str "\"loc\": ") (vl-jp-location (vl-ansi-portdecl->loc x)) (vl-println? ", ") (vl-print-str "\"dir\": ") (vl-jp-maybe-direction (vl-ansi-portdecl->dir x)) (vl-println? ", ") (vl-print-str "\"typename\": ") (jp-maybe-string (vl-ansi-portdecl->typename x)) (vl-println? ", ") (vl-print-str "\"type\": ") (vl-jp-maybe-datatype (vl-ansi-portdecl->type x)) (vl-println? ", ") (vl-print-str "\"pdims\": ") (vl-jp-dimensionlist (vl-ansi-portdecl->pdims x)) (vl-println? ", ") (vl-print-str "\"udims\": ") (vl-jp-dimensionlist (vl-ansi-portdecl->udims x)) (vl-println? ", ") (vl-print-str "\"nettype\": ") (vl-jp-maybe-nettypename (vl-ansi-portdecl->nettype x)) (vl-println? ", ") (vl-print-str "\"varp\": ") (jp-bool (vl-ansi-portdecl->varp x)) (vl-println? ", ") (vl-print-str "\"modport\": ") (jp-maybe-string (vl-ansi-portdecl->modport x)) (vl-println? ", ") (vl-print-str "\"signedness\": ") (vl-jp-maybe-exprsign (vl-ansi-portdecl->signedness x)) (vl-println? ", ") (vl-print-str "\"atts\": ") (vl-jp-atts (vl-ansi-portdecl->atts x)) (vl-println? "}"))))