What I really wanted to do was a little more complex substituition. But when it did not work, I played with a simpler substitution which was the example I posted.
if the pin name has "dig_", I need to remove it.
if the pin name has "_1v1", I need to remove it.
so dig_tx_vcm_1v1_ch1<4:0> will become tx_vcm_ch1<4:0>
In perl I would do:
$newname = $1.$2;
print "$newname \n";
I do not quite understand the pcreCompile & pcreReplace functions. Are there examples of this within the cadence documentations? If you can help with modifying the code you sent, I would appreciate it.
Or if there is a way for me to use skill to read the pin information into a file ... then I can use perl to modify the file as necessary and then use another skill script to read the modified file and regenerate the symbol. I would be comore comfortable with this but if the skill can do this just as well, I would rather learn with skill. When I just type in the icfb window, the pin list is spewed out.
pinlist = schSymbolToPinList("zakir_ams" "spi_top" "symbol")
How do I pipe this out to a file. My attempts below did not work
schSymbolToPinList("zakir_ams" "spi_top" "symbol") > ~/spi_pins