• 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. Dropping via at current location!!

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 14331
  • 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

Dropping via at current location!!

bharath006
bharath006 over 13 years ago

Hi,

   I am trying to drop a via with 1X2 (row,column) at the mouse pointed location. To start with I have written this code .

procedure(dropvia()
cv=hiGetCurrentWindow()
cvid=geGetEditCellView()
pt=geWindowToEditPoint(cv hiGetPoint(cv))
dbCreateRect(cvid list("VIA "drawing") list(car(pt)-0.03:cadr(pt)-0.03 car(pt)+0.03:cadr(pt)+0.03))
)

Later I realised that, this is not  I am looking for. I wanted to create a via, the one similar to leHiCreateVia() which opens a form and we enter the values.

I tried with dbCreateInst and select the appropriate instance like M2_M1. But is there a way to create via to the one similar to leHiCreateVia() form??

Please give me a appropriate command to plug in my code.

In case, If there is way a to get above one, how do we return the name of the via definition (eg:M1_M2,M2_M3), so that I can pass this name to change it to next level via. Say I will select M1_M2 and press a key to change it to M2_M3

Thanks,

Bharath

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    In IC615 (assuming you're still talking about IC615 and are not flipping back and forth between versions from your other questions), you need to use dbCreateVia. There are numerous posts on this in these forums - try searching for dbCreateVia (at a guess).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • bharath006
    bharath006 over 13 years ago

    Yes!! I will be using 6.1.5 always!!!

    I got the function I am looking for by searching in the forums. I did not find out how to get the property of the selected via. I wanted to do something like this.

     if(layer~>layerName == "M1"
    then
    layer~>layerName = "M2X"

    In place of M1, I want to replace with M2X_M1 and in place of M2X i wanted M3X_M2X

    Sorry for the never ending discussion, but I am getting a chance to learn.

    Thanks,

    Bharath. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Bharath,

    You need to re-create the via to change the via type. You can't just set an attribute on the via to change it.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • bharath006
    bharath006 over 13 years ago

    Hi Andrew,

      In this case, I would want to know the slected via name and co-ordinates so that I can re-create the via in that particular location by deleting the current one. Can you please let me know how to get name of the via

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Assuming that you have the via selected (and nothing else):

    ; get the first selected object as the via
    via=car(geGetSelSet())
    via~>xy  ; returns the coordinate of the via
    via~>viaHeader~>viaDefName ; returns the name of the via.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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