• 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. How to use the pcDefineRepeat, pcDefineInheritParam functions...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 142
  • Views 9250
  • 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

How to use the pcDefineRepeat, pcDefineInheritParam functions?

yankunRen
yankunRen over 3 years ago

Hi,Everyone

I am using the IC616 version.

I want to create a hierarchical pcell.  In pcell1, pcell1 can inherit the w,l parameters of pcell0,

and pcel0 can be repeated in the X direction, Y direction.

I know about using the pcDefineRepeat and pcDefineInheritParam functions, but I don't quite understand how they are used.

I wrote the Skill code, but it can't realize the function, I don't know how to modify it, please help me, thank you very much!!!

Code:

/*** pcell0 ***/
pcDefinePCell(
list( ddGetObj("test_pcell") "pcell0" "layout")
(
(w float 2.0)
(l float 2.0)
)
let( (cv thinRect)
cv=pcCellView
thinRect = rodCreateRect(
?layer list("thin" "drawing")
?width w
?length l
?origin (0 : 0)
?subRectArray
list(
list(
?layer list("mt1" "drawing")
?width w
?length l
?lowerLeftOffsetX 0
?lowerLeftOffsetY 0
?upperRightOffsetX 0
?upperRightOffsetY 0
);end list

list(
?layer list("cont" "drawing")
?width 0.45
?length 0.45
?spaceX 0.45
?spaceY 0.45
?lowerLeftOffsetX 0.18
?lowerLeftOffsetY 0.18
?upperRightOffsetX -0.18
?upperRightOffsetY -0.18
);end list
);end list
);end thinRect
) ;let
) ;pcDefineCell

/*** pcell1 ***/
pcDefinePCell(
list(ddGetObj("test_pcell") "pcell1" "layout")
(
(w float 2.0)
(l float 2.0)
(x int 1)
(y int 1)
)
let((cv pcell0ID)
cv=pcCellView
pcell0ID = dbOpenCellViewByType("TestSkill" "pcell0" "layout" "maskLayout" "r")
pcDefineRepeat(
cv
pcell0ID
list('x 'y)
'6
'6
'x
'y
nil
nil
'((fix(pcRepeatX) - 1) * pcStepX)
'((fix(pcRepeatY) - 1) * pcStepY)
"horizontal and vertical")
);end let
);end pcDefinePCell

Best regards,

yankun

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Hi Yankun,

    You shouldn't use these in SKILL code; they are used by the (old) graphical PCell Editor in Virtuoso. At the start of the chapter where pcDefineRepeat is defined, it says:

    Graphical Parameterized Cell Functions
    This chapter describes each of the supported pc functions you can use to create Pcells in the graphical Pcell environment. Do not use the functions in this section within the body of SKILL Pcell code.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • yankunRen
    yankunRen over 3 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thank you for your reply,Please what functions should I use to achieve my functionality。I'm a little confused now。

    If you can, please give me a Skill reference, thank you very much.

    Please forgive my bad English.

    Regards,

    yankun

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • yankunRen
    yankunRen over 3 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thank you for your reply,Please what functions should I use to achieve my functionality。I'm a little confused now。

    If you can, please give me a Skill reference, thank you very much.

    Please forgive my bad English.

    Regards,

    yankun

    • 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