amit.28
Newbie
Hi all,
I am working on single electronics.I have designed a macro model of a single electron transistor(SET) in T-spice.But when I am trying to use it in a circuit by including its macro model file to analyze its characteristics the simulation results showing an error "Missing Switch model Definition for SET". I have copied both the macro model code and the circuit code below for the convenience. kindly help me in this regards if any one have faced the same problem or knows about it.
macromodel12.mdl
.option
.macro SET 1 2 3
.param
+pi=3.14
+CF1=40;2Cg/e
+CI2=0.2e-9
+CR1=300e+6
+CR2=100e+6
+CVp=0.02
V2 5 3 DC CVp
V3 7 3 DC '-CVp'
RG 2 3 100G
RR1 1 3 R='CR1+CR2*cos(CF1*pi*V(2,3))'
RR2 1 4 R='CVp/(CI2-2*CVp/(CR1+CR2*cos(CF1*pi*V(2,3))))'
RR3 1 6 R='CVp/(CI2-2*CVp/(CR1+CR2*cos(CF1*pi*V(2,3))))'
D1 4 5 DIODE
D2 7 6 DIODE
.MODEL DIODE D(N=0.01)
.eom
macromodel2.sp
.include macromodel12.mdl
set1 8 9 GND SET
Vg 9 GND DC 0.02
Vds 8 GND DC 0.02
*C1 8 GND 1e-15
.dc Vds 0.01 0.04 0.01 Vg 0.01 0.05 0.001
.print dc
.end
ERROR: Fatal Error : "macromodel2.sp" line 10 Missing Switch model definition for "SET"
I am working on single electronics.I have designed a macro model of a single electron transistor(SET) in T-spice.But when I am trying to use it in a circuit by including its macro model file to analyze its characteristics the simulation results showing an error "Missing Switch model Definition for SET". I have copied both the macro model code and the circuit code below for the convenience. kindly help me in this regards if any one have faced the same problem or knows about it.
macromodel12.mdl
.option
.macro SET 1 2 3
.param
+pi=3.14
+CF1=40;2Cg/e
+CI2=0.2e-9
+CR1=300e+6
+CR2=100e+6
+CVp=0.02
V2 5 3 DC CVp
V3 7 3 DC '-CVp'
RG 2 3 100G
RR1 1 3 R='CR1+CR2*cos(CF1*pi*V(2,3))'
RR2 1 4 R='CVp/(CI2-2*CVp/(CR1+CR2*cos(CF1*pi*V(2,3))))'
RR3 1 6 R='CVp/(CI2-2*CVp/(CR1+CR2*cos(CF1*pi*V(2,3))))'
D1 4 5 DIODE
D2 7 6 DIODE
.MODEL DIODE D(N=0.01)
.eom
macromodel2.sp
.include macromodel12.mdl
set1 8 9 GND SET
Vg 9 GND DC 0.02
Vds 8 GND DC 0.02
*C1 8 GND 1e-15
.dc Vds 0.01 0.04 0.01 Vg 0.01 0.05 0.001
.print dc
.end
ERROR: Fatal Error : "macromodel2.sp" line 10 Missing Switch model definition for "SET"