Stefan Schippers
05/12/2022, 11:23 PM/devices
Juan Andres
05/12/2022, 11:26 PMStefan Schippers
05/12/2022, 11:27 PMJuan Andres
05/12/2022, 11:28 PMStefan Schippers
05/12/2022, 11:31 PM../configure --with-x --enable-xspice --disable-debug --enable-cider --with-readline=yes --enable-openmp
This will install (after doing make and make install) ngspice into /usr/local/bin. If you need yto install in your home directory (/home/juan/bin) add --prefix=/home/juan
to configure.Juan Andres
05/12/2022, 11:36 PMXiaochen Ni
05/13/2022, 12:13 AMNelson Rodriguez
05/13/2022, 1:01 AMNelson Rodriguez
05/13/2022, 4:22 AMStefan Schippers
05/13/2022, 7:25 AMBinoy B
05/13/2022, 7:26 AMStefan Schippers
05/13/2022, 7:29 AM.../share/pdk/sky130A/libs.ref/sky130_fd_pr/spice/sky130_fd_pr__nfet_01v8.pm3.spice
Nelson Rodriguez
05/13/2022, 8:15 AMStefan Schippers
05/13/2022, 8:52 PM.save all
before the .dc
line
• After the .dc
line put the following 3 lines, if you are using ngspice in interactive mode.
• .control
• write inverter_tt.raw
• .endc
That said, for my simulations i almost never use an external wave viewer, since xschem can now display waveforms by itself. See this tutorialLuis Henrique Rodovalho
05/13/2022, 9:08 PM* Monte carlo test
* Include SkyWater sky130 device models
.lib "/usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice" tt
.param mc_mm_switch=1
.include "../aux/array.spice"
.include "../aux/inv.spice"
.param pVDD = 3.3
VDD vdd 0 dc {pVDD}
VSS vss 0 0
x0 q q vdd vss inv1_1
.option seed=random
.control
echo # Monte carlo run > mc.txt
let run = 1
dowhile run <= 100
reset
op
print q
let q = v(q)
echo $&run $&q >> mc.txt
let run = run + 1
end
.endc
.end
and my results
# Monte carlo run
1 1.60672
2 1.60672
3 1.60672
4 1.6164
5 1.6164
6 1.6164
7 1.6164
8 1.6164
9 1.61179
10 1.61179
11 1.61179
12 1.61179
13 1.61179
14 1.61632
15 1.61632
16 1.61632
17 1.61632
18 1.61632
19 1.61632
20 1.61632
21 1.60583
22 1.60583
23 1.60583
24 1.60583
25 1.60583
26 1.60583
27 1.61683
28 1.61683
29 1.61683
30 1.61683
31 1.61683
32 1.61683
33 1.61683
34 1.61374
35 1.61374
36 1.61374
37 1.61374
38 1.61374
39 1.61631
40 1.61631
41 1.61631
42 1.61631
43 1.61631
44 1.61631
45 1.61631
46 1.61606
47 1.61606
48 1.61606
49 1.61606
50 1.61606
51 1.61606
52 1.6167
53 1.6167
54 1.6167
55 1.6167
56 1.6167
57 1.6167
58 1.61162
59 1.61162
60 1.61162
61 1.61162
62 1.61162
63 1.61162
64 1.61162
65 1.61726
66 1.61726
67 1.61726
68 1.61726
69 1.61726
70 1.61726
71 1.61863
72 1.61863
73 1.61863
74 1.61863
75 1.61863
76 1.61863
77 1.60948
78 1.60948
79 1.60948
80 1.60948
81 1.60948
82 1.60948
83 1.60948
84 1.61978
85 1.61978
86 1.61978
87 1.61978
88 1.61978
89 1.61978
90 1.61307
91 1.61307
92 1.61307
93 1.61307
94 1.61307
95 1.61307
96 1.61317
97 1.61317
98 1.61317
99 1.61317
100 1.61317
Stefan Schippers
05/13/2022, 9:16 PMMuhammad Shuaib
05/14/2022, 1:57 PMJuan Andres
05/15/2022, 10:46 PMBurak Yakup Çakar
05/16/2022, 6:11 AMFaedra Webers
05/16/2022, 7:05 AMStefan Schippers
05/16/2022, 7:23 AM_2
cell is driving the output with a ~2x buffer size compared to _1
cell.
In general i believe dl* are d type latches, level triggered, df* are d-type flip flops, that is, clock edge triggered.milad diba
05/16/2022, 11:42 PMmilad diba
05/16/2022, 11:43 PMStefan Schippers
05/17/2022, 7:20 AMLab Lecture
05/17/2022, 11:43 AMJuan Andres
05/17/2022, 3:37 PMYueting Li
05/18/2022, 3:37 AMmilad diba
05/18/2022, 6:23 PMNelson Rodriguez
05/19/2022, 2:36 AMKrzysztof Herman
05/19/2022, 6:05 PM