open your tsmc technology file
probably u ll be having there pmos nmos parameters
now add this line there
.model PNPDIODE D IS=1e-18 n=1
and in interconnections use the above name PNPDIODE for refernce
lets see the image & work out example here
View attachment 70821
now for this we are having fully defined cmos models but no BJT as 3 are used here D1,2,3
so if you are not using this circuit for layout etc then just u can add this line & it will serve your purpose of BJT
i am posting full t-spice for this circuit,
****************************************************************
.option scale=1u post
.dc VDD 0 6 1m temp 0 100 25
VDD VDD 0 DC 5
Vop Vop 0 DC 0
Von VDD Von DC 0
Vmeas1 Vmeas1 0 DC 0
Vmeas2 Vmeas2 0 DC 0
M1B Vbiasn Vbiasn Vd1 0 N_1u L=2 W=10
M2B n2 Vbiasn Vr 0 N_1u L=2 W=10
M1T vncas vncas vbiasn 0 N_1u L=2 W=10
M2T vpcas vncas n2 0 N_1u L=2 W=10
M3T n1 Vbiasp VDD VDD P_1u L=2 W=30
M4T Vbiasp Vbiasp VDD VDD P_1u L=2 W=30
M3B vncas Vpcas n1 VDD P_1u L=2 W=30
M4B Vpcas Vpcas Vbiasp VDD P_1u L=2 W=30
M5T n3 vbiasp VDD VDD P_1u L=2 W=30
M5B Vref vpcas n3 VDD P_1u L=2 W=30
RL Vref vd3 489k TC1=0.002
Rb Vr vd2 52k TC1=0.002
D1 Vd1 0 PNPDIODE
D2 vd2 0 PNPDIODE 8
D3 vd3 0 PNPDIODE 8
.model PNPDIODE D IS=1e-18 n=1
** Start-up Circuit
MSU1 Vsur Vbiasp VDD VDD P_1u L=2 W=30
MSU2 Vncas Vsur Vpcas VDD P_1u L=2 W=30
MSU3 Vsur Vsur ns1 0 N_1u L=10 W=10
MSU4 ns1 ns1 ns2 0 N_1u L=10 W=10
MSU5 ns2 ns2 0 0 N_1u L=10 W=10
.include tsmccmos_models.txt
.end
**********************************************
Hope it ll be helpfull
:roll:
---------- Post added at 16:50 ---------- Previous post was at 16:35 ----------
.model PNPDIODE D IS=1e-18 n=1
i have defined here in which n=1 just defines level of bjt model i.e. =1 so only is that is breaking point of bjt i am mentioning here which you can vary,.
also try to not be completly dependent on model technology files of companies, like sumtimes u want to implement your design <<innovatively>> or tech file are not having that parameter value,, so always just put .model command , edit , set level, make ,edit or add parameters accordingly ..
the above mentioned tsmc models is for 1micron tsmc technolgy for that BJT with IS=1e-18 i have used ,, but for 0.25u which u are using definitly value will be different , which is headache
beacuse when i added resitor RL Vref vd3 489k TC1=0.002 TC temp coefficient was very hard to find ,, so process goes like that ,,
also switching to bicmos is very helpfull