For a corner simulation, I would like to change the model name of a single instance. I can easily be done using SKILL, but I would like to use the Spectre alter statement for that. Is there a way to do it? Maybe something like that ...
alter1 dev=M0 param=model value=new_model_name
If you're going to use an inline subckt to do this, you have to have the right number of pins for the subckt, the parameters defined, and an instance of the new model:
inline subckt new_model_subckt (d g s b)parameters w=2u l=2u dvt=0// based on original modelmodel new_model orig_model vth0=0.5+dvt // instantiate the model. Note that the instance name should// match the inline subckt name. Also needs to pass all the parameters innew_model_subckt (d g s b) new_model w=w l=lends new_model_subckt
M0 (net1 net2 0 0) new_model_subckt l=1u w=1u
Something like that.