--- ###### tags: `SCLD` --- # Chap 13 Analysis of Clocked Sequential Circuits ## 13.1 A Sequential Parity Checker 奇數個 1 → 1 偶數個 1 → 0 出錯 → 0→1 or 1→0 → parity 改變 → 知道出錯 ![](https://i.imgur.com/sQfTMWZ.png) 累積 input 偶數 → Z=0 累積 input 奇數 → Z=1 ![](https://i.imgur.com/U6mBJ5I.png) ![](https://i.imgur.com/bpqMrY3.png) ![](https://i.imgur.com/yt6w0lT.png) ![]() <img src="https://i.imgur.com/U4CjJrZ.png" height="120"> ## 13.2 Analysis by Signal Tracing and Timing Charts The state graph for a <font color="#F2492B">Moore machine</font> has the output associated with the state (as in Figures 13-3 and 13-9). If the output is a function of both the present state and the input (as in Figure 13-7), the circuit is referred to as a <font color="#F2492B">Mealy machine</font>. ### Moore machine ![](https://i.imgur.com/wYPesrE.png) ![](https://i.imgur.com/FLDd52e.png) ![](https://i.imgur.com/BIDjZUJ.png) Z=(0): 跟 X 沒關係 >the output which results from application of a given input does not appear until after the active clock edge > ### Mealy Machine >The input is synchronized with the clock so that input changes occur after the falling edge. >The output depends on both the input (X) and the flip-flop states (A and B), so Z may change either when the input changes or when the flip-flops. change state. ![](https://i.imgur.com/X0RxONC.png) Z=(0/1):短暫對到舊的 ![](https://i.imgur.com/sie25bC.png) ![](https://i.imgur.com/mt7ZYSf.png) input stable, flip-flop change state → may have false output ## 13.3 State Tables and Graphs ### steps 1. input & output equations 2. next-state equation ![](https://i.imgur.com/Av82Jd8.png) 3. next-state map 4. trantition table ### Moore Transition (for figure 13-5) ![](https://i.imgur.com/MyVBf9T.png) 1. input equations and output equation - D<sub>A</sub> = X ⊕ B′ - D<sub>B</sub> = X + Α - Z = A ⊕ B 2. next state equation - A<sup>+</sup> = X ⊕ B′ - B<sup>+</sup> = X + A 3. map ![](https://i.imgur.com/qzNicGx.png) 4. moore state table <img src="https://i.imgur.com/k65cCo4.png" height="120"> <img src="https://i.imgur.com/tO3DnGs.png" height="130"> <!-- 左側(紅框)為 A<sup>+</sup>,右側為 B<sup>+</sup> (對照上圖) --> 4. moore state gragh ![](https://i.imgur.com/H8Xl996.png) ### Mealy Transition (for figure 13-7) ![](https://i.imgur.com/Dk3K2iI.png) 1. next-state and output equations A<sup>+</sup> = J<sub>A</sub>A′ + K<sub>A</sub> ′A = XBA′ + X′A B<sup>+</sup> = J<sub>B</sub>B′ + K<sub>B</sub> ′B = XB′ + (AX)′B = XB′ + X′B + A′B Z = X′A′B + XB′ + XA 2. next-state and output maps ![](https://i.imgur.com/t1AAVEj.png) 3. mealy state table ![](https://i.imgur.com/6TbjAUm.png) 4. mealy state gragh ![](https://i.imgur.com/KxjPNTj.png) ### serial adder Q<sup>+</sup> = C<sub>i+1</sub> ![](https://i.imgur.com/2CnC2wG.png) 只有 C<sub>i+1</sub> 被 clock 擋下 ![](https://i.imgur.com/7bfubcK.png) (rising) ![](https://i.imgur.com/OIXhxhL.png) state gragh mealy machine, 1 flip-flop, 2 states ![](https://i.imgur.com/pV2f3rp.png) Mealy sequential circuit with two inputs and two outputs ![](https://i.imgur.com/XtcCJB1.png) corresponding state graph ![](https://i.imgur.com/iv3eMVe.png) ### timimg charts ![](https://i.imgur.com/qzJELvP.png) ![](https://i.imgur.com/0eaEKPA.png) ![](https://i.imgur.com/J3Gswjy.png) clock 跳之前就讀取,但 clock 跳的時候才 update ## 13.4 General Models for Sequential Circuits ![](https://i.imgur.com/L4QUdpk.png) ![](https://i.imgur.com/CcUyeGD.png) t~clk~ (min) = t~p~ + t~c~ + t~su~ t~clk~ (min) = t~x~ + t~c~ + t~su~ t~clk~ (min) = t~p~ + t~c~ + t~su~ + t~sk~ <大概知道就好> t~p~ + t~c~ ≥ t~sk~ + t~h~ t~p~ ≥ t~sk~ + t~h~ </大概知道就好> ![](https://i.imgur.com/TjSvO6d.png) ![](https://i.imgur.com/cmDP8AJ.png) X~1~X~2~=00 → X=0, and so on and so forth ![](https://i.imgur.com/G5oHxWl.png) ![](https://i.imgur.com/Su1D3ah.png) S^+^ = δ(S, X) ; Z = λ(S, X) 根據上表得出 δ(S~0~, 1) = S~2~ ; δ(S~2~, 3) = S~1~ ; λ(S~0~, 1) = 2 ; λ(S~2~, 3) = 1 ## Problems #### 13.7 ![](https://i.imgur.com/1OUcuMc.png) ans ![](https://i.imgur.com/FqhsirI.png) #### 13.17 ![](https://i.imgur.com/EPlsE3X.png) ![](https://i.imgur.com/VOwS53b.png) ans ![](https://i.imgur.com/4vu3ten.png) ![](https://i.imgur.com/PquSX5m.png) #### 13.20 ![](https://i.imgur.com/FZyo1O4.png) ans ![](https://i.imgur.com/99Hc3f8.png) ![](https://i.imgur.com/xqfyA54.png) #### 13.23 ![](https://i.imgur.com/zA3z0E6.png) ans ![](https://i.imgur.com/qpKnZOX.png) #### 13.25 ![](https://i.imgur.com/1TSRb3g.png) ans ![](https://i.imgur.com/6QIVX4T.png)