I have this .cir file to simulate read sense amplifier based on voltage latch sense, and want to see how will be change signal in outputs, if i change width of transistor, but my code give me data about only first iteration. Give me advice please, what i could be change in my code. Thank's
* List of nodes
* "OUT" corresponds to n°6
* define parameters
.param lambda = 0.015u
.param Length = {2*lambda}
.param scale_factor_N = 1
.param scale_factor_SAE = 1
.param K_P_0 = 9
.param K_SAE_0 = {scale_factor_SAE * K_P_0}
.param K_N_0 = {scale_factor_N * K_P_0}
.param C_1_0 = 0.185e-15
.param C_2_0 = 0.277e-15
.param C_3_0 = 0.256e-15
.param C_4_0 = 0.134e-15
.param b_1 = 0.0047
.param b_2 = 0.0018
.param b_3 = 0.0052
.param a_11 = 0.0032
.param a_12 = 0.0007
.param a_13 = 0.004
.param a_21 = 0.0032
.param a_22 = 0.0007
.param a_23 = 0.0033
* define transistors
mN1 7 6 1 0 NMOS_trigger_TRANSISTORS
mN2 6 7 1 0 NMOS_trigger_TRANSISTORS
mN3 1 2 0 0 NMOS_SAE_TRANSISTORS
mP3 7 5 3 3 PMOS__TRANSISTORS
mP4 6 4 3 3 PMOS__TRANSISTORS
mP2 6 2 3 3 PMOS__TRANSISTORS
mP1 7 2 3 3 PMOS__TRANSISTORS
*define capacitances
cC_RS 2 0 0.03e-015
cC_BL 5 0 2.1e-017
cC_NBL 0 4 2.1e-017
cC_1 3 0 {C_1_0 + 2*b_1*(K_P-K_P_0)}
cC_2 7 0 {C_2_0 + 2*a_11*(K_P-K_P_0) + a_12*(K_SAE-K_SAE_0) + a_13*(K_N-K_N_0)}
cC_3 6 0 {C_3_0 + 2*a_21*(K_P-K_P_0) + a_22*(K_SAE-K_SAE_0) + a_23*(K_N-K_N_0)}
cC_4 1 0 {C_4_0 + b_2*(K_SAE-K_SAE_0) + b_3*(K_N-K_N_0)}
*define sources
vVDD 3 0 dc 0.8 ac 0 0
V_RS 2 0 PWL TIME_SCALE_FACTOR=1 VALUE_SCALE_FACTOR=1
+ FILE "RS.txt"
V_BL 5 0 PWL TIME_SCALE_FACTOR=1 VALUE_SCALE_FACTOR=1
+ FILE "BL.txt"
V_NBL 4 0 PWL TIME_SCALE_FACTOR=1 VALUE_SCALE_FACTOR=1
+ FILE "NBL.txt"
*define models of transistors
.model NMOS_trigger_TRANSISTORS nmos
+ (
+ Level=1 L={Length} W={trigger_width} VTO=0.18 KP=0.00118 GAMMA=0.4 PHI=0.15 CGSO=1e-010 CGDO=1e-010
+ CGBO=6e-011 CJ=0.000323 CJSW=2.4e-010 TOX=1.8e-009 U0=600 NSUB=1e+017
+ )
.model NMOS_SAE_TRANSISTORS nmos
+ (
+ Level=1 L={Length} W={sae_width} VTO=0.18 KP=0.00118 GAMMA=0.4 PHI=0.15 CGSO=1e-010 CGDO=1e-010
+ CGBO=6e-011 CJ=0.000323 CJSW=2.4e-010 TOX=1.8e-009 U0=600 NSUB=1e+017
+ )
.model PMOS__TRANSISTORS pmos
+ (
+ Level=1 L={Length} W={pmos_width} VTO=-0.18 KP=0.000393 GAMMA=0.4 PHI=0.15 CGSO=1e-010
+ CGDO=1e-010 CGBO=6e-011 CJ=0.000323 CJSW=2.4e-010 TOX=1.8e-009
+ U0=200 NSUB=1e+017
+ )
.param K_P = {K_P_0}
*define parametric analysis
.step param K_P 9 15 1
.param pmos_width = {K_P * lambda}
.param K_N = {scale_factor_N * K_P}
.param trigger_width = {K_N * lambda}
.param K_SAE = {scale_factor_SAE * K_P}
.param sae_width = {K_SAE * lambda}
* Transient analysis
.TEMP 27.0
.TRAN 0N 180N
.PROBE
.END
* List of nodes
* "OUT" corresponds to n°6
* define parameters
.param lambda = 0.015u
.param Length = {2*lambda}
.param scale_factor_N = 1
.param scale_factor_SAE = 1
.param K_P_0 = 9
.param K_SAE_0 = {scale_factor_SAE * K_P_0}
.param K_N_0 = {scale_factor_N * K_P_0}
.param C_1_0 = 0.185e-15
.param C_2_0 = 0.277e-15
.param C_3_0 = 0.256e-15
.param C_4_0 = 0.134e-15
.param b_1 = 0.0047
.param b_2 = 0.0018
.param b_3 = 0.0052
.param a_11 = 0.0032
.param a_12 = 0.0007
.param a_13 = 0.004
.param a_21 = 0.0032
.param a_22 = 0.0007
.param a_23 = 0.0033
* define transistors
mN1 7 6 1 0 NMOS_trigger_TRANSISTORS
mN2 6 7 1 0 NMOS_trigger_TRANSISTORS
mN3 1 2 0 0 NMOS_SAE_TRANSISTORS
mP3 7 5 3 3 PMOS__TRANSISTORS
mP4 6 4 3 3 PMOS__TRANSISTORS
mP2 6 2 3 3 PMOS__TRANSISTORS
mP1 7 2 3 3 PMOS__TRANSISTORS
*define capacitances
cC_RS 2 0 0.03e-015
cC_BL 5 0 2.1e-017
cC_NBL 0 4 2.1e-017
cC_1 3 0 {C_1_0 + 2*b_1*(K_P-K_P_0)}
cC_2 7 0 {C_2_0 + 2*a_11*(K_P-K_P_0) + a_12*(K_SAE-K_SAE_0) + a_13*(K_N-K_N_0)}
cC_3 6 0 {C_3_0 + 2*a_21*(K_P-K_P_0) + a_22*(K_SAE-K_SAE_0) + a_23*(K_N-K_N_0)}
cC_4 1 0 {C_4_0 + b_2*(K_SAE-K_SAE_0) + b_3*(K_N-K_N_0)}
*define sources
vVDD 3 0 dc 0.8 ac 0 0
V_RS 2 0 PWL TIME_SCALE_FACTOR=1 VALUE_SCALE_FACTOR=1
+ FILE "RS.txt"
V_BL 5 0 PWL TIME_SCALE_FACTOR=1 VALUE_SCALE_FACTOR=1
+ FILE "BL.txt"
V_NBL 4 0 PWL TIME_SCALE_FACTOR=1 VALUE_SCALE_FACTOR=1
+ FILE "NBL.txt"
*define models of transistors
.model NMOS_trigger_TRANSISTORS nmos
+ (
+ Level=1 L={Length} W={trigger_width} VTO=0.18 KP=0.00118 GAMMA=0.4 PHI=0.15 CGSO=1e-010 CGDO=1e-010
+ CGBO=6e-011 CJ=0.000323 CJSW=2.4e-010 TOX=1.8e-009 U0=600 NSUB=1e+017
+ )
.model NMOS_SAE_TRANSISTORS nmos
+ (
+ Level=1 L={Length} W={sae_width} VTO=0.18 KP=0.00118 GAMMA=0.4 PHI=0.15 CGSO=1e-010 CGDO=1e-010
+ CGBO=6e-011 CJ=0.000323 CJSW=2.4e-010 TOX=1.8e-009 U0=600 NSUB=1e+017
+ )
.model PMOS__TRANSISTORS pmos
+ (
+ Level=1 L={Length} W={pmos_width} VTO=-0.18 KP=0.000393 GAMMA=0.4 PHI=0.15 CGSO=1e-010
+ CGDO=1e-010 CGBO=6e-011 CJ=0.000323 CJSW=2.4e-010 TOX=1.8e-009
+ U0=200 NSUB=1e+017
+ )
.param K_P = {K_P_0}
*define parametric analysis
.step param K_P 9 15 1
.param pmos_width = {K_P * lambda}
.param K_N = {scale_factor_N * K_P}
.param trigger_width = {K_N * lambda}
.param K_SAE = {scale_factor_SAE * K_P}
.param sae_width = {K_SAE * lambda}
* Transient analysis
.TEMP 27.0
.TRAN 0N 180N
.PROBE
.END
Attachments
-
2.6 KB Views: 0
-
3.8 KB Views: 0
-
3.8 KB Views: 0
-
3.4 KB Views: 0