I would like to netlist a device D1 with a parameter named P1 with two values A or B (theses values are straings).
In the CDF of the device I defined a string parameter P1 with two values A or B
For Spectre the job is well done: D1 P1=A.
For an other simulator I need to netlist D1 P1=str('A').
I try with paramMapping in the CDF but it seems not the good approach, is there any solution to do so.
I'm guessing this is for a non-Cadence simulator. If so, you might want to ask the vendor for that simulator since they are responsible for the interface (unless it's Cadence's hspiceD interface to Synopsys HSPICE).
My guess is that you'd need to write a custom netlist procedure for that simulator.