Im trying to build a Rod based pCell that instantiates an existing PDK resistor and just want to add a nWell tap. I got most of it working but need to add a cyclic parameter for l & w or l & r .
What is the correct syntax? ...this isnt the correct syntax. cdfCreateParam( cdfId ?name "entryMode ?prompt "Entry Mode" ?defValue "l & w" ?type "cyclic" ?editable "t" ?display "t" )
Anything special needed in the main source code?
For a cyclic parameter you need to define choices in terms of the ?choices keyword parameter to cdfCreateParam(..).
added the choices now I get
cdfCreateParam( cdfId?name "entryMode"?prompt "Entry Mode"?defValue "r & w"?type "cyclic"?choices '("r & w" "l & W")?storeDefault "yes"?display "t"?parseAsNumber "no"?parseAsCEL "no"
function showResParms redefinedGenerating Pcell for 'rpplus_3T layout'.*WARNING* Invalid property type - "l & w"*WARNING* Pcell evaluation failed. No supermaster was created.t*WARNING* (DB-270001): Pcell evaluation for pcell_lib/rpplus_3T/layout has the following error(s):*WARNING* (DB-270002): ("CCSdrawRes3T" 0 t nil ("*Error* CCSdrawRes3T: too few arguments (7 expected, 6 given)" (db:0x1865599a "2u" "10u" 1 700 t)))*WARNING* (DB-270003): Error kept in "errorDesc" property of the label "pcellEvalFailed" on layer/purpose "marker/error" in the submaster.
Those errors aren't coming from the CDF creation code. They're in your PCell code. The PCell knows nothing about cyclic parameters - it would just see these as string parameters.
So It's unclear what where this "Invalid property type" is coming from - probably need to see what you've done at the top of the pcDefinePCell code. The second error causing the PCell evaluation failure is because you have a function with 7 arguments that you're calling with 6 - again, nothing to do with this issue.
Hi Andrew - do cyclic parameters need any special handling? The argument mismatch is not obvious what its looking for. The PDK pCell is encrypted so Im working blind. Any ideas on what to look for would be appreciated.
*WARNING* Invalid property type - "l & w
No, there's nothing special needed for cyclic parameters. There's no such thing as a cyclic parameter as far as a pcell is concerned - that's a CDF construct, and the pcell itself knows nothing about the constraint to different choices.
This all seems a bit strange, since a function being referred to here has the "CCS" (Cadence Customer Support) prefix so I wouldn't expect that to be encrypted and protected.
Perhaps it would be best if you can contact customer support, and create a case - and then post the number here - also reference in the case this post that I'm happy to have it assigned to me. Then we can have a webex to look at this together. Bear in mind that I'm in the UK so our time zones may not easily overlap.