• 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. get via coloring

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 14922
  • 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

get via coloring

psill000
psill000 over 7 years ago

Is there another method of getting and setting the via coloring?

I had a used a script to get and set via coloring but it doesnt seem to work now.

The via is a stdVia with mask2Color locked on layer2 as indicated from the property gui

I have tried

dbGetViaLayerControl

dbGetViaCutLayerControl

dbGetViaLayer1Control

dbGetViaLayer2Control

dbIsViaColorStateLayerLocked

dbGetViaLayerNumColorMasks

All return noColor, noShift or nil

Paul

  • Cancel
Parents
  • TaherEssam
    TaherEssam over 7 years ago

    Paul, 

    Should be sth similar to this code:

    layer1Num = via_Id->viaHeader->viaDef->layer1Num

    layer2Num = via_Id->viaHeader->viaDef->layer2Num

    cv_id = dbOpenCellViewByType( "wo_kourany" "test" "layout" "maskLayout" "r" )

    drGetPacket("display" techGetLPPacketName(car(nth(layerNum1 techGetTechFile(cv_id)->layers)->lps)))

    Output should like this:


    ("display" "Metal4Bnd" "blank" "solid" "yellow"
        "yellow" "outline"
    )

    Regards, 

    Taher.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • TaherEssam
    TaherEssam over 7 years ago

    Paul, 

    Should be sth similar to this code:

    layer1Num = via_Id->viaHeader->viaDef->layer1Num

    layer2Num = via_Id->viaHeader->viaDef->layer2Num

    cv_id = dbOpenCellViewByType( "wo_kourany" "test" "layout" "maskLayout" "r" )

    drGetPacket("display" techGetLPPacketName(car(nth(layerNum1 techGetTechFile(cv_id)->layers)->lps)))

    Output should like this:


    ("display" "Metal4Bnd" "blank" "solid" "yellow"
        "yellow" "outline"
    )

    Regards, 

    Taher.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to TaherEssam

    Taher - wrong kind of color. You're talking about the display color, whereas this is about Advanced node coloring (which is related to multiple patterning of the masks - each metal1 mask is assigned a color name to distinguish it).

    Paul - to get whether the via mask is locked, you'd use dbIsViaColorStateLayerLocked(viaId "cutLayer") ; or "layer1" or "layer2". There is also the function dbSetViaColorStateLayerLocked to set the lock status of each layer. There's also dbSetViaColorInfo which allows you to set the color and the lock status of each layer (and in fact do all of them in one shot) - this function was added in ICADV122 ISR6 (so also in ICADV123 ISR7 which was the subsequent ISR). The dbGetViaLayerControl/dbSetViaLayerControl and the individual db{Get,Set}Via{Layer1,Layer2,CutLayer}Control functions also work too (although you need to make sure they are unlocked before changing them). The control is described as a shift (so noColor==grey, noShift==mask1Color, shift1=mask2Color).

    Unfortunately there's no nice dbGetViaColorInfo which I think would make life a bit simpler...

    I would say that the documentation for dbSetViaColorInfo shows setting them together, and then retrieving them with the individual APIs.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TaherEssam
    TaherEssam over 7 years ago in reply to Andrew Beckett

    Andrew, 

    Thanks for clarification, wasn't very clear from the description.

    Regards, 

    Taher.

    • 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