<@U0170EWVCRM> also level 2 CMC resistors ( HSPICE...
# analog-design
s
@User also level 2 CMC resistors ( HSPICE: R2_CMC is a nonlinear 2-terminal resistor model. The model does not include parasitic capacitances. Optionally, the model can include self-heating) are not supported in ngspice: example in res_high_po:
Copy code
.model rhead_model r sw_et=0 isnoisy=0
+ rsh = {345.8312*(1+sky130_fd_pr__res_high_po__var)*(1+rend_match)}
+ p2 = {-80.87e-3/cosh(6.34e-3*weff*weff)*(1-exp(-1.554/leff))}
+ q2 = {10.13/cosh(0.0898*weff*weff)}
+ tc1 = -4.3e-4 tc2 = 12e-6 tnom = 30.0
ngspice warnings:
Copy code
Warning: Model issue on line 0 :
  .model xr5:rbody_model r sw_et=0 isnoisy=0 rsh=    3.17388500000000022e+ ...
unrecognized parameter (sw_et) - ignored
unrecognized parameter (isnoisy) - ignored
unrecognized parameter (p2) - ignored
unrecognized parameter (q2) - ignored
unrecognized parameter (p3) - ignored
unrecognized parameter (q3) - ignored
Answer from ngspice developers:
Copy code
I see this is the CMC R2 model with velocity saturation and self-heating, what we not have at the moment.