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.
Do you by any chance have a printf() statement in your pcell code?
If not, perhaps you can post the code?
In reply to Andrew Beckett:
I have indeed a sprintf statement, what's wrong with that?
In reply to RVERP:
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?
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
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).
Ok, I moved the creation of the second Pcell out of the "Master" Pcell,and the marker is gone.