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