Function: verilog-modi-modport-lookup
verilog-modi-modport-lookup is a byte-compiled function defined in
verilog-mode.el.gz.
Signature
(verilog-modi-modport-lookup MODI NAME-RE &optional IGNORE-ERROR)
Documentation
Given a MODI, return the declarations related to the given modport NAME-RE.
If the modport points to any clocking blocks, expand the signals to include those clocking block's signals.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-modi-modport-lookup (modi name-re &optional ignore-error)
"Given a MODI, return the declarations related to the given modport NAME-RE.
If the modport points to any clocking blocks, expand the signals to include
those clocking block's signals."
;; Recursive routine - see below
(let* ((mod-decls (verilog-modi-get-decls modi))
(clks (verilog-decls-get-modports mod-decls))
(name-re (concat "^" name-re "$"))
(decls (verilog-decls-new nil nil nil nil nil nil nil nil nil)))
;; Pull in all modports
(while clks
(when (string-match name-re (verilog-modport-name (car clks)))
(setq decls (verilog-decls-append
decls
(verilog-modi-modport-lookup-one modi (verilog-modport-name (car clks)) ignore-error))))
(setq clks (cdr clks)))
decls))