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