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