Basic constructor macro for vl-udp structures.
(make-vl-udp [:name <name>] [:output <output>] [:inputs <inputs>] [:sequentialp <sequentialp>] [:table <table>] [:initval <initval>] [:warnings <warnings>] [:minloc <minloc>] [:maxloc <maxloc>] [:atts <atts>] [:comments <comments>])
This is the usual way to construct vl-udp structures. It simply conses together a structure with the specified fields.
This macro generates a new vl-udp structure from scratch. See also change-vl-udp, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-vl-udp (&rest args) (std::make-aggregate 'vl-udp args '((:name) (:output) (:inputs) (:sequentialp) (:table) (:initval) (:warnings) (:minloc) (:maxloc) (:atts) (:comments)) 'make-vl-udp nil))
Function:
(defun vl-udp (name output inputs sequentialp table initval warnings minloc maxloc atts comments) (declare (xargs :guard (and (stringp name) (vl-portdecl-p output) (vl-portdecllist-p inputs) (booleanp sequentialp) (vl-udptable-p table) (vl-maybe-expr-p initval) (vl-warninglist-p warnings) (vl-location-p minloc) (vl-location-p maxloc) (vl-atts-p atts) (vl-commentmap-p comments)))) (declare (xargs :guard t)) (let ((__function__ 'vl-udp)) (declare (ignorable __function__)) (b* ((name (mbe :logic (str-fix name) :exec name)) (output (mbe :logic (vl-portdecl-fix output) :exec output)) (inputs (mbe :logic (vl-portdecllist-fix inputs) :exec inputs)) (sequentialp (mbe :logic (acl2::bool-fix sequentialp) :exec sequentialp)) (table (mbe :logic (vl-udptable-fix table) :exec table) ) (initval (mbe :logic (vl-maybe-expr-fix initval) :exec initval)) (warnings (mbe :logic (vl-warninglist-fix warnings) :exec warnings)) (minloc (mbe :logic (vl-location-fix minloc) :exec minloc)) (maxloc (mbe :logic (vl-location-fix maxloc) :exec maxloc)) (atts (mbe :logic (vl-atts-fix atts) :exec atts)) (comments (mbe :logic (vl-commentmap-fix comments) :exec comments))) (cons :vl-udp (std::prod-cons (std::prod-cons (std::prod-cons name output) (std::prod-cons inputs (std::prod-cons sequentialp table))) (std::prod-cons (std::prod-cons initval (std::prod-cons warnings minloc)) (std::prod-cons maxloc (std::prod-cons atts comments))))))))