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