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 use AUTO_TEMPLATE all the time - often with complex patterns. However, I'm trying something new and can't get it to work. I'm instantiating a tool-generated register block that has lots of extra prefix characters I'm trying to remove. For most, I have something like this, which works:
.prefix_to_remove_\(.*\) (\1),
However, for a large group of registers, the tool-generated name is
prefix_to_remove_<name>_<name>
which should become
<name>
I tried using a capture group to find the repeated like this, but get parsing errors from verilog-mode:
.prefix_to_remove_\(.*\)_\1 (\1),
I tried some variations of extra back-slashes to escape things but can't get it to work.
I was using this website as a reference:
https://www.emacswiki.org/emacs/RegularExpression
Thanks for any help!
David
The text was updated successfully, but these errors were encountered:
Author Name: David Rogoff
Original Redmine Issue: 1379 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
Hi.
I use AUTO_TEMPLATE all the time - often with complex patterns. However, I'm trying something new and can't get it to work. I'm instantiating a tool-generated register block that has lots of extra prefix characters I'm trying to remove. For most, I have something like this, which works:
However, for a large group of registers, the tool-generated name is
which should become
I tried using a capture group to find the repeated like this, but get parsing errors from verilog-mode:
I tried some variations of extra back-slashes to escape things but can't get it to work.
I was using this website as a reference:
Thanks for any help!
David
The text was updated successfully, but these errors were encountered: