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