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