|
請問一下我做出來的jk正反器Q的波形為什麼會隨clock的上升和下降產生突波; l2 n4 |' ]1 m% f% N5 d
我是新手我找問題找了好久
! z9 [: C7 `7 @, ]. h$ g這是程式碼 我是打算要做計數器但是我連JK都搞不定了麻煩可以指點我哪邊有問題
( l, M5 O$ |5 H2 F4 kjk$ L! @ g6 M/ ^( ?
.lib 'c:\flexlm\mm0355v.l' TT
6 ]0 t I8 B6 z# v5 i* g! Y! T7 U# k.protect
+ p' `' z0 ]/ @" H.option post list" W+ d& _$ F1 \; Q+ J% c
.option post% d$ w3 _: v6 U4 O- A: R% W
.probe dc i(m1 m2); U+ U* ~; p) A+ A
9 S' m1 S) U6 _" C4 ?3 R
xjk1 vdd vdd vin vout vout1 vdd gnd jk
# e9 E7 e. v3 c% H! C- `& c2 {
# @' I u0 T' C+ S; q: i2 Gvin vin 0 pulse (0v 3.3v 0.001u 0.001u 0.001u 0.049u 0.1u)
' R7 _' G8 P, P2 L) R" U3 m! Gvdd vdd 0 3.3v
7 R2 q: T. l" z4 `* N( A.subckt jk j k c qn qn1 vdd gnd
" f% B. B, \6 l5 X2 W4 v9 Fx1 qn j c y vdd gnd nand3
* g* q, k& {' n+ h! z) J' Fx2 c k qn1 y1 vdd gnd nand3/ G! \! s6 z" c* J1 N7 q6 C) ?5 B- W9 |
x3 y y1 my1 my2 vdd gnd nand2
$ m3 Q8 e3 U5 s7 X8 A' ~7 g% px4 s1 my1 sy1 vdd gnd nand5 A) B2 U& |% Q& ^$ O7 I8 Z: ]
x5 my2 s1 sy2 vdd gnd nand
1 U u" W- |1 p) h# Hx6 sy1 sy2 qn qn1 vdd gnd nand2
. ~, k# Z. w {2 ]$ [x7 c s1 vdd gnd invertor: ^8 C6 Y. V+ w5 m( A4 v8 [
.ends jk7 u5 O! g" z/ }! t
) q$ b+ |& v x& j$ a! N1 ~
1 I: n: ^) T, _: s.subckt nand2 vin1 vin2 y b vdd gnd
1 W' ^ u1 \' O- R2 B9 P* |. D: G6 yx1 vin1 b y vdd gnd nand% e% c$ Y, y5 ^' T& ]
x2 y vin2 b vdd gnd nand
: V+ ?& E- b- F% O, Q) ?6 h.ends nand2
2 b- b( v* s# b0 M& x& j c
" E& u. u- d- s7 m3 T.subckt nand3 a b c y vdd gnd 9 O/ W+ Y+ w: @: S! U0 W+ P- c" `' N
m1 y a vdd vdd pch w=2.5u l=1u
; @# i+ J8 L2 ~- Jm2 y b vdd vdd pch w=2.5u l=1u - L# m% ]. K+ j/ {7 r! M
m3 y c vdd vdd pch w=2.5u l=1u
' @* R& r! Z) [+ `/ am4 y a 8 gnd nch w=1u l=1u' Q9 \3 m2 u; p6 X. w% k
m5 8 b 9 gnd nch w=1u l=1u. W+ w5 r8 K( ~+ @; U; [
m6 9 c gnd gnd nch w=1u l=1u5 v+ r6 U! E# `) e9 E% G% f
.ends nand3
( M) I6 n/ a G/ x3 s: H3 p% Q" \ v" |: K+ ~
.subckt nand a b vout vdd gnd
/ K' ]/ R- r, Tm1 vout b vdd vdd pch w=2.5u l=1u
9 _& R7 m9 M3 v8 Hm2 vout a vdd vdd pch w=2.5u l=1u + x- i; a C, o# Q3 j8 j9 c! R
m3 vout a 8 gnd nch w=1u l=1u
: c) Q' H( {9 `+ F7 z/ ?m4 8 b gnd gnd nch w=1u l=1u
" J5 w! v$ V- |6 z$ }.ends nand
3 M% ?7 `$ M3 R# p. U
4 j7 Z' Z* ?9 [- F- U
# R% {/ Q, a* ^" p8 A; g.subckt invertor 1 2 vdd gnd
, J7 |5 F2 X' x, f( ^4 E: Zm1 2 1 vdd vdd pch w=2.5u l=1u. C" g3 N. M7 v V+ `1 k* V5 F
m2 2 1 gnd gnd nch w=1u l=1u
9 g$ h. a/ _6 [8 o1 h& E.ends invertor7 y# x- }9 o @6 F) W# H
1 C0 z4 q% a9 `6 P* [.tran 0.01u 1u, m- B3 a6 s w) b$ n3 q8 |" _) @
.op: y* g+ P, Y- j* r( H: k
.print
* }( d3 J5 |( M( X.end5 [4 X$ }8 L$ n2 t' P% P$ C
2 A) m4 \- m5 @6 F1 C$ ~6 k圖太小了附上圖片網址http://paintedover.com/uploads/show.php?loc=0841&f=ddd_5.jpg
) }! U @& U( p
. a1 H, k7 X2 F7 N) M[ 本帖最後由 dinosonic 於 2009-4-15 03:08 PM 編輯 ] |
|