Remove interfaced ports from auto-inst of interfaces
|Assignee:||Wilson Snyder||% Done:|
Our use of interfaces uses actual ports for rtl connections and interfaced ports for observation and stimulus. Ideally, what we want to for the interfaced ports not to appear when verilog-auto is run. I have made a small modification to rev 735 to offer the ability to shut off interfaced ports. Below is the diff. Can you implement this feature?
diff verilog-mode-735-orig.el verilog-mode-735.el 686a687,693 > (defcustom verilog-auto-no-interfaced-ports nil > "*Non-nil means that interfaced ports in interfaces should not > be added to the port list" > :group 'verilog-mode-actions > :type 'boolean) > (put 'verilog-auto-no-interfaced-ports 'safe-local-variable `stringp) > 10721,10723c10728,10732 < (verilog-insert-indent "// Interfaced\n") < (verilog-auto-inst-port-list sig-list indent-pt < tpl-list tpl-num for-star par-values))) --- > (when (not verilog-auto-no-interfaced-ports) > (verilog-insert-indent "// Interfaced\n") > (verilog-auto-inst-port-list sig-list indent-pt > tpl-list tpl-num for-star par-values)) > ))