Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A patch to add verilog-auto-tieoff-ignore-regexp #269

Closed
veripoolbot opened this issue Jul 14, 2010 · 1 comment
Closed

A patch to add verilog-auto-tieoff-ignore-regexp #269

veripoolbot opened this issue Jul 14, 2010 · 1 comment
Assignees
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Gary Delp
Original Redmine Issue: 269 from https://www.veripool.org
Original Date: 2010-07-14
Original Assignee: Wilson Snyder (@wsnyder)


If you would consider folding this in, that would be great.

*** verilog-mode.el	2010-07-14 17:29:54.201890000 -0500
--- -	2010-07-14 17:34:41.068421000 -0500
***************
*** 1017,1022 ****
--- 1017,1029 ----
     :type 'string)
  (put 'verilog-auto-unused-ignore-regexp 'safe-local-variable 'stringp)
  
+ (defcustom verilog-auto-tieoff-ignore-regexp nil
+   "*If set, when creating AUTOTIEOFF list, ignore signals matching this regexp.
+ See the \\[verilog-faq] for examples on using this."
+   :group 'verilog-mode-auto
+   :type 'string)
+ (put 'verilog-auto-tieoff-ignore-regexp 'safe-local-variable 'stringp)
+ 
  (defcustom verilog-typedef-regexp nil
     "*If non-nil, regular expression that matches Verilog-2001 typedef names.
  For example, \"_t$\" matches typedefs named with _t, as in the C language."
***************
*** 10821,10826 ****
--- 10828,10836 ----
  Signals that match `verilog-active-low-regexp' will be deasserted by tieing
  them to a one.
  
+ You can add signals you do not want included in AUTOTIEOFF with
+ `verilog-auto-tieoff-ignore-regexp'.
+ 
  An example of making a stub for another module:
  
       module ExampStub (/*AUTOINST*/);
***************
*** 10863,10868 ****
--- 10873,10880 ----
  			      (verilog-decls-get-gparams moddecls)
  			      (verilog-subdecls-get-outputs modsubdecls)
  			      (verilog-subdecls-get-inouts modsubdecls)))))
+       (setq sig-list (verilog-signals-not-matching-regexp
+ 		      sig-list verilog-auto-tieoff-ignore-regexp))
         (when sig-list
  	(forward-line 1)
  	(verilog-insert-indent "// Beginning of automatic tieoffs (for this module's unterminated outputs)\n")



@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-07-15T11:08:59Z


Great patch! Applied and in rev629. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants