Convert switch model in NG-SPICE to HSPICE

Status
Not open for further replies.

MammPp

Junior Member level 2
Joined
Sep 14, 2008
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,441
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 ?
 

Now I got the answer,

To changed this problem, in my view, the code should be

Gswitch1 11 0 VCR PWL(1) 0 11 -0.00002V,1000Meg 0V,0.01 Max=1000Meg min=0.01
Gswitch2 11 ref VCR PWL(1) 11 ref 0V,1000Meg 0.00002V,0.01 Max=1000Meg min=0.01
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…