JP5717897B2 - Information processing apparatus or information processing method - Google Patents

Information processing apparatus or information processing method Download PDF

Info

Publication number
JP5717897B2
JP5717897B2 JP2014052439A JP2014052439A JP5717897B2 JP 5717897 B2 JP5717897 B2 JP 5717897B2 JP 2014052439 A JP2014052439 A JP 2014052439A JP 2014052439 A JP2014052439 A JP 2014052439A JP 5717897 B2 JP5717897 B2 JP 5717897B2
Authority
JP
Japan
Prior art keywords
data
clock
external device
information processing
reception
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2014052439A
Other languages
Japanese (ja)
Other versions
JP2014140225A (en
Inventor
昭好 桃井
昭好 桃井
浩一 森下
浩一 森下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014052439A priority Critical patent/JP5717897B2/en
Publication of JP2014140225A publication Critical patent/JP2014140225A/en
Application granted granted Critical
Publication of JP5717897B2 publication Critical patent/JP5717897B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、外部デバイスコントローラなどの情報処理装置が外部デバイスにクロックを供給し、外部デバイスがこのクロックに同期して出力する外部デバイスデータを取り込む情報処理装置又は情報処理方法に関する。   The present invention relates to an information processing apparatus or an information processing method for capturing an external device data output by an information processing apparatus such as an external device controller supplying a clock to the external device in synchronization with the clock.

特許文献1に開示されているように、外部デバイスコントローラを有する情報処理装置について、外部デバイスが情報処理装置に通信可能に接続されている場合に、情報処理装置の外部デバイスコントローラから外部デバイスへ動作クロックを供給する技術がある。ここでは、外部デバイスコントローラの供給したクロックに同期して外部デバイスがデータを出力するように設定しておき、外部デバイスコントローラが外部デバイスの出力したデータを取り込むように構成することが一般的である。   As disclosed in Patent Document 1, for an information processing apparatus having an external device controller, when the external device is communicably connected to the information processing apparatus, the information processing apparatus operates from the external device controller to the external device. There is a technology to supply a clock. Here, it is general that the external device is set to output data in synchronization with the clock supplied by the external device controller, and the external device controller is configured to take in the data output from the external device. .

この方法を用いると、外部デバイスコントローラは、外部デバイスへのクロックの供給を一時的に停止する(クロックゲーティングに相当する)ことで、外部デバイスから外部デバイスコントローラへのデータの供給を一時的に停止する事ができる。例えば、外部デバイスコントローラ内の受信バッファの許容容量までデータが蓄積された場合、外部デバイスコントローラはクロックの供給を停止し、データの供給を停止できるので、バッファの容量が小さくても好適にバッファのオーバーフローを抑制できる。   When this method is used, the external device controller temporarily stops the supply of data from the external device to the external device controller by temporarily stopping the clock supply to the external device (corresponding to clock gating). You can stop. For example, when data is stored up to the allowable capacity of the reception buffer in the external device controller, the external device controller can stop the clock supply and stop the data supply. Overflow can be suppressed.

特開昭59−173839JP 59-173839

外部デバイスコントローラの外部デバイスから受信するデータが、外部デバイスコントローラの出力クロックに対して1サイクル以上遅延する場合、外部デバイスへのクロックを停止するための制御信号を外部デバイスコントローラ内で外部デバイスからのデータの受信を停止させる制御にそのまま用いているので、データの取りこぼしが発生してしまう。   When the data received from the external device of the external device controller is delayed by one cycle or more with respect to the output clock of the external device controller, a control signal for stopping the clock to the external device is sent from the external device in the external device controller. Since it is used as it is for the control for stopping the reception of data, data is lost.

また、外部デバイスコントローラのデータの取り込み停止(又は停止解除)させるタイミングを調節しようとすると、調節する処理に要する時間が長くなる。   Further, if it is attempted to adjust the timing of stopping (or canceling) the data capture of the external device controller, the time required for the adjustment process becomes longer.

以上の課題を解決するために本発明に係る情報処理装置は、
外部デバイスに対してクロックを供給する供給手段と、
前記供給手段に対して前記クロックの供給を停止させる制御信号を送信する制御手段と、
前記外部デバイスが前記クロックと同期させて出力するデータを受信し、前記制御信号に応じて前記データの取り込みを停止する受信手段と、
前記受信手段の受信するデータの位相ズレを補正する第1遅延手段と
前記第1遅延手段で補正したデータの周期単位のズレを補正するように遅延させた前記制御信号を用いて、前記受信手段のデータ取り込みタイミングを遅延させる第2遅延手段と、
を有することを特徴とする。
In order to solve the above problems, an information processing apparatus according to the present invention provides:
Supply means for supplying a clock to an external device;
Control means for transmitting a control signal for stopping the supply of the clock to the supply means;
Receiving means for receiving data output by the external device in synchronization with the clock, and stopping capturing of the data in response to the control signal;
First delay means for correcting a phase shift of data received by the receiving means ;
Second delay means for delaying the data fetching timing of the receiving means using the control signal delayed so as to correct a shift in a cycle unit of the data corrected by the first delay means ;
It is characterized by having.

本発明によれば、外部デバイスから情報処理装置の受信するデータが、情報処理装置のクロックに対して1サイクル以上遅延していても、情報処理装置側でのデータのとりこぼしを抑制する。   According to the present invention, even if the data received by the information processing apparatus from the external device is delayed by one cycle or more with respect to the clock of the information processing apparatus, data loss on the information processing apparatus side is suppressed.

また本発明によれば、外部デバイスコントローラのデータの取り込み停止(又は停止解除)させるタイミングを調節しようとする場合に、調節する処理に要する時間の増加を抑制する。   In addition, according to the present invention, when it is attempted to adjust the timing for stopping (or releasing the stop of) data acquisition by the external device controller, an increase in the time required for the adjustment process is suppressed.

本発明の一実施例における外部デバイスコントローラの構成図である。It is a block diagram of the external device controller in one Example of this invention. 参考例のスキュー制御部の構成図とタイミングチャートを示す。The block diagram and timing chart of the skew control part of a reference example are shown. サイクル制御部の構成図とタイミングチャートである。It is a block diagram and a timing chart of a cycle control part. キャリブレーション処理のフローチャートと出力クロック制御部の構成図である。It is the flowchart of a calibration process, and the block diagram of an output clock control part. キャリブレーションパターン受信中にゲーティングパターンに基づいて出力クロックをゲーティングしているタイミングチャートである。7 is a timing chart in which an output clock is gated based on a gating pattern during reception of a calibration pattern. サイクル指標と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of a cycle parameter | index and the received calibration pattern. サイクル指標と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of a cycle parameter | index and the received calibration pattern. ゲーティングサイクル数と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of the number of gating cycles and the received calibration pattern. ゲーティングサイクル数と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of the number of gating cycles and the received calibration pattern. ゲーティングサイクル数と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of the number of gating cycles and the received calibration pattern. ゲーティング間のサイクル数と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of the cycle number between gating and the received calibration pattern. ゲーティング間のサイクル数と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of the cycle number between gating and the received calibration pattern. ゲーティング間のサイクル数と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of the cycle number between gating and the received calibration pattern. ゲーティング間のサイクル数と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。It is a timing chart which shows the correlation of the cycle number between gating and the received calibration pattern. ゲーティング開始位置・ゲーティング終了位置と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。6 is a timing chart showing a correlation between a gating start position / gating end position and a received calibration pattern. ゲーティング開始位置・ゲーティング終了位置と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。6 is a timing chart showing a correlation between a gating start position / gating end position and a received calibration pattern. ゲーティング開始位置・ゲーティング終了位置と受信されるキャリブレーションパターンの相関を示すタイミングチャートである。6 is a timing chart showing a correlation between a gating start position / gating end position and a received calibration pattern. 正しいサイクル設定を用いた場合の外部デバイスコントローラと外部デバイスの扱う信号のタイミングチャートである。It is a timing chart of the signal which an external device controller and an external device handle when the correct cycle setting is used. 外部デバイスコントローラを有するシステム構成の概略図である。It is the schematic of a system configuration | structure which has an external device controller. 実際に受信されるキャリブレーションパターンと実際のサイクル数との差の関係の例を示す。The example of the relationship of the difference of the calibration pattern actually received and the actual cycle number is shown. 参考例の外部デバイスコントローラの構成とコマンドやデータのフォーマットを示すタイミングチャートを示す。The timing chart which shows the structure of the external device controller of a reference example, and the format of a command and data is shown. 参考例のキャリブレーション処理のフローチャートである。It is a flowchart of the calibration process of a reference example. 参考例のキャリブレーション処理のタイミングチャートである。It is a timing chart of the calibration process of a reference example. 参考例の外部デバイスコントローラが扱う信号のタイミングチャートである。It is a timing chart of the signal which the external device controller of a reference example handles.

図面を参照して本発明の実施例を以下に説明する。まず、外部デバイスコントローラが外部デバイスから受信するデータについて、外部デバイスコントローラの出力クロックに対して1サイクル以上遅延する際の課題解決のための実施例を以下に説明する。   Embodiments of the present invention will be described below with reference to the drawings. First, an embodiment for solving a problem when data received by an external device controller from an external device is delayed by one cycle or more with respect to an output clock of the external device controller will be described below.

図19は外部デバイス107と通信を行う情報処理装置とを備えたシステムのブロック図である。外部デバイス107と通信を行う機能を有するLSIであるASIC100は、CPU101、DRAMコントローラ104、DMAコントローラ102、外部デバイスコントローラ103とCLOCKジェネレータ105を有する。(ASICはApplication Specific Integrated Circuitの略称で、DMAはDirect Memory Accessの略称。)また、発振手段としてのCLOCKジェネレータ105はCPU101、DMAコントローラ102、外部デバイスコントローラ103及びDRAMコントローラ104の用いるクロック(cpu_clock113、dmac_clock114、host_clock115、dram_clock116)を生成して供給する。CPU101はCPU I/F110を介して、外部デバイスコントローラ103とDMAコントローラ102とDRAMコントローラ104へレジスタアクセスを行う。DMAコントローラ102はCPU I/F110を介して、DRAMコントローラ104との間でデータ転送を行う。DRAMコントローラ104はDRAM I/F117を介してDRAM106との間でデータ転送を行う。外部デバイスコントローラ103はDMA I/F111を介して、DMAコントローラ102との間でデータ転送を行う。また、外部デバイスコントローラ103は外部デバイスI/F112を介して、外部デバイス107との間でデータ転送を行う。   FIG. 19 is a block diagram of a system including an information processing apparatus that communicates with the external device 107. The ASIC 100 that is an LSI having a function of communicating with the external device 107 includes a CPU 101, a DRAM controller 104, a DMA controller 102, an external device controller 103, and a CLOCK generator 105. (ASIC is an abbreviation for Application Specific Integrated Circuit, DMA is an abbreviation for Direct Memory Access.) Also, a CLOCK generator 105 as an oscillation means is a clock used by the CPU 101, the DMA controller 102, the external device controller 103, and the DRAM controller 104 (113_cpu_clock). dmac_clock 114, host_clock 115, dram_clock 116) are generated and supplied. The CPU 101 performs register access to the external device controller 103, the DMA controller 102, and the DRAM controller 104 via the CPU I / F 110. The DMA controller 102 performs data transfer with the DRAM controller 104 via the CPU I / F 110. The DRAM controller 104 performs data transfer with the DRAM 106 via the DRAM I / F 117. The external device controller 103 performs data transfer with the DMA controller 102 via the DMA I / F 111. Further, the external device controller 103 performs data transfer with the external device 107 via the external device I / F 112.

次に、外部デバイスコントローラについて説明する。図1は本発明に係る一実施例における外部デバイスコントローラ103の構成を示す。   Next, the external device controller will be described. FIG. 1 shows the configuration of an external device controller 103 according to an embodiment of the present invention.

外部デバイスコントローラ103はCLOCKジェネレータ105からホストクロック115(図中、host_clock)を受け取る。ホストクロック115は外部デバイスコントローラ103内の各ブロックに接続されており、外部デバイスコントローラ103の各ブロックは、このホストクロック115に同期して動作する。   The external device controller 103 receives a host clock 115 (host_clock in the figure) from the CLOCK generator 105. The host clock 115 is connected to each block in the external device controller 103, and each block of the external device controller 103 operates in synchronization with this host clock 115.

CPU I/F制御部201は、CPU101からのカードへ送信するデータやコマンド、レジスタアクセスを受付ける一方で、CPU101へカードから受信したコマンドやデータを送信する。DMA I/F制御部204は、外部デバイス107へ送信するデータをDMAコントローラ102から受付け、一方で外部デバイス107から受信するデータをDMAコントローラ102へ送信する。   The CPU I / F control unit 201 receives data, commands, and register access transmitted from the CPU 101 to the card, and transmits commands and data received from the card to the CPU 101. The DMA I / F control unit 204 receives data to be transmitted to the external device 107 from the DMA controller 102, while transmitting data to be received from the external device 107 to the DMA controller 102.

外部デバイスコントローラ103は、送信コマンドパラレルシリアル変換部125、受信コマンドシリアルパラレル変換部126を介して外部デバイス107とコマンドをやりとりする。まず、CPU I/F制御部201はCPU I/F110を介してCPU101から受け取ったパラレル形式の送信コマンド223(s_cmd)を送信コマンドパラレルシリアル変換部125(以降、送信コマンドPS変換部)に送信する。送信コマンドPS変換部125は、受け取ったパラレル形式の送信コマンド223をシリアル形式の送信コマンド224(s_cmd_data)に変換して、外部デバイス107に送信する。   The external device controller 103 exchanges commands with the external device 107 via the transmission command parallel / serial conversion unit 125 and the reception command serial / parallel conversion unit 126. First, the CPU I / F control unit 201 transmits a transmission command 223 (s_cmd) in parallel format received from the CPU 101 to the transmission command parallel / serial conversion unit 125 (hereinafter referred to as a transmission command PS conversion unit) via the CPU I / F 110. . The transmission command PS conversion unit 125 converts the received transmission command 223 in the parallel format into a transmission command 224 (s_cmd_data) in the serial format and transmits it to the external device 107.

外部デバイス107は受け取ったシリアル形式の送信コマンド224のデコードを行い、送信コマンドを検知する。さらに、外部デバイス107は送信コマンドの検知結果を示す検知情報をシリアル形式の受信コマンド226(r_cmd_data)として、外部デバイスコントローラ103に送信する。   The external device 107 decodes the received serial format transmission command 224 and detects the transmission command. Further, the external device 107 transmits detection information indicating the detection result of the transmission command to the external device controller 103 as a serial reception command 226 (r_cmd_data).

受信コマンドシリアルパラレル変換部126(以降、受信コマンドSP変換部)は外部デバイス107の出力するシリアル形式の受信コマンド226を受信し、パラレル形式の受信コマンド225(r_cmd_reg)に変換してCPU I/F制御部201、CPU I/F110を介してCPU101へ送信する。   The reception command serial / parallel conversion unit 126 (hereinafter, reception command SP conversion unit) receives the serial format reception command 226 output from the external device 107, converts it into a parallel format reception command 225 (r_cmd_reg), and converts it into a CPU I / F. It transmits to CPU101 via the control part 201 and CPU I / F110.

また、外部デバイスコントローラ103は、送信バッファ207、送信データパラレルシリアル変換部208、スキュー制御部211、受信データシリアルパラレル変換部210、受信バッファ209を介して外部デバイス107とデータをやりとりする。また、出力クロック244をデアサート(de−assert)して外部デバイス107からのデータを停止させるために、出力クロック制御部213と出力クロックゲーティング部214を有している。さらに外部デバイスコントローラ103は有効なサイクル調整を行うために、ゲーティングモード設定レジスタ605とゲーティングパターン設定レジスタ606を有している。   The external device controller 103 exchanges data with the external device 107 via the transmission buffer 207, the transmission data parallel / serial conversion unit 208, the skew control unit 211, the reception data serial / parallel conversion unit 210, and the reception buffer 209. In addition, an output clock control unit 213 and an output clock gating unit 214 are provided in order to de-assert the output clock 244 and stop data from the external device 107. Further, the external device controller 103 has a gating mode setting register 605 and a gating pattern setting register 606 in order to perform effective cycle adjustment.

