京都大学 情報学研究科 通信情報システム専攻 2020年8月実施 専門基礎B [B-4]
Author
Description
Answer all the following questions.
(1)
Suppose that we design a circuit that compares two 2-digit binary integers
- (a) Give a minimal sum-of-products expression of output
. - (b) Give a minimal product-of-sums expression of output
. - (c) Derive a logic circuit that realizes
with the minimum number of 3-input NAND gates only. Assume and their complements together with logic values and are available as inputs.
(2)
Suppose that we design a Mealy-type synchronous sequential circuit that has a 1-bit input
- (a) Derive a state transition diagram of the circuit.
- (b) Show the state transition table and the output table with the minimum number of states. Explain how you verified that the number of states is minimal.
- (c) We would like to implement the circuit with the minimum number of D flip-flops. Derive the excitation function(s) of D flip-flop(s) in a minimal sum-of-products form. Here, the initial value of a D flip-flop is
, and logic variables of the input and the output of a D flip-flop are and , respectively. If multiple flip-flops are used, distinguish them by subscripts. - (d) Derive the output
in a minimal sum-of-products form.
(3)
Suppose that we design a Mealy-type synchronous sequential circuit that restores the input
- (a) Derive a state transition diagram of the circuit.
- (b) Show the state transition table and the output table with the minimum number of states. Explain the state transition and the output sequence for the input sequence of 011101.
Kai
(1)
(a)
Derive the corresponding K-map:
(b)
(c)
(2)
(a)
State definition:
- S0: the previous input was 0
- S1: the previous input was 1
Initial state: S0
State transition diagram:
(b)
| Input x | Current state | Next state | Output y |
|---|---|---|---|
| 0 | S0 | S0 | 0 |
| 1 | S0 | S1 | 1 |
| 0 | S1 | S0 | 1 |
| 1 | S1 | S1 | 0 |
Minimum-state verification: For the same input, the outputs in S0 and S1 are different (for example, when x=0, the outputs are 0 and 1, respectively). Hence the two states are distinguishable and cannot be merged. Therefore, the number of states is minimal (2 states).
(c)
K-map for
Minimal sum-of-products:
(d)
K-map for
(Equivalently,
(3)
(a)
State definition:
- S0': the previous value of x was 0
- S1': the previous value of x was 1
Initial state: S0'
Input:
State transition diagram:
(b)
| Input y | Current state | Next state | Output x |
|---|---|---|---|
| 0 | S0' | S0' | 0 |
| 1 | S0' | S1' | 1 |
| 0 | S1' | S1' | 1 |
| 1 | S1' | S0' | 0 |
Minimum-state verification: For the same input, the outputs in S0' and S1' are different (for example, when y=0, the outputs are 0 and 1, respectively). Hence the two states are distinguishable and cannot be merged. Therefore, the number of states is minimal (2 states).
(c)
Initial state: S0'
| Input y | Current state | Next state | Output x |
|---|---|---|---|
| 0 | S0' | S0' | 0 |
| 1 | S0' | S1' | 1 |
| 1 | S1' | S0' | 0 |
| 1 | S0' | S1' | 1 |
| 0 | S1' | S1' | 1 |
| 1 | S1' | S0' | 0 |
Output sequence: