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