

when i am trying to use a thyristor from esim_power library, things are going fine till netlist generation but kicad to ngspice conversion successful is also displayed. while doing the kicad to ngspice conversion, device modelling for two diodes is blank and so i have added a path there, leading to diode file in device modelling library. for subcircuit tab, i have added the path to scr file in subcircuit user defined library.
.include scr.sub
.include userDiode.lib
v1 net-_t1-pad1_ gnd dc 100
x1 gnd net-_v2-pad1_ net-_t1-pad2_ scr
v2 net-_v2-pad1_ gnd pulse(0.1 10 10m 0 0 10m 20m)
t1 net-_t1-pad1_ net-_t1-pad2_ two net-_d1-pad2_ 2
d1 two net-_d1-pad2_ D1N750
d2 net-_d1-pad2_ net-_d2-pad2_ D1N750
l1 net-_d2-pad2_ one 1m
c1 one two 1u
r1 two one 1k
* u2 one two plot_v2
.tran 10e-03 100e-03 0e-03
* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot v(one,two)
.endc
.end
the error is integer division or modulo by zero
eSim




Login to add comment