跳到主要内容

東京大学 情報理工学系研究科 創造情報学専攻 2010年8月実施 筆記試験 第2問

Author

itsuitsuki

Description (English)

(1) Selection of the number of operands in a -input arithmetic instruction and selection of the method to access memory are important in designing the format of instructions of a processor. Answer the following questions on the instruction format.

  1. Describe the pros and cons of -operand instruction format and -operand instruction format for a -input arithmetic instruction.
Example of -operand instruction formatADD operand , operand
Example of -operand instruction formatADD operand , operand , operand
  1. 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 operandADD , operand to specify memory address
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 memoryLOAD , operand to specify memory address
STORE , operand to specify memory address
ADD two or three register operands

(2) Consider a program that calculates the maximum value and the minimum value of -bit integers. The instruction set must have sufficient kinds of instructions to write this program. Design an instruction format (bit division of an instruction) and instruction set for a processor whose instruction-width is -bit and the data-width is -bit. Provide a short description of each instruction. The description of an instruction should be a line or two. Note that the instruction set must have subroutine call and return operations.

(3) Using the instruction set designed in (2), write a program that calculates the maximum value and the minimum value of -bit integers.

(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.