|
請問一下我做出來的jk正反器Q的波形為什麼會隨clock的上升和下降產生突波 m, k; f0 j4 T
我是新手我找問題找了好久
! p* @, b5 ^9 }1 `: |1 U$ M這是程式碼 我是打算要做計數器但是我連JK都搞不定了麻煩可以指點我哪邊有問題
- g5 n/ T/ `" X% A6 @% m3 Bjk
/ _, k p9 B+ a) |! ~! L/ D.lib 'c:\flexlm\mm0355v.l' TT0 N- w# f# e; a- \6 o. i9 M5 f
.protect4 E, i# D# \% W; ?2 w/ q% B
.option post list* A+ t- e6 D2 V# B
.option post. u; u, V/ i2 h; p, a
.probe dc i(m1 m2), h1 Q/ V0 F4 L M. H. M' ~/ y/ e. ~: j
* r& k$ q# y7 C3 C- b3 t/ e9 ]xjk1 vdd vdd vin vout vout1 vdd gnd jk
5 w# Z- H% {, R3 E, g$ k* r6 O0 E S% n; N
vin vin 0 pulse (0v 3.3v 0.001u 0.001u 0.001u 0.049u 0.1u)
9 k( R# g$ ^' }# ?- D, w/ Nvdd vdd 0 3.3v' g: c9 B: c( ]" f" ?5 a
.subckt jk j k c qn qn1 vdd gnd
% t# N5 \8 _4 z5 ~7 M6 Z- Vx1 qn j c y vdd gnd nand3$ B) d6 Y1 ^9 Q: `
x2 c k qn1 y1 vdd gnd nand3: ~, E3 D+ z5 N
x3 y y1 my1 my2 vdd gnd nand2
1 H. z5 i" P# }x4 s1 my1 sy1 vdd gnd nand
, B1 Z( R ~! Qx5 my2 s1 sy2 vdd gnd nand* ?# k$ F' V, k% i/ n! |
x6 sy1 sy2 qn qn1 vdd gnd nand2
+ z1 P- S. }; H8 O }* [x7 c s1 vdd gnd invertor7 T/ I+ I. F- h( x
.ends jk
8 H6 w. O+ p7 ~9 K
/ y) o N1 y9 a& j, \* j5 t% x! h b$ X X
.subckt nand2 vin1 vin2 y b vdd gnd : D+ ^$ G3 B, J, g5 r7 `
x1 vin1 b y vdd gnd nand
4 @' t/ t l7 y4 E* @/ J2 b9 j1 yx2 y vin2 b vdd gnd nand
2 K% u0 Q6 Y! |.ends nand2
# z% s6 A! Q2 L5 l8 N
- U% f2 k/ D; M: [; h) ]+ e7 \. F5 Y.subckt nand3 a b c y vdd gnd . k E x) [0 I9 }" T( n. x2 o
m1 y a vdd vdd pch w=2.5u l=1u; ~- g+ W' v& V
m2 y b vdd vdd pch w=2.5u l=1u 5 L. n! F' Z6 S( i3 Z# b
m3 y c vdd vdd pch w=2.5u l=1u
' V% E4 j$ x3 _2 s, i4 B8 T7 Fm4 y a 8 gnd nch w=1u l=1u/ m/ G( b* V; ]
m5 8 b 9 gnd nch w=1u l=1u* {6 h% u2 K5 Y) F$ C; x3 q
m6 9 c gnd gnd nch w=1u l=1u1 p }9 l. _% [ g. g% o- {
.ends nand3, E) F U1 t1 ]
; h# d0 v( S! m, o8 [
.subckt nand a b vout vdd gnd
3 z, y0 U& N) ~- l/ o% D& h4 \* r3 qm1 vout b vdd vdd pch w=2.5u l=1u
$ ~0 \) L# L' _( I$ v5 wm2 vout a vdd vdd pch w=2.5u l=1u 2 y1 r, s, m3 Y5 o; ~
m3 vout a 8 gnd nch w=1u l=1u
6 N/ l+ w; b0 h9 Z. T8 W5 sm4 8 b gnd gnd nch w=1u l=1u
% \4 M# a! S A& S2 ~/ z% W8 f7 V: m.ends nand/ g: @! T8 s5 u* a" C
; \: `8 f& g& f( q# o" } |% A- K b
.subckt invertor 1 2 vdd gnd6 D. s2 T C5 w6 O2 ?
m1 2 1 vdd vdd pch w=2.5u l=1u
) o) z5 S6 d" u- x% y: Y8 \; }+ m2 hm2 2 1 gnd gnd nch w=1u l=1u3 G$ m0 b9 T& n5 W
.ends invertor3 l2 f4 M6 h& |% I" \! D, d
) j8 r' ? d7 a.tran 0.01u 1u
- z. z5 a/ r' I7 R: Z.op" p/ f' ]+ q3 W0 ~
.print% i* }; ~- L8 ?& n
.end
8 T! v3 S% f3 x. W' }" s8 T
$ q2 w! R4 x" R' G/ ^0 f圖太小了附上圖片網址http://paintedover.com/uploads/show.php?loc=0841&f=ddd_5.jpg+ }1 X3 @0 S; M
9 h: A1 ^5 t" X3 d5 \1 D/ }, t( |" p
[ 本帖最後由 dinosonic 於 2009-4-15 03:08 PM 編輯 ] |
|