Basic constructor macro for svl-occ-module structures.
(make-svl-occ-module [:inputs <inputs>] [:outputs <outputs>] [:name <name>])
This is the usual way to construct svl-occ-module structures. It simply conses together a structure with the specified fields.
This macro generates a new svl-occ-module structure from scratch. See also change-svl-occ-module, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-svl-occ-module (&rest args) (std::make-aggregate 'svl-occ-module args '((:inputs) (:outputs) (:name)) 'make-svl-occ-module nil))
Function:
(defun svl-occ-module (inputs outputs name) (declare (xargs :guard (and (svexlist-p inputs) (wire-list-listp outputs) (sv::modname-p name)))) (declare (xargs :guard t)) (let ((acl2::__function__ 'svl-occ-module)) (declare (ignorable acl2::__function__)) (b* ((inputs (mbe :logic (sv::svexlist-fix inputs) :exec inputs)) (outputs (mbe :logic (wire-list-list-fix outputs) :exec outputs)) (name (mbe :logic (sv::modname-fix name) :exec name))) (cons :module (list inputs outputs name)))))