• 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 do I code a skill statement that changes the pin in...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13804
  • 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 do I code a skill statement that changes the pin in the input direction to the output direction?

dressler6
dressler6 over 5 years ago

Pin direction of symbol and schematic OUT are input.

How do I code a skill statement that changes the pin in the input direction to the output direction?

Example>
Library name: AAA
Pin name: OUT (direction input)-> OUT (direction output)

  • Cancel
Parents
  • AurelBuche
    AurelBuche over 5 years ago
    I guess you could be clearer...

    Anyway, if you want to change all the pins of a cellView matching a given regular expression you could use the following function:

    (defun abSetViewPinsDir (libName cellName viewName regex direction) "Set direction of pins matching REGEX to DIRECTION in LIBNAME CELLNAME VIEWNAME" (let ((cellView (dbOpenCellViewByType libName cellName viewName))) ;; Browse terminals (then could also browse terminal pins) (foreach term (get cellView 'terminals) ;; Set pin direction when matching regex (when (pcreMatchp regex (get term 'name)) (setf (get term 'direction) direction))) (dbClose cellView)))
    Then guessing you want to change the direction of all the pins containing OUT in current cellView, you could do:

    (let ((cv (geGetEditCellView))) (abSetViewPinsDir cv->libName cv->cellName cv->viewName ".*OUT.*" "output"))

    Hope this will help,

    Cheers,

    Aurel

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • AurelBuche
    AurelBuche over 5 years ago
    I guess you could be clearer...

    Anyway, if you want to change all the pins of a cellView matching a given regular expression you could use the following function:

    (defun abSetViewPinsDir (libName cellName viewName regex direction) "Set direction of pins matching REGEX to DIRECTION in LIBNAME CELLNAME VIEWNAME" (let ((cellView (dbOpenCellViewByType libName cellName viewName))) ;; Browse terminals (then could also browse terminal pins) (foreach term (get cellView 'terminals) ;; Set pin direction when matching regex (when (pcreMatchp regex (get term 'name)) (setf (get term 'direction) direction))) (dbClose cellView)))
    Then guessing you want to change the direction of all the pins containing OUT in current cellView, you could do:

    (let ((cv (geGetEditCellView))) (abSetViewPinsDir cv->libName cv->cellName cv->viewName ".*OUT.*" "output"))

    Hope this will help,

    Cheers,

    Aurel

    • 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