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:
?defValue sprintf(nil "%g" minMosWidth)
Neither gives me the desired result. Any thoughts?
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).
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?
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.
Thanks for the help. I got all the params to be consistent and then the sizing in the Pcell to work.
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.
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?