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