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