また、外部デバイスコントローラ103はスキュー調整(補正)をするために、スキュー制御部211とスキュー設定レジスタ212とを有する。ここで、スキュー調整(補正)とは、受信データシリアルパラレル変換部210(以降、受信データSP変換部)に入力されるデータ又は外部デバイスコントローラ103(スキュー制御部211)のデータ取り込みタイミング(ラッチタイミング)を(ホストクロック115に対して)1サイクル以内の遅延によって調整(補正)することを示す。   In addition, the external device controller 103 includes a skew control unit 211 and a skew setting register 212 in order to perform skew adjustment (correction). Here, the skew adjustment (correction) refers to data input to the reception data serial / parallel conversion unit 210 (hereinafter referred to as reception data SP conversion unit) or data fetch timing (latch timing) of the external device controller 103 (skew control unit 211). ) (With respect to the host clock 115) is adjusted (corrected) by a delay within one cycle.

また、外部デバイスコントローラ103はサイクル調整(補正)をするために、サイクル設定レジスタ601、サイクル演算部602、サイクル制御部603および期待値設定レジスタ604を有する。ここで、サイクル調整(補正)とは、受信データSP変換部210の制御信号である受信イネーブル信号250(rcv_en)を(ホストクロック115に対して)サイクル単位で遅延させて受信データSP変換部210のデータ取り込み停止タイミング、データ取り込み再開タイミングを調整(補正)することを示す。   The external device controller 103 also includes a cycle setting register 601, a cycle calculation unit 602, a cycle control unit 603, and an expected value setting register 604 in order to perform cycle adjustment (correction). Here, the cycle adjustment (correction) refers to the reception data SP conversion unit 210 by delaying the reception enable signal 250 (rcv_en), which is a control signal of the reception data SP conversion unit 210, in cycle units (relative to the host clock 115). This indicates that the data acquisition stop timing and the data acquisition restart timing are adjusted (corrected).

スキュー設定レジスタ212はCPU I/F制御部201からスキュー設定値227(skew_reg)を受け取り保持する。スキュー制御部211は、スキュー設定レジスタ212からスキュー選択値238(skew_sel)を受け取り、設定値に応じて外部デバイス107から受け取ったシリアル形式の受信データ236(d2h_data、以降、単に受信データ236と略する場合もある)を遅延させる。   The skew setting register 212 receives and holds the skew setting value 227 (skew_reg) from the CPU I / F control unit 201. The skew control unit 211 receives the skew selection value 238 (skew_sel) from the skew setting register 212, and receives the serial format received data 236 (d2h_data, hereinafter simply referred to as received data 236) from the external device 107 according to the set value. Delay).

サイクル設定レジスタ601はCPU I/F制御部201からサイクル設定値256(cycle_reg)を受け取り保持する。期待値設定レジスタ604はCPU I/F制御部201から期待値設定値253(exp_reg)を受け取り保持する。期待値設定値253の例を図20に示す。実際のサイクル数との差が0の場合に受信されるパターンは真値(外部デバイス107の出力したパターン)と一致するが、外部デバイスコントローラ103の受信するパターンはキャリブレーションを行った際のサイクル設定値と正しいサイクル設定値との差(後述するサイクル遅延量に相当する)に応じて変化する。サイクル演算部602はサイクル設定レジスタ601からサイクル設定値255(cycle_val)と、期待値設定レジスタ604から期待値254(exp_pattern)を受け取り、望ましいサイクル設定値を演算する。具体的には、受信したキャリブレーションパターンと期待値とを比較して一致するかを判定する。一致した場合の期待値に対応したサイクル設定値と、正しいサイクル設定値の差を求める。その後、求めた差を、キャリブレーションを行った際のサイクル設定値に加算することで、正しいサイクル設定値を演算する。サイクル制御部603は、サイクル演算部602から正しいサイクル選択値249(cycle_sel)を受け取る。さらに、サイクル制御部603は出力クロック制御部213から出力クロックイネーブル信号243(クロック制御信号)を受け取る。   The cycle setting register 601 receives and holds the cycle setting value 256 (cycle_reg) from the CPU I / F control unit 201. The expected value setting register 604 receives and holds the expected value setting value 253 (exp_reg) from the CPU I / F control unit 201. An example of the expected value setting value 253 is shown in FIG. The pattern received when the difference from the actual number of cycles is 0 matches the true value (pattern output by the external device 107), but the pattern received by the external device controller 103 is the cycle when calibration is performed. It changes according to the difference between the set value and the correct cycle set value (corresponding to a cycle delay amount described later). The cycle calculation unit 602 receives the cycle setting value 255 (cycle_val) from the cycle setting register 601 and the expected value 254 (exp_pattern) from the expected value setting register 604, and calculates a desirable cycle setting value. Specifically, the received calibration pattern and the expected value are compared to determine whether they match. The difference between the cycle setting value corresponding to the expected value when the values match and the correct cycle setting value is obtained. Thereafter, the correct cycle setting value is calculated by adding the obtained difference to the cycle setting value at the time of calibration. The cycle control unit 603 receives the correct cycle selection value 249 (cycle_sel) from the cycle calculation unit 602. Further, the cycle control unit 603 receives an output clock enable signal 243 (clock control signal) from the output clock control unit 213.

〔データ受信処理〕
次に、外部デバイスコントローラ103が外部デバイス107からデータ(外部デバイスデータ)を受信する処理について説明する。
[Data reception processing]
Next, processing in which the external device controller 103 receives data (external device data) from the external device 107 will be described.

外部デバイスコントローラ103はデータ受信を開始する際に、まず前述したコマンド送受信処理によって、外部デバイス107からのデータ受信を指示するコマンドを外部デバイスコントローラ103は外部デバイス107に送信する。さらに、外部デバイス107はこの送信コマンドに対する返答を受信コマンドとして外部デバイスコントローラ103に送信し、さらにデータを送信する。   When the external device controller 103 starts data reception, the external device controller 103 first transmits a command for instructing data reception from the external device 107 to the external device 107 by the command transmission / reception process described above. Further, the external device 107 transmits a response to this transmission command to the external device controller 103 as a reception command, and further transmits data.

データの受信は以下のように行う。まず、外部デバイス107から送信されたシリアル形式の受信データ236(d2h_data)をスキュー制御部211が受信する。   Data reception is performed as follows. First, the skew control unit 211 receives serial format received data 236 (d2h_data) transmitted from the external device 107.

スキュー制御部211は、シリアル形式の受信データ236と、外部デバイスコントローラのクロック115(host_clk)との間のスキュー調整を行う(詳細は後述する)。スキュー調整後受信データ235は受信データSP変換部210に入力される。   The skew control unit 211 performs skew adjustment between the serial format received data 236 and the clock 115 (host_clk) of the external device controller (details will be described later). The reception data 235 after skew adjustment is input to the reception data SP conversion unit 210.

受信データSP変換部210は、出力クロック制御部213の出力する出力クロックイネーブル信号243を、後述するサイクル制御部603によって遅延させた受信イネーブル信号250(詳細は後述する)を受け取り可能な構成になっている。そして、受信イネーブル信号250がアサート(assert)されていれば、受信データSP変換部210は入力されたスキュー調整後受信データ235を受信し、パラレル形式の受信データ234(r_data_buf)へ変換する。   The reception data SP conversion unit 210 is configured to receive a reception enable signal 250 (details will be described later) obtained by delaying the output clock enable signal 243 output from the output clock control unit 213 by a cycle control unit 603 described later. ing. If the reception enable signal 250 is asserted, the reception data SP converter 210 receives the received skew-adjusted reception data 235 and converts it into parallel reception data 234 (r_data_buf).

受信データSP変換部210は、不図示のK段のシフトレジスタ(直列入力並列出力型フリップフロップ)を有しておりシリアル形式で受信するデータをKbitのパラレル形式のデータとして送出する構成になっている。従って、受信データSP変換部210は受信イネーブル信号がアサートされ続けていれば、Kサイクルに1回パラレル形式のデータを送出する。ここで、受信データSP変換部210が外部デバイス107からのデータ(外部デバイスデータ)を取り込むタイミングとは、(外部デバイス107側からみて)1段目(0bit)のフリップフロップのラッチタイミングに相当するといえる。   The reception data SP conversion unit 210 has a K-stage shift register (serial input parallel output type flip-flop) (not shown), and is configured to send data received in serial format as Kbit parallel format data. Yes. Therefore, if the reception enable signal continues to be asserted, the reception data SP conversion unit 210 transmits parallel data once in K cycles. Here, the timing at which the received data SP converter 210 captures data (external device data) from the external device 107 corresponds to the latch timing of the first-stage (0 bit) flip-flop (as viewed from the external device 107 side). I can say that.

保持手段としての受信バッファ209は受信バッファフル信号241によって、自身が現在保持しているデータ以上のデータを保持できないことを通知可能に構成されている。そこで、受信イネーブル信号250がアサートされ且つ受信バッファ209の受信バッファフル信号241(r_buff_full)がデアサートされていれば、受信データSP変換部210は受信バッファ209にパラレル形式の受信データ234を送信する。一方で、受信イネーブル信号250がアサートされていなければ、受信データSP変換部210はスキュー調整後受信データ235の受信を停止する。   The reception buffer 209 serving as a holding unit is configured to be able to notify that it cannot hold more data than the data currently held by the reception buffer full signal 241. Therefore, if the reception enable signal 250 is asserted and the reception buffer full signal 241 (r_buff_full) of the reception buffer 209 is deasserted, the reception data SP conversion unit 210 transmits the reception data 234 in parallel format to the reception buffer 209. On the other hand, if reception enable signal 250 is not asserted, reception data SP converter 210 stops receiving reception data 235 after skew adjustment.

受信データSP変換部210はデータの受信を開始すると、受信ステータス信号239(rcv_status)をアサートする。受信データSP変換部210は最終データを外部デバイス107から受信するまで受信ステータス信号239をアサートし続け、スキュー調整後受信データ235のエンドビットを検出したらデアサートする。受信データSP変換部210が受信バッファ209にパラレル形式の受信データ234を送信すると、受信バッファ209は受信バッファエンプティ−信号233(r_buff_emp)をデアサートする。   When reception data SP converter 210 starts receiving data, it asserts reception status signal 239 (rcv_status). The reception data SP conversion unit 210 continues to assert the reception status signal 239 until the final data is received from the external device 107, and deasserts it when the end bit of the reception data 235 after skew adjustment is detected. When the reception data SP converter 210 transmits the reception data 234 in parallel format to the reception buffer 209, the reception buffer 209 deasserts the reception buffer empty signal 233 (r_buff_emp).

受信バッファ209は受信データSP変換部210からパラレル形式に変換された受信データ234(r_data_buff)を受信し保持する。ここで、受信バッファ209がフルになった場合、受信バッファ209は出力クロック制御部213及び受信データSP変換部210へ受信バッファフル信号241をアサートする。一方で、受信バッファ209がエンプティ−になった場合には、受信バッファ209はDMA I/F制御部204に受信バッファエンプティ−信号233をアサートする。   The reception buffer 209 receives and holds the reception data 234 (r_data_buff) converted into the parallel format from the reception data SP conversion unit 210. Here, when the reception buffer 209 becomes full, the reception buffer 209 asserts the reception buffer full signal 241 to the output clock control unit 213 and the reception data SP conversion unit 210. On the other hand, when the reception buffer 209 becomes empty, the reception buffer 209 asserts a reception buffer empty signal 233 to the DMA I / F control unit 204.

DMA I/F制御部204は受信バッファ209の受信バッファエンプティ−信号233のデアサートを受けて、受信バッファ209に外部デバイス107からの受信データが残っていることを検出する。そして、受信バッファ209が保持しているパラレル形式の受信データ232(r_data_dma)を受信バッファ209から受信し、DMA I/F111へ送信する。ただし、受信バッファ209がエンプティ−になった場合には、データの受信を停止させる。データの受信を停止させないと、受信バッファ209のバッファアンダーランが発生することがある。従って、受信バッファ209の受信バッファエンプティ−信号233がアサートされている場合には、DMA I/F制御部204はパラレル形式の受信データ232の受信を停止し、DMA I/F111へのデータの鉦送信を停止する。   The DMA I / F control unit 204 receives the deassertion of the reception buffer empty signal 233 of the reception buffer 209 and detects that the reception data from the external device 107 remains in the reception buffer 209. Then, the reception data 232 (r_data_dma) in parallel format held in the reception buffer 209 is received from the reception buffer 209 and transmitted to the DMA I / F 111. However, when the reception buffer 209 becomes empty, reception of data is stopped. If data reception is not stopped, a buffer underrun of the reception buffer 209 may occur. Accordingly, when the reception buffer empty signal 233 of the reception buffer 209 is asserted, the DMA I / F control unit 204 stops receiving the parallel-format reception data 232, and the data input to the DMA I / F 111 is stopped. Stop sending.

受信バッファ209の受信バッファエンプティ−信号233がデアサートされたら、DMA I/F制御部204はパラレル形式の受信データ232の受信を再開し、DMA I/F111への受信データの送信を再開する。   When the reception buffer empty signal 233 of the reception buffer 209 is deasserted, the DMA I / F control unit 204 resumes reception of the parallel format reception data 232 and resumes transmission of the reception data to the DMA I / F 111.

一方で、受信バッファ209がフルの状態で新たな受信バッファへの書込みが発生する場合には、受信バッファ209のバッファオーバーランが発生するので、データの受信を停止する。受信データSP変換部210がデータ受信中であり、且つ、受信バッファ209がフルの場合に、出力クロック制御部213は出力クロックイネーブル信号243をデアサートする。   On the other hand, when a write to a new reception buffer occurs when the reception buffer 209 is full, a buffer overrun of the reception buffer 209 occurs, so that data reception is stopped. When the reception data SP conversion unit 210 is receiving data and the reception buffer 209 is full, the output clock control unit 213 deasserts the output clock enable signal 243.

受信データSP変換部210が、データ受信中であることは、受信ステータス信号239のアサートによって検出される。受信データSP変換部210は最初の受信データを受信すると受信ステータス信号239をアサートし、最終データを受信するまでアサートし続け、最終データを受信するとデアサートする。そのため、受信データ待ちの状態(スタートビット検出待ちの状態)では、出力クロックイネーブル信号243はデアサートしない。   That the reception data SP conversion unit 210 is receiving data is detected by asserting the reception status signal 239. The reception data SP converter 210 asserts the reception status signal 239 when the first reception data is received, continues to assert until the final data is received, and deasserts when the final data is received. For this reason, the output clock enable signal 243 is not deasserted while waiting for received data (waiting for the start bit detection).

外部デバイス107は出力クロック244(dev_clk)のデアサートを受けて、受信データ237(d2h_data’)の送信を停止する。データ受信は、受信バッファ209の受信バッファフル信号241(r_buff_full)がデアサートされるまで停止し続ける。受信バッファ209の受信バッファフル信号241(r_buff_full)がデアサートされると、受信データSP変換部210はデータの受信を再開する。そして、出力クロックゲーティング部214は出力クロック244のゲーティングを解除し、外部デバイス107は受信データ237の送信を再開する。   The external device 107 receives the deassertion of the output clock 244 (dev_clk), and stops transmission of the reception data 237 (d2h_data ′). Data reception continues to stop until the reception buffer full signal 241 (r_buff_full) of the reception buffer 209 is deasserted. When the reception buffer full signal 241 (r_buff_full) of the reception buffer 209 is deasserted, the reception data SP conversion unit 210 resumes data reception. Then, the output clock gating unit 214 cancels the gating of the output clock 244, and the external device 107 resumes transmission of the reception data 237.

