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