How to solve the simulation error problem in Comparator Circuit in eSim software?


heres the error;-

No compatibility mode selected!

Circuit: * c:\users\abhishek\esim-workspace\com_subc_sim\com_subc_sim.cir

Warning: Model issue on line 1 :
.model cmosp pmos (level=8 version=3.2 tnom=27 tox=4.1e-9 xj=1e-7 nch=4. …
unrecognized parameter (+) - ignored
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

Checking parameters for BSIM 3.2 model cmosn
Warning: Pd = 0 is less than W.
Warning: Ps = 0 is less than W.

Checking parameters for BSIM 3.2 model cmosp
Warning: Pd = 0 is less than W.
Warning: Ps = 0 is less than W.
Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Note: Starting true gmin stepping
Trying gmin = 1.0000E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 5.6234E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 8.6596E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 9.6466E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 9.9105E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 9.9775E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 9.9944E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 9.9986E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Further gmin increment
Trying gmin = 9.9996E-03 Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Last gmin step failed
Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: True gmin stepping failed
Note: Starting dynamic gmin stepping
Trying gmin = 1.0000E-03 Note: One successful gmin step
Trying gmin = 1.0000E-04 Note: One successful gmin step
Trying gmin = 1.0000E-05 Note: One successful gmin step
Trying gmin = 1.0000E-06 Note: One successful gmin step
Trying gmin = 1.0000E-07 Note: One successful gmin step
Trying gmin = 1.0000E-08 Note: One successful gmin step
Trying gmin = 1.0000E-09 Note: One successful gmin step
Trying gmin = 1.0000E-10 Note: One successful gmin step
Trying gmin = 1.0000E-11 Note: One successful gmin step
Trying gmin = 1.0000E-12 Note: One successful gmin step
Trying gmin = 1.0000E-12 Note: One successful gmin step
Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: Dynamic gmin stepping failed
Note: Starting source stepping
Supplies reduced to 0.0000% Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Trying gmin = 1.0000E-02 Note: One successful gmin step
Trying gmin = 1.0000E-03 Note: One successful gmin step
Trying gmin = 1.0000E-04 Note: One successful gmin step
Trying gmin = 1.0000E-05 Note: One successful gmin step
Trying gmin = 1.0000E-06 Note: One successful gmin step
Trying gmin = 1.0000E-07 Note: One successful gmin step
Trying gmin = 1.0000E-08 Note: One successful gmin step
Trying gmin = 1.0000E-09 Note: One successful gmin step
Trying gmin = 1.0000E-10 Note: One successful gmin step
Trying gmin = 1.0000E-11 Note: One successful gmin step
Trying gmin = 1.0000E-12 Note: One successful gmin step
Note: One successful source step
Supplies reduced to 0.1000% Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Supplies reduced to 0.0000% Warning: singular matrix: check nodes net-m9-pad2 and net-m9-pad2

Warning: source stepping failed

Transient solution failed -

Last Node Voltages

Node Last Voltage Previous Iter


net-m3-pad2 3.80365e-50 -6.28714e-61
net-m1-pad2 0 0
net-m3-pad1 -2.32851e-50 0
net-m1-pad1 2.03833e-49 0
net-m9-pad2 0 0
net-m10-pad1 2.03638e-49 0
net-m2-pad1 6.11556e-49 0
net-m11-pad1 6.11803e-49 0
net-m1-pad3 -9.35759e-49 -3.77522e-60
net-m13-pad1 -4.96913e-50 -1.58319e-61
net-m12-pad1 3.59789e-49 0

No. of Data Rows : 0
doAnalyses: iteration limit reached

run simulation(s) aborted
Error(parse.c–checkvalid): net-m1-pad1: zero length vector.
Error(parse.c–checkvalid): alli: zero length vector.
ngspice 1 →

netlist file Link:-
https://drive.google.com/drive/folders/1CJoI_zLkiwCL-xpglQ7Wvnu-zocwHDAF?usp=share_link

I don’t see any ground node (GND or 0). ngspice requires a ground connection.

Unfortunately I cannot run your circuit, because all the eSim libraries are missing. eSim uses KiCad 5, and I guess that its ngspice is also fairly old. So it is difficult to give any detailed answer.

Hi,
I haven’t got your saying about the “eSim library missing” because I have uploaded the netlist and all that was produced by eSim after making the circuit. Pls, elaborate.

Running your circuit in KiCad 5.1.12 delivers the following:

No compatibility mode selected!
warning, can't find model esim_mos_p
warning, can't find model esim_mos_p
warning, can't find model esim_mos_p
warning, can't find model esim_mos_p
warning, can't find model esim_mos_p
warning, can't find model esim_mos_n
warning, can't find model esim_mos_n
warning, can't find model esim_mos_n
warning, can't find model esim_mos_n
warning, can't find model esim_mos_n
warning, can't find model esim_mos_n
warning, can't find model esim_mos_p
warning, can't find model esim_mos_n
warning, can't find model net-_m9-pad2_
Circuit: KiCad schematic
Error on line 2 :
m6 net-_m3-pad2_ net-_m1-pad2_ net-_m3-pad1_ net-_m3-pad2_ esim_mos_p
could not find a valid modelname
Error: circuit not parsed.

There are no models for the transistors and no models for the ports in your example. An installation of eSim seems to be necessary (which I will not do).

I have also got that error of not finding model esim_mos_p, esim_mos_n…But one thing I have downloaded the 2.0 version of eSim because the latest versions have some software problems like closing while making a schematic. Kicad is included in the eSim right. So if I download kicad additionally the latest one that is showing version 7 on kicad website, my question is it will directly work on eSim or i should try on the latest eSim?

This is the last time I am gonna bother you.

Thanks in advance for the help,
Holger

Unfortunately I cannot answer your question because I do not know anything more about eSim. You might post this question on an eSim forum, if available, or ask the eSim people to upgrade KiCad inside of eSim.