• 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. skill command for layout execution

Stats

  • Locked Locked
  • Replies 26
  • Subscribers 144
  • Views 30043
  • 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

skill command for layout execution

Supriyo
Supriyo over 7 years ago

Hi,

I am trying to get familiar with skill by following commands printed on CIW. There are few layout related questions on that. 
1)  These are the set of commands that get printed when I execute “generate all from source” from virtuoso layout editor.
        lxHiReInitDesign()
        hiiSetCurrentForm('lxTemplateForm)
        lxTemplateForm->templateTab->page1->pMinSep->value=1.0
        hiFormDone(lxTemplateForm)
When I execute them in skill file, the interactive window appears and asks for user input. How do I pass the user input in the skill file itself as function argument.  
2) For the interdigitization, I see set of commands get executed when modGen is called, some of them are shown below. But the same commands fail to work from skill. What function call with arguments should I use to interdigitate for example two transistors with 2 fingers each with a pattern ABBA.
mgCreateOrEdit(geGetEditCellView() “nil” “nil")
mgPatternCB()
hiiSetCurrentForm('patternForm)
patternForm->g_patternRadio->value= "Customize"
hiFormDone(patternForm)
mgAbutAllCB()
3) I am calling chip level routing assembly from skill the following way.
        ipcBeginProcess("/package/eda/cadence/IC616/tools/iccraft/bin/vcar -lib tutorial -cell amplifierDemo -view layout.routed.routed  -constraintGroup virtuosoDefaultSetup  -protectPreRoutes  -o router_01-31-2018_17:13:26.log”)
When I execute detailed routing on the new window, I do not see any command appearing on CIW, may be because the routing tool runs independent from virtuoso. What function call would be involved after the command above to run detailed routing with say 25 passes. I am guessing same problem would occur while invoking calibre drc, lvs and then passing arguments on them. 
Regards
Supriyo
  • Cancel
Parents
  • Quek
    Quek over 7 years ago

    Hi Supriyo

    For question 1, you can try lxGenFromSource cmd. Please refer to $CDSHOME/doc/sklayoutref/sklayoutref.pdf for more details on the various options.

    For question 2, you can use ciCreateModgen cmd. Please refer to $CDSHOME/doc/constraintsSKILL/constraintsSKILL.pdf for more details on the option and for sample codes

    For question 3, you can use "route 25"


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

    Thanks Quek for insight and reference. 

    1) I was able to get all the components from schematic to layout by executing the following commands. 

    schematic_view = dbOpenCellViewByType(libName cellName "schematic")
    layout_view = dbOpenCellViewByType(libName cellName "layout" "maskLayout" "w")
    lxGenerateStart(schematic_view layout_view)
    lxGenerateFinish(schematic_view layout_view)

    2) I was also able to autoplace it with the following command. 

    nclAnalogAutoPlaceCB(layout_view 2 "nil")

    Here is a problem. I was not able to keep the boundary fixed with "nil" argument. The autoplace command execution always modifies the boundary to just rightly fit all the components. This is important since routing quality would be affected by amount of space left.

    3) I am still working on the interdigitization part, will update the feed as I progress. 

    4) Was able to transfer the layout to chip level routing assembly with the following command. 

    ipcBeginProcess("/package/eda/cadence/IC616/tools/iccraft/bin/vcar -lib tutorial -cell amplifierDemo -view layout  -constraintGroup virtuosoDefaultSetup  -protectPreRoutes  -o router_01-31-2018_17:13:26.log")

    But "route 25" does not work from CIW. There is a place to type command in the auto router window and it works from there. Strangely, the commands for all the gui execution (ex. detail router) in the new window do not appear anywhere including CIW, perhaps due to the same reason why route 25 does not work from CIW. 

    Regards

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    I am thinking about it. : )

    Best regards
    Quek

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

    Supriyo,

    I should point out that if this is urgent, you really should have logged this as a case with support.cadence.com; these forums are community forums - folks (including those from Cadence) respond in their spare time and it should not be seen as a substitute for formal customer support.

    That said, thanks to Quek for being so diligent with these questions!

    Regards,

    Andrew.

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

    Hi Andrew and Quek, 

    Please know that I more than appreciate the help cadence community is giving out voluntarily so that users don't have to go through a more time consuming official process of filing a ticket. I just wanted to be sure that Quek knows the problem. I would like to have the solution early but there is absolutely no urgency.

    Thanks again.

    Regards

    Supriyo 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    The problem was that the instance parameters got lost after ciExpandMembers. You can use the following as a workaround:

    procedure( CCSciExpandMembers(memberList)
       prog( (finalList memName memType instList2)
          finalList=foreach(mapcar member memberList
             memName=nth(0 member)
             memType=nth(1 member)
             instList2=foreach(mapcar instList ciExpandMembers(list(list(memName memType)))
                append(instList cddr(member))
             ) ;foreach
             car(instList2)
          ) ;foreach
          return(finalList)
       ) ;prog
    ) ;procedure


    cvLay=geGetWindowCellView()
    cache=ciCacheGet(cvLay~>libName cvLay~>cellName "layout")

    memberList=list(
       list("I6" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))
       list("I7" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))
    ) ;list

    modgen=ciConCreate(cache 'modgen
            ?members CCSciExpandMembers(memberList)
    ) ;ciConCreate


    May we have your help to file a case to fix the behaviour of ciExpandMembers? I think it should preserve the instance parameters. You can use the following example in the case:

    ciExpandMembers(list(list("I6" 'inst list('("row" 0)))))
    => (("I6" inst))


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

    Thanks Quek, workaround works. Please let me know the process to file a case. However, I am not sure how to declare a pattern like ‘A B B A’. Abutment does not work for the example below. 

    cvLay=geGetWindowCellView()

                cache=ciCacheGet(cvLay~>libName cvLay~>cellName "layout")

               memberList=list(

               list("|T5(1)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               list("|T4(1)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               list("|T5(2)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               list("|T4(2)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               ) ;list

                modgen=ciConCreate(cache 'modgen ?members CCSciExpandMembers(memberList)

    ) ;ciConCreate

                ;;mgAbutAllCB()

                mgGen( cvLay modgen )

    Earlier I used pattern param inside ciExpandMembers as follows

                modgen=ciConCreate(cache 'modgen ?members ciExpandMembers(memberList) ?params list(list( "numRows" 1 ) list( "numCols" 1) list("pattern" "custom ((A B B A))")

            ) ;list

    ) ;ciConCreate

    It also worked from the gui. 

    Regards

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    Using custom pattern "A B B A" is also ok. You just need to change numCols from 1 to 4.

    modgen=ciConCreate(cache 'modgen
            ?members CCSciExpandMembers(memberList)
            ?params list(
               list("numRows" 1)
               list("numCols" 4)
               list("pattern" "custom ((A B B A))")
            ) ;list
    ) ;ciConCreate


    You can file a case as follows:

    a. Go to "https://support.cadence.com"
    b. At the top of the page, choose "Cases->Submit Cases" from the menu
    c. Choose "Virtuoso Layout Suite" as the product and in the subsequent page, choose "IC6.1.7" as the version
    d. Please use the following problem description:

    ===========================
    ciExpandMembers SKILL cmd does not preserve the instance parameters as shown below:

    ciExpandMembers(list(list("I6<0:1>" 'inst list('("row" 0)))))
    => (("I6<0>" inst) ("I6<1>" inst))

    Please help to file a CCR to either fix (if it is a bug) or to enhance it to preserve instance parameters. The expected output is as follows:

    (("I6<0>" inst list('("row" 0))) ("I6<1>" inst) list('("row" 0)))
    ===========================


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

    Thanks Quek,

    Changing the numCols from 1 to 4 had no effect and abutment did not work. What I realized is that list("pattern" "custom ((A B B A))") was not working as ciConCreate defined the pattern always based on the sequence instances were added to the memberList. And since my memberList was implicitly defining a pattern like A B A B which is not a valid pattern (without rotation), abutment was not successful. 

    Anyway I understand the problem now. I think ciConCreate should accept the pattern (as well as rotation, also seems to be not working) as argument, not sure if this is a bug. 

    While filing a case, it asked for a host id which I obtained by running the command lmhostid as suggested. But the key was not accepted. I am not sure if I am the right person. Please let me know if I should contact the university Professor who is acting as liaison officer. 

    Regards

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    This is strange. Changing numCols from 1 to 4 works for me. Would you please try IC617 and let us know if you are able to get the abutment?

    it is ok not to contact the university professor. I will file the request to R&D.


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

    Hi Quek, 

    I quickly checked IC617, looks like not working. Infact there was undefined function error with mgGen. Most likely it has been phased out as you also said before. I observed that it did not even enclose the interdigitated devices together which is a step before abutment occurs. It worked fine from gui. The skill code is as follows. 

    cvLay=geGetWindowCellView()

                cache=ciCacheGet(cvLay~>libName cvLay~>cellName "layout")

               memberList=list(

               list("|T4(1)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               list("|T5(1)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               list("|T4(2)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               list("|T5(2)" 'inst list('("row" 0) '("col" 0) '("abutment" 1)))

               ) ;list

    modgen=ciConCreate(cache 'modgen 

            ?members CCSciExpandMembers(memberList)

            ?params list(

                list("numRows" 1)

                list("numCols" 4)

                list("pattern" "custom ((A B B A))")

            ) ;list

    ) ;ciConCreate

    One thing to note, it makes sense that pattern definition comes from memberList since nowhere we are mapping transistor names to ‘A’ ‘B’ before we pass the arguments in ciConCreate. But not sure if I am missing out something. 

    Regards

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    Would you please help to do the following and provide the output of the cmds?

    a. Select the 4 instances in your layout
    b. Execute the following cmds in CIW:

    geGetSelSet()~>name
    geGetSelSet()~>instTerms~>net~>name
    getVersion('subVer)

    c. Please kindly provide a snapshot of your current result for the 4 instances


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    Would you please help to do the following and provide the output of the cmds?

    a. Select the 4 instances in your layout
    b. Execute the following cmds in CIW:

    geGetSelSet()~>name
    geGetSelSet()~>instTerms~>net~>name
    getVersion('subVer)

    c. Please kindly provide a snapshot of your current result for the 4 instances


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

    Hi Quek, 

    Please see the attachment. The image is slightly poor in quality since had to meet recommended size limit. 

    Regards

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    Let me reproduce the info here:

    name:
    T5(1) : net06, net06, VDD
    T5(2) : net06, net06, VDD
    T4(1) : net06, net012, VDD
    T4(2) : net06, net012, VDD

    Your are using IC616-500-1.

    Would you also please provide the following info?
    a. geGetSelSet()~>instTerms~>name

    b. Switch to IC617 and execute the following:
    getVersion( 'subVer )


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

    Please see the result

    a) 

    > 

    geGetSelSet()~>instTerms~>name

    (("g" "d" "s") 

        ("g" "d" "s") 

        ("g" "d" "s") 

        ("g" "d" "s")

    )

    > 

    b)

    getVersion( 'subVer )

    "sub-version  IC6.1.7-64b.500.14 "

    >

    Regards

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    Would you please try the following?

    a. Please use IC617-500-14 instead of IC616-500-1? Your version of IC616 is too outdated

    b. There does seem to be a problem with the custom pattern. Even though my instances can be abutted, the pattern is wrong. It happens even if I add orient and mapping info:

    modgen=ciConCreate(cache 'modgen
            ?members CCSciExpandMembers(memberList)
            ?params list(
               list("numRows" 1)
               list("numCols" 4)
               list("pattern" "custom ((A B B A)) ((MY R0 MY R0)) mapping ( (T5 A) (T4 B) )")
            ) ;list
    ) ;ciConCreate

    I have filed CCR1878108 to check with R&D on this issue.


    c. You can use this as a workaround. I have modified the instance parameters to force modgen to create a correct pattern:

    memberList=list(
       list("T5(1)" 'inst list('("row" 0) '("col" 0) '("abutment" 1) '("orient" "MY")))
       list("T4(1)" 'inst list('("row" 0) '("col" 1) '("abutment" 1) '("orient" "R0")))
       list("T4(2)" 'inst list('("row" 0) '("col" 2) '("abutment" 1) '("orient" "MY")))   
       list("T5(2)" 'inst list('("row" 0) '("col" 3) '("abutment" 1) '("orient" "R0")))
    ) ;list

    modgen=ciConCreate(cache 'modgen
            ?members CCSciExpandMembers(memberList)
            ?params list(
               list("numRows" 1)
               list("numCols" 4)
            ) ;list
    ) ;ciConCreate


    By the way, ciExpandMembers will be able to preserve instance parameters in the upcoming IC618 release.


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

     

    Thanks Quek. It seems like the workaround does not work for IC617. Please see the screenshot. However, with what we have figured out so far, I do have a workaround in IC616. Also I have become a bit more familiar with the environment :), would like to continue till 618 comes in perhaps. 

    Regards

    Supriyo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 7 years ago in reply to Supriyo

    Hi Supriyo

    This is just for your info. R&D has suggested using gpe* cmds to resolve the placement problem. Here are the cmds:

    a. Select the instances in the layout

    b. Enter the following cmds in CIW:

    sbox=gpeCreateSandbox( ?sync t)
    gpeSetMap(sbox list(list("T5" "X") list("T4" "Y")))
    gpeSetGrid(sbox list(list("X" "Y" "Y" "X")))


    Please refer to $CDSHOME/doc/sklayoutref/sklayoutref.pdf for more details on gpe* cmds.


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Supriyo
    Supriyo over 7 years ago in reply to Quek

    Hi Quek,

    Thanks for getting back. I will try this out later in the week. 

    Regards

    Supriyo

    • 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