Basic constructor macro for vl-interfaceport structures.
(make-vl-interfaceport [:name <name>] [:ifname <ifname>] [:modport <modport>] [:udims <udims>] [:loc <loc>])
This is the usual way to construct vl-interfaceport structures. It simply conses together a structure with the specified fields.
This macro generates a new vl-interfaceport structure from scratch. See also change-vl-interfaceport, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-vl-interfaceport (&rest args) (std::make-aggregate 'vl-interfaceport args '((:name) (:ifname) (:modport) (:udims) (:loc)) 'make-vl-interfaceport nil))
Function:
(defun vl-interfaceport (name ifname modport udims loc) (declare (xargs :guard (and (stringp name) (stringp ifname) (maybe-stringp modport) (vl-packeddimensionlist-p udims) (vl-location-p loc)))) (declare (xargs :guard t)) (let ((__function__ 'vl-interfaceport)) (declare (ignorable __function__)) (b* ((name (mbe :logic (str-fix name) :exec name)) (ifname (mbe :logic (str-fix ifname) :exec ifname)) (modport (mbe :logic (maybe-string-fix modport) :exec modport)) (udims (mbe :logic (vl-packeddimensionlist-fix udims) :exec udims)) (loc (mbe :logic (vl-location-fix loc) :exec loc))) (cons :vl-interfaceport (std::prod-cons (std::prod-cons name ifname) (std::prod-cons modport (std::prod-cons udims loc)))))))