• 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 Design
  3. layoutXL Gen from source doesn't give correct sizes.

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 125
  • Views 5483
  • 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

layoutXL Gen from source doesn't give correct sizes.

MarkTown
MarkTown over 13 years ago

 If I place my Pcell by hand the cell works fine. Sizes are what I expect them to be.

Gen from source gives me small values that can't be laid out.

The symbol though has "90n M" which doesn't match other tech files I've worked with "90n"

 I've tried two different ways of doing the CDF:

    cdfCreateParam( cdfId
        ?name           "w"
        ?prompt         "width"
        ?defValue       "0.2n"
        ?parseAsNumber  "yes"
        ?type           "string"
        ?units          "lengthMetric"
    )
 

 

I've also tried the following default value:

minMosWidth = 0.2 * 1e-6

?defValue       sprintf(nil "%g" minMosWidth)
 

Neither gives me the desired result.  Any thoughts?

 

Mark

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Mark,

    Without seeing your pcell, who knows what the problem is. Most likely there is a difference between what the pcell is expecting and what the CDF value is - either in the type of the value it sees, or in the value. Maybe the pcell is expecting the value to be in microns?

    Above you seem to be setting the default value in the first case to 0.2 nm (which is a bit small and rather ahead of state of the art technology). 

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MarkTown
    MarkTown over 13 years ago

     Your right Andrew, I should have .2u not .2n.   

    That didn't solve all the problem with the size tho.

     The Pcell code is:

       ;  Define formal parameter name-value pairs.
       (
          ( w     0.2 )
          ( l     0.09 )
    ....

         width = w
         length = l

    So I don't change the value in the Pcell. If I multiply w by 1*e-6 then virtuoso locks up when I load it.  Kinda strange.

    Any more thoughts?

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Mark,

    The type of the pcell parameters is float, but the type in the CDF is string - so you have a mismatch. They need to be consistent, and ideally the default values should be consistent. In this case you have the w in the pcell in microns, but the CDF in metres. Consistency is the key.

    You could define the default values in the pcell as also being strings, and then use something cdfParseFloatString() in the pcell code to convert to a number, and do whatever scaling you need.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MarkTown
    MarkTown over 13 years ago

     Hi Andrew,

       Thanks for the help. I got all the params to be consistent and then the sizing in the Pcell to work.

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MarkTown
    MarkTown over 13 years ago

     Well, turns out there is still an issue with the size of the Pcell.

     

    If I places the nsoi Pcell thru layoutXL gen from source I get the correct size transitors.

    If I instanciate the pcell from my layout cell I get very large transistors. This makes sence in the way I've changed the Pcell code to get it to work with the gen from source.

       ;  Define formal parameter name-value pairs.
       (
          ( w     "0.2" )
          ( l     "0.09" )
    ....

    these lines work with gen from source.

           width  = cdfParseFloatString(w)* 1e6
           length = cdfParseFloatString(l)* 1e6

    These lines work when pcell is instanciated.

    ;       width  = cdfParseFloatString(w)
    ;       length = cdfParseFloatString(l)

    I currently don't have any call back called.

     There is the CDF code:

        ;;; Parameters
        cdfCreateParam( cdfId
            ?name           "w"
            ?prompt         "width"
            ?defValue       "0.2"
            ?parseAsNumber  "yes"
            ?type           "string"
          ?units          "lengthMetric"
    ;        ?callback    "nsoiCB('w)"
        )
        cdfCreateParam( cdfId
            ?name           "l"
            ?prompt         "length"
            ?defValue       "0.09"
            ?parseAsNumber  "yes"
            ?type           "string"
          ?units          "lengthMetric"
    ;        ?callback    "nsoiCB('l)"
        )

     

    Anyone got any thoughts about where the conversion should take place from schematic to layout?

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

     Mark,

    My guess is that your schematic has the components instantiated with values such as "0.2u" - and so with the scaling lines in the pcell, it correctly transforms it into layout units (microns). 

    When you're instantiating in the layout directly, and picking the value as the default (0.2), then that scaling would result in a transistor width of 20cm - which is a tad large.

    So it's a units mismatch problem - you need to decide what values you want the user to enter, and then be consistent about it. Maybe your pcell default and CDF default should be "0.2u" and then you will need the scaling in the pcell to convert into microns since the layout will  be drawn in microns.

    A bit of a guess because obviously I can't see everything...

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MarkTown
    MarkTown over 13 years ago

     Yes, Andrew, I'm aware that its a units issue. I've tried quite a few different units trying to get them to match. I get the code working one way and then it breaks another way. 

     

    For something as easy to mess up as this, it would be nice if CD not only had an example like the 90nm sample code but also an explanation of why each cb, cdf, il and symbol has to be what it is and why. Where the conversion should be etc. I've thought I had ever line matched up with the CDS examples and yet it still didn't work. 

     

    So now its just going to ahve to be skill code that is placed. Its easy to make that work.  No gen from source in this version.

     

    thanks for you help

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Mark,

    There is ABSOLUTELY NO REASON why you should not be able to make it work for both scenarios. Once you've decided whether the user will be setting the dimensions  in metres or microns on the component, you can make it consistent everywhere.It would be very odd if you specified the dimensions differently when placing an instance on the schematic from placing an instance on the layout.

    This is not complicated - so I'm slightly mystified as to why it is seen as being complicated.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MarkTown
    MarkTown over 13 years ago

     Yup, I know there isn't a reason. But I've not been able to do it in 2 weeks of trying.

    I've never been this flustrated trying to program in CDS.  

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 13 years ago

    Hi Mark,

    Would you like to create a Service Request to get support directly from a Cadence engineer?  This would likely give you better support than the online forum, especially if you have reached a point of frustration...

    Regards,

    Lawrence.

    • 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