跳到主要内容

東京大学 情報理工学系研究科 電子情報学専攻 2016年8月実施 専門 第2問

Author

Josuke

Description

Let us consider a falling-edge-triggered JK flip-flop as shown in Fig.1. This JK flip-flop is reset to (Q,Q)=(0,1)(Q,\overline{Q}) = (0,1) when RST=1RST = 1. Answer the following questions.

(1) Let us assume a 4-bit counter as shown in Fig.2, and the input signals shown in Fig.3 are given to the counter. Show a time chart of the outputs Q0Q3Q_0-Q_3. Here, let us assume that all the JJ and KK terminals are connected to 1, and the delay of each JK flip-flop, τ\tau , cannot be neglected.

(2) Modify the circuit in Fig.2 so that the outputs Q0Q3Q_0-Q_3 change simultaneously, and show its schematic. (Such a circuit is called a parallel counter or a synchronous counter.)

(3) Let us design a parallel decimal counter. A decimal counter is a circuit that starts counting from (Q3Q2Q1Q0Q_3Q_2Q_1Q_0) = (0000) up to (Q3Q2Q1Q0Q_3Q_2Q_1Q_0) = (1001) and then returns to (Q3Q2Q1Q0Q_3Q_2Q_1Q_0) = (0000) in the next state. Show a state transition diagram and a Karnaugh map of the counter.

(4) Show a schematic of a parallel decimal counter by using the results in (3).

(5) Modify the circuit in (2) to an up/down counter and show its schematic. An up/down counter is a counter whose operation mode can be changed either to count-up or count-down by a control signal UP/DOWNUP/\overline{DOWN}.

题目描述

考虑图 1 所示下降沿触发 JK 触发器。当 RST=1RST=1 时,触发器复位为 (Q,Q)=(0,1)(Q,\overline Q)=(0,1)。图 2、图 3 及所用符号均见上图,回答下列问题。

(1) 对图 2 的 44 位计数器输入图 3 所示信号,画出输出 Q0Q_0Q3Q_3 的时序图。假设所有 JJKK 端均接 11,且每个 JK 触发器的延迟 τ\tau 不可忽略。

(2) 修改图 2 的电路,使 Q0Q_0Q3Q_3 同时变化,并画出电路图。这种电路称为并行计数器或同步计数器。

(3) 设计一个并行十进制计数器:从 (Q3Q2Q1Q0)=(0000)(Q_3Q_2Q_1Q_0)=(0000) 计数到 (1001)(1001),下一状态返回 (0000)(0000)。画出其状态转移图和卡诺图。

(4) 利用 (3) 的结果,画出并行十进制计数器的电路图。

(5) 把 (2) 的电路改造成加/减计数器并画出电路图。该计数器通过控制信号 UP/DOWNUP/\overline{DOWN} 在向上计数和向下计数两种模式间切换。

Kai

(1)

Let tnt_n be the time of the nn-th falling input edge after reset. For i=0,1,2,3i=0,1,2,3, QiQ_i toggles precisely when nn is a multiple of 2i2^i, at time tn+(i+1)τt_n+(i+1)\tau. The clock period is assumed long enough for the ripple to settle.

(2)

(3)

Q3Q_3Q2Q_2Q1Q_1Q0Q_0Q3Q_3'Q2Q_2'Q1Q_1'Q0Q_0'
00000001
00010010
00100011
00110100
01000101
01010110
01100111
01111000
10001001
10010000

The unused states 1010–1111 are don’t-cares. Rows and columns are in Gray-code order.

Q0Q_0'

Q3Q2Q_3Q_2\Q1Q0Q_1Q_000011110
001001
011001
11xxxx
1010xx

Q0=Q0Q_0' = \overline{Q_0}

Q1Q_1'

Q3Q2Q_3Q_2\Q1Q0Q_1Q_000011110
000101
010101
11xxxx
1000xx

Q1=Q1Q0+Q3Q1Q0Q_1' = Q_1\overline{Q_0} + \overline{Q_3}\,\overline{Q_1}Q_0

Q2Q_2'

Q3Q2Q_3Q_2\Q1Q0Q_1Q_000011110
000010
011101
11xxxx
1000xx

Q2=Q2Q1+Q2Q0+Q2Q1Q0Q_2' = Q_2\overline{Q_1} + Q_2\overline{Q_0} + \overline{Q_2}Q_1Q_0

Q3Q_3'

Q3Q2Q_3Q_2\Q1Q0Q_1Q_000011110
000000
010010
11xxxx
1010xx

Q3=Q3Q0+Q2Q1Q0Q_3' = Q_3\overline{Q_0} + Q_2Q_1Q_0

(4)

Use the common falling-edge clock and reset of (2). The required JK inputs are

J0=K0=1,J1=Q0Q3,K1=Q0,J2=K2=Q0Q1,J3=Q0Q1Q2,K3=Q0.\begin{aligned} J_0&=K_0=1,\\ J_1&=Q_0\overline{Q_3},&K_1&=Q_0,\\ J_2&=K_2=Q_0Q_1,\\ J_3&=Q_0Q_1Q_2,&K_3&=Q_0. \end{aligned}

With Qi+=JiQi+KiQiQ_i^+=J_i\overline{Q_i}+\overline{K_i}Q_i, these connections produce the ten transitions in (3).

Synchronous decimal JK counter

(5)

Writing U=UP/DOWNU=UP/\overline{DOWN}, the toggle inputs in (5) are

J0=K0=1,Ji=Ki=Uj=0i1Qj+Uj=0i1Qj(i=1,2,3).J_0=K_0=1,\qquad J_i=K_i=U\prod_{j=0}^{i-1}Q_j+\overline U\prod_{j=0}^{i-1}\overline{Q_j} \quad(i=1,2,3).

Thus U=1U=1 counts up modulo 16, while U=0U=0 counts down modulo 16.