You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been having a devil of a time trying to get an AUTO_TEMPLATE to match leading backslahes in my module's port names. A simple example of my module is:
my overall goal is to rename the connected wire to a signal without a \ or . (note, as weird as this looks, this is legal verilog).
I've tried just using a \ to match the slash as well as other random multiples of 2 slashes. I've tried a regexp with a [\]. I've tried doing an exclusion regexp to match. Nothing useful is seemingly working, and it all seems to result in an AUTO_TEMPLATE parsing error. It's worth noting that .* seems to match the \ , but that's not so helpful.
Any thoughts would be much appreciated. Thanks!
-Robbie
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2013-03-04T14:24:58Z
It doesn't presently accept backslashes in the wildcard part, but you can cheat and use .* to hack around this. Escaped identifiers should work fine in the high connection name part. What you might want to do is match .* then write a lisp function to strip the first \ and do whatever other sanitation you need to get rid of the escaping.
Original Redmine Comment
Author Name: Robbie Adler
Original Date: 2013-03-04T19:02:36Z
I was able to answer my own question by using an exclusion regexp that got the \ followed by regexps for the other stuff that I needed. The final template is below:
Author Name: Robbie Adler
Original Redmine Message: 1029 from https://www.veripool.org
Hi-
I've been having a devil of a time trying to get an AUTO_TEMPLATE to match leading backslahes in my module's port names. A simple example of my module is:
my overall goal is to rename the connected wire to a signal without a \ or . (note, as weird as this looks, this is legal verilog).
I've tried just using a \ to match the slash as well as other random multiples of 2 slashes. I've tried a regexp with a [\]. I've tried doing an exclusion regexp to match. Nothing useful is seemingly working, and it all seems to result in an AUTO_TEMPLATE parsing error. It's worth noting that .* seems to match the \ , but that's not so helpful.
Any thoughts would be much appreciated. Thanks!
-Robbie
The text was updated successfully, but these errors were encountered: