跳到主要内容

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

Author

Josuke

Description

Let us design a circuit that adds a 4-bit signed integer and a 3-bit signed integer and outputs a 4-bit signed integer . Two's complement is used to represent signed integers. Let , and be the MSB(Most Significant Bit). Answer the following questions.

(1) Show the ranges of possible values of and in decimal notation.

(2) Show the truth table for the 1-bit full adder shown on the left side of the figure below. Let and be operands, be the input carry, be the output, and be the output carry.

(3) Show the circuit that computes by combining the full-adder symbols used in (2). Also, show the input/output signal lines. You can use supply voltage V and ground GND if necessary.

(4) Let us add an overflow detection function to the circuit in (3). The additional circuit takes a 1-bit signal as output, with when an overflow occurs and otherwise. Show the truth table of the circuit to output by using necessary signals. Also, show the circuit that generates by combining necessary signals and gates from , AND, OR, and NOT shown on the right side of the figure below. The number of gates and inputs can be increased, but the circuit should be simple.

(5) Let us design a circuit to compute instead of adding and . Show the circuit by combining full-adders, AND, OR, and NOT gates. Similar to (3), input/output signal lines should also be shown. You can use V and GND if necessary.

(6) Let us add an overflow detection function to the circuit in (5) as in (4). The additional circuit takes a 1-bit signal as output, with when an overflow occurs and otherwise. Show the truth table of the circuit to output by using necessary signals. Also, show the circuit that genrates by combining necessary signals and gates from , AND, OR, and NOT shown on the right side of the figure below. The number of gates and inputs can be increased, but the circuit should be simple.

Kai

(1)

(2)

00000
00110
01010
01101
10010
10101
11001
11111

(3)

(4)

D
0000
0011
0100
0110
1000
1010
1101
1110

(5)

(6)

D
0000
0010
0100
0111
1001
1010
1100
1110