東京大学 情報理工学系研究科 創造情報学専攻 2010年8月実施 筆記試験 第2問
Author
Description (English)
(1) Selection of the number of operands in a
- Describe the pros and cons of
-operand instruction format and -operand instruction format for a -input arithmetic instruction.
| Example of | ADD operand |
| Example of | ADD operand |
- Describe the pros and cons of an instruction format where an arithmetic instruction has a memory operand and an instruction format where an arithmetic instruction does not have a memory operand, and instead LOAD and STORE instructions are used to access memory. Note that
denotes a register operand.
| Example of an instruction format where an arithmetic instruction has a memory operand | ADD |
| Example of an instruction format where an arithmetic instruction does not have a memory operand and instead LOAD and STORE instructions are used to access memory | LOAD STORE ADD two or three register operands |
(2) Consider a program that calculates the maximum value and the minimum value of
(3) Using the instruction set designed in (2), write a program that calculates the maximum value and the minimum value of
(4) Draw a block-diagram of a processor that has the instruction set designed in (2). Then explain the operation of the arithmetic instruction on the processor from the beginning of the instruction execution (just before the instruction fetch from the memory) to the end of execution. Functional blocks such as ALU (Arithmetic Logic Unit) and registers should be used to draw the block-diagram.