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