〔スキュー補正構成〕
次に、スキュー補正をするための構成の詳細を説明する。
[Deskew configuration]
Next, details of a configuration for performing skew correction will be described.

図2(a)はスキュー制御部211のブロック図である。スキュー制御部211はCLOCKジェネレータ105(図19)からホストクロック115(host_clk)を受け取る。ホストクロック115は入出力が直列に接続されているN1個の遅延素子216(第1遅延手段)によって遅延させられる。各遅延素子216の出力は遅延選択部217に入力され、スキュー選択値238(skew_sel)の値に基づいて出力に用いる遅延素子216が選択される。   FIG. 2A is a block diagram of the skew control unit 211. The skew control unit 211 receives the host clock 115 (host_clk) from the CLOCK generator 105 (FIG. 19). The host clock 115 is delayed by N1 delay elements 216 (first delay means) whose inputs and outputs are connected in series. The output of each delay element 216 is input to the delay selection unit 217, and the delay element 216 used for output is selected based on the value of the skew selection value 238 (skew_sel).

選択された遅延付きクロック信号246(clk_with_skew)はフリップフロップ218へクロックとして入力される。一方、外部デバイスから送信されるシリアル形式の受信データ236(d2h_data)はフリップフロップ218が受信し、フリップフロップ218によって遅延付きクロック信号246(clk_with_skew)に同期させられる。同期させたシリアル形式の受信データは、スキュー調整後のシリアル形式の受信データ235(d2h_data_1d、以降スキュー調整後受信データ235と称す)として、スキュー制御部211が受信データSP変換部210に出力する。   The selected delayed clock signal 246 (clk_with_skew) is input to the flip-flop 218 as a clock. On the other hand, the serial format received data 236 (d2h_data) transmitted from the external device is received by the flip-flop 218, and is synchronized with the delayed clock signal 246 (clk_with_skew) by the flip-flop 218. The synchronized serial format reception data is output to the reception data SP conversion unit 210 by the skew control unit 211 as serial format reception data 235 after skew adjustment (d2h_data_1d, hereinafter referred to as reception data 235 after skew adjustment).

なお、スキュー制御部211のN1個の遅延素子は、好ましくは(ホストクロック115の)1クロックをN1等分した遅延、もしくはそれより少し小さい遅延を生じさせる。   The N1 delay elements of the skew control unit 211 preferably cause a delay obtained by dividing one clock (of the host clock 115) into N1 equal parts or a little smaller than that.

図2(b)はスキュー設定値を0,1,2とした場合に、スキュー制御部211が扱う信号のタイミングチャートを示す。図2(b)の各信号を図1および図2(a)の符号と対応させると、上から順にhost_clk115、dh2_data236、clk_with_skew246(skew_sel238=0,1,2)、d2h_data_1d235(skew_sel238=0,1,2)となる。   FIG. 2B is a timing chart of signals handled by the skew control unit 211 when the skew setting values are 0, 1, and 2. When each signal in FIG. 2B is associated with the codes in FIG. 1 and FIG. 2).

図2(b)のタイミングチャートでは、スキュー選択値238(skew_sel)が0と1の時には、 clk_with_skew246の立ち上がりでd2h_data236が不定である。従って、フリップフロップ218に取り込まれるデータd2h_data_1d235も不定になってしまい、データの取り込みが正常に出来てない。一方、スキュー選択値238が2の時には、clk_with_skew246の立ち上がりでd2h_data236が安定したデータを出力している為、フリップフロップ218に取り込まれるデータd2h_data_1d235も正常である。スキュー選択値238の調整は、後述するキャリブレーションシーケンスによって行われる。   In the timing chart of FIG. 2B, when the skew selection value 238 (skew_sel) is 0 and 1, d2h_data 236 is indefinite at the rise of clk_with_skew 246. Therefore, the data d2h_data_1d235 fetched into the flip-flop 218 is also undefined, and the data fetching cannot be performed normally. On the other hand, when the skew selection value 238 is 2, since d2h_data 236 outputs stable data at the rise of clk_with_skew 246, the data d2h_data_1d235 fetched into the flip-flop 218 is also normal. Adjustment of the skew selection value 238 is performed by a calibration sequence described later.

〔サイクル補正構成〕
次に、サイクル遅延を補正するための構成の詳細を説明する。
[Cycle correction configuration]
Next, details of a configuration for correcting the cycle delay will be described.

図3(a)はサイクル制御部603の概略構成を示す。サイクル制御部603は入出力が直列に接続されているN2個のフリップフロップ701(第2遅延手段)を有し、フリップフロップ701は出力クロックイネーブル信号243を夫々1クロックの遅延を生じさせる。サイクル制御部603は、入力された出力クロックイネーブル信号243をサイクル設定値256の示すサイクル数だけフリップフロップ701によって遅延させる。遅延させた出力クロックイネーブル信号243は、受信イネーブル信号250として、受信データSP変換部210に入力されるようにしている。   FIG. 3A shows a schematic configuration of the cycle control unit 603. The cycle control unit 603 has N2 flip-flops 701 (second delay means) whose inputs and outputs are connected in series. The flip-flop 701 causes the output clock enable signal 243 to be delayed by one clock. The cycle control unit 603 delays the input output clock enable signal 243 by the flip-flop 701 by the number of cycles indicated by the cycle setting value 256. The delayed output clock enable signal 243 is input to the reception data SP conversion unit 210 as the reception enable signal 250.

図3(b)はサイクル制御部603が扱う各種信号の波形を示す。図3(b)の各信号を図1の符号と対応させて説明すると、上から順にhost_clk115、dev_clk_en243、rcv_en250となる。サイクル制御部603は、入力される出力クロックイネーブル信号243をサイクル選択値249(cycle_sel=0,1,2,3)の値に応じて遅延させ、受信イネーブル信号250として出力する。サイクル選択値249の示す値を2とすると、サイクル制御部603はセレクタ702によって2つのフリップフロップ701を通過した出力を選択することで、出力クロックイネーブル信号243を2サイクル遅延させて、受信イネーブル信号250として出力する。図3の構成ではN2個のフリップフロップ701があるので、1サイクルの整数倍(最大でN2サイクル)だけ出力クロックイネーブル信号243を遅延させることができる。   FIG. 3B shows waveforms of various signals handled by the cycle control unit 603. When the respective signals in FIG. 3B are described in correspondence with the reference numerals in FIG. 1, they are host_clk 115, dev_clk_en 243, and rcv_en 250 in order from the top. The cycle control unit 603 delays the input output clock enable signal 243 according to the value of the cycle selection value 249 (cycle_sel = 0, 1, 2, 3), and outputs it as a reception enable signal 250. When the value indicated by the cycle selection value 249 is 2, the cycle control unit 603 uses the selector 702 to select the output that has passed through the two flip-flops 701, thereby delaying the output clock enable signal 243 by two cycles and receiving the reception enable signal. It outputs as 250. Since there are N2 flip-flops 701 in the configuration of FIG. 3, the output clock enable signal 243 can be delayed by an integral multiple of one cycle (up to N2 cycles).

本実施例で受信データSP変換部210は、受信イネーブル信号250のデアサートによってデータ取り込み停止タイミングを判断し、受信イネーブル信号250を再びアサートした際にデータ取り込み再開タイミングを判断する。   In this embodiment, the reception data SP conversion unit 210 determines the data capture stop timing by deasserting the reception enable signal 250, and determines the data capture restart timing when the reception enable signal 250 is reasserted.

ゲーティングモード設定レジスタ605はCPU I/F制御部201から、ゲーティングモードレジスタ設定値(247 gate_reg)を受け取り、保持する。また、ゲーティングモード設定レジスタ605は、受け取ったゲーティングモードレジスタ設定値247をゲーティングモード設定値(251 gate_mode)として出力クロック制御部213に出力する。   The gating mode setting register 605 receives and holds the gating mode register setting value (247 gate_reg) from the CPU I / F control unit 201. The gating mode setting register 605 outputs the received gating mode register setting value 247 to the output clock control unit 213 as the gating mode setting value (251 gate_mode).

ここで、本実施例の外部デバイスコントローラ103のゲーティングモードには、キャリブレーションモードと通常データ転送モードの二種類のモードがある。ゲーティングパターン設定レジスタ606はCPU I/F制御部201からゲーティングパターンレジスタ設定値(248 pattern_reg)を受け取り、保持する。また、受け取ったゲーティングパターンレジスタ設定値248をゲーティングパターン設定値(252 gate_pattern)として出力クロック制御部213に出力する。   Here, the gating mode of the external device controller 103 of the present embodiment includes two types of modes, a calibration mode and a normal data transfer mode. The gating pattern setting register 606 receives the gating pattern register setting value (248 pattern_reg) from the CPU I / F control unit 201 and holds it. The received gating pattern register setting value 248 is output to the output clock control unit 213 as a gating pattern setting value (252 gate_pattern).

ゲーティングパターンレジスタ設定値248は、クロックゲーティングパターンを生成するための情報(ゲーティング情報)であり、どのようにクロックゲーティングするかを示す。(詳細には図5に後述するL,N,S,Eを示す情報である。)
図4(b)は本実施例で選択手段として機能する出力クロック制御部213の構成を示す。第一クロック制御部221(第一制御部)は、受信バッファフル信号241と受信ステータス信号239とを受信して、特許文献1や参考例(図21参照)と同様のクロック制御を行う(第三クロック制御モード)。一方で、第二クロック制御部222(第二制御部)は、受信ステータス信号239とゲーティングパターン252に基づいて、後述するクロック制御を行う(第一クロック制御モード)。さらに、第三クロック制御部223(第三制御部)は外部デバイスコントローラのホストクロック115を停止させずにそのまま出力するように制御する出力クロックイネーブル信号243を生成するように制御する(第二クロック制御モード)。
The gating pattern register setting value 248 is information (gating information) for generating a clock gating pattern, and indicates how to perform clock gating. (Details are information indicating L, N, S, and E described later in FIG. 5.)
FIG. 4B shows the configuration of the output clock control unit 213 that functions as selection means in this embodiment. The first clock control unit 221 (first control unit) receives the reception buffer full signal 241 and the reception status signal 239, and performs clock control similar to that of Patent Document 1 and the reference example (see FIG. 21) (first operation). Three clock control mode). On the other hand, the second clock control unit 222 (second control unit) performs clock control to be described later based on the reception status signal 239 and the gating pattern 252 (first clock control mode). Further, the third clock control unit 223 (third control unit) controls to generate an output clock enable signal 243 that controls to output the host clock 115 of the external device controller without stopping (second clock). Control mode).

まず、受信データSP変換部210が受信データ236の何ビット目まで受信したか等の受信状態を示す情報を受信ステータス信号239に付加して出力クロック制御部213へ送信する。第二のクロック制御部222は受信ステータス信号239に付加されている受信情報に基づいて、受信データSP変換部210が何ビット目まで受信したか判断する。そして、ゲーティングパターン252がゲーティングするように示す条件に当てはまっていなければ出力クロックイネーブル信号243を生成する。   First, information indicating a reception state such as how many bits of the reception data 236 the reception data SP conversion unit 210 has received is added to the reception status signal 239 and transmitted to the output clock control unit 213. Based on the reception information added to the reception status signal 239, the second clock control unit 222 determines how many bits the reception data SP conversion unit 210 has received. If the condition that the gating pattern 252 indicates to perform gating is not satisfied, the output clock enable signal 243 is generated.

クロック制御選択部220はセレクタであり、ゲーティングモード設定レジスタからのゲーティングモード251が示す設定値に応じて、第一のクロック制御部221、第二のクロック制御部222および第三のクロック制御部223から1つを選択的に機能させる。   The clock control selection unit 220 is a selector, and the first clock control unit 221, the second clock control unit 222, and the third clock control according to the set value indicated by the gating mode 251 from the gating mode setting register. One of the units 223 is selectively functioned.

〔コマンド・データフォーマット〕
ここで、外部デバイスコントローラ103と外部デバイス107との間でコマンドやデータの授受に用いる信号のフォーマットについて説明する。
[Command data format]
Here, a format of a signal used for exchange of commands and data between the external device controller 103 and the external device 107 will be described.

外部デバイスコントローラ103と外部デバイス107は、図21(b)に示すフォーマットでシリアル形式のコマンド、又は、シリアル形式のデータを互いにやりとりする。なお、以下の説明ではパラレル形式のコマンド、パラレル形式のデータも同様のフォーマットであるとする。   The external device controller 103 and the external device 107 exchange serial commands or serial data with the format shown in FIG. In the following description, it is assumed that parallel commands and parallel data have the same format.

まず、シリアル形式の送信コマンド224とシリアル形式の受信コマンド226の送受信時に扱う信号について、図21(b)に基づいて説明する。送信コマンド224は1ビットのスタートビットとNビットの送信コマンドとMビットのCRC(巡回冗長検査信号)と1ビットのエンドビットによって構成されている。送信コマンドPS変換部125は、パラレル形式の送信コマンド223の受信を検知すると、まず、1ビットのスタートビットを送信する。続いて、Nビットのパラレル形式の送信コマンド223をシリアル形式の送信コマンド224に変換して送信する。送信コマンドPS変換部125は、シリアル形式の送信コマンドの送信と共にCRCの演算を行う。そして、シリアル形式の送信コマンド224を送信した後に、演算されたMビットのCRCを送信する。最後に1ビットのエンドビットの送信を行い、コマンド送信を完了する。   First, signals handled during transmission / reception of the serial transmission command 224 and the serial reception command 226 will be described with reference to FIG. The transmission command 224 includes a 1-bit start bit, an N-bit transmission command, an M-bit CRC (cyclic redundancy check signal), and a 1-bit end bit. When the transmission command PS conversion unit 125 detects reception of the transmission command 223 in parallel format, it first transmits a start bit of 1 bit. Subsequently, the N-bit parallel transmission command 223 is converted into a serial transmission command 224 and transmitted. The transmission command PS conversion unit 125 performs CRC calculation together with transmission of a serial transmission command. Then, after transmitting the serial transmission command 224, the calculated M-bit CRC is transmitted. Finally, 1 end bit is transmitted to complete the command transmission.

シリアル形式の受信コマンド226のフォーマットも図21(b)に示すとおりであるが、受信コマンドと送信コマンドとが一致する必要はないので、受信コマンドと送信コマンドとでコマンド長やCRCの長さは異なっていても構わない。   The format of the serial reception command 226 is also as shown in FIG. 21B. However, since the reception command and the transmission command do not need to match, the command length and CRC length of the reception command and the transmission command are as follows. It can be different.

受信コマンドSP変換部126は1ビットのスタートビットを検出し、コマンドの受信を開始する。続いて、Nビットのシリアル形式の受信コマンドを受信し、パラレル形式の受信コマンドに変換する。受信コマンドSP変換部126はシリアル形式の受信コマンドの受信と共にCRCの演算を行う。そして、シリアル形式の受信コマンドを受信した後に、演算したCRCと送付されるMビットのCRCとの比較(巡回冗長検査)を行い、CRCエラーを検出する。最後に、1ビットのエンドビットの受信を行い、コマンド受信を完了する。   The reception command SP conversion unit 126 detects a 1-bit start bit and starts receiving a command. Subsequently, an N-bit serial format reception command is received and converted into a parallel format reception command. The reception command SP conversion unit 126 performs CRC calculation together with reception of a serial reception command. After receiving the reception command in the serial format, the calculated CRC is compared with the transmitted M-bit CRC (cyclic redundancy check) to detect a CRC error. Finally, 1 end bit is received and command reception is completed.

