Hi,
I am trying to get outputs from ocean using outputs() function into a list from a post layout simulation(netlist is dspf file). The format of outputs() is sth like this: /VCO/VCO_CORE/CAPBANK[0]/MMN0:G
To be able to plot these with ocean, I need to convert them to below format:
v("VCO.VCO_CORE\\/CAPBANK\\[0\\]\\/MMN0\\:G)
In other words, I need to use double escape character before "/ [ ] : " characters. We can assume VCO section is common for all saved nets so /VCO/ => VCO. is not much an issue. Also I was able to change [ ] : and / with pcreCompile and pcreReplace but I couldn't figure out how to add quotation mark after v(
To add double backslach before : [ ]/ , I have below
comPat2 = pcreCompile("[:/\\[\\]]")
pcreReplace(comPat1 "/VCO/VCO_CORE/CAPBANK[0]/MMN0:G" "\\\\&" 0)
The question is how I can replace quotation mark in pcreReplace such that /VCO/ becomes v("VCO?
Thanks
yayla
Version Info:
ICADV12.3 64b 500.21
spectre -W =>
Tool 'cadenceMMSIM' Current project version '16.10.479'
sub-version 16.1.0.479.isr9