-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest010_nand2Gate.spice
65 lines (50 loc) · 1.31 KB
/
test010_nand2Gate.spice
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
*** TEST 010 - NAND2X1 test ***
*
* ngSPICE test for PLS experiments
*
* NAND2X1 test
*
* Author: Jan Belohoubek, 04/2019
*
* https://users.fit.cvut.cz/~belohja4/
*
*
* **************************************
.include ../models.lib
.include ../tsmc180nmcmos.lib
* **************************************
* --- Test Parameters ---
* **************************************
VvinA A 0 0 PWL(0ns 0V 10ns 0V 12ns SUPP 20ns SUPP 22ns 0V 30ns 0V 32ns SUPP )
Vvinb B 0 0 PWL(0ns 0V 20ns 0V 22ns SUPP)
* **************************************
* --- Test ---
* **************************************
*Vtrig LaserTrig 0 0 PWL(0ns 0V 40ns 0V 42ns SUPP 62ns SUPP 64ns 0V 100ns 0V)
.global LaserTrig
* --- outputs
R1 VSS Y 1000000
C1 VSS Y 1pF
* --- circuit layout model
* --- circuit layout model
xnand Y VSS A B VDD NAND2X1 beamDistanceTop = 0 beamDistanceBot = 0
* **************************************
* --- Simulation Settings ---
* **************************************
.tran 0.1ns 100ns
.param SIMSTEP = '100ns/0.10ns'
.csparam SIMSTEP = {SIMSTEP}
* **************************************
* --- Simulation Control ---
* **************************************
* --- final value of Iph
.control
run
plot i(vvdd) i(vvss)
plot v(vss) v(vdd)
plot v(A)
plot v(B)
plot v(Y)
.endc
.end