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