

Succesfully converted KiCad to Ngspice, Trying out a transient analysis for the frequency multiplier using LM565 and MM74C90.
these are the warnings from the electrical rules check.
The netlist file
* EESchema Netlist Version 1.1 (Spice format) creation date: 07/14/21 22:39:23
* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N
* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0
* Sheet Name: /
IC1 Net-_IC1-Pad1_ fin Net-_C1-Pad2_ fout Net-_IC1-Pad5_ ? Net-_C2-Pad2_ Net-_C2-Pad1_ Net-_C3-Pad1_ Net-_C4-Pad1_ ? ? ? ? LM565CN
C1 GND Net-_C1-Pad2_ 100n
C3 Net-_C3-Pad1_ GND 750p
C2 Net-_C2-Pad1_ Net-_C2-Pad2_ 1n
C4 Net-_C4-Pad1_ Net-_C2-Pad2_ 100n
R1 Net-_C1-Pad2_ GND 1k
R2 Net-_C4-Pad1_ Net-_C2-Pad1_ 6k
v3 Net-_C4-Pad1_ Net-_IC1-Pad1_ 6
U2 fout plot_v1
U1 fin plot_v1
IC2 fout GND GND ? Net-_IC2-Pad5_ GND GND ? ? GND Net-_IC1-Pad5_ ? ? Net-_IC1-Pad5_ MM74C90N
v2 Net-_IC2-Pad5_ GND 5
v1 Net-_C5-Pad2_ GND sine
C5 fin Net-_C5-Pad2_ 100n
R3 fin GND 1k
C6 Net-_C4-Pad1_ GND 470n
.end
The warnings are
***** Sheet /
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (72.39 mm,93.98 mm): Pin 6 (Passive) of component IC1 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (143.51 mm,88.90 mm): Pin 11 (Passive) of component IC1 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (143.51 mm,86.36 mm): Pin 12 (Passive) of component IC1 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (143.51 mm,83.82 mm): Pin 13 (Passive) of component IC1 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (143.51 mm,81.28 mm): Pin 14 (Passive) of component IC1 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (121.92 mm,130.81 mm): Pin 9 (Passive) of component IC2 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (93.98 mm,125.73 mm): Pin 4 (Passive) of component IC2 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (121.92 mm,133.35 mm): Pin 8 (Passive) of component IC2 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (121.92 mm,123.19 mm): Pin 12 (Passive) of component IC2 is unconnected.
ErrType(2): Pin not connected (and no connect symbol found on this pin)
@ (121.92 mm,120.65 mm): Pin 13 (Passive) of component IC2 is unconnected.
ErrType(8): Global label not connected to any other global label
@ (62.23 mm,118.11 mm): Global label fout is not connected to any other global label.
ErrType(8): Global label not connected to any other global label
@ (63.50 mm,78.74 mm): Global label fin is not connected to any other global label.
** ERC messages: 12 Errors 0 Warnings 12
eSim




I haven't used subcircuit builder I download the model for LM565 and MM74C90. After successful conversion from KiCad to Ngspice I was getting error of unable to read analysis file on simulation
16-07-21, 3:01 p.m. aayushjamuar
All KiCad components are not spice compatible. To make it spice compatible you need to change the designator and check whether the component pins are the same as the pins mentioned in the spice lib file.
Example. I have to create a AND gate. For that, I will take a AND gate that is already present in the KiCad library. Next, i need to check whether the pin number mentioned in the library is the same as that of the component symbol. Next change the designator as X(because it is a subcircuit) then using the upload option I will upload the subcircuit or I can directly add in the cir.out file.
You need to refer to 'Spoken Tutorials'. There are two ways defined to add subcircuit in eSim.
16-07-21, 3:07 p.m. Gloria
ok so I have to use subcircuit builder what to do when you have to add a port for VCC and GND on an IC in the subcircuit builder video it was for half adder I need to make one for LM565 and 7490
16-07-21, 3:11 p.m. aayushjamuar
Yes. If you already have a subcircuit library file, use the 'Upload option for the subcircuit' and load file. Also, you can add the subcircuit model in cir.out file.
Refer to Ngspice manual,page 53
eXample: This is Astable Multivibrator file.
.include lm555n.sub // This can be replaced by .subckt lm555n (,,,,,,,,,,,,,,,,,,,Define model here (add subcircuit file),,,,,,,,) ends
r3 v_out gnd 1k
r1 net-_r1-pad1_ net-_r1-pad2_ 1k
r2 net-_r1-pad2_ c_out 10k
v1 net-_r1-pad1_ gnd dc 10
c1 c_out gnd 0.1u
c2 net-_c2-pad1_ gnd 0.01u
* u2 v_out plot_v1
* u1 c_out plot_v1
x1 gnd c_out v_out net-_r1-pad1_ net-_c2-pad1_ c_out net-_r1-pad2_ net-_r1-pad1_ lm555n
.tran 1e-03 50e-03 0e-00
* Control Statements
.control
option noopalter
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot v(v_out)
plot v(c_out)
.endc
16-07-21, 3:26 p.m. Gloria
Refer to the example "Analysis_of_Digital_IC" example from the example folder. There we have built an IC using scratch. View the subcircuit schematic(example:4023.pro)
16-07-21, 3:29 p.m. Gloria
Login to add comment