Simulating an inverter gate in HSPICE

Status
Not open for further replies.

Mehrdad Rufuie

Newbie level 1
Joined
Dec 20, 2013
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
0
Activity points
0
Dear all,

I am working on simulation of inverter model,the problem is that I am getting wrong answer from HSPICE which means that I am not modelling it correctly.
I am sure about the model,it comes from neural modeller,but I can not put it in HSPICE,below you can find the part of nonlinear netlist.I wlii appreciate if anybody can let me know what is the problem .


X1 no1 nout InvGate


.subckt InvGate n1 n2

+ h0 = 5.059e-08,
+ w10 = 5.537, w11 = -4.7754, w12 = 0.54448, h1 = -1.4914e-07,
+ w20 = 2.6313, w21 = -3.1243, w22 = -1.5827, h2 = -1.4096e-07,
+ w30 = 2.481, w31 = -2.2587, w32 = -2.317, h3 = 1.2026e-07,
+ w40 = 0.27459, w41 = 4.4161, w42 = -0.1731, h4 = 1.0507e-07,

*.param u1='w10+w11*v(n1)+w12*v(n2)'

*.param u2= 'w20+w21*v(n1)+w22*v(n2)'

*.param u3 ='w30+w31*v(n1)+w32*v(n2)'

*.param u4='w40+w41*v(n1)+w42*v(n2)'

+ h01 = 0.00032043,
+ w101 = -1.2765, w111 = 0.82261, w121 = -2.6917, h11 = -0.0016002,
+ w201 = 0.68567, w211 = 0.079837, w221 = -0.65683, h21 = -0.004855,
+ w301 = 0.035186, w311 = -0.95869, w321 = 0.92001, h31 = -0.0031312,
+ w401 = 0.65338, w411 = -4.406, w421 = -0.26359, h41 = 0.00012864,


*.param u11='w101+w111*v(n1)+w121*v(n2)'
*.param u21='w201+w211*v(n1)+w221*v(n2)'
*.param u31='w301+w311*v(n1)+w321*v(n2)'
*.param u41='w401+w411*v(n1)+w421*v(n2)'
G1 n1 gnd cur ='h0+h1*tanh(w10+w11*v(n1)+w12*v(n2))+h2*tanh(w20+w21*v(n1)+w22*v(n2))+h3*tanh(w30+w31*v(n1)+w32*v(n2))+h4*tanh(w40+w41*v(n1)+w42*v(n2))'
G2 n2 gnd cur = 'h01+h11*tanh(w101+w111*v(n1)+w121*v(n2))+h2*tanh(w201+w211*v(n1)+w221*v(n2))+h3*tanh(w301+w311*v(n1)+w321*v(n2))+h4*tanh(w401+w411*v(n1)+w421*v(n2))'


.ends
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…