-
Notifications
You must be signed in to change notification settings - Fork 0
/
1-2.sp
42 lines (34 loc) · 934 Bytes
/
1-2.sp
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
******** Digital Electronics, Template code********
************ Library *************
.prot
.inc '32nm_bulk.pm'
.unprot
********* Params*******
.param Lmin=32n
+beta=2
+Wp='2*Lmin*beta'
+Wn='2*Lmin'
+Vdd=1.1V
+cl = 50ff
.global Vdd
.temp 25
****** Sources ******
V 1 0 DC Vdd
Vin a 0 pulse 0 Vdd 0 10ps 10ps 20ns 100ns
***************Cap****************************************************
CL out 0 cl ** Capacitance of output node
***** Transistor ******
Mp out a 1 1 pmos l='Lmin' w='Wp'
Mn out a 0 0 nmos l = 'Lmin' w='Wn'
*************Type of Analysis********
.tran 1p 200n 1p
.dc Vin 0 Vdd 0.01
********Measurements******
.MEASURE TRAN to_rise
+ trig V(out) val = '0.1*Vdd' rise = 1
+ targ V(out) val = '0.9*Vdd' rise = 1
.MEASURE TRAN to_fall
+ trig V(out) val = '0.9*Vdd' fall = 1
+ targ V(out) val = '0.1*Vdd' fall = 1
.op
.END