|
請問一下我做出來的jk正反器Q的波形為什麼會隨clock的上升和下降產生突波- k) s0 A1 i$ f; Q& n, V1 L
我是新手我找問題找了好久
) b7 v8 X* N9 x+ [9 c8 x& ]! k) a$ c這是程式碼 我是打算要做計數器但是我連JK都搞不定了麻煩可以指點我哪邊有問題
! @* d' V% X5 K) Ljk
% p4 |+ y+ m. t! X' r3 B.lib 'c:\flexlm\mm0355v.l' TT
o; O4 J2 Y- t: A# V' p2 c U: l.protect, B/ R1 U2 l# C& Z+ J* m
.option post list7 x2 w( v( U3 B
.option post
. i9 T# d# L% `.probe dc i(m1 m2)
& W: E, G4 K" a
: l7 y- D; B4 d# R7 d' }xjk1 vdd vdd vin vout vout1 vdd gnd jk/ S& q& k' G. ~8 F
% i# X! k% ^, h4 M* n, T% W
vin vin 0 pulse (0v 3.3v 0.001u 0.001u 0.001u 0.049u 0.1u)
# Y& _# B9 j8 Y$ g9 J# v a5 qvdd vdd 0 3.3v
+ {# ]1 ?1 q, X7 e: V/ ]% s: t5 b: {2 z- o _.subckt jk j k c qn qn1 vdd gnd
- z3 B% P2 \- T& ux1 qn j c y vdd gnd nand3
1 ^' Y0 F r! J! L# nx2 c k qn1 y1 vdd gnd nand30 N$ z% N' V3 _* y: \
x3 y y1 my1 my2 vdd gnd nand26 k. e3 g, {: r7 p1 V: o. f6 Z
x4 s1 my1 sy1 vdd gnd nand
5 v3 R+ P* k' a1 `x5 my2 s1 sy2 vdd gnd nand' S* v. V% Z9 Y P5 G" c
x6 sy1 sy2 qn qn1 vdd gnd nand2
, N7 S% ]) v" m8 v. ^" t2 o& L3 Gx7 c s1 vdd gnd invertor
! v2 j x1 \2 X.ends jk
C* j: w; T3 y& n. t9 @
3 V* |4 Z( Y( G j7 E: A2 D& X, H
.subckt nand2 vin1 vin2 y b vdd gnd 5 J: _& ~' r% c1 h" P
x1 vin1 b y vdd gnd nand
/ D G1 N$ D$ `( dx2 y vin2 b vdd gnd nand, x: y0 E/ W7 X9 P8 G
.ends nand23 w3 ^9 D4 A- F( e$ y- I
6 U7 ?& ^; O& K
.subckt nand3 a b c y vdd gnd 8 ^! z7 \% G* R
m1 y a vdd vdd pch w=2.5u l=1u
7 q2 }) Y2 E; S1 hm2 y b vdd vdd pch w=2.5u l=1u
- e' T; C3 b* P ? Om3 y c vdd vdd pch w=2.5u l=1u " y3 ? \3 Z& j8 j m; G
m4 y a 8 gnd nch w=1u l=1u1 a: z( M' C8 a& W4 l' m+ t {
m5 8 b 9 gnd nch w=1u l=1u
3 m7 i5 H. D' j$ k+ } Am6 9 c gnd gnd nch w=1u l=1u
' q- U. x# c5 C d" v.ends nand3
. m( E% l: I4 C% ^2 |/ w/ ?3 i4 |+ \2 H }8 t' [
.subckt nand a b vout vdd gnd 0 u b) v; u+ p9 e( I. a% t
m1 vout b vdd vdd pch w=2.5u l=1u* \2 t, r M' g' K9 P3 U
m2 vout a vdd vdd pch w=2.5u l=1u $ C/ @: Y7 N9 h$ a
m3 vout a 8 gnd nch w=1u l=1u
3 { X! U7 N! em4 8 b gnd gnd nch w=1u l=1u+ c% y9 h* s: w' f* f1 s
.ends nand. O8 Q$ e6 Q+ b; |
; J9 W5 N& @: y2 |1 P* m2 F( C- B* g# M8 J" J2 w
.subckt invertor 1 2 vdd gnd) {) K. s9 v+ v `
m1 2 1 vdd vdd pch w=2.5u l=1u+ m* J9 G4 B# m! S
m2 2 1 gnd gnd nch w=1u l=1u
& ?+ H! f _7 ?$ q.ends invertor
5 p2 l1 w9 i; J3 v* J: y, H- R 7 A' O) ]8 b/ b N% w) p
.tran 0.01u 1u
, h$ ?: n/ l: X* N$ U9 M.op
$ }% O0 p& E6 l/ q.print: c2 o }2 x7 r k6 _) L
.end
3 P8 d. V& z6 I. U, c1 b; {9 y# q. \* F# {5 X! `
圖太小了附上圖片網址http://paintedover.com/uploads/show.php?loc=0841&f=ddd_5.jpg
5 i Z( D7 K9 v; a# E, O1 Q1 P0 a- z1 K" ~2 W
[ 本帖最後由 dinosonic 於 2009-4-15 03:08 PM 編輯 ] |
|