• 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 creating via at specified points

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 143
  • Views 15865
  • 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 creating via at specified points

venuuuuu
venuuuuu over 13 years ago

 hi all,

       First i planned to draw the prBoundary where i want to place the contacts. When I run this code  the contact's are placed at where mid point prBoundary layer in layout. But previous values of rows and columns are created at latest prBoundary.

 My code is below. What is the problem. Is there any code to getspecified contact at specified location.

 cv = geGetEditCellView()
lpp= list("prBoundary" "drawing")
shapes = setof(y cv~>shapes y~>lpp==lpp)
;x=layerselect
x=car(shapes)
y1=yCoord( upperRight(x~>bBox))
y2=yCoord( lowerLeft(x~>bBox))
x1=xCoord( upperRight(x~>bBox))
x2=xCoord( lowerLeft(x~>bBox))
dx=x1-x2
dy=y1-y2
mx=x2+(x1-x2)/2
my=y2+(y1-y2)/2
no.columns=round((dx-.2)/.4)
no.rows=round((dy-0.2)/.4)
leHiCreateContact()
hiRegTimer("le0ContactForm->rows->value = no.rows" 1)
hiRegTimer("le0ContactForm->columns->value =no.columns" 1)
hiRegTimer("hiiToggleEnterForm(le0ContactForm)" 1)
mx:my
cancelEnterFun()

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Why not use leCreateContact(...) rather than trying to interact with an interactive form using hiRegTimer (which seems an awkward way to do it to me). If there's a procedural interface rather than a human interface version of a function, it's much easier to use that from a program...

    Also, using prBoundary to do this is a bit of an odd use model, I'd say...

    Regards,

    Andrew.

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

     hi Andrew,

                    I did as you suggested in last post and I got it. I need to change layer encloser in Contact.

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

     hi All,

            I have a code for changing x,y enclosure for contact. But it doesnot work's properly. Iam using the version 5141. 

     

    Code is below:

       tcDeclareDevice( "symbolic" "syEnhContact" "M2_M1c"

        ( (viaLayer "VIA1") (viaLayer2 "VIA1") (encByVia 0.05)

          (layer1 "MET1") (layer1Implant "") (layer1ImpEnc 0.0)

          (layer2 "MET2") (layer2Implant "") (layer2ImpEnc 0.0)

          (encByLayer1 0.3) (encByLayer2 0.2)

          (layer1XEnc 0.1) (layer1YEnc 0.2)

          (layer2XEnc 0.0) (layer2YEnc 0.4))

        ( (w 0.6) (l 0.6) (row 1) (column 2) (xPitch 1.2) (yPitch 1.2)

          (offset 0.0) (side "center") (layer1Dir "x") (layer2Dir "x")

          (xBias "center") (yBias "center")

          (leakLength 0.0) (areaPin ""))

    )

     

    Then CIW shows :

     *WARNING* No techfile specified - or must be called within technology file load.

     <<< Stack Trace >>>

     tcDeclareDevice("symbolic" "syEnhContact" "M2_M1c" ((viaLayer "VIA1") (viaLayer2 "VIA1") (encByVia 0.05) (layer1 "MET1") (layer1Implant "") ... ) ((w 0.6) (l 0.6) (row 1) (column 2) (xPitch 1.2) ... ))

     load("venu1/EnclosureContact.il")

     *WARNING* Failed to create device header.

    *Error* techGetDeviceClass: argument #1 should be a database object (type template = "dgt") - nil

    *Error* load: error while loading file - "venu1/EnclosureContact.il"

     

     

    What's the problem

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago
    This is the problem:

     *WARNING* No techfile specified - or must be called within technology file load.

    You can't call this outside of a technology file.

    If you're trying to change the definition of a via, you'll need to load the tech file (or merge this into your technology database). It's not that clear to me precisely what you're trying to do...

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

     hi Andrew,

                     I write following code for creating contact array at specified boundary.

     
    procedure(contact1()
    enterBox(
    ?prompts list("Enter the first corner of your box."
    "Enter the last corner of your box.")
     ?points         nil
     ?doneProc "contact"
     ?alwaysMap t
    ))
    procedure(contact(w done points)
    v=points
    cv = geGetEditCellView()
    y1=car(reverse(car(reverse(v))))
    y2=car(reverse(car(v)))
    x1=caar(reverse(v))
    x2=caar(v)
    dx=x1-x2
    dy=y1-y2
    mx=x2+(x1-x2)/2
    my=y2+(y1-y2)/2
    no.columns=round((dx-.12)/.54)
    no.rows=round((dy-0.12)/.54)
    overlapx=dx-(no.columns-1)*0.54-.26

    leCreateContact(
    cv
     "M2_M1c"
     mx:my
     "R0"
     1
     1
     no.rows
     no.columns
     0
     0
     "center"
       "center"
    )
    )

    hiSetBindKey("Layout" "Shift<key>n" "contact1()")

     

    But i want to create whole area in specified boundary will be filled by automatically adjusting the layers enclosure on contacts. Layer's enclosure on contact's is varied automatically for filling whole area specified in boundary.

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

    The problem is that the enclosures are class parameters, which means that they are common to all instances of the contact. To get around this you'd probably need to declare your own syEnhContact device (see <ICinstDir>/tools/dfII/samples/techfile/syEnhContact.tf as an example, although it doesn't address this particular problem) which had additional formal parameters which allowed you to override the enclosures. You might be able to do this with cdsVia devices too (I'm not sure though and don't have an example to try).

    It's certainly doable in IC61 with stdVia devices even, but in IC5141 the built-in vias are more limited.

    Regards,

    Andrew.

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

     hi Andrew,

                   I still need this. Do you have any idea or example codes for this topic. Iam using the version 5141.

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

    I did give some ideas in my previous post.

    Here's a bit more detail though (I did a quick experiment). If you look at <IC5141instDir>/tools/dfII/samples/techfile/sample2003.tf it shows a couple of cdsViaDevice definitions (e.g. the one for M1_M2).

    If you define a via like this, you can then do:

    inst=car(geGetSelSet())
    inst~>layer1XEnclosure=0.3
    inst~>layer1YEnclosure=0.5
    inst~>layer1Direction="btrl"

    the direction can be any combination of the letters b (bottom), t (top), l (left), r (right) which indicates which sides the enclosure should be applied on. There are also the layer2 equivalent properties.

    I think that does exactly what you want.

    Note that the sample2003.tf tech file contains some OA-specific entries which will cause warnings if you load it (e.g the standardViaDefs and customViaDefs), but you can certainly borrow the ideas from this.

    cdsViaDevice is documented in the documentation too - just search for cdsViaDevice. In particular you can see this in the doc/ascitechfile/ascitechfile.pdf and doc/vlehelp/vlehelp.pdf

    Andrew.

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

      Thank you Andrew for replay. My process had some contacts(M1_POLY) is defined with symcontactdevice and  some contacts(M1_M2) with cdsviadevice. As you said, That code works for cdsviadevice class. Is there any way to set symcontactdevice ?  Or how can i create cdsviadevice.

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

    I've already said that this can't be done with normal vias (e.g. symContactDevice) because the parameters are class parameters, not instance parameters. I've also explained how this can be done with a cdsVia, and have pointed you both at an example and also where in the documentation it explains how to create these in the tech file.

    It's unclear to me what more information I could provide that I have not already provided. Did you take a look and try the example, and did you read the documentation?

    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