radio button on PCELL

Status
Not open for further replies.

JFH

Usenet Archive
Joined
Dec 6, 2001
Messages
1
Reaction score
0
Hi to all

I'm triing to create PCELLs using in a graphical enviroment. This part is quite easy. My problem is that I'd like to have radio button to select from a list, or a drop down menu would be fine.

The tools only allow me to use boolean type, so only push button with 2 state, true/false. But what about "mutually exclusive" choise, like one, two or none? It still work, you only have to make sure that you only check one option, but it is not professional.

I can create the CDF file and I can tell it to put stuf in a dropdown menu or radio button but it still does not link to the PCELL's layout.

Anyone with experience in the field?
 
Dealing with non boolean/float parameters in graphical pcells is a bit awkward - these are easily handled if you're using SKILL (e.g. ROD) pcells, but less easy with graphical pcells.

Typically you'd need to make a parameter of the graphical pcells some SKILL expression which does different conditional things based on the values - so for example your pcell could have a conditional shape which has the expression paramName=="one" and another with paramName=="two" (hope that makes sense).

However, I'd strongly recommend you look at writing SKILL pcells using the ROD functions - this makes very powerful pcells much easier and more flexible. The graphical pcell environment is much more limited

Regards,

Andrew

In the pcell itself
On Thu, 6 Dec 2001 15:49:49 -0500, "JFH" wrote:

Hi to all

I'm triing to create PCELLs using in a graphical enviroment. This part is quite easy. My problem is that I'd like to have radio button to select from a list, or a drop down menu would be fine.

The tools only allow me to use boolean type, so only push button with 2 state, true/false. But what about "mutually exclusive" choise, like one, two or none? It still work, you only have to make sure that you only check one option, but it is not professional.

I can create the CDF file and I can tell it to put stuf in a dropdown menu ...
 
"JFH" wrote:
I'm triing to create PCELLs using in a graphical enviroment. This part is quite easy. My problem is that I'd like to have radio button to select from a list, or a drop down menu would be fine.

The tools only allow me to use boolean type, so only push button with 2 state, true/false. But what about "mutually exclusive" choise, like one, two or none? It still work, you only have to make sure that you only check one option, but it is not professional.

I can create the CDF file and I can tell it to put stuf in a dropdown menu or radio button but it still does not link to the PCELL's layout.

CDF should work fine, are you doing it this way?:

You'll end up with one group of CDF parameters, defined with callbacks that modify the true pcell's parameters. IE, Create an enumerated string CDF parameter called cdfType (which by itself does nothing with respect to the pcell), but when the user selects a value, your callback code associated with CDF parameter cdfType will derive and set all the approriate raw pcell properties (which themselves are either unbeknowst to the CDF for the cell, or at the least are marked to not be shown to the user on the CDF form).

This is standard operating procedure for building a nice interface out of CDF, using an artificial layer of CDF parameters. You could also derive the values of these UI-specific CDF parameters from the raw pcell parameters at the time the CDF is used I think. Thus the CDF-only secondary parameter layer is fully virtual, and only exists for the life of one invocation of the CDF form.

Otherwise if these artificial CDF params are stored on the instance, the possiblity exists that two parameter sets (CDF and raw pcell) may diverge (get out of sync). Because of that, people routinely write other functions to re-sync, either rederive the CDF side from the pcell props, or merely force all callbacks to be run (to rederive plain props from the CDF params).

Further if your CDFs params have self-dependencies "improperly" done for multiple interfaces to the same controls (user can set length or absolute resistance, and the last param the user edits, derives the other one) then you may find your re-sync task doesn't have enough state info to do it's job accurately (cyclic callback dependencies). Usually easily solved, here by adding a boolean to state if the instance is in a length controlled, vs resistance controlled mode.

IMO the whole resync issue is an area where CDF out of the box needs enhancement.
 
Status
Not open for further replies.

Latest threads

Back
Top