跳到主要内容

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

Author

itsuitsuki

Description

日本語

センサからデータを入力し,演算を行うコンピュータシステムについて,以下の問いに答えよ.

(1) このようなコンピュータシステムの例を図 11 に示す.このコンピュータシステムを用いて,1616 個のセンサからのデータ xix_i (i=1,2,,16i=1, 2, \dots, 16) を入力し,演算 yi=f(xi)y_i = f(x_i) (i=1,2,,16i=1, 2, \dots, 16) を一度だけ行う場合,この処理を最小時間で実行するプログラムの時間ダイアグラムを示し,その動作の概略を説明せよ.また,この処理に必要となる時間 tat_a を求めよ.ただし,ここで用いられている回路ブロックの遅延特性 tMUX,tSH,tAD,tCOMPt_{\text{MUX}}, t_{\text{SH}}, t_{\text{AD}}, t_{\text{COMP}} は,それぞれ,

tMUXt_{\text{MUX}}:アナログマルチプレクサにおける入力選択信号 sMUXs_{\text{MUX}} の確定からアナログ出力 vMUXv_{\text{MUX}} の確定までの遅延時間 tSHt_{\text{SH}}:サンプルホールドにおけるホールド信号 sSHs_{\text{SH}} の確定からアナログ出力 vSHv_{\text{SH}} の確定までの遅延時間 tADt_{\text{AD}}:AD コンバータにおける変換開始信号 sADs_{\text{AD}} の確定からデジタルパラレル出力 xix_i の確定までの遅延時間 tCOMPt_{\text{COMP}}:コンピュータ上で,デジタルパラレル入力 xix_i の確定から演算 yi=f(xi)y_i = f(x_i) の終了までの演算時間

を表し,これら以外の遅延はすべて無視できるものとする.また,便宜上,これらの遅延は一定で,tMUX<tSH<tAD<tCOMPt_{\text{MUX}} < t_{\text{SH}} < t_{\text{AD}} < t_{\text{COMP}} であると仮定する.なお,図に示されている回路以外の回路は適切に処理されているものとして解答では考慮しなくてよい.

(2) 1616 個のセンサからのデータを入力し,得られたデータ xix_i に対して所定の演算 yi=f(xi)y_i = f(x_i) (i=1,2,,16i=1, 2, \dots, 16) を行う処理を繰り返し実行することを考える.ただし,図 11 で回路ブロックとして用いられているアナログマルチプレクサ,サンプルホールド,AD コンバータ,コンピュータはいくつでも使えるものとし,コンピュータのデジタルパラレル入力並びにデジタルパラレル出力は必要なビット数を使えるものとして,以下の問いに答えよ.なお,コンピュータシステムの概略を示す際には,これらの回路ブロックのみを用いて解答するものとし,簡単のため,tMUX=tSH=0t_{\text{MUX}} = t_{\text{SH}} = 0,コンピュータ間の通信にかかる時間は無視できるものとする.

(2-1) tAD<tCOMPt_{\text{AD}} < t_{\text{COMP}} の場合,この繰り返しのサイクルタイムを最小とする回路のなかで,用いる AD コンバータの数が最小となるコンピュータシステムの概略を示し,実行するプログラムの時間ダイアグラムを示せ.また,必要となる AD コンバータの数を tADt_{\text{AD}}tCOMPt_{\text{COMP}} の関係から導け.ただし,コンピュータは処理内容にかかわらず,任意の時刻で入出力命令の実行が可能であると仮定してよい.

(2-2) tAD>tCOMPt_{\text{AD}} > t_{\text{COMP}} の場合,この繰り返しのサイクルタイムを最小とする回路のなかで,用いるコンピュータの数が最小となるコンピュータシステムの概略を示し,実行するプログラムの時間ダイアグラムを示せ.また,必要となるコンピュータの数を tADt_{\text{AD}}tCOMPt_{\text{COMP}} の関係から導け.

(3) センサからのデータの入力を伴う並列処理システムを実際に設計する際,一般的に留意すべき事項を 300300 字以内で述べよ.

English

Answer the following questions about computer systems which carry out some operations on sensor data.

(1) Figure 1 shows a sample configuration of such a computer system. In the case that the system inputs sensor data xix_i (i=1,2,,16i = 1, 2, \dots, 16) and computes yi=f(xi)y_i = f(x_i) (i=1,2,,16i = 1, 2, \dots, 16) for each sensor data xix_i only once, show the time diagram for the program which minimizes the time for the whole operation, and describe the outline of the program. In addition, calculate the time tat_a needed for the whole operation. Delay times of the circuit blocks used in Figure 1 are defined as:

tMUXt_{\text{MUX}}: Delay time of the analog multiplexer from the settled time of the input select signal sMUXs_{\text{MUX}} to the settled time of analog output vMUXv_{\text{MUX}}, tSHt_{\text{SH}}: Delay time of the sample-and-hold from the settled time of hold signal sSHs_{\text{SH}} to the settled time of analog output vSHv_{\text{SH}}, tADt_{\text{AD}}: Delay time of the A/D converter from the settled time of conversion start signal sADs_{\text{AD}} to the settled time of signal parallel output xix_i, tCOMPt_{\text{COMP}}: Computation time for yi=f(xi)y_i = f(x_i) after the digital parallel input xix_i is settled.