送信データPS変換部208は、送信バッファ207からパラレル形式の送信データ230(s_data_buf)を受け取ると、送信コマンドPS変換部125と同様にパラレル形式の送信データをシリアル形式の送信データ231に変換して外部デバイス107へ送信する。ただし、送信データの長さやCRCの長さは、送信コマンドと異なっていても構わない。   When the transmission data PS conversion unit 208 receives the parallel format transmission data 230 (s_data_buf) from the transmission buffer 207, the transmission data PS conversion unit 208 converts the parallel format transmission data into the serial format transmission data 231 in the same manner as the transmission command PS conversion unit 125. Transmit to the external device 107. However, the transmission data length and CRC length may be different from the transmission command.

受信データのフォーマットは図21(b)に示すとおりである。ただし、受信データの長さやCRCの長さは、送信コマンドと異なっていても構わない。   The format of the received data is as shown in FIG. However, the length of the received data and the length of the CRC may be different from the transmission command.

受信データSP変換部210は、1ビットのスタートビットを検出するとデータの受信を開始する。そして、受信コマンドSP変換部126と同様に処理してシリアル形式のスキュー調整後受信データ235をパラレル形式の受信データ234に変換し受信バッファ209へ送信する。送信データPS変換部208と受信データSP変換部210のCRCの演算処理、比較処理は送信コマンドPS変換部と受信コマンドSP変換部の処理と同様であるので省略する。   The reception data SP converter 210 starts receiving data when it detects one start bit. Then, processing is performed in the same manner as the reception command SP conversion unit 126 to convert the reception data 235 after serial skew adjustment into parallel reception data 234 and transmit it to the reception buffer 209. The CRC calculation processing and comparison processing of the transmission data PS conversion unit 208 and the reception data SP conversion unit 210 are the same as the processing of the transmission command PS conversion unit and the reception command SP conversion unit, and therefore will be omitted.

〔キャリブレーション〕
次に、外部デバイスコントローラ103が正しくデータを取り込めるように、各種パラメータ(スキュー設定値、サイクル設定値)を調節するキャリブレーション処理について説明する。
〔Calibration〕
Next, a calibration process for adjusting various parameters (skew setting value, cycle setting value) so that the external device controller 103 can correctly capture data will be described.

まず、図21に示す構成を有する参考例の外部デバイスコントローラ103におけるキャリブレーションフローを、図22を用いて説明する。   First, a calibration flow in the external device controller 103 of the reference example having the configuration shown in FIG. 21 will be described with reference to FIG.

まず、ステップS101で外部デバイスコントローラ103はCPU101からキャリブレーション開始を指示されると、外部デバイス107にキャリブレーションパターンを出力させるための送信コマンドを外部デバイス107に送信する。次に、外部デバイス107はキャリブレーション用の送信コマンドに対する受信コマンドを外部デバイスコントローラ103に送信する。さらに、外部デバイス107は予め決められたキャリブレーションパターンをシリアル形式の受信データ237の代わりに外部デバイスコントローラ103に送信する。外部デバイスコントローラ103は、前述したデータ受信フローに従って、キャリブレーションパターンの受信を行う。受信されたキャリブレーションパターンは、DMAコントローラ102、DRAMコントローラ104を経由して、DRAM106に書き込まれる。   First, in step S <b> 101, when the external device controller 103 is instructed to start calibration by the CPU 101, the external device controller 103 transmits a transmission command for causing the external device 107 to output a calibration pattern to the external device 107. Next, the external device 107 transmits a reception command for the calibration transmission command to the external device controller 103. Further, the external device 107 transmits a predetermined calibration pattern to the external device controller 103 instead of the serial received data 237. The external device controller 103 receives the calibration pattern according to the data reception flow described above. The received calibration pattern is written into the DRAM 106 via the DMA controller 102 and the DRAM controller 104.

全てのキャリブレーションパターンがDRAMに106に書き込まれた後に、CPU101はステップS102において、予め期待値としてDRAM等に記憶しているキャリブレーションパターンと、実際に受信されたキャリブレーションパターンとを比較する。両者は一致しているとCPU101が判定した場合には、スキュー設定が正しいと考えられるために、キャリブレーションシーケンスを完了させる。一方、両者が一致しない場合には、スキュー設定が誤っていると考えられる。そこで、CPU101はステップS103において、異なるスキュー設定値227を外部デバイスコントローラ103に設定し、再度キャリブレーションシーケンス(S101、S102)を行う。以上の処理をキャリブレーションが成功するまで繰り返し行う。   After all the calibration patterns are written to the DRAM 106, the CPU 101 compares the calibration pattern stored in advance in the DRAM or the like as an expected value with the actually received calibration pattern in step S102. If the CPU 101 determines that they match, the skew setting is considered correct, and the calibration sequence is completed. On the other hand, if the two do not match, it is considered that the skew setting is incorrect. In step S103, the CPU 101 sets a different skew setting value 227 in the external device controller 103, and performs the calibration sequence (S101, S102) again. The above processing is repeated until calibration is successful.

なおここでは、キャリブレーションパターンは外部デバイス107側に予め記憶されており、外部デバイス107はキャリブレ−ションを開始するコマンドを受信すると記憶しているキャリブレーションパターンを送信するものとする。   Here, it is assumed that the calibration pattern is stored in advance on the external device 107 side, and the external device 107 transmits the stored calibration pattern when receiving a command to start calibration.

ここで、スキュー調整が完了した際にステップS101で扱う信号の波形について説明する。図23は参考例における、受信データ236に1サイクル以上の遅延がある場合の、キャリブレーションシーケンス中の波形を示す。(ここで、受信データ236に1サイクル以上の遅延がある場合とは、外部デバイスコントローラ103と外部デバイス107との間で1/2サイクル以上の配線遅延が生じている場合に相当する。)図23の各信号を図21および図2の符号と対応させて説明すると、上から順にdev_clk244、dev_clk_en243、d2h_data236、clk_with_skew246、d2h_data_1d235、host_clk115、r_data_buff234、dev_clk’245、d2h_data’237となる。なお、取り込みクロックと取り込んだデータのタイミングに差があるが、これは実際の回路でクロックのエッジを基準にして取り込む場合に、データがフリップフロップに取り込まれるまでの遅延を示しており、本発明の課題と直接関係が無い箇所で生ずる遅延であり、その遅延量も小さい。従って、受信データが1サイクル以上遅延する際に、この遅延は無視(除外)してもよい。また、図23についてキャリブレーションの後半の波形は一部省略している。   Here, the waveform of the signal handled in step S101 when the skew adjustment is completed will be described. FIG. 23 shows waveforms during the calibration sequence when the received data 236 has a delay of one cycle or more in the reference example. (Here, the case where the received data 236 has a delay of one cycle or more corresponds to the case where a wiring delay of ½ cycle or more occurs between the external device controller 103 and the external device 107.) 21 in correspondence with the reference numerals in FIG. 21 and FIG. Note that there is a difference between the timing of the fetched clock and the fetched data, but this indicates a delay until the data is fetched into the flip-flop when fetching with reference to the clock edge in an actual circuit. This is a delay that occurs at a location that is not directly related to the above problem, and the delay amount is also small. Therefore, this delay may be ignored (excluded) when the received data is delayed by one cycle or more. Further, in FIG. 23, a part of the waveform in the latter half of the calibration is omitted.

図23の例では、外部デバイス107に入力されるクロック245(dev_clk’)が外部デバイスコントローラ103の出力する出力クロック244(dev_clk)に対し1/2サイクルだけ遅延している。また、外部デバイスコントローラの受信する受信データ236(d2h_data)が、外部デバイスの送信する受信データ237(d2h_data’)に対して、1/2サイクルだけ遅延している。   In the example of FIG. 23, the clock 245 (dev_clk ′) input to the external device 107 is delayed by ½ cycle with respect to the output clock 244 (dev_clk) output from the external device controller 103. Further, the reception data 236 (d2h_data) received by the external device controller is delayed by ½ cycle with respect to the reception data 237 (d2h_data ′) transmitted by the external device.

これらの遅延は、外部デバイス107と外部デバイスコントローラ103間の基板上の往復遅延と外部デバイス107内での出力遅延や外部デバイスコントローラ103内の遅延などの影響によるものと考えられる。その結果、図23の例では、外部デバイスコントローラ103の出力クロック244に対して、外部デバイス107が応答出力するデータを外部デバイスコントローラ103が取り込む受信データ236に1サイクルの遅延がついていることになる。   These delays are considered to be due to the influence of the round trip delay on the substrate between the external device 107 and the external device controller 103, the output delay in the external device 107, the delay in the external device controller 103, and the like. As a result, in the example of FIG. 23, the received data 236 that the external device controller 103 takes in the data output by the external device 107 in response to the output clock 244 of the external device controller 103 is delayed by one cycle. .

キャリブレーションパターンは通常、受信バッファ209のサイズよりも十分小さい。そのため、参考例における外部デバイスコントローラ103はキャリブレーション中に出力クロックが停止しない。(そもそも、キャリブレーションパターンが受信バッファ209のサイズよりも大きかったとしても、出力クロックが停止するかどうかは、DMAコントローラ102の転送レートなどに依存する。従って、キャリブレーション中に出力クロック244が停止する状況は発生し難い。)
図23を参照すると、r_data_buff(0)234と入力されたシリアル形式の受信データd2h_data236との内容が一致しているので、キャリブレーション処理は完了してしまう。しかし、図24に示すように実際にデータを受信する際にはデータの取りこぼしなどが発生する。
The calibration pattern is usually sufficiently smaller than the size of the reception buffer 209. For this reason, the external device controller 103 in the reference example does not stop the output clock during calibration. (Even if the calibration pattern is larger than the size of the reception buffer 209, whether the output clock stops depends on the transfer rate of the DMA controller 102. Therefore, the output clock 244 stops during calibration. It is difficult to occur.)
Referring to FIG. 23, since the contents of r_data_buff (0) 234 and the received serial format received data d2h_data 236 match, the calibration process is completed. However, when data is actually received as shown in FIG. 24, data is lost.

図24のタイミングチャートは、受信データ236に図23と同様に1サイクルの遅延がある場合に、実際に外部デバイスコントローラ103が外部デバイス107からデータを受信している際の信号の波形を示している。各信号における図21や図2との対応関係は図23と同様なので説明を省略する。   The timing chart of FIG. 24 shows the waveform of a signal when the external device controller 103 is actually receiving data from the external device 107 when the received data 236 has a one-cycle delay as in FIG. Yes. The correspondence of each signal with FIG. 21 and FIG. 2 is the same as FIG.

図24では、シリアル形式の受信データ236の“D0”を受信した時点で、受信バッファ209が受信バッファフル信号241(図24では不図示)をアサートされる状況が発生している。そして、受信バッファフル信号241のアサートに伴って、出力クロック制御部213は出力クロックイネーブル信号243(dev_clk_en)をデアサートする。出力クロックゲーティング部214は出力クロックイネーブル信号243のデアサートを受けて、出力クロック244をゲーティングする。出力クロックゲーティング部214によって出力クロック244をゲーティングしているにも係らず、外部デバイス107からシリアル形式の受信データ“D1”と“D2”が送信されてしまっている。   In FIG. 24, when “D0” of serial format received data 236 is received, a situation occurs in which the reception buffer 209 is asserted with a reception buffer full signal 241 (not shown in FIG. 24). In response to the assertion of the reception buffer full signal 241, the output clock control unit 213 deasserts the output clock enable signal 243 (dev_clk_en). The output clock gating unit 214 gates the output clock 244 in response to the deassertion of the output clock enable signal 243. Although the output clock 244 is gated by the output clock gating unit 214, the serial format received data “D 1” and “D 2” have been transmitted from the external device 107.

元々、受信バッファ209に入るデータ(受信バッファフル信号241を発行する時の基準となる)が外部デバイス107から外部デバイスコントローラ103に入る時点で1/2サイクル遅延している。そして、受信バッファフル信号241がアサートされた後に、出力クロック244がゲーティングされるまでの遅延に加えて、出力クロック244がゲーティングされたことを外部デバイス107が認識できるまでの1/2サイクルの遅延がある。結果的に、外部デバイスコントローラ103はデータ送信の停止を要求していることを外部デバイス107が認識するには、これらの遅延の総和だけ遅れるため、“D1”、“D2”が送信されてしまう。   Originally, the data entering the reception buffer 209 (which is a reference when issuing the reception buffer full signal 241) is delayed by a half cycle when entering the external device controller 103 from the external device 107. Then, in addition to the delay until the output clock 244 is gated after the reception buffer full signal 241 is asserted, ½ cycle until the external device 107 can recognize that the output clock 244 has been gated. There is a delay. As a result, in order for the external device 107 to recognize that the external device controller 103 is requesting to stop data transmission, it is delayed by the sum of these delays, so that “D1” and “D2” are transmitted. .

受信データSP変換部210は、出力クロックイネーブル信号243のデアサートを受けて、すぐにシリアル形式の受信データ236の受信を停止する。これによって、受信データSP変換部210はシリアル形式の受信データ“D1”を受信できなくなってしまう。(図に示すように、受信データSP変換部210が受信し、受信バッファ209に送信するパラレル形式の受信データ234には“D1”が含まれていない。)
また、受信バッファ209が受信バッファフル信号241をデアサートされてから、出力クロックイネーブル信号243がアサートされ、出力クロック244のゲーティングが解除される。出力クロック244は立ち下がりを基準にゲーティングしたので、解除されてから1/2経ってから立ち上がる。しかし、出力クロック244のゲーティングが解除されているにも係らず、外部デバイス107と外部デバイスコントローラ間の遅延によって外部デバイス107からシリアル形式の受信データ“D2”が送信され続けてしまう。
The reception data SP converter 210 receives the deassertion of the output clock enable signal 243 and immediately stops receiving the serial format reception data 236. As a result, the reception data SP conversion unit 210 cannot receive the serial reception data “D1”. (As shown in the figure, “D1” is not included in the parallel received data 234 received by the received data SP converter 210 and transmitted to the receive buffer 209.)
Further, after the reception buffer 209 deasserts the reception buffer full signal 241, the output clock enable signal 243 is asserted, and the gating of the output clock 244 is released. Since the output clock 244 is gated on the basis of the fall, the output clock 244 rises after 1/2 of the release. However, although the gating of the output clock 244 is canceled, the serial format received data “D2” continues to be transmitted from the external device 107 due to the delay between the external device 107 and the external device controller.

一方で、受信データSP変換部210は、出力クロックイネーブル信号243のアサートを受けて、すぐにシリアル形式の受信データの受信を再開する。そのため、受信データSP変換部210はシリアル形式の受信データ“D2”を2回受信してしまう。パラレル形式の受信データ234を見るとD2が2回受信されてしまっていることが分かる。   On the other hand, upon receipt of the output clock enable signal 243, the reception data SP conversion unit 210 immediately resumes reception of serial format reception data. Therefore, the reception data SP converter 210 receives the serial reception data “D2” twice. Looking at the received data 234 in parallel format, it can be seen that D2 has been received twice.

このように、外部デバイスコントローラ103と外部デバイス107との間で往復して1サイクル以上の遅延がある場合には、参考例の構成ではキャリブレーションが完了しても(図23)、実際のデータ受信は失敗してしまうことがある(図24)。   As described above, when there is a delay of one cycle or more by reciprocating between the external device controller 103 and the external device 107, even if calibration is completed in the configuration of the reference example (FIG. 23), the actual data Reception may fail (FIG. 24).

以上のことから、参考例の外部デバイスコントローラ103では、キャリブレーションシーケンスで受信データ236に発生する1サイクル以上の遅延の有無が検出できない場合があるということが分かる。   From the above, it can be seen that the external device controller 103 of the reference example may not be able to detect the presence or absence of a delay of one cycle or more generated in the reception data 236 in the calibration sequence.

なお、図24は説明の為に受信バッファフル信号241がアサートされてデアサートされるまでの期間が極端に短く受信バッファが極端に小さい前提になっているが、これは説明を簡単にするためである。   For the sake of explanation, FIG. 24 is based on the premise that the period until the reception buffer full signal 241 is asserted and deasserted is extremely short, and the reception buffer is extremely small. is there.

