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