MammPp
Junior Member level 2
Dear All,
I tried to convert the code from NG-SPICE to HSPICE. However, I have a problem about switch model of HSPICE.
In NG-SPICE, the switch code is
Ssat1 11 0 0 11 SWX
Ssat2 11 ref 11 ref SWX
.model SWX SW(Ron=0.001, Roff=1000Meg, Vt=0.00001V, Vh=0.00001V)
From the above code, I converted them to HSPICE as the following,
Gswitch1 11 0 VCR PWL(1) 0 11 0.00001V,1000Meg 0.00002V,0.001 Max=1000Meg min=0.001
Gswitch2 11 ref VCR PWL(1) 11 ref 0.00001V,1000Meg 0.00002V,0.001 Max=1000Meg min=0.001
However, the simulation result is not correct.
Anyone have any ideas, please help
Thank you,
Pilin
P.S. I wondered about Vh of NG-SPICE which must be convert to HSPICE, how can I set the value of Vt and Vh switch in HSPICE ?
I tried to convert the code from NG-SPICE to HSPICE. However, I have a problem about switch model of HSPICE.
In NG-SPICE, the switch code is
Ssat1 11 0 0 11 SWX
Ssat2 11 ref 11 ref SWX
.model SWX SW(Ron=0.001, Roff=1000Meg, Vt=0.00001V, Vh=0.00001V)
From the above code, I converted them to HSPICE as the following,
Gswitch1 11 0 VCR PWL(1) 0 11 0.00001V,1000Meg 0.00002V,0.001 Max=1000Meg min=0.001
Gswitch2 11 ref VCR PWL(1) 11 ref 0.00001V,1000Meg 0.00002V,0.001 Max=1000Meg min=0.001
However, the simulation result is not correct.
Anyone have any ideas, please help
Thank you,
Pilin
P.S. I wondered about Vh of NG-SPICE which must be convert to HSPICE, how can I set the value of Vt and Vh switch in HSPICE ?