Home > Community > Forums > Custom IC SKILL > Error marker when gen. PCell

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Error marker when gen. PCell 

Last post Thu, Apr 4 2013 4:50 AM by RVERP. 6 replies.
Started by RVERP 04 Apr 2013 02:33 AM. Topic has 6 replies and 930 views
Page 1 of 1 (7 items)
Sort Posts:
  • Thu, Apr 4 2013 2:33 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Sun, Oct 23 2011
    • Posts 27
    • Points 465
    Error marker when gen. PCell Reply

    When I generate a pcell,  it includes a marker error.

    If I look up the explanation, it says:

    location: ("testLib" "pcTest" "layout")
    reason:   Generating Pcell for 'pcTest layout'.

     Any idea what this means? If this is'nt enough, I can always post the PCell code.

     Thanks

    • Post Points: 20
  • Thu, Apr 4 2013 2:55 AM

    Re: Error marker when gen. PCell Reply

    Do you by any chance have a printf() statement in your pcell code?

    If not, perhaps you can post the code?

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Apr 4 2013 3:00 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Sun, Oct 23 2011
    • Posts 27
    • Points 465
    Re: Error marker when gen. PCell Reply

     I have indeed a sprintf statement, what's wrong with that?

    • Post Points: 20
  • Thu, Apr 4 2013 3:39 AM

    Re: Error marker when gen. PCell Reply

    Nothing wrong with an sprintf - it's printf that I was asking about. Within pcell evaluation, anything printed to standard output is converted to be a marker on the pcell - this is a convenience to allow markers to be generated.

    So an sprintf should not cause this problem...

    Maybe you should just post your code?

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Apr 4 2013 3:51 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Sun, Oct 23 2011
    • Posts 27
    • Points 465
    Re: Error marker when gen. PCell Reply

    procedure( icsMatchedCrossQuad(arrayLibName arrayCellName mosType l w labelList)

        eval(`pcDefinePCell(
            list(ddGetObj(,arrayLibName) ,arrayCellName "layout")

            ; PCell Parameters
            ; ----------------
            (
            (l float float(l))
            (w float float(w))
            (mosType string mosType)
            (labelList ILList labelList)
            )

            ; PCell skill code
            ; ----------------
            let((pathPitch unitName)
                pathWidth = 2*cadr(icsInit->metalConstraints->metalViaEnclosure) + cadr(icsInit->viaConstraints->viaWidth)
                pathPitch = pathWidth + cadr(icsInit->metalConstraints->metalSpace)

                ; Generate unit
                ; -------------
                unitName = sprintf(nil "%s_unit" ,arrayCellName)
                icsMatchedCrossQuadUnit(,arrayLibName unitName mosType float(l) float(w) labelList)

                ; Place in cross quad
                ; -------------------
                let((xPos yPos pcMaster)
                    yPos = icsInit->mosConstraints->mosGOffset + pathPitch*2
                    xPos = 4*l + 6*icsInit->mosConstraints->mosSDOffset

                    pcMaster = dbOpenCellViewByType(,arrayLibName unitName "layout" "maskLayout")

                    dbCreateParamInst(
                        pcCellView
                        pcMaster
                        nil
                        (0:yPos)
                        "R0"
                        1
                        list(    list("l" "float" l)
                            list("w" "float" w)
                            list("mosType" "string" mosType)
                            list("labelList" "ILList" labelList)
                            )
                        )

                    dbCreateParamInst(
                        pcCellView
                        pcMaster
                        nil
                        (xPos:-yPos)
                        "R180"
                        1
                        list(    list("l" "float" l)
                            list("w" "float" w)
                            list("mosType" "string" mosType)
                            list("labelList" "ILList" labelList)
                            )
                        )
                ) ;End of let
             ) ;End of let
        ) ;End of pcDefinePCell
        ) ;End of eval
    ) ;End of procedure

    • Post Points: 20
  • Thu, Apr 4 2013 4:38 AM

    Re: Error marker when gen. PCell Reply

    My guess (I can't run your code because it is not complete) is that this is caused by the call to icsMatchedCrossQuadUnit() in your code. I'm guessing that this function also generates a pcell - and so it will output a message telling you that it is building a new pcell - and that output (because it's on stdout) will appear as a marker.

    In general I really would not create a new pcell within a pcell evaluation. Fine to instantiate another pcell, but building it doesn't make so much sense to me. It's not obvious why you would want to do that, rather than creating the pcell up front (outside of the pcDefinePCell).

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Apr 4 2013 4:50 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Sun, Oct 23 2011
    • Posts 27
    • Points 465
    Re: Error marker when gen. PCell Reply

    Ok, I moved the creation of the second Pcell out of the "Master" Pcell,and the marker is gone.

    Thanks

    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by RVERP at 04 Apr 2013 02:33 AM. Topic has 6 replies.