|
請問一下我做出來的jk正反器Q的波形為什麼會隨clock的上升和下降產生突波
! k2 f+ K/ O5 S- B @* ^我是新手我找問題找了好久9 D/ D" ^) b0 M2 B
這是程式碼 我是打算要做計數器但是我連JK都搞不定了麻煩可以指點我哪邊有問題
1 R9 v0 r! Y+ i$ s3 S1 hjk3 `1 w* V, r1 p9 j
.lib 'c:\flexlm\mm0355v.l' TT
/ v- g1 J+ s7 V4 |9 \- C' c.protect8 I3 F. I1 f% w2 I" W9 e s/ i! Y
.option post list- x5 K; @$ K: Q4 k4 ?! j' }0 J3 l
.option post
" ?& v/ m8 p7 @: H; x.probe dc i(m1 m2)4 {5 ~" N$ m8 e# E+ e2 O2 H {
5 P9 `" \; K; D% Z* h
xjk1 vdd vdd vin vout vout1 vdd gnd jk
3 Z6 b& D1 Z4 K! u7 R3 i3 c
+ f& b, J' }' n1 _vin vin 0 pulse (0v 3.3v 0.001u 0.001u 0.001u 0.049u 0.1u)- s1 I P6 Y5 q0 Z @8 W- \
vdd vdd 0 3.3v
1 j$ L9 C' I, X" o3 j2 d' H3 r2 ^.subckt jk j k c qn qn1 vdd gnd
+ R/ j" w$ {4 \0 E8 Fx1 qn j c y vdd gnd nand3( W* D6 B' X1 \: r, E, _
x2 c k qn1 y1 vdd gnd nand3
8 ^; e8 H4 r- Y7 Wx3 y y1 my1 my2 vdd gnd nand2
7 Y. \5 i+ W2 t. B. D+ _% ax4 s1 my1 sy1 vdd gnd nand& ]0 v! X% {7 v s1 T1 g D
x5 my2 s1 sy2 vdd gnd nand
- Q( H2 J' l+ ^x6 sy1 sy2 qn qn1 vdd gnd nand2
& Q5 @2 Q- ^$ w; j/ Xx7 c s1 vdd gnd invertor" a; n4 k4 o7 [4 B& b
.ends jk+ C& k0 c0 {. U* n
: @. |$ b+ p6 s. o& P9 N$ _
- H1 v2 @+ A& e) {: w% k
.subckt nand2 vin1 vin2 y b vdd gnd
1 E, L" Y' v$ X% C" Z8 `x1 vin1 b y vdd gnd nand
. R7 F$ h. r) _4 a; Qx2 y vin2 b vdd gnd nand
3 G0 t+ H$ m6 K' X.ends nand23 J. o; ]6 J& ?; ?+ a2 X
8 y/ ~: N% x: ]! |. S. d.subckt nand3 a b c y vdd gnd
5 I. t4 W0 L. ?. S" H" mm1 y a vdd vdd pch w=2.5u l=1u
6 ]8 B ?# L3 t/ g2 u* S Km2 y b vdd vdd pch w=2.5u l=1u " r( o" O1 y; {2 e) `9 u; _
m3 y c vdd vdd pch w=2.5u l=1u
" s1 l# T; {9 Wm4 y a 8 gnd nch w=1u l=1u
/ ^% V h6 x. M: Bm5 8 b 9 gnd nch w=1u l=1u
6 A! c& Q% O2 o7 ^m6 9 c gnd gnd nch w=1u l=1u
' R& L( I% P. ^5 ^1 i* x.ends nand3
4 m" |) T7 ]" Q" A+ P. p- @+ f8 \, J9 N' g! [- w
.subckt nand a b vout vdd gnd 9 |- u: _2 c7 ~" Y, s/ G- @" Q2 P
m1 vout b vdd vdd pch w=2.5u l=1u$ K! g- E+ H$ U W
m2 vout a vdd vdd pch w=2.5u l=1u 4 V( q: b6 m, ?& E
m3 vout a 8 gnd nch w=1u l=1u# U( x8 |1 F" d6 k- m
m4 8 b gnd gnd nch w=1u l=1u
( |% |- _" p/ @% ]4 `' E! Z.ends nand
3 v2 V+ t' m' R
9 J+ v4 F9 R5 X" ]( [9 |+ ^2 j$ M/ t: e2 w& Y; L
.subckt invertor 1 2 vdd gnd! A' i9 X% ^1 c# [+ r$ E
m1 2 1 vdd vdd pch w=2.5u l=1u9 n$ u+ W. s7 _; C! M+ g
m2 2 1 gnd gnd nch w=1u l=1u y2 V9 X( q9 a, z# d) w+ U
.ends invertor
8 W3 I; |4 e3 w; y( g ; L, z, L5 E Y4 f. E) d
.tran 0.01u 1u6 v" _1 j4 }( s% u/ g
.op
# i* x* Z- O8 G3 e.print
/ t, x; M* y, K# w.end# F" b) r9 T, U6 I8 o
0 j& z( g' Y% d! o4 D' c; X圖太小了附上圖片網址http://paintedover.com/uploads/show.php?loc=0841&f=ddd_5.jpg& k% N0 V8 f" T8 r; P* }' |
" s( T( z$ L' I( i[ 本帖最後由 dinosonic 於 2009-4-15 03:08 PM 編輯 ] |
|