• 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. Help on create VIA in 6.1.4 version

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 144
  • Views 14080
  • 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

Help on create VIA in 6.1.4 version

Sarvani
Sarvani over 12 years ago

Hi all,

I am able to create contact in IC5141 version using leCreateContact command.  But this is not works in 614 version. Please let me know create a VIA in layout in 614 version.

Thank you,

Sarvani

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    leHiCreateVia or dbCreateVia.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sarvani
    Sarvani over 12 years ago

     What is d_viaDefId in dbCreateVia? I got below error for dbCreateVia command.

      x=y=0
    dbCreateVia( geGetEditCellView() "M2_M1_S" list(x y) "R0"

                                                 list( list("cutRows" 2)             ;row

                                                 list("cutColumns" 4)               ;column

                                                 list("cutSpacing" list(x y))       ; cut spacing for x and y

                                                 list("layer1Enc" list(x y))         ; enclosure for layer1

                                                 list("layer2Enc" list(x y))         ; enclosure for layer2

                                                 list("cutWidth" 0.2)                 ; cut width

                                                 list("cutHeight" 0.4)                ;cut height

                                                 list("originOffset" list(x y)))      ; j

     

     *Error* dbCreateVia: argument #2 should be a database object (type template = "ddltg") - "M2_M1_S"

     

    M2_M1_S is my via name.

     

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

    Use techFindViaDefByName() to retrieve that.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sarvani
    Sarvani over 12 years ago
    It's working now. Thank you very much Andrew.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • NguyenDinh
    NguyenDinh over 9 years ago

    Hi Andrew,

    I have a problem with this subject. My code is below:

    viaid=techFindViaDefByName(tfId "VM3_M4")
    n =6
    dbCreateVia(pcCellView viaid 0:-1 "R0"
    viaParams='(("cutRows" n)
    ("cutColumns" 1)
    ("cutSpacing" (0.1 0.1)) ; space via
    ("imp1Enc" (26.07 26.07)) ;PP
    ("imp2Enc" (0.07 0.07)) ;PDK layer
    ("layer1Enc" (0.02 0.02))
    ("layer2Enc" (0 0.03))
    ))

    It doesn't work. And Cadence give a warrning : 

    *WARNING* (DB-270576): Invalid cutRows(0)

    *WARNING* (DB-270576): Invalid cutRows(0)

    But

    At line 4, If I use n is 6 (code is viaParams='(("cutRows" 6) ....) it's working. 

    Do you have any ideal ? I want to use a parameter (n) instead a number (6) . Thank

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

    Yes, it's because you're passing a quoted list to the function. The quote operator means that the list is taken literally, with no evaluation. So the n in the list is passed as n not 6. Obviously it's not expecting the symbol n there, so it fails.

    Another thing - you don't really need to assign the value to a variable (the viaParams= bit) unless you're going to use it later - but maybe that was done for a good reason.

    Anyway, what you need is either:

    dbCreateVia(pcCellView viaid 0:-1 "R0" 
    viaParams=list(list("cutRows" n) 
    '("cutColumns" 1) 
    '("cutSpacing" (0.1 0.1)) ; space via
    '("imp1Enc" (26.07 26.07)) ;PP 
    '("imp2Enc" (0.07 0.07)) ;PDK layer 
    '("layer1Enc" (0.02 0.02)) 
    '("layer2Enc" (0 0.03))
    ))

    or:

    dbCreateVia(pcCellView viaid 0:-1 "R0" 
    viaParams=`(("cutRows" ,n) 
    ("cutColumns" 1) 
    ("cutSpacing" (0.1 0.1)) ; space via
    ("imp1Enc" (26.07 26.07)) ;PP 
    ("imp2Enc" (0.07 0.07)) ;PDK layer 
    ("layer1Enc" (0.02 0.02)) 
    ("layer2Enc" (0 0.03))
    ))

    This second form is a neat feature of SKILL - a special kind of quoted list. If you use the backquote instead of the normal single quote, then the list is taken literally except where a subexpression is preceded by a comma. Those preceded by commas get evaluated. It's actually a macro that expands into lists of lists etc, but it's a lot more succinct to type!

    If you look at viaParams after calling this, you'd see the value 6 where the ,n was. Note there's also another form that can be used inside a backquoted list - ,@ - but I'm not going to cover that here since you don't need it (this is for splicing in lists).

    Regards,

    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