次に、本実施例のキャリブレーションフローを図4(a)を用いて説明する。本実施例のキャリブレーションフローでは、まず、第三クロック制御部223を機能させながらスキュー調整を行い、次に第二クロック制御部222を機能させながらサイクル調整を行う。なお、キャリブレーションパターンが、受信バッファのサイズよりも十分に小さく、キャリブレーションパターン受信中に必ずクロックゲーティングが発生しないことが分かっていれば、第三クロック制御手段の代わりに第一クロック制御手段を用いてもよい。   Next, the calibration flow of the present embodiment will be described with reference to FIG. In the calibration flow of this embodiment, first, skew adjustment is performed while the third clock control unit 223 is functioning, and then cycle adjustment is performed while the second clock control unit 222 is functioning. If it is known that the calibration pattern is sufficiently smaller than the size of the reception buffer and clock gating does not always occur during reception of the calibration pattern, the first clock control means instead of the third clock control means May be used.

ここで、スキュー調整とは図2に示す構成によってホストクロック115と受信データ236の位相のズレ(位相ズレ)を修正するように調整するものである。一方で、サイクル調整とは図3に示す構成によってホストクロック115と受信データ236の周期単位のズレを修正するように調整するものである。以降の説明では周期ズレ(データ取り込みタイミングのズレやデータ取り込み再開タイミングのズレに相当する)を単に遅延サイクル数(サイクル遅延量)とする。   Here, the skew adjustment is an adjustment to correct a phase shift between the host clock 115 and the reception data 236 with the configuration shown in FIG. On the other hand, in the cycle adjustment, adjustment is performed so as to correct a shift in a cycle unit between the host clock 115 and the reception data 236 by the configuration shown in FIG. In the following description, a period shift (corresponding to a shift in data capture timing or a shift in data capture restart timing) is simply referred to as a delay cycle number (cycle delay amount).

まず、スキュー調整フローについて説明する。ステップS1201において、CPU101は外部デバイスコントローラ103に対して、クロックゲーティングモードを、クロックを停止させないキャリブレーションモード(第三クロック制御部を使うモード)に設定する。CPU101は、ステップS1202において、外部デバイスコントローラ103に対し、キャリブレーションパターンの取得を指示する。外部デバイスコントローラ103による、キャリブレーションパターンの取得処理は、参考例と同様である。キャリブレーションパターンの取得が完了すると、CPU101はステップS1203において、受信する予定のキャリブレーションパターンとしてROMやRAMから読み出したものと、実際に受信したキャリブレーションパターンとの比較を行う。比較結果が一致している場合には、スキュー設定が正しいと考えられるために、スキュー調整フローを完了する。   First, the skew adjustment flow will be described. In step S1201, the CPU 101 sets the clock gating mode to the external device controller 103 to a calibration mode (mode using the third clock control unit) that does not stop the clock. In step S1202, the CPU 101 instructs the external device controller 103 to acquire a calibration pattern. The calibration pattern acquisition process by the external device controller 103 is the same as in the reference example. When the acquisition of the calibration pattern is completed, in step S1203, the CPU 101 compares the calibration pattern read out from the ROM or RAM with the calibration pattern actually received. If the comparison results match, the skew setting is considered correct and the skew adjustment flow is completed.

一方、比較結果が一致しない場合には、スキュー設定が誤っていると考えられる。その場合、CPU101はステップS1204においてスキュー設定レジスタ212の値を変更し、スキュー設定を変更してステップS1202へ遷移する。スキュー設定を変更し、ステップS1203でパターンが一致するまでステップS1202、S1203の処理を繰り返し行う。   On the other hand, if the comparison results do not match, it is considered that the skew setting is incorrect. In that case, the CPU 101 changes the value of the skew setting register 212 in step S1204, changes the skew setting, and proceeds to step S1202. The skew setting is changed, and the processes in steps S1202 and S1203 are repeated until the patterns match in step S1203.

続いて、サイクル調整フローについて説明する。ステップS1205において、CPU101は外部デバイスコントローラ103のクロックゲーティングモードを、受信ステータス信号239の示す値とゲーティングパターン252とに基づいてクロックを停止させるキャリブレーションモード(第二クロック制御手段を機能させるモード)に設定する。さらに、CPU101は外部デバイスコントローラ103に対して、ゲーティングパターンレジスタ設定値248を設定する。CPU101は、ステップS1206において、外部デバイスコントローラ103に対し、キャリブレーションパターンの取得を指示する。外部デバイスコントローラ103による、キャリブレーションパターンの取得処理の概略は、参考例と同様である。   Next, the cycle adjustment flow will be described. In step S1205, the CPU 101 sets the clock gating mode of the external device controller 103 to a calibration mode for stopping the clock based on the value indicated by the reception status signal 239 and the gating pattern 252 (a mode for causing the second clock control unit to function). ). Further, the CPU 101 sets a gating pattern register set value 248 for the external device controller 103. In step S1206, the CPU 101 instructs the external device controller 103 to acquire a calibration pattern. The outline of the calibration pattern acquisition process by the external device controller 103 is the same as in the reference example.

ただし、実施例1の出力クロック制御部213は、ゲーティングパターン252に応じて、出力クロックイネーブル信号243を発行する。そして、出力クロックゲーティング部214はキャリブレーションパターンの受信中に、出力クロックイネーブル信号243に応じて出力クロック244をゲーティングする。ステップS1206においてサイクル演算部602がキャリブレーションパターンの取得を完了するとステップS1207に遷移する。そして、サイクル演算部602はステップS1207において、受信する予定のキャリブレーションパターンとしてCPU101がDRAM106などから読み出して期待値設定レジスタ604に格納させている期待値と、実際に受信したキャリブレーションパターンとの比較を行う。実際に受信するキャリブレーションパターンは、ゲーティングパターンやキャリブレーションパターン(期待値)、現在のサイクル設定値と実際の遅延サイクルとの差、によって異なる。(詳細については後述する。)
図20に、キャリブレーションパターンとして“01010101”を用いた一例を示す。詳細は後述するが、現在のサイクル設定値と実際の遅延サイクル数が合致している場合は、外部デバイスコントローラ103はキャリブレーションパターンを“01010101”のように受信できる。しかし、現在のキャリブレーションパターンに対して、実際の遅延サイクル数が1サイクル多い場合にキャリブレーションパターンとして、“01011101”のように受信する。その場合、サイクル演算部602が前述の処理によって受信したキャリブレーションパターンと、受信する予定のキャリブレーションパターン(期待値)とを比較して、遅延の有無を検出する。遅延がある場合には、受信されるパターン(図20参照)に基づいて実際のサイクル数との差を検知する。サイクル演算部602(又はCPU101)はS1208において、検知された実際の遅延サイクルを、サイクル設定値として設定し、サイクル調整フローを完了する。なお、キャリブレーションシーケンスを終了した場合、出力クロック制御部213が第三クロック制御モードに切り替えてデータの送受信に備える。
However, the output clock control unit 213 according to the first embodiment issues the output clock enable signal 243 according to the gating pattern 252. The output clock gating unit 214 gates the output clock 244 according to the output clock enable signal 243 during reception of the calibration pattern. When the cycle calculation unit 602 completes acquisition of the calibration pattern in step S1206, the process proceeds to step S1207. In step S <b> 1207, the cycle calculation unit 602 compares the expected value that the CPU 101 has read from the DRAM 106 and the like and stored in the expected value setting register 604 as the calibration pattern scheduled to be received with the actually received calibration pattern. I do. The actually received calibration pattern differs depending on the gating pattern, the calibration pattern (expected value), and the difference between the current cycle setting value and the actual delay cycle. (Details will be described later.)
FIG. 20 shows an example in which “01010101” is used as the calibration pattern. Although details will be described later, when the current cycle setting value matches the actual number of delay cycles, the external device controller 103 can receive the calibration pattern as “01010101”. However, when the actual number of delay cycles is one cycle greater than the current calibration pattern, the calibration pattern is received as “01011101”. In that case, the cycle calculation unit 602 compares the calibration pattern received by the above-described process with the calibration pattern (expected value) to be received, and detects the presence or absence of delay. If there is a delay, the difference from the actual number of cycles is detected based on the received pattern (see FIG. 20). In step S1208, the cycle calculation unit 602 (or the CPU 101) sets the detected actual delay cycle as a cycle set value, and completes the cycle adjustment flow. When the calibration sequence is completed, the output clock control unit 213 switches to the third clock control mode to prepare for data transmission / reception.

上述したように、キャリブレーションパターンのサイズを受信バッファ209のサイズよりも小さくすると、キャリブレーションシーケンス中に受信バッファ209がフルになることはない。しかし、本実施例1の外部デバイスコントローラ103は受信バッファフル信号241のアサートによらず、出力クロック244をゲーティングパターンに基づいてゲーティングする。サイクル設定又はスキュー設定が誤っていれば、そのとおりに誤ったキャリブレーションパターンが(キャリブレーションが成功していないことがわかるように)取得される。図4(a)に示すフローを用いてキャリブレーションを完了した後、第一クロック制御部221を用いるモードに切り替えるため、CPU101はゲーティングモード設定レジスタ605にクロック制御選択部へ“0”を格納させる設定をし、データの送受信に備える。   As described above, if the size of the calibration pattern is made smaller than the size of the reception buffer 209, the reception buffer 209 will not become full during the calibration sequence. However, the external device controller 103 according to the first embodiment gates the output clock 244 based on the gating pattern regardless of the assertion of the reception buffer full signal 241. If the cycle setting or skew setting is incorrect, an incorrect calibration pattern is acquired as it is (so that it can be seen that the calibration is not successful). After completing the calibration using the flow shown in FIG. 4A, the CPU 101 stores “0” in the clock control selection unit in the gating mode setting register 605 in order to switch to the mode using the first clock control unit 221. To prepare for data transmission / reception.

以上の処理によって、本実施例の外部デバイスコントローラ103は、受信データ236に1クロックサイクル以上の遅延が生じても、その遅延の有無を検出できるので、取りこぼしなくデータの送受信をするための各種パラメータ(スキュー設定、サイクル設定)を設定することができる。   With the above processing, the external device controller 103 according to the present embodiment can detect the presence or absence of a delay even if a delay of one clock cycle or more occurs in the reception data 236. Therefore, various parameters for transmitting and receiving data without missing it. (Skew setting, cycle setting) can be set.

また、図4(a)に示すように、クロックゲーティングを行わずにスキュー調整でサイクル内の遅延の調整を行った後に、ゲーティングパターンに基づいてクロックゲーティングを行いながらサイクル間の遅延の調整を行うことで効率的にキャリブレーションできる。このようにスキュー調整とサイクル調整を分離しないと、期待値と受信データ236が一致するまで総当りでキャリブレーションパターンの受信及び比較(最大でN1×N2回)を行わなければならず、キャリブレーション処理にかなりの時間を要する。   Further, as shown in FIG. 4A, after adjusting the delay in the cycle by the skew adjustment without performing the clock gating, the delay between the cycles is performed while performing the clock gating based on the gating pattern. Calibration can be performed efficiently by making adjustments. If the skew adjustment and the cycle adjustment are not separated as described above, the calibration pattern must be received and compared (N1 × N2 times at the maximum) until the expected value matches the received data 236, and the calibration is performed. Processing takes considerable time.

また、キャリブレーションパターンが受信バッファ209のサイズよりも十分に小さければ、図4(a)のステップS1201〜S1204で第三クロック制御部223を用いずに第一クロック制御部221によってスキュー調整をしてもよい。(キャリブレーションパターンの受信中に第一クロック制御部221を用いても必ずクロックゲーティングが発生しないためである。)この場合でも、ステップS1205〜S1208の処理によって、図21(a)に示した参考例と比べるとキャリブレーションが成功し易くなる(回数を減らせる)。   If the calibration pattern is sufficiently smaller than the size of the reception buffer 209, skew adjustment is performed by the first clock controller 221 without using the third clock controller 223 in steps S1201 to S1204 in FIG. May be. (This is because even if the first clock control unit 221 is used during reception of the calibration pattern, clock gating does not always occur.) Even in this case, the processing shown in FIG. 21A is performed by the processing of steps S1205 to S1208. Compared with the reference example, calibration is more likely to succeed (reducing the number of times).

〔キャリブレーションパターンとゲーティングパターンについて〕
ここで、キャリブレーションパターンとゲーティングパターンの相関について説明する。キャリブレーション処理が完了した際には、サイクル設定値256の示すサイクル数が、実際に遅延しているサイクル数と一致するものとする。図24の例では、サイクル遅延が1サイクルである為に、設定すべき正しいサイクル設定値256の示す値は“1”となる。(図24に示す波形は、サイクル設定値256がサイクル未調節の場合に相当する。)
出力クロック244のゲーティングパターンとキャリブレーションパターン設定を適切にするとそれだけキャリブレーション処理の精度が上がる。例えば、図24の例では、受信データ“D1”を受信出来ず、その代わりに受信データ“D2”が2回受信されてしまっている。このようにデータの置き換えが発生してしまうため、好ましくないキャリブレーションパターン(後述の観点を考慮していないパターン)を用いて受信データ236との比較をすると、キャリブレーションパターンの受信及び比較を行う回数が増えたり処理の精度が低下したりする可能性が高くなる。例えば、スキュー調整とサイクル調整について、期待値と受信データ236が一致するまで総当りで比較(最大でN1+N2回となる)を行う必要がある。
[Calibration pattern and gating pattern]
Here, the correlation between the calibration pattern and the gating pattern will be described. When the calibration process is completed, it is assumed that the number of cycles indicated by the cycle setting value 256 matches the number of cycles actually delayed. In the example of FIG. 24, since the cycle delay is one cycle, the value indicated by the correct cycle setting value 256 to be set is “1”. (The waveform shown in FIG. 24 corresponds to the case where the cycle set value 256 is not adjusted).
If the gating pattern and the calibration pattern setting of the output clock 244 are appropriately set, the accuracy of the calibration process is increased accordingly. For example, in the example of FIG. 24, the reception data “D1” cannot be received, and instead, the reception data “D2” has been received twice. Since data replacement occurs in this way, when a comparison is made with the received data 236 using an unfavorable calibration pattern (a pattern that does not take into account the viewpoint described later), the calibration pattern is received and compared. There is a high possibility that the number of times increases or the accuracy of processing decreases. For example, for skew adjustment and cycle adjustment, it is necessary to make a brute force comparison (maximum N1 + N2 times) until the expected value matches the received data 236.

以下、4つの観点で、出力クロック244のゲーティングパターンとキャリブレーションパターンの相関について説明する。これらの観点を考慮しているキャリブレーションパターンを用いることでキャリブレーション処理の比較を短縮することができる(最大でN1+1回となる)。   Hereinafter, the correlation between the gating pattern of the output clock 244 and the calibration pattern will be described from four viewpoints. Comparison of calibration processes can be shortened by using a calibration pattern considering these viewpoints (maximum N1 + 1 times).

ゲーティングパターンは、キャリブレーションパターンと下記の4つの観点とに基づいて設定する。ゲーティングパターンをキャリブレーションに用いることで、受信データSP変換部210のデータ取り込み制御を停止させる制御信号(出力クロックイネーブル信号243)がサイクル遅延量だけ遅延できていない場合に、実際に外部デバイスコントローラ103の受信するデータ(受信データ234)に重複や取りこぼしを発生させることができる。図20は好ましいゲーティングパターン(例として“01010101”)を設定した状況で、サイクル遅延量と受信データSP変換部210が受信することになるパターン(受信データ234)との相関を示している。   The gating pattern is set based on the calibration pattern and the following four viewpoints. When the control signal (output clock enable signal 243) for stopping the data capture control of the reception data SP converter 210 is not delayed by the cycle delay amount by using the gating pattern for calibration, the external device controller is actually It is possible to cause duplication or omission in the data (received data 234) received by 103. FIG. 20 shows the correlation between the cycle delay amount and the pattern (received data 234) that the received data SP conversion unit 210 receives in a situation where a preferable gating pattern (for example, “01010101”) is set.

