Generate instances of ACL2::*esim-z* to drive undriven output bits.
Signature: (vl-make-z-occs idx outs) returns a list of occurrences.
Function:
(defun vl-make-z-occs (idx outs) (declare (xargs :guard (and (natp idx) (vl-emodwirelist-p outs)))) (b* (((when (atom outs)) nil) (idx (+ 1 idx)) (fresh (make-vl-emodwire :basename "vl_zdrive" :index idx))) (cons (vl-make-z-occ fresh (car outs)) (vl-make-z-occs idx (cdr outs)))))
Theorem:
(defthm good-esim-occsp-of-vl-make-z-occs (implies (and (force (natp idx)) (force (vl-emodwirelist-p outs))) (good-esim-occsp (vl-make-z-occs idx outs))))