京都大学 情報学研究科 知能情報学専攻 2017年2月実施 情報学基礎 F-2
Author
祭音Myyura (co-authored with GPT 5.6 SOL)
Description
Q.1
For the four-variable logic function
where denotes the logical negation of :
- Show a Karnaugh map of .
- Show all prime implicants of .
- Show all minimum sum-of-products expressions of .
Q.2
A Mealy-type sequential machine detects the patterns 0011 and 1011 in a binary input sequence. It produces 1 when the last symbol of either pattern arrives and 0 otherwise. For example, input 011011101101 produces output 000001000100.
- Give the state-transition table of using the minimum number of states.
- Design a synchronous sequential circuit realizing with the minimum number of D flip-flops. Let be the input, the two outputs of flip-flop , and its excitation input. Give the state assignment, the excitation functions, and the output function in minimum sum-of-products form. All flip-flop outputs are reset to
0before the input sequence starts.
题目描述
-
对逻辑函数
作 Karnaugh 图,列出全部主蕴含项,并给出全部最小与项之和式。
-
最小化可检测
0011和1011的 Mealy 型时序机:- 给出最少状态的状态转移表;
- 用最少的 D 触发器实现,明确写出状态编码,并将 与输出 写成最小与项之和式。初始时所有触发器复位为
0。
Kai
Q.1
Expanding the definition gives
1.1 Karnaugh map
Use Gray order on both axes.
| 1 | 0 | 0 | 1 | |
| 0 | 1 | 1 | 1 | |
| 1 | 1 | 0 | 1 | |
| 1 | 0 | 0 | 1 |
1.2 Prime implicants
The maximal groups give exactly the following seven prime implicants:
Their covered minterms are respectively
1.3 Minimum sum-of-products forms
Minterm forces . Covering the remaining essential choices yields exactly two minimum covers, each with four products and ten literals:
or
Q.2
The two target patterns are precisely the four-bit strings whose last three bits are 011; the first bit may be either 0 or 1. The initial state must nevertheless be distinguished so that the first three input bits cannot produce a detection.
Let the states be:
- : no input has been read;
- : at least one bit has been read, with no current suffix represented by or ;
- : at least two bits have been read and the current suffix is
0; - : at least three bits have been read and the current suffix is
01.
2.1 Minimum state table
Each entry is next state / output.
| Present state | ||
|---|---|---|
These four states are pairwise distinguishable: is separated immediately by input 1; is separated from by continuation 11; and is separated from by continuation 011. Hence four states are necessary and sufficient.
2.2 Circuit equations
Four states require two D flip-flops. Use the reset-compatible assignment
where the bits are . The encoded transition table is
| Meaning | : | : | |
|---|---|---|---|
Karnaugh-map minimization gives
Starting from , these equations reproduce the required output and allow overlaps between consecutive occurrences.