|
.subckt inv b a wdn=1u k=2.5/ m# m' k& s& o* M2 P
mp0 b a vdd! vdd! p_18 w="wdn*k" l=len6 G4 n- L! I+ J8 i9 L
mn0 b a gnd! gnd! n_18 w=wdn l=len' K1 n; U3 ]5 p. {: [
.ends
3 Y, S k9 R8 a
' C/ }1 i9 Q+ X4 d/ o Y0 q.subckt and3 a b c g wdn=1u k=2.5 % j$ t. z# |+ c4 _
mp0 d a vdd! vdd! p_18 w="wdn*k" l=len
* W' e! U7 [4 Kmp1 d b vdd! vdd! p_18 w="wdn*k" l=len) @/ u4 U$ o! r' y
mp2 d c vdd! vdd! p_18 w="wdn*k" l=len
& |4 `% o/ Q' @3 wmn0 d a e gnd! n_18 w="wdn*3" l=len( C& J! ^" O" h% u- D& h; p4 `7 I- M
mn1 e b f gnd! n_18 w="wdn*3" l=len R: `0 v7 ?3 g# \7 C
mn2 f c gnd! gnd! n_18 w="wdn*3" l=len( S9 f: h. N$ I* e) [
xinv d g inv
* I1 E- T# R3 v4 L; d6 M3 \.ends
: N- u, F+ g& M' ~! J( A X, w" J' U4 g4 c/ Y3 ?- y: e$ G
.subckt and2 a b f wdn=1u k=2.5
: }# J) b! q8 d& {* Q1 Q) Dmp0 d a vdd! vdd! p_18 w="wdn*k" l=len
3 f9 V' t6 a& [, X8 Ump1 d b vdd! vdd! p_18 w="wdn*k" l=len
% q! h+ _4 ~: Lmn0 d a e gnd! n_18 w="wdn*2" l=len; |: H' Q+ ~' w9 O: o
mn1 e b gnd! gnd! n_18 w="wdn*2" l=len5 x) S9 D' Z! S" k
xinv d f inv
' E0 m6 _! b9 B5 r; P.ends/ ? T) _4 J% Q; }, E
1 a7 e# B, f' L- ?$ S/ G J+ z4 C
.subckt or2 a b f wdn=1u k=2.53 C- }" Z! o3 L: P% }
mp0 e a vdd! vdd! p_18 w="wdn*k*2" l=len& t$ a5 t# v: v" J* F* {4 @
mp1 d b e vdd! p_18 w="wdn*k*2" l=len
% K+ T9 E* d5 i: Y+ \! pmn0 d a gnd! gnd! n_18 w=wdn l=len
0 k/ B4 b' R( m9 t7 emn1 d b gnd! gnd! n_18 w=wdn l=len4 t9 J ]/ {- p! V
xinv d f inv
* U' A4 l. t+ d.ends
6 V( U, o/ K* F
( k' s1 b5 A3 \7 c/ e.subckt or3 a b c g wdn=1u k=2.5
% w( G. t- Z' u- T" `, w4 S3 Jmp0 d a e vdd! p_18 w="wdn*k*3" l=len
' Z6 T7 o) n) j. F+ R: Amp1 e b f vdd! p_18 w="wdn*k*3" l=len
3 N" ^+ P9 |2 Q# B. P9 B8 qmp2 f c vdd! vdd! p_18 w="wdn*k*3" l=len
7 o: q2 d6 d# a' Hmn0 d a gnd! gnd! n_18 w=wdn l=len" N8 V- c( Z# @% Q4 R, ?4 t
mn1 d b gnd! gnd! n_18 w=wdn l=len4 u8 E. Q3 C1 d7 g
mn2 d c gnd! gnd! n_18 w=wdn l=len
* H8 H8 N' l4 L8 d+ v, j& |xinv d g inv
7 q0 d G# Y* c( u0 z.ends
1 N3 u8 ^2 Q$ l1 Q, [
6 p$ p6 D" F1 K.subckt buffer b a wdn=1u k=2.5 kb=1
" i: m% B$ C, f1 Y% X C' E- N$ gmp0 b a vdd! vdd! p_18 w="wdn*k*kb" l=len" l, z/ n$ p; |% |8 P
mn0 b a gnd! gnd! n_18 w=wdn l=len8 I8 p3 k- J B& i5 A+ y
.ends
$ O" i! J1 C7 U9 T+ ^! ^# I. [
xt1 b0 b1 b2 t1 or3
* J5 N# b$ X/ T8 S, O; n# yxt2 b1 b2 t2 or2
" f7 s$ N3 W. [5 ]* q2 |xinv b1 b1b inv1 `; }7 B& o% b0 C
xt33 b0 b1b b2 t33 and35 |7 O+ P2 [. T* @ q. J
xt3 b2 t33 t3 or21 i& t& N7 O! {. P% b* u5 y+ {: B
xt4b b2 t4b buffer kb=3
% E: N. l! }5 N( O2 p2 pxt4 t4b t4 buffer kb=9
) f8 Q; Q/ {2 ^% Xxor5 b0 b1 tor5 or20 F/ |2 l+ H" i7 \8 c
xt5 tor5 b2 t5 and2
0 s* p! l- s, t% D8 _# Rxt6 b1 b2 t6 and26 W) F% W. w+ h/ }1 a: f
xt7 b0 b1 b2 t7 and36 L, H6 p9 j- {. t! I ?. i m
vdd vdd! gnd! 3.3 @2 Q$ X9 ]: j
vb0 b0 gnd! PULSE 3.3 0 0 0.5n 0.5n 4.5n 10n
) K+ J3 r" p( E7 C+ {& Bvb1 b1 gnd! PULSE 3.3 0 0 0.5n 0.5n 9.5n 20n
Z- G1 i4 h7 y! b {; Evb2 b2 gnd! PULSE 3.3 0 0 0.5n 0.5n 19.5n 40n Z: W, t7 @5 S8 A1 C
.tran 0.1n 200n9 Q& Q" W* [3 A) [: u
CL1 t1 gnd! 5p) r3 d, @- ~/ N: d! T
CL2 t2 gnd! 5p/ F. {; o6 t. r1 A0 |8 O
CL3 t3 gnd! 5p9 C) [6 e; z+ N2 X p# }
CL4 t4 gnd! 5p
; F7 f1 c, W: ECL5 t5 gnd! 5p3 h3 H4 S* b: h- z# M
CL6 t6 gnd! 5p
: K! q5 v0 l6 I# J9 d1 oCL7 t7 gnd! 5p
$ L9 s! N3 j5 J0 L4 W( B.end
- \ h1 g! d6 t- C& C
. U! H# z m% V6 {* x ] **error** no dc path to ground from node 0:t1 defined in subckt 0 - u9 }/ E1 c* H3 x6 }
+ Q, H( D) F/ D8 D# V
" l7 x1 y5 d% T: C R請問要怎麼解決這個問題 |
評分
-
查看全部評分
|