(1)実際のディレイ量とサイクル設定値との差分(以降、ディレイ指標M)と受信されるキャリブレーションパターンとの相関
ディレイ指標M=(実際のディレイ量)−(サイクル設定値)とし、ディレイ指標Mと受信されるキャリブレーションパターンとの相関について説明する。ここで、実際のディレイ量とは、サイクル設定値が“0”の場合(スキュー調節後でサイクル未調節に相当)に、受信データ236が出力クロック244に対して遅延しているサイクル数である。
(1) Correlation between the difference between the actual delay amount and the cycle setting value (hereinafter, delay index M) and the received calibration pattern Delay index M = (actual delay amount) − (cycle setting value) The correlation between the index M and the received calibration pattern will be described. Here, the actual delay amount is the number of cycles in which the reception data 236 is delayed with respect to the output clock 244 when the cycle set value is “0” (corresponding to the cycle unadjusted after the skew adjustment). .

図6、図7は、受信イネーブル信号250の変化タイミングを、ディレイがない時のタイミングに固定し、実際のディレイ量を変化させた場合のパラレル形式の受信データ234の波形を示す。図6、図7の信号を上から順に図1の符号と対応させると、dev_clk244、dev_clk_en243、dh2_data236、host_clk115、rcv_en250、r_data_buff234である。また、図6、図7はディレイ指標Mが0,1,2,3となる場合の4セットを示している。   6 and 7 show the waveforms of the reception data 234 in parallel format when the change timing of the reception enable signal 250 is fixed to the timing when there is no delay and the actual delay amount is changed. When the signals in FIGS. 6 and 7 are associated with the codes in FIG. 6 and 7 show four sets when the delay index M is 0, 1, 2, 3.

図6、図7では、D3を受信した時点で、出力クロックイネーブル信号243のゲーティングを行い、出力クロック244をデアサートにしている。図6、図7に示すように、受信するキャリブレーションパターン(dh2_data236に相当する)は、ディレイ指標Mによって異なる。ディレイ指標が、M>1の場合には、ゲーティングを開始した時点で受信したデータ(図6、図7の例ではD3)を基準として、1サイクル後のデータからMサイクル後のデータまでがM+1サイクル後のデータに置き換わる。一方M=0の時は、実際のディレイ量とサイクル設定値があっているため、正しいパターンが受信されている。   6 and 7, when D3 is received, the output clock enable signal 243 is gated, and the output clock 244 is deasserted. As shown in FIGS. 6 and 7, the received calibration pattern (corresponding to dh2_data 236) differs depending on the delay index M. When the delay index is M> 1, the data received after 1 cycle to the data after M cycles are based on the data (D3 in the examples of FIGS. 6 and 7) received when gating is started. Replaced with data after M + 1 cycles. On the other hand, when M = 0, the actual delay amount matches the cycle setting value, so that the correct pattern is received.

(2)ゲーティング量(N)と受信されるパターンとの相関
出力クロック244をゲーティングし続けるサイクル数をゲーティング量Nとして、(スキュー調節後でサイクル調節が誤っている場合に)Nと受信されるキャリブレーションパターンの相関について説明する(Nの定義は図5参照)。
(2) Correlation between Gating Amount (N) and Received Pattern The number of cycles in which output clock 244 continues to be gated is defined as a gating amount N (when the cycle adjustment is incorrect after skew adjustment) and N The correlation of the received calibration pattern will be described (see FIG. 5 for the definition of N).

図8、図9、図10はNが夫々3,2,1である時の、キャリブレーション中の波形を示す。図8、図9、図10のr_data_buff234の夫々の波形を参照するとNの値にかかわらず、Mサイクル分のデータが置き換わっていることが分かる。ただし、どのデータに置き換わるかはNの値によって異なっている。例えば、N=3の場合は、D1〜D3がD4に置き換わり、N=2の場合はD1がD3に、D2とD3がD4に置き換わる。また、N=1の場合は、D1がD2に、D2がD3に、D3がD4に夫々置き換わる。   8, 9, and 10 show waveforms during calibration when N is 3, 2, and 1, respectively. Referring to the waveforms of r_data_buff 234 in FIGS. 8, 9, and 10, it can be seen that the data for M cycles are replaced regardless of the value of N. However, which data is replaced depends on the value of N. For example, when N = 3, D1 to D3 are replaced with D4, and when N = 2, D1 is replaced with D3, and D2 and D3 are replaced with D4. When N = 1, D1 is replaced with D2, D2 is replaced with D3, and D3 is replaced with D4.

(3)ゲーティング間のサイクル(L)と受信されるパターンとの相関
ゲーティングを複数回行う場合、前のゲーティングタイミングから、次のゲーティングタイミングまでのサイクルをLとし、(スキュー調節後でサイクル調節が誤っている場合に)Lと受信されるキャリブレーションパターンとの相関について説明する。(Lの定義は図5参照)。図11、図12、図13、図14にLが1〜4の時の、キャリブレーション中の波形を示す。L>=Mならば、複数回のゲーティングは、独立したゲーティングとして扱える。すなわち、Mサイクル分のデータの置き換えが、ゲーティングの回数分だけ発生する。そうでない場合には、複数回のゲーティングは、互いに相関を持ち、M*(ゲーティングの回数)−(M−L)個のデータが連続して置き換わる。
(3) Correlation between cycle (L) between gating and received pattern When gating is performed a plurality of times, the cycle from the previous gating timing to the next gating timing is set to L (after skew adjustment) The correlation between L and the received calibration pattern will be described (when the cycle adjustment is incorrect). (Refer to FIG. 5 for the definition of L). 11, 12, 13, and 14 show waveforms during calibration when L is 1 to 4. FIG. If L> = M, multiple times of gating can be handled as independent gating. That is, replacement of data for M cycles occurs for the number of times of gating. Otherwise, multiple times of gating are correlated with each other, and M * (number of times of gating)-(ML) pieces of data are continuously replaced.

(4)ゲーティング開始位置(S)及びゲーティング終了位置(E)と受信されるパターンとの相関
ゲーティング開始位置をS、ゲーティング終了位置をEとし、(スキュー調節後でサイクル調節が誤っている場合に)S、Eと受信されるキャリブレーションパターンとの相関について説明する(S,Eの定義は図5参照)。
(4) Correlation between the gating start position (S) and the gating end position (E) and the received pattern. The gating start position is S and the gating end position is E. The correlation between S and E and the received calibration pattern will be described (refer to FIG. 5 for definitions of S and E).

図15、図16、図17にSとスタートビットの位置関係、及びEとエンドビットの位置関係を変えた場合のキャリブレーション中の波形を示す。図15は、ゲーティング開始位置Sがスタートビット検出後であり且つゲーティング終了位置Eがエンドビット検出前である場合の波形を示す。図16は、ゲーティング開始位置Sがスタートビット検出前であり且つゲーティング終了位置Eがエンドビット検出後である場合の波形を示す。図17はゲーティング開始位置Sがスタートビット検出後でありゲーティング終了位置Eがエンドビット検出後である場合の波形を示す。   FIGS. 15, 16, and 17 show waveforms during calibration when the positional relationship between S and the start bit and the positional relationship between E and the end bit are changed. FIG. 15 shows a waveform when the gating start position S is after the start bit is detected and the gating end position E is before the end bit is detected. FIG. 16 shows a waveform when the gating start position S is before the start bit detection and the gating end position E is after the end bit detection. FIG. 17 shows a waveform when the gating start position S is after the start bit is detected and the gating end position E is after the end bit is detected.

図16のように、ホストクロック115の1サイクルと同期するように周期的にクロックゲーティングを行う場合は、L>Mを満たさず、且つSがスタートビットよりも前の位置で且つEがエンドビットよりも後の位置であると、キャリブレーションに適さない。サイクル調整が誤っているにも関わらず正しくデータが受信できてしまうためである。   As shown in FIG. 16, when clock gating is performed periodically so as to synchronize with one cycle of the host clock 115, L> M is not satisfied, S is a position before the start bit, and E is the end. If the position is after the bit, it is not suitable for calibration. This is because data can be received correctly even though the cycle adjustment is incorrect.

一方、Sがスタートビット後、又は、Eがエンドビット後であれば、サイクル調整が誤っている状況で正しくデータが受信できていないので、このゲーティングパターンはキャリブレーションに適していることが分かる。従って、S又はEのどちらか1つのだけをキャリブレーションパターン受信中に配置するか、ゲーティング間のサイクルLを考慮する必要がある。   On the other hand, if S is after the start bit or E is after the end bit, data cannot be received correctly in a situation where the cycle adjustment is incorrect, and thus it can be seen that this gating pattern is suitable for calibration. . Therefore, it is necessary to consider only one of S or E during the calibration pattern reception or to consider the cycle L between gating.

また、図15、図16、図17には直接示していないが、受信データSP変換部210が受信するキャリブレーションパターンの値が変動するタイミング(後述する所定数の異なる値が入力されている間)で、ゲーティング開始位置Sもしくはゲーティング終了位置Eがくるようにゲーティングパターンを設定しなければならない。すなわち、キャリブレーションパターンの値が変動するタイミングの1つで出力クロック244を停止し始める又は停止を解除するようにゲーティングパターンを設定する。例えば、値が変動するタイミングとは“01”(又は“10”)の場合であって、ゲーティング開始位置Sは“01”の“1”(又は“10”の“0”)、ゲーティング終了位置Eは“01”の“0”(又は“10”の“1”)にくるようにゲーティングパターンを設定する。   Although not directly shown in FIGS. 15, 16, and 17, the timing at which the value of the calibration pattern received by the reception data SP conversion unit 210 fluctuates (while a predetermined number of different values to be described later are input). ), The gating pattern must be set so that the gating start position S or the gating end position E comes. That is, the gating pattern is set so that the output clock 244 starts to be stopped or the stop is released at one timing at which the value of the calibration pattern fluctuates. For example, the timing at which the value fluctuates is “01” (or “10”), and the gating start position S is “1” (or “0” in “10”). The gating pattern is set so that the end position E is “0” of “01” (or “1” of “10”).

以上説明したように、キャリブレーションパターンとゲーティングパターンには(1)〜(4)に示す相関がある。図6、図7の例では、キャリブレーションパターンの“D3”を受信した次のサイクルでゲーティングを行っている。この例の場合では、サイクル設定値と実際のディレイとの関係から、“D4〜D6”が“D5〜D7”に置き換わる可能性がある。そのため、仮にキャリブレーションパターンの“D4〜D7”が全て同じ値であった場合、置き換わる前の値と置き換わる後の値が同じ値である為に、ディレイ(サイクル遅延)の検出には好ましくない。図6、図7の例では、(1)〜(4)の相関を考慮して、キャリブレーションパターンの“D4〜D7”を以下のパターンにすることが好ましい。   As described above, there is a correlation shown in (1) to (4) between the calibration pattern and the gating pattern. In the example of FIGS. 6 and 7, gating is performed in the next cycle after receiving “D3” of the calibration pattern. In this example, “D4 to D6” may be replaced with “D5 to D7” because of the relationship between the cycle setting value and the actual delay. For this reason, if “D4 to D7” of the calibration pattern are all the same value, the value before the replacement and the value after the replacement are the same value, which is not preferable for detecting the delay (cycle delay). In the examples of FIGS. 6 and 7, it is preferable that “D4 to D7” of the calibration pattern be the following patterns in consideration of the correlations (1) to (4).

“D4〜D7=0101”
これは、(1)〜(4)の相関に基づいて設定している、もちろん“1”と“0”は逆であっても、その場合に対応する期待値を設定しておけばよい。
“D4 to D7 = 0101”
This is set based on the correlations (1) to (4). Of course, even if “1” and “0” are opposite, an expected value corresponding to that case may be set.

さらに、このキャリブレーションパターン(期待値)を用いた場合の、実際のサイクル数との差と受信されるパターン(受信データ236)との関係を図20に示す。受信されるパターンと図20に示す遅延量との関係を示す情報に基づいて実際のサイクル数との差が判定可能である。なお、Mに応じて1:1で異なるキャリブレーションパターンが受信されるようなパターンを設定する必要がある。従って、(1)〜(4)の相関に沿ったゲーティングパターンを用いる場合、キャリブレーションパターン中の連続する値(ビット、”1”や”0”など)について、先に外部デバイスコントローラ103へ入力される値と異なる値が所定数だけ連続する場合、所定数サイクルまでの遅延を検出できる。すなわち、検知され得る遅延サイクル数以上、直前に(受信データSP変換部210へ)入力される値と異なる値が連続することが好ましい。上述の“D4〜D7=0101”の場合“101”の部分で、直前に入力される値と異なる値が連続していることを保証できる。   Furthermore, FIG. 20 shows the relationship between the difference from the actual number of cycles and the received pattern (received data 236) when this calibration pattern (expected value) is used. The difference between the actual number of cycles can be determined based on information indicating the relationship between the received pattern and the delay amount shown in FIG. Note that it is necessary to set a pattern in which different calibration patterns are received 1: 1 depending on M. Therefore, when using a gating pattern along the correlations (1) to (4), the continuous value (bit, “1”, “0”, etc.) in the calibration pattern is first transferred to the external device controller 103. When a predetermined number of values different from the input value are continuous, a delay up to a predetermined number of cycles can be detected. That is, it is preferable that a value different from the value input immediately before (to the reception data SP conversion unit 210) continues for the number of delay cycles that can be detected. In the case of “D4 to D7 = 0101” described above, it can be assured that a value different from the value input immediately before is continuous in the portion “101”.

なお、この関係を示す遅延情報(図20のようなルックアップテーブルや単なる数列など)は予め試験をしてCPU101が参照可能なDRAM106やその他の記憶装置に記憶しておき、サイクル遅延量を判定する際にCPU101が参照すればよい。   Note that delay information (such as a look-up table as shown in FIG. 20 or a simple numerical sequence) indicating this relationship is tested in advance and stored in the DRAM 106 or other storage device that can be referred to by the CPU 101 to determine the cycle delay amount. The CPU 101 may refer to it when doing so.

次に、図1の構成に正しいパラメータ(スキュー設定値、サイクル設定値)を用いて動作させた場合の、データ受信中に外部デバイスコントローラ103と外部デバイス107の扱う信号の様子を図18に示す。図18の例も図24の例と同様に、サイクル遅延が1サイクルであるが、キャリブレーションを完了し、1サイクルに対応するサイクル選択値249(サイクル設定値256)が設定されている時の波形を示している。(なお、受信データ236に発生する遅延が1サイクルである場合の、正しいサイクル選択値249(サイクル設定値256)の示す設定は1になる。サイクル選択値249の示す設定が1である為、受信イネーブル信号250は、出力クロックイネーブル信号243に対して、サイクル制御部603によって1サイクル遅延する。)   Next, FIG. 18 shows signals handled by the external device controller 103 and the external device 107 during data reception when the configuration of FIG. 1 is operated using correct parameters (skew setting value, cycle setting value). . Similarly to the example of FIG. 24, the example of FIG. 18 has a cycle delay of one cycle, but when the calibration is completed and the cycle selection value 249 (cycle setting value 256) corresponding to one cycle is set. The waveform is shown. (Note that when the delay occurring in the reception data 236 is one cycle, the setting indicated by the correct cycle selection value 249 (cycle setting value 256) is 1. Since the setting indicated by the cycle selection value 249 is 1, The reception enable signal 250 is delayed by one cycle by the cycle control unit 603 with respect to the output clock enable signal 243.)

