• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. delete existing wire from a terminal and redraw a new one...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 16893
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

delete existing wire from a terminal and redraw a new one.

AdeshNamekumar
AdeshNamekumar over 9 years ago

I'm trying to redraw all nets on the bulk terminal of all instances by deleting exisiting nets after extracting information about the net label name from them. I have the working SKILL to redraw the nets at the bulk terminal but I'm having trouble deleting the existing nets. 

if cvSch stores the cellView id. 
This is what my snippet looks like:

BulkSignals = "x y z"
BulkSignals = parseString(BulkSignals)

foreach(biasinst cvSch~>instances

; loop through all the terminals of each instance
foreach(myTerm biasinst~>instTerms
if( ( myTerm~>name == "B" ) then
biasnet = myTerm~>net~>name

if((setof(x BulkSignals (x == myTerm~>net~>name)) != nil) then
foreach(fig myTerm~>net~>figs
if(((setof(x BulkSignals (x == fig~>net~>name) ) != nil) && fig~>children != nil) then

schDelete(fig)

function call to draw the new net
)));all loops end here

The problem in using and deleting "figs" is that it has all instances of the same net name rather than just the one specific to the instance I'm presently looking at. As a result, I'm deleting 'n' number of wires at once instead of just one,

I did find a work around by including the fig~>children condition to but now I see warnings as follows:
dbGetq: object is a purged/freed object - db:0x158bb9c4

Is there an easier way I can do this? I've seen a couple of related posts but can you be more specific?


Thank you,
Adesh

  • Cancel
Parents
  • AdeshNamekumar
    AdeshNamekumar over 9 years ago

    Hi Andrew,  

    Let me to try to be precise as to what I'm trying to do.

    I want to edit a schematic by redrawing nets on all bulk terminals but since the net names need to be same after redrawing, I extract information from the original schematic before deleting the original nets on these instances.

    My algorithm would be:

    foreach instance
    (
    find the bulk terminal from the instTerms
    (
    save net name from wire connected to the bulk
    delete the net on the bulk terminal
    function call to draw new net with the same net name
    ))

    To delete the bulk net, I use schDelete() and I delete the figs attribute of the net which gives me a warning saying,
    dbGetq: object is a purged/freed object - db:0x158bb9c4

    and I want to avoid this or do the task in some other way. 

    Thanks.


     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • AdeshNamekumar
    AdeshNamekumar over 9 years ago

    Hi Andrew,  

    Let me to try to be precise as to what I'm trying to do.

    I want to edit a schematic by redrawing nets on all bulk terminals but since the net names need to be same after redrawing, I extract information from the original schematic before deleting the original nets on these instances.

    My algorithm would be:

    foreach instance
    (
    find the bulk terminal from the instTerms
    (
    save net name from wire connected to the bulk
    delete the net on the bulk terminal
    function call to draw new net with the same net name
    ))

    To delete the bulk net, I use schDelete() and I delete the figs attribute of the net which gives me a warning saying,
    dbGetq: object is a purged/freed object - db:0x158bb9c4

    and I want to avoid this or do the task in some other way. 

    Thanks.


     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information