Home
  • Products
  • Solutions
  • Support
  • Company
  • Products
  • Solutions
  • Support
  • Company
Community Forums Custom IC SKILL The way how change the 'Display' in object properties of...

Stats

  • Replies 2
  • Subscribers 137
  • Views 136
  • Members are here 0

The way how change the 'Display' in object properties of pin in symbol,

shane park
shane park 18 days ago

Hello, 

I am beginner at the skill language, and I am making the script which generate symbol and schematic automatically in Skill.

anyway, when I made symbol, by the below code 

  schCreatePin(cvSchem OpinId port "output" nil x_o:y_o+dy "R90")

however,

 the pins I made dosen't have 'Display' option in its Object property.

So, I also want to change this 'display property' into 'value' by code.

I found lots of website, but I couldn't figure out it.

I tried like below code, but it doesn't work.

foreach(term cvId~>terminals

  term->textDisplays="value"

)

Would you resolve this problem?

thank you.

  • Reply
  • Cancel
  • Cancel
  • AurelBuche
    AurelBuche 16 days ago

    Hi,

    I tried creating using the following code (from schCreatePin documentation):

    inputCVId = dbOpenCellViewByType( "basic" "ipin" "symbol" "" 'r )
    pinId = schCreatePin( (geGetEditCellView) inputCVId "I1" "input" nil 0:0 "R0" )

    It created a pin with its label displayed

    However you might have a different setup (or instantiate a different kind of pin?)
    I hope the following functions might help you:


    (defun get_schematic_pins (@optional (sch_cv (geGetEditCellView)))
    "Return pins from SCH_CV"
    (setof inst sch_cv->instances inst->pin))

    (defun get_schematic_pin_name_display (pin)
    "Return PIN name associated text display"
    (car (exists obj pin->children (and obj->objType=="textDisplay" obj->text=="name"))))

    (defun display_schematic_pin_name (pin @optional (visible t))
    "Show or hide PIN name associated text display according to VISIBLE toggle"
    (let ((text_display (get_pin_name_display pin)))
    ;; Make sure text_display was well fetched
    (assert text_display "Unable to fetch %A name text display" pin)
    (schSetPropertyDisplay ?object text_display ?visibility (if visible 'value 'off))))

    You should be able to use them like this:

    ;; Display all pin names in current cellview
    (foreach pin (get_schematic_pins) (display_schematic_pin_name pin))
    ;; Display name of pin created before using schCreatePin
    (display_schematic_pin_name pinId)

    Hope this helps

    Aurélien

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • shane park
    shane park 12 days ago in reply to AurelBuche

    Hi Aurélien,

    Thank for reply, but What I wanted was putting label on not 'schematic pin' but 'symbolic pin'.

    So, I used schCreateSymbolPin rather than schCreatPin.

    If I use just 'schCreateSymbolPin' , then the label (the name of each pin) is not visible, so I want modify the 'Display' option in its Object Property from 'off' to 'value'.

    I also tried applying the 'schSetPropertyDisplay' but it dosen't wok, but of course, I might do wrong ..lol

    • Cancel
    • Up 0 Down
    • Reply
    • 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.

© 2023 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information