Ignore other delays except the above defined delay times. Suppose that these delay times are constant and tMUX<tSH<tAD<tCOMPt_{\text{MUX}} < t_{\text{SH}} < t_{\text{AD}} < t_{\text{COMP}}. Since you may suppose that the circuits other than those shown in Figure 1 are designed appropriately, you may not consider those in your answer.

(2) Consider iterative operations in which sensor data xix_i (i=1,2,,16i = 1, 2, \dots, 16) are input and yi=f(xi)y_i = f(x_i) (i=1,2,,16i = 1, 2, \dots, 16) for each sensor data xix_i are computed periodically. Suppose that you can use any number of analog multiplexers, sample-and-holds, A/D converters, and computers used in Figure 1, but no other circuits. Also, suppose that you can use any number of bits of the digital parallel input and the digital parallel output. Answer the following questions. To simplify the condition, suppose tMUX=tSH=0t_{\text{MUX}} = t_{\text{SH}} = 0, and assume that the time for communication between computers is zero.

(2-1) In case of tAD<tCOMPt_{\text{AD}} < t_{\text{COMP}}, show the configuration of a computer system which minimizes the cycle time of the iterative operations with the minimum number of A/D converters. In addition, show the time diagram of the program for the computer system and describe the number of necessary A/D converters as a function of tADt_{\text{AD}} and tCOMPt_{\text{COMP}}. In your answer, you may suppose that a computer can carry out input/output operation at any time even if the computer runs any other programs.

(2-2) In case of tAD>tCOMPt_{\text{AD}} > t_{\text{COMP}}, show the configuration of a computer system which minimizes the cycle time of the iterative operations with the minimum number of computers. In addition, show the time diagram of the program for the computer system and describe the number of necessary computers as a function of tADt_{\text{AD}} and tCOMPt_{\text{COMP}}.

(3) Describe general important points, within about 100 words, for the design of actual parallel processing systems which manipulate sensor data inputs.

题目描述

回答关于从传感器采集数据并进行计算的计算机系统的问题,系统结构见原文图 1。

  1. 系统从 16 个传感器各读取一次数据 xix_ii=1,2,,16i=1,2,\ldots,16),并各执行一次 yi=f(xi)y_i=f(x_i)。画出使总处理时间最短的程序时序图,概述其运行方式,并求总时间 tat_a。各模块延迟定义如下:

    • tMUXt_{\mathrm{MUX}}:模拟多路选择器的输入选择信号 sMUXs_{\mathrm{MUX}} 稳定至模拟输出 vMUXv_{\mathrm{MUX}} 稳定的时间;
    • tSHt_{\mathrm{SH}}:采样保持器的保持信号 sSHs_{\mathrm{SH}} 稳定至模拟输出 vSHv_{\mathrm{SH}} 稳定的时间;
    • tADt_{\mathrm{AD}}:A/D 转换器的启动信号 sADs_{\mathrm{AD}} 稳定至数字并行输出 xix_i 稳定的时间;
    • tCOMPt_{\mathrm{COMP}}:计算机的数字并行输入 xix_i 稳定后,完成 yi=f(xi)y_i=f(x_i) 所需的时间。

    除上述延迟外均可忽略;各延迟恒定且满足

    tMUX<tSH<tAD<tCOMP.t_{\mathrm{MUX}}<t_{\mathrm{SH}}<t_{\mathrm{AD}}<t_{\mathrm{COMP}}.

    图中未画出的电路可视为已妥善处理,无须在答案中考虑。

  2. 现要周期性重复读取 16 个传感器数据并计算对应的 yi=f(xi)y_i=f(x_i)。可使用任意数量的图 1 所示模拟多路选择器、采样保持器、A/D 转换器和计算机,计算机的数字并行输入、输出位数也不限;系统框图只能使用这些模块。为简化,令 tMUX=tSH=0t_{\mathrm{MUX}}=t_{\mathrm{SH}}=0,并忽略计算机间通信时间。

    1. tAD<tCOMPt_{\mathrm{AD}}<t_{\mathrm{COMP}} 时,在所有能使重复处理周期最短的电路中,选择 A/D 转换器数最少的系统:画出系统概略和程序时序图,并由 tADt_{\mathrm{AD}}tCOMPt_{\mathrm{COMP}} 的关系推导所需 A/D 转换器数量。可假设计算机无论正在执行何种处理,都能在任意时刻执行输入输出指令。
    2. tAD>tCOMPt_{\mathrm{AD}}>t_{\mathrm{COMP}} 时,在所有能使周期最短的电路中,选择计算机数最少的系统:画出系统概略和程序时序图,并由 tADt_{\mathrm{AD}}tCOMPt_{\mathrm{COMP}} 的关系推导所需计算机数量。
  3. 用不超过 300 个日文字符(英文版表述为约 100 词)的篇幅,说明实际设计带传感器输入的并行处理系统时通常应注意的事项。