図18の例では、シリアル形式の受信データ236について“D0”の受信を開始した時点で、出力クロックイネーブル信号243をデアサートして、出力クロック244をゲーティングしている。出力クロック244をゲーティングしているが、外部デバイス107からシリアル形式の受信データ237について“D1”と“D2”が送信される。出力クロックイネーブル信号243のデアサート開始から1サイクル後に、受信イネーブル信号250もデアサートされる。受信データSP変換部210は、受信イネーブル信号250のデアサートを受けて、すぐにシリアル形式の受信データの受信を停止する。   In the example of FIG. 18, when reception of “D0” is started for the reception data 236 in the serial format, the output clock enable signal 243 is deasserted and the output clock 244 is gated. Although the output clock 244 is gated, “D 1” and “D 2” are transmitted from the external device 107 for the received data 237 in the serial format. One cycle after the start of deassertion of the output clock enable signal 243, the reception enable signal 250 is also deasserted. The reception data SP conversion unit 210 receives the deassertion of the reception enable signal 250, and immediately stops receiving the serial format reception data.

そのため、スキュー調整後受信データ235の“D1”を受信したまま、データの受信を停止する。パラレル形式の受信データ234の1ビット目データを見ると“D1”が受信できており、受信データSP変換部210のデータ取り込み停止タイミングがサイクル遅延に対応するように調節できていることが分かる。   Therefore, reception of data is stopped while receiving “D1” of the reception data 235 after skew adjustment. Looking at the first bit data of the reception data 234 in parallel format, it can be seen that “D1” can be received, and that the data acquisition stop timing of the reception data SP converter 210 can be adjusted to correspond to the cycle delay.

また、出力クロックイネーブル信号243はデアサートされた1サイクル後に再びアサートされ、これを受けて出力クロック244のゲーティングが解除されている。ここで、出力クロック244のゲーティングが解除されていても、前述の受信データ236に1サイクル以上の遅延があるため、外部デバイス107からシリアル形式の受信データ236の“D2”が送信され続ける。   Further, the output clock enable signal 243 is asserted again one cycle after being deasserted, and the gating of the output clock 244 is released in response to the assertion. Here, even if the gating of the output clock 244 is cancelled, since the received data 236 has a delay of one cycle or more, “D2” of the serial format received data 236 is continuously transmitted from the external device 107.

サイクル設定値256の示す遅延量(1サイクル)によって、出力クロックイネーブル信号243のアサートの1サイクル後に、受信イネーブル信号250もアサートされる。受信データSP変換部210は、受信イネーブル信号250のアサートを受けて、すぐにシリアル形式の受信データの受信を再開する。そのため、シリアル形式の受信データ236の“D2”を正しく受信できる。パラレル形式の受信データ234の1ビット目を見ると“D2”が正しく受信出来ており受信データSP変換部210のデータ取り込み再開タイミングがサイクル遅延に対応するように調節できていることが分かる。   The reception enable signal 250 is also asserted one cycle after the assertion of the output clock enable signal 243 by the delay amount (one cycle) indicated by the cycle setting value 256. The reception data SP converter 210 immediately receives the serial reception data in response to the assertion of the reception enable signal 250. Therefore, “D2” of the received data 236 in the serial format can be correctly received. Looking at the first bit of the reception data 234 in the parallel format, it can be seen that “D2” has been correctly received, and the data acquisition restart timing of the reception data SP converter 210 can be adjusted to correspond to the cycle delay.

以上、本実施例では、設定が正しくないままキャリブレーションが完了してしまうことを抑制できる。従って、受信データ236に1サイクル以上の遅延があっても正しく検出ができる。   As described above, in this embodiment, it is possible to prevent the calibration from being completed while the setting is not correct. Therefore, even if the received data 236 has a delay of one cycle or more, it can be correctly detected.

また、本実施例のサイクル制御部603によると、正しいサイクル設定値256が設定されていれば、外部デバイスコントローラ103と外部デバイス107との間で生ずるサイクル遅延の量に対応するように、受信データSP変換部210のデータ取り込み停止タイミングとデータ取り込み再開タイミングとを遅延させられる。これにより、図24に示したようなデータの取りこぼしが発生することを抑制する。   Also, according to the cycle control unit 603 of the present embodiment, if the correct cycle setting value 256 is set, the received data is set so as to correspond to the amount of cycle delay that occurs between the external device controller 103 and the external device 107. The data acquisition stop timing and the data acquisition restart timing of the SP converter 210 can be delayed. This suppresses the occurrence of data loss as shown in FIG.

また、上述の実施例ではスキュー制御部211とサイクル制御部603を別々に構成しているが、スキュー調整とサイクル調整を単一の構成として組み合わせてもよいし、受信データSP変換部210に組み合わせてもよい。さらに、スキュー調整ではズレを補正したクロックを入力することで調整しているが、データを供給する系にスキュー調整やサイクル調整用の遅延構成(遅延素子、フリップフロップ)を直接配置し、セレクタ等で遅延量を選択してもよい。   In the above-described embodiment, the skew control unit 211 and the cycle control unit 603 are separately configured. However, the skew adjustment and the cycle adjustment may be combined as a single configuration or combined with the reception data SP conversion unit 210. May be. Furthermore, in skew adjustment, adjustment is performed by inputting a clock with corrected deviation. However, a delay configuration (delay element, flip-flop) for skew adjustment and cycle adjustment is directly arranged in the data supply system, and a selector, etc. The delay amount may be selected with.

また、上述の実施例ではキャリブレーション処理を実行する機会については言及していないが、公知の外部デバイスコントローラと同様の機会でキャリブレーションをすれば本発明の効果は得られる。例えば、ASIC100の起動時や、外部デバイスコントローラ103の初期化時、所定時間毎(例えば、208MHz時に10msec毎)もしくは所定サイクル数毎、また外部デバイス107との接続をASIC100が検出した時に実施をすればよい。   Although the above-mentioned embodiment does not mention the opportunity to execute the calibration process, the effect of the present invention can be obtained by performing calibration at the same opportunity as a known external device controller. For example, when the ASIC 100 starts up, when the external device controller 103 is initialized, every predetermined time (for example, every 10 msec at 208 MHz) or every predetermined number of cycles, or when the ASIC 100 detects a connection with the external device 107, it is performed. That's fine.

なお、前述の実施例において、サイクル演算部602、サイクル設定レジスタ601、期待値設定レジスタ604、はハードウェアとして説明しているが、CPU101で代用してソフトウェアで実現してもよい。その場合、CPU101がサイクル演算部602としての機能を実現するためのプログラムをDRAM106等から読み出して実行し、各種レジスタに相当する記憶領域はCPU101のキャッシュ(もしくはDRAM106)上に確保して、前述する各種レジスタの格納する値を記憶領域に記憶する。   In the above-described embodiment, the cycle calculation unit 602, the cycle setting register 601, and the expected value setting register 604 are described as hardware, but may be realized by software instead of the CPU 101. In this case, the CPU 101 reads out and executes a program for realizing the function as the cycle calculation unit 602 from the DRAM 106 or the like, and secures storage areas corresponding to various registers in the cache (or DRAM 106) of the CPU 101, as described above. The values stored in various registers are stored in the storage area.

前述の外部デバイス107と外部デバイスコントローラ103間の配線遅延について、外部デバイス107が外部デバイスIF112に着脱できる構成である場合に遅延量のバラツキが大きくなると考えられる。実際には配線の長さや材質、温度上昇以外にも、接触不良など種々の要因による遅延を含むことが考えられる。   Regarding the wiring delay between the external device 107 and the external device controller 103 described above, it is considered that the variation in the delay amount increases when the external device 107 is configured to be detachable from the external device IF 112. Actually, in addition to the length, material, and temperature rise of the wiring, it is considered that a delay due to various factors such as poor contact is included.

上述の実施例ではホストクロック115がどの程度の周波数であるかは例示していないが、動作周波数が高くなればなるほど、図21(a)に示す構成で受信データ236に発生する1サイクル以上の遅延検出が困難になり、キャリブレーション不良も生じ易い。外部デバイスコントローラ103と外部デバイス107との間でより高速にデータをやりとりするにはホストクロック115の周波数を高めることが考えられるため、本発明は高速で信頼性の高いデータ通信の実現にも寄与するといえる。   The above embodiment does not exemplify the frequency of the host clock 115, but the higher the operating frequency, the more the cycle of the received data 236 generated in the configuration shown in FIG. Delay detection becomes difficult, and calibration failure tends to occur. In order to exchange data between the external device controller 103 and the external device 107 at a higher speed, it is conceivable to increase the frequency of the host clock 115. Therefore, the present invention also contributes to the realization of high-speed and highly reliable data communication. That's right.

また、上述の実施例でサイクル演算部602がキャリブレーションパターン(受信データ234)と期待値とを比較してサイクル調整を行っているが、スキュー調整と同様にCPU101が期待値を読出し、比較処理をするようにしてもよい。   In the above-described embodiment, the cycle calculation unit 602 compares the calibration pattern (received data 234) with the expected value to perform cycle adjustment. However, the CPU 101 reads the expected value and performs comparison processing in the same manner as skew adjustment. You may make it do.

また、上述の実施例では受信データ236のデータ部分(図21bのD0、D1…)について比較しているが、算出手段としての受信データSP変換部210の算出したCRC部分(図21bのCRC0、CRC1…)を比較に用いるようにしてもよい。その場合は、予め記憶しているキャリブレーションパターンについて、スキュー設定とサイクル設定が正常な場合に受け取るCRCを予め演算して記憶しておく必要がある。   In the above-described embodiment, the data portion (D0, D1,... In FIG. 21b) of the reception data 236 is compared. However, the CRC portion (CRC0, FIG. 21b) calculated by the reception data SP conversion unit 210 as a calculation unit is compared. CRC1 ...) may be used for comparison. In that case, it is necessary to previously calculate and store the CRC received when the skew setting and the cycle setting are normal for the calibration pattern stored in advance.

なお、図1では外部デバイスコントローラ103と外部デバイス107の間では1bit幅のバスを用いて通信している様に説明しているが、4bit幅のバスや8bit幅のバス等でもよく、本発明はバス幅には限定されず適用できる。しかし、例えば4bit幅(8bit)のバスを用いる場合などは、スキュー制御部211にフリップフロップ218と遅延選択部217を4つ配置し1bit幅ずつスキュー調整をできるようにしておいてもよい。この場合、受信データSP変換部210では4bitを合流させればよく、受信データSP変換部210もしくは受信バッファ209などに4bitのデータの並び順を変えて、外部デバイス107が出力しようとしたデータと一致させる構成が必要になる。   In FIG. 1, the external device controller 103 and the external device 107 are described as communicating using a 1-bit width bus, but a 4-bit width bus, an 8-bit width bus, or the like may be used. Can be applied without being limited to the bus width. However, for example, when a 4-bit (8-bit) bus is used, four flip-flops 218 and four delay selection units 217 may be arranged in the skew control unit 211 so that skew adjustment can be performed for each 1-bit width. In this case, the reception data SP conversion unit 210 only has to merge 4 bits, and the data that the external device 107 is trying to output is changed to the reception data SP conversion unit 210 or the reception buffer 209 by changing the order of the 4 bit data. A configuration that matches is required.

また、上述の実施例ではホストクロック115の動作周波数が単一の例しか説明していないが、外部デバイス107を識別して動作周波数を切り替えるようにしてもよい。例えば、CLOCKジェネレータ105から外部デバイスコントローラ103の間に、ホストクロックを分周させる分周回路や逓倍回路等を設けて外部デバイスコントローラ103に入力するホストクロックの周波数を替えてもよい。この場合CLOCKジェネレータ105に加えて分周回路や逓倍回路も発振手段の一部とする。   In the above-described embodiment, only an example in which the operating frequency of the host clock 115 is single has been described. However, the operating frequency may be switched by identifying the external device 107. For example, a frequency dividing circuit or a multiplying circuit for dividing the host clock may be provided between the CLOCK generator 105 and the external device controller 103 to change the frequency of the host clock input to the external device controller 103. In this case, in addition to the CLOCK generator 105, a frequency division circuit and a frequency multiplication circuit are part of the oscillation means.

この時、前述のキャリブレーションが不調な場合に外部デバイス107に入力されるホストクロック115をより低い周波数に減少させて外部デバイスとの通信を安定させるようにしてもよい。キャリブレーションが不調な場合とは、例えば前述のキャリブレーションが単位時間当たりに所定回数以上発生してしまう場合やキャリブレーションに要する時間が所定時間以上(例えば、総当りに要する回数以上になる場合)を要してしまう場合などが挙げられる。また、外部デバイスIF112の物理的なコネクタ形状を規格に定められた特定種類の外部デバイス107と嵌合するように設計する場合、分周回路や逓倍回路で切り替える周波数として特定種の規格で定められている周波数を用いても良い。(例えば、208MHzで不調であれば、100MHzに切り替える等)これにより、同系統の外部デバイスであってバージョンによって動作周波数が異なる場合において、外部デバイスコントローラ103の後方互換性を維持できる。   At this time, when the above-described calibration is not successful, the host clock 115 input to the external device 107 may be decreased to a lower frequency to stabilize communication with the external device. The case where the calibration is unsatisfactory means that, for example, the above-described calibration occurs a predetermined number of times per unit time or the time required for calibration is a predetermined time or more (for example, the number of times required for the total number of times) May be required. In addition, when the physical connector shape of the external device IF 112 is designed to be fitted to a specific type of external device 107 defined in the standard, the frequency to be switched by a frequency divider or a multiplier circuit is determined by a specific type of standard. May be used. (For example, if it is not good at 208 MHz, switch to 100 MHz, etc.) This makes it possible to maintain the backward compatibility of the external device controller 103 in the case of an external device of the same system whose operating frequency differs depending on the version.

また、上述の実施例における送信バッファ207や受信バッファ209はFIFO構造にしてもよい。その場合、バッファフル信号やバッファエンプティー信号はFIFOの空き容量を示す情報(残量情報)に基づいて作成したり、残量情報をそのまま代用したりしてもよい。この場合、受信バッファ209のFIFOが格納できるデータのサイズがキャリブレーションパターンのデータのサイズ以上である場合は、キャリブレーションパターンを一旦FIFOに書き込んだ後に、CPU101が比較にそのまま用いるようにしてもよい。しかし、受信バッファのFIFOが格納できるデータサイズがキャリブレーションパターンより小さい場合は、キャリブレーションパターンのFIFO容量以下のデータサイズずつ逐次的(所定サイクル毎)に比較することが好ましい。又は、キャリブレーション中に受信バッファ209のFIFOに取り込まずに逐次的に比較する構成に分岐させるようにしてもよい。(比較手段としてCPU101とは別構成を有し、期待値も同じデータサイズずつ読み出すレジスタと構成する、所定サイクル分のデータの比較器を構成すればよい。)そうしないと、スキュー調整で第三クロック制御手段223によりクロックを止めない様にしている場合に、受信バッファ209がオーバーフローしてしまう可能性があるためである。   Further, the transmission buffer 207 and the reception buffer 209 in the above-described embodiment may have a FIFO structure. In this case, the buffer full signal and the buffer empty signal may be created based on information (remaining amount information) indicating the FIFO free capacity, or the remaining amount information may be used as it is. In this case, if the size of the data that can be stored in the FIFO of the reception buffer 209 is equal to or larger than the size of the data of the calibration pattern, the CPU 101 may write the calibration pattern once in the FIFO and use it as it is for comparison. . However, when the data size that can be stored in the FIFO of the reception buffer is smaller than the calibration pattern, it is preferable to compare sequentially (every predetermined cycle) by the data size equal to or smaller than the FIFO capacity of the calibration pattern. Alternatively, it is possible to branch to a configuration in which comparison is performed sequentially without being taken into the FIFO of the reception buffer 209 during calibration. (It is only necessary to configure a comparator for data for a predetermined cycle, which has a configuration different from that of the CPU 101 as a comparison means, and is configured as a register that reads out the expected values of the same data size.) This is because the reception buffer 209 may overflow when the clock is not stopped by the clock control means 223.

また、上述の実施例における出力クロックイネーブル信号243などの制御信号は、イネーブル信号をデアサートするタイミングにディスエーブル信号をアサートするように構成しても構わない。   Further, the control signal such as the output clock enable signal 243 in the above-described embodiment may be configured to assert the disable signal at the timing when the enable signal is deasserted.

なお、上述の実施例では外部デバイスコントローラ103を有する情報処理装置として本発明を説明したが、上述の外部デバイス107の構成を情報処理装置内部として有する場合にも適用できるので、デバイスコントローラに適用できるともいえる。また、本発明を適用する情報処理装置としては、画像処理装置や計算処理装置など種々の装置が挙げられる。   In the above-described embodiment, the present invention has been described as the information processing apparatus having the external device controller 103. However, the present invention can be applied to the case where the configuration of the external device 107 is included in the information processing apparatus. It can be said. In addition, examples of the information processing apparatus to which the present invention is applied include various apparatuses such as an image processing apparatus and a calculation processing apparatus.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施例の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) for realizing the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

Claims (17)

外部デバイスに対してクロックを供給する供給手段と、
前記供給手段に対して前記クロックの供給を停止させる制御信号を送信する制御手段と、
前記外部デバイスが前記クロックと同期させて出力するデータを受信し、前記制御信号に応じて前記データの取り込みを停止する受信手段と、
前記受信手段の受信するデータの位相ズレを補正する第1遅延手段と
前記第1遅延手段で補正したデータの周期単位のズレを補正するように遅延させた前記制御信号を用いて、前記受信手段のデータ取り込みタイミングを遅延させる第2遅延手段と、
を有することを特徴とする情報処理装置。
Supply means for supplying a clock to an external device;
Control means for transmitting a control signal for stopping the supply of the clock to the supply means;
Receiving means for receiving data output by the external device in synchronization with the clock, and stopping capturing of the data in response to the control signal;
First delay means for correcting a phase shift of data received by the receiving means ;
Second delay means for delaying the data fetching timing of the receiving means using the control signal delayed so as to correct a shift in a cycle unit of the data corrected by the first delay means ;
An information processing apparatus comprising:
前記クロックを発振する発振手段を更に有し、
前記第1遅延手段は、前記受信手段の受信するデータを前記発振手段の発振するクロックの1サイクルより小さい量だけ遅延させて位相ズレを補正し、
前記第2遅延手段は、前記制御信号を前記発振手段の発振するクロックの1サイクルの整数倍だけ遅延させて前記受信手段に入力させることで、前記受信手段における周期単位のデータ取り込みタイミングのズレを補正することを有することを特徴とする請求項1に記載の情報処理装置。
Further comprising an oscillating means for oscillating the clock;
The first delay means corrects the phase shift by delaying the data received by the receiving means by an amount smaller than one cycle of the clock oscillated by the oscillating means,
The second delay means delays the control signal by an integral multiple of one cycle of the clock oscillated by the oscillating means and inputs the delayed signal to the receiving means, thereby shifting the shift of the data fetch timing in units of cycles in the receiving means. The information processing apparatus according to claim 1, further comprising: correcting the information processing apparatus.
前記受信手段に受信させるキャリブレーションパターンを送信するように前記外部デバイスに対して指示する指示手段と、
前記クロックをどのタイミングで停止させるかを示すゲーティング情報に基づいて前記供給手段による前記クロックの供給を停止させる第一クロック制御モードと、前記クロックの供給を停止させない第二クロック制御モードとを選択的に機能させる選択手段と
を有し、
前記選択手段は、前記キャリブレーションパターンの位相ズレを調節する場合に前記第二クロック制御モードを機能させ、前記キャリブレーションパターンのサイクル遅延を調節する場合に前記第一クロック制御モードを機能させることを特徴とする請求項1又は2に記載の情報処理装置。
Instruction means for instructing the external device to transmit a calibration pattern to be received by the receiving means;
A first clock control mode for stopping the supply of the clock by the supply means and a second clock control mode for not stopping the supply of the clock are selected based on gating information indicating when the clock is stopped. Selection means for functioning automatically,
The selecting means causes the second clock control mode to function when adjusting a phase shift of the calibration pattern, and causes the first clock control mode to function when adjusting a cycle delay of the calibration pattern. The information processing apparatus according to claim 1, wherein the information processing apparatus is characterized.
受信するキャリブレーションパターンの期待値を保持する記憶手段と、
前記選択手段によって前記制御手段を機能させた状態で前記受信手段の受信したキャリブレーションパターンと前記記憶手段の保持する期待値とを比較して一致するかを判定するする判定手段と
を更に有することを特徴とする請求項3に記載の情報処理装置。
Storage means for holding an expected value of a calibration pattern to be received;
A determination unit that compares the calibration pattern received by the reception unit with the expected value held by the storage unit in a state where the control unit is caused to function by the selection unit, and determines whether or not they match. The information processing apparatus according to claim 3.
前記判定手段は前記受信手段の受信したキャリブレーションパターンと前記期待値とが一致することを判定し、前記受信手段によるデータの取り込みタイミングの調整が完了したことを判断することを特徴する請求項4に記載の情報処理装置。   The determination unit determines that the calibration pattern received by the reception unit matches the expected value, and determines that the adjustment of the data capture timing by the reception unit is completed. The information processing apparatus described in 1. 前記キャリブレーションパターンは複数の値によって構成され、当該複数の値のうち連続する所定数の値の夫々が直前の値と異なっていることを特徴とする請求項3乃至5のいずれか1項に記載の情報処理装置。   6. The calibration pattern according to claim 3, wherein the calibration pattern includes a plurality of values, and each of a predetermined number of consecutive values among the plurality of values is different from the immediately preceding value. The information processing apparatus described. 前記所定数は前記情報処理装置と前記外部デバイスとの間で発生し得る遅延量に対応するサイクル数以上であることを特徴とする請求項6に記載の情報処理装置。   The information processing apparatus according to claim 6, wherein the predetermined number is equal to or greater than a number of cycles corresponding to a delay amount that can occur between the information processing apparatus and the external device. 前記受信手段の受信したデータを保持し、自身がデータの保持をできない場合に通知する保持手段を更に有し、
前記選択手段は、前記キャリブレーションパターンに基づくデータの取り込みタイミングの調節が完了した場合に、前記保持手段からの通知を受けて前記供給手段による前記クロックの供給を停止させる第三クロック制御モードを機能させることを特徴とする請求項3乃至7のいずれか1項に記載の情報処理装置。
Holding the data received by the receiving means, further having a holding means for notifying itself when the data cannot be held;
The selection unit functions as a third clock control mode for receiving a notification from the holding unit and stopping the supply of the clock by the supply unit when the adjustment of the data capture timing based on the calibration pattern is completed. The information processing apparatus according to claim 3, wherein the information processing apparatus is an information processing apparatus.
前記保持手段はFIFO構造であり、前記通知がFIFOの残量情報を示す信号に基づいていることを特徴とする請求項8に記載の情報処理装置。   The information processing apparatus according to claim 8, wherein the holding unit has a FIFO structure, and the notification is based on a signal indicating the remaining amount information of the FIFO. 前記外部デバイスとの通信の種別を判断する識別手段を更に有し、前記外部デバイスが所定の種別でないと判断できる場合に、前記選択手段は前記受信手段のデータ取り込みタイミングを調節する際に前記第三クロック制御モードを機能させることを特徴とする請求項8又は9に記載の情報処理装置。   And further comprising identification means for judging the type of communication with the external device, and when the external device can be judged not to be of a predetermined type, the selecting means adjusts the data fetch timing of the receiving means when the data acquisition timing is adjusted. 10. The information processing apparatus according to claim 8, wherein the three-clock control mode is made to function. 前記第2遅延手段は入出力が直列に接続されている複数のフリップフロップを有し、前記制御信号を周期単位で遅延させる場合に前記複数のフリップフロップのうちの1つの出力を選択的に出力することを特徴とする請求項1乃至10のいずれか1項に記載の情報処理装置。   The second delay means has a plurality of flip-flops whose inputs and outputs are connected in series, and selectively outputs one of the plurality of flip-flops when the control signal is delayed by a period. The information processing apparatus according to claim 1, wherein the information processing apparatus is an information processing apparatus. 前記ゲーティング情報は、周期的なタイミングで前記供給手段がクロックを停止することを示す情報を有することを特徴とする請求項3乃至10のいずれか1項に記載の情報処理装置。 The gating information, the information processing apparatus according to any one of claims 3 to 10, characterized in that it has information indicating that the supply means at periodic timing stops the clock. 前記ゲーティング情報は、前記制御手段によって前記クロックの停止し始めるタイミング、前記クロックの停止を解除させるタイミング、クロックを停止させる周期の少なくとも何れか1つを示すことを特徴とする請求項3乃至10、12のいずれか1項に記載の情報処理装置。 The gating information, claims 3 to 10, characterized in that indicating the clock stopped start timing, the timing for releasing the stopping of the clock, at least one of periodically stopping the clock by the control means , 12 information processing apparatus according to any one of. 前記外部デバイスとの通信の種別を判断する識別手段を更に有し、前記外部デバイスが所定の種別であると判断できる場合に、前記選択手段は前記受信手段のデータ取り込みタイミングを調節する際に前記第一クロック制御モードを機能させることを特徴とする請求項3乃至13のいずれか1項に記載の情報処理装置。   And further comprising an identifying means for judging the type of communication with the external device, and when the external device can be judged to be of a predetermined type, the selecting means adjusts the data fetch timing of the receiving means The information processing apparatus according to claim 3, wherein the first clock control mode is made to function. 前記制御手段が、少なくとも前記受信手段の受信しているキャリブレーションパターンの値が変動するタイミングの1つで前記クロックを停止し始めることを特徴とする請求項1乃至14のいずれか1項に記載の情報処理装置。   15. The control unit according to claim 1, wherein the control unit starts to stop the clock at at least one timing at which a value of the calibration pattern received by the receiving unit varies. Information processing device. 前記制御手段が、少なくとも前記受信手段の受信しているキャリブレーションパターンの値が変動するタイミングの1つで前記クロックの停止を解除することを特徴とする請求項請求項1乃至15のいずれか1項に記載の情報処理装置。   16. The control unit according to claim 1, wherein the control unit releases the stop of the clock at one of timings at which a value of the calibration pattern received by the receiving unit varies. The information processing apparatus according to item. 外部デバイスに対してクロックを供給する供給工程と、
前記供給工程における前記クロックの供給を停止させる制御信号を送信する制御工程と、
前記外部デバイスが前記クロックと同期させて出力するデータを受信し、前記制御信号に応じて前記データの取り込みを停止する受信工程と、
前記受信工程で受信するデータの位相ズレを補正する第1遅延工程と
前記第1遅延手段で補正したデータの周期単位のズレを補正するように遅延させた前記制御信号を用いて、前記受信手段のデータ取り込みタイミングを遅延させる第2遅延工程と、
を有することを特徴とする情報処理方法。
Supplying a clock to an external device;
A control step of transmitting a control signal for stopping the supply of the clock in the supply step;
Receiving the data output by the external device in synchronization with the clock, and receiving the data in response to the control signal; and
A first delay step of correcting a phase shift of data received in the reception step ;
A second delay step of delaying the data capture timing of the receiving means by using the control signal delayed so as to correct a shift in a cycle unit of the data corrected by the first delay means ;
An information processing method characterized by comprising:
JP2014052439A 2014-03-14 2014-03-14 Information processing apparatus or information processing method Active JP5717897B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014052439A JP5717897B2 (en) 2014-03-14 2014-03-14 Information processing apparatus or information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014052439A JP5717897B2 (en) 2014-03-14 2014-03-14 Information processing apparatus or information processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011547172A Division JP5501378B2 (en) 2009-12-25 2009-12-25 Information processing apparatus or information processing method

Publications (2)

Publication Number Publication Date
JP2014140225A JP2014140225A (en) 2014-07-31
JP5717897B2 true JP5717897B2 (en) 2015-05-13

Family

ID=51416666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014052439A Active JP5717897B2 (en) 2014-03-14 2014-03-14 Information processing apparatus or information processing method

Country Status (1)

Country Link
JP (1) JP5717897B2 (en)

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59173839A (en) * 1983-03-22 1984-10-02 Matsushita Electric Ind Co Ltd Transfer circuit of serial data
JPS6368959A (en) * 1986-09-11 1988-03-28 Mitsubishi Electric Corp Information transfer system
US4833695A (en) * 1987-09-08 1989-05-23 Tektronix, Inc. Apparatus for skew compensating signals
JPH04105412A (en) * 1990-08-27 1992-04-07 Nec Ibaraki Ltd Flip-flop
JP2965049B2 (en) * 1991-07-31 1999-10-18 株式会社アドバンテスト Timing generator
JPH08223003A (en) * 1995-02-16 1996-08-30 Kawasaki Steel Corp Clock multiplying circuit
JP3367009B2 (en) * 1995-08-31 2003-01-14 京セラ株式会社 Synchronous data transmission method for printer
JP2970845B2 (en) * 1997-09-03 1999-11-02 日本電気株式会社 Digital DLL circuit
JPH11304888A (en) * 1998-04-17 1999-11-05 Advantest Corp Semiconductor testing device
US7034596B2 (en) * 2003-02-11 2006-04-25 Lattice Semiconductor Corporation Adaptive input logic for phase adjustments
JP2005301963A (en) * 2003-07-08 2005-10-27 Ricoh Co Ltd Data transfer device, image forming device, data transfer method, computer program and recording medium
CN101416437A (en) * 2006-04-05 2009-04-22 松下电器产业株式会社 Removable memory device, phase synchronizing method, phase synchronizing program, medium recording the same, and host terminal
JP5607289B2 (en) * 2007-09-07 2014-10-15 ピーエスフォー ルクスコ エスエイアールエル Timing control circuit and semiconductor memory device
JP2009141570A (en) * 2007-12-05 2009-06-25 Sony Corp Clock signal generation circuit, display panel module, imaging device and electronic apparatus
JP2009140322A (en) * 2007-12-07 2009-06-25 Elpida Memory Inc Timing control circuit and semiconductor memory device

Also Published As

Publication number Publication date
JP2014140225A (en) 2014-07-31

Similar Documents

Publication Publication Date Title
JP5501378B2 (en) Information processing apparatus or information processing method
US20040068682A1 (en) Deskew circuit and disk array control device using the deskew circuit, and deskew method
JP2006013990A (en) Delay controller
JP5377275B2 (en) Information processing apparatus or information processing method
EP1058180A2 (en) Control circuit having clock control unit
JP5448795B2 (en) Information processing apparatus or information processing method
JP2012124716A (en) Data receiver, data transmitter, control method
JP6809932B2 (en) Semiconductor device and data synchronization method
JP5717897B2 (en) Information processing apparatus or information processing method
US8151131B2 (en) Signal synchronization method and signal synchronization circuit
JP2004310544A (en) Asynchronous data transfer device
US20090232266A1 (en) Signal processing device
JP6018040B2 (en) Clock supply system, clock buffer group and control method
JP2011135531A5 (en)
JP2007025880A (en) Data transfer method
JP5489871B2 (en) Image processing device
JP2005094597A (en) Delay control device
KR20060080380A (en) Intellectual property module for system on chip
JPH08329000A (en) Information processor
US20130166269A1 (en) Simulation apparatus, simulation method, and recording medium
JP2006011495A (en) Data transfer device and data transfer method
JP4819493B2 (en) Circuit system
JP2008079041A (en) Clock adjusting apparatus and clock adjusting method of high-speed serial bus
JP2005094484A (en) Phase difference detecting circuit and method therefor, and clock skew correcting circuit and method therefor
KR20140083367A (en) Delay lock loop and latency control circuit including the same

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141022

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141028

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150105

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150217

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150317

R151 Written notification of patent or utility model registration

Ref document number: 5717897

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151