Hi - I’m at the beginning of learning ngspice+KiCad and my starting point was a basic CMOS inverter like below:
with the pulsed source, to generate a square wave, having as a spice model:
pulse(0 3.3 0 1u 1u 5m 5m)
and transient analysis defined by
.tran 100u 100m
The CMOS library I used is:
* IC nmos
.model cmosn nmos(level=1 vto=0.5 kp=35.2e-6 gamma=0.91
+ cgso=210pF cgdo=210pF cj=4.9e-4 cjsw=245pF ld=3e-7 pb=0.94
+ tox=50n)
* IC pmos
.model cmosp pmos(level=1 vto=0.5 kp=13.4e-6 gamma=0.64
+ cgso=210pF cgdo=210pF cj=2.3e-4 cjsw=117pF ld=3e-7 pb=0.90
+ tox=50n)
I hope nothing’s wrong, until now…
Issue is that when I run the simulation, I don’t have the square pulses I expected, but flat values in the 1-100ms time series:
Complete output below (where I can see the inverter working, see inv_out, compared to vin).
What am I missing?
Thanks in advance!
Compatibility modes selected: ps
Circuit: KiCad schematic
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Warning: v_pulse: no DC value, transient time 0 value used
Initial Transient Solution
--------------------------
Node Voltage
---- -------
inv_out 3.3
vin 0
+3v3 3.3
vcc2#branch -3.31e-12
v_pulse#branch 0
Reference value : 0.00000e+00
No. of Data Rows : 1086