pankaj jha
Full Member level 3
my code is....
.subckt MolecularDiode pos neg
Gdiode pos negtest PWL(1) pos
+ neg 0,0 .08,100e-09 .16,200e-09 .25,300e-09 .32,400e-09 .4,500e-09 .52,600e-09 .55,700e-09
+ .65,800e-09 .7,700e-09 .75,200e-09 .78,100e-09 .8,0
+ .9, 0 1,0 1.2,0 1.5,0
Rtest negtest neg 0.1
.ends
VDD 1 0 DC 3V
*VX 5 0 DC 0V
r1 5 0 0.1
X1 1 2 MolecularDiode
X2 1 4 MolecularDiode
X3 1 7 MolecularDiode
X4 2 3 MolecularDiode
X5 2 4 MolecularDiode
X6 4 3 MolecularDiode
X7 4 5 MolecularDiode
X8 4 6 MolecularDiode
X9 7 6 MolecularDiode
X10 7 4 MolecularDiode
X11 3 5 MolecularDiode
X12 6 5 MolecularDiode
.op
.probe I(r1)
.OPTION GDCPATH
.option post
.end
.subckt MolecularDiode pos neg
Gdiode pos negtest PWL(1) pos
+ neg 0,0 .08,100e-09 .16,200e-09 .25,300e-09 .32,400e-09 .4,500e-09 .52,600e-09 .55,700e-09
+ .65,800e-09 .7,700e-09 .75,200e-09 .78,100e-09 .8,0
+ .9, 0 1,0 1.2,0 1.5,0
Rtest negtest neg 0.1
.ends
VDD 1 0 DC 3V
*VX 5 0 DC 0V
r1 5 0 0.1
X1 1 2 MolecularDiode
X2 1 4 MolecularDiode
X3 1 7 MolecularDiode
X4 2 3 MolecularDiode
X5 2 4 MolecularDiode
X6 4 3 MolecularDiode
X7 4 5 MolecularDiode
X8 4 6 MolecularDiode
X9 7 6 MolecularDiode
X10 7 4 MolecularDiode
X11 3 5 MolecularDiode
X12 6 5 MolecularDiode
.op
.probe I(r1)
.OPTION GDCPATH
.option post
.end