• 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. Copying a via or Pcell with a user defined X and Y

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 5106
  • 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

Copying a via or Pcell with a user defined X and Y

santhosh08
santhosh08 over 2 years ago

Hi,

   I am trying to copy PDK Vias from one cellview to another cellview using dbCopyFig but the deltaX and deltaY ae not same in my case. How can I copy with the user defined co-ordinates or move the vias to a required location in the newly copied view.

---> This code copies all types of vias  with the same co-odinates from old layout(cv) to new layout(cv1) 

foreach(inst cv~>vias
;if(inst~>objType=="stdVia" then
bbox=inst~>bBox
llx=car(nth(0 bbox))
lly=cadr(nth(0 bbox))
urx=car(nth(1 bbox))
ury=cadr(nth(1 bbox))
printf("Found Via llx=%f \t lly=%f \t urx=%f \t ury=%f \n" llx lly urx ury)
dbCopyFig(inst cv1 list( list(0 0) "R0"))
; );if stdVia
);foreach cv

Problem statement --> Here while copying, I want to multiply the X,Y of vias in old layout and copy in new layout with these co-ordinates. "dbCopyFig" allows to copy with (delta-x:delta-y) only.

Please help me with this and thanks in advance.

Regards,

Santhosh

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    A bit of a strange requirement, but you could use:

    ; multiplication factors
    xFactor=2
    yFactor=3
    ; this bit inside the loop
    xy=inst~>xy
    dbCopyFig(inst cv1 list(list(xCoord(xy)*(xFactor-1) yCoord(xy)*(yFactor-1)) "R0"))

    Of course, I may have misunderstood your requirement. If I didn't understand correctly, please explain what you mean by "multiply the X,Y of vias". The code above should place the vias at xFactor*originalX:yFactor*originalY.

    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