JP2006072454A - Data processor - Google Patents

Data processor Download PDF

Info

Publication number
JP2006072454A
JP2006072454A JP2004251937A JP2004251937A JP2006072454A JP 2006072454 A JP2006072454 A JP 2006072454A JP 2004251937 A JP2004251937 A JP 2004251937A JP 2004251937 A JP2004251937 A JP 2004251937A JP 2006072454 A JP2006072454 A JP 2006072454A
Authority
JP
Japan
Prior art keywords
transfer
frequency
clock
mode
internal clock
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.)
Granted
Application number
JP2004251937A
Other languages
Japanese (ja)
Other versions
JP4666980B2 (en
Inventor
Hirofumi Fujikawa
裕文 藤川
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2004251937A priority Critical patent/JP4666980B2/en
Publication of JP2006072454A publication Critical patent/JP2006072454A/en
Application granted granted Critical
Publication of JP4666980B2 publication Critical patent/JP4666980B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data processor capable of rapidly executing data processing while preventing failure of processing in a device applied to a digital camera or viewer in which a clock frequency is changed according the frequency of access to a memory. <P>SOLUTION: A priority order determination circuit 50 selects any one of a plurality of transfer modes. A clock control circuit 36 sets the frequency of an internal clock generated by a clock generator 22 to a frequency corresponding to a selected transfer mode. When an acknowledgement signal S_ACK is outputted from a S_ACK generation circuit 38, data transfer according to the selected transfer mode is executed by a buffer circuit 20 or 28. This data transfer responds to the internal clock. If the transfer mode selected this time is a specific transfer mode for executing data transfer in cooperation with a CPU responding to an external clock, the output timing of acknowledgement signal S_ACK is delayed until the setting operation of the clock control circuit 36 is completed. According to this, data processing can be rapidly executed while avoiding failure of processing. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は、データ処理装置に関し、特にたとえばディジタルカメラやビューワに適用され、メモリへのアクセスの頻度に応じてクロック周波数を変更する、データ処理装置に関する。   The present invention relates to a data processing apparatus, and more particularly to a data processing apparatus that is applied to, for example, a digital camera or a viewer and changes a clock frequency in accordance with the frequency of access to a memory.

従来のこの種の装置の一例が、特許文献1に開示されている。この従来技術によれば、動作周波数は、スタンバイ状態で低周波数に設定され、通常状態で通常周波数に設定される。これによって、消費電力の大幅な低減とスタンバイ状態から通常状態への迅速な移行とが実現される。なお、従来技術では、通常状態の中でクロック周波数が切り換えられることはない。
特開平11−3131号公報[G06F 1/04]
An example of a conventional device of this type is disclosed in Patent Document 1. According to this prior art, the operating frequency is set to a low frequency in the standby state and set to the normal frequency in the normal state. As a result, a significant reduction in power consumption and a quick transition from the standby state to the normal state are realized. In the prior art, the clock frequency is not switched in the normal state.
JP 11-3131 A [G06F 1/04]

しかし、通常状態の処理モードとして、内部クロックのみを利用してデータ処理を実行するモードと、内部クロックおよび外部クロックを利用してデータ処理を実行するモードとを準備し、内部クロックの周波数をモードに応じて変更する場合、次のような問題が生じる。   However, as a normal processing mode, prepare a mode that executes data processing using only the internal clock and a mode that executes data processing using the internal clock and external clock, and set the frequency of the internal clock to mode. When changing according to the following, the following problems arise.

つまり、前者のモードでは、内部クロックの周波数の変更に先立ってデータ処理を開始しても、処理が破綻することはない。これに対して、後者のモードでは、内部クロックの周波数が変更される前、つまり内部クロックの周波数が外部クロックの周波数と合わせられる前に、データ処理を開始すると、処理が破綻してしまう。   That is, in the former mode, even if data processing is started prior to the change of the frequency of the internal clock, the processing does not fail. On the other hand, in the latter mode, if data processing is started before the internal clock frequency is changed, that is, before the internal clock frequency is matched with the external clock frequency, the processing fails.

それゆえに、この発明の主たる目的は、処理の破綻を防止でき、かつデータ処理を迅速に実行できる、データ処理装置を提供することである。     SUMMARY OF THE INVENTION Therefore, a main object of the present invention is to provide a data processing apparatus that can prevent processing failure and can execute data processing quickly.

この発明に従うデータ処理装置は、複数の転送モードのいずれか1つを選択する選択手段、トリガが発行されたとき選択手段によって選択された転送モードに従うデータ転送を内部クロックに応答して実行する転送手段、内部クロックの周波数を選択手段によって選択された転送モードに対応する周波数に設定する設定手段、選択手段によるモード選択が所定条件を満足するか否かを判別する判別手段、および判別手段の判別結果が肯定的であるとき設定手段の設定動作が完了するまでトリガの発行タイミングを遅らせる遅延手段を備え、所定条件は、選択手段によって今回選択された転送モードが外部クロックに応答するプロセサと協働してデータ転送を実行する特定転送モードであるというモード条件を含む。   A data processing apparatus according to the present invention includes a selecting unit that selects one of a plurality of transfer modes, and a transfer that executes data transfer according to the transfer mode selected by the selecting unit in response to an internal clock when a trigger is issued A setting means for setting the frequency of the internal clock to a frequency corresponding to the transfer mode selected by the selection means; a determination means for determining whether the mode selection by the selection means satisfies a predetermined condition; and a determination by the determination means When the result is affirmative, the delay unit delays the trigger issuance timing until the setting operation of the setting unit is completed, and the predetermined condition cooperates with the processor whose transfer mode currently selected by the selection unit responds to the external clock. And a mode condition that the data transfer is a specific transfer mode.

選択手段は、複数の転送モードのいずれか1つを選択する。トリガが発行されると、選択手段によって選択された転送モードに従うデータ転送が転送手段によって実行される。このデータ転送は、内部クロックに応答する。設定手段は、かかる内部クロックの周波数を選択手段によって選択された転送モードに対応する周波数に設定する。   The selection unit selects any one of a plurality of transfer modes. When the trigger is issued, the data transfer according to the transfer mode selected by the selection unit is executed by the transfer unit. This data transfer is responsive to the internal clock. The setting means sets the frequency of the internal clock to a frequency corresponding to the transfer mode selected by the selection means.

選択手段によるモード選択が所定条件を満足するか否かは、判別手段によって判別される。遅延手段は、判別手段の判別結果が肯定的であるとき、設定手段の設定動作が完了するまでトリガの発行タイミングを遅らせる。ここで、所定条件は、選択手段によって今回選択された転送モードが外部クロックに応答するプロセサと協働してデータ転送を実行する特定転送モードであるというモード条件を含む。   Whether the mode selection by the selection means satisfies a predetermined condition is determined by the determination means. The delay means delays the trigger issuance timing until the setting operation of the setting means is completed when the determination result of the determination means is affirmative. Here, the predetermined condition includes a mode condition that the transfer mode selected this time by the selection means is a specific transfer mode in which data transfer is executed in cooperation with a processor that responds to an external clock.

したがって、プロセサと協働してデータ転送を実行する転送モードが選択されたときは、トリガの発行タイミングが遅延される。データ転送は、内部クロックと外部クロックとの間で所定の周波数関係が成立した後に開始される。これによって、処理の破綻が回避される。また、プロセサとの協働が必要でない転送モードが選択されたときは、遅延手段による遅延処理が行われることはない。内部クロックの周波数は、選択された転送モードに対応する周波数に、速やかに設定される。これによって、データ処理が迅速に実行される。   Therefore, when the transfer mode for executing the data transfer in cooperation with the processor is selected, the trigger issue timing is delayed. Data transfer is started after a predetermined frequency relationship is established between the internal clock and the external clock. This avoids processing failures. Further, when a transfer mode that does not require cooperation with the processor is selected, delay processing by the delay means is not performed. The frequency of the internal clock is quickly set to a frequency corresponding to the selected transfer mode. As a result, data processing is performed quickly.

請求項2の発明に従うデータ処理装置は、請求項1に従属し、転送手段はバースト転送態様でメモリにアクセスするアクセス手段を含む。これによって、高速アクセスが実現される。   A data processing apparatus according to a second aspect of the present invention is dependent on the first aspect, and the transfer means includes access means for accessing the memory in a burst transfer mode. Thereby, high-speed access is realized.

請求項3の発明に従うデータ処理装置は、請求項2に従属し、所定条件は、選択手段によって今回選択された転送モードに対応する内部クロックの周波数が選択手段によって前回選択された転送モードに対応する内部クロックの周波数よりも低いという周波数条件をさらに含む。これによって、内部クロックの周波数を上昇方向に変更させる場合、所定条件は満足されず、トリガの発行が遅延手段によって遅延されることはない。   The data processing apparatus according to the invention of claim 3 is dependent on claim 2, and the predetermined condition corresponds to a transfer mode in which the frequency of the internal clock corresponding to the transfer mode selected this time by the selection means is selected by the selection means. The frequency condition is lower than the frequency of the internal clock. Thus, when the frequency of the internal clock is changed in the upward direction, the predetermined condition is not satisfied, and the trigger is not delayed by the delay means.

バースト転送では、データアクセスに先立ってオーバヘッドが生じる。このオーバヘッドの時間帯では、内部クロックと外部クロックとの間で所定の周波数関係が成立する必要性はない。ここで、オーバヘッドに要する時間長さは、内部クロックの周波数に依存する。つまり、内部クロックの周波数が低いほど、オーバヘッドの時間は長くなる。したがって、設定手段はデータアクセスが開始される前に設定動作を完了することができ、処理の破綻の回避が可能となる。   In burst transfer, overhead occurs prior to data access. In this overhead time zone, there is no need to establish a predetermined frequency relationship between the internal clock and the external clock. Here, the length of time required for the overhead depends on the frequency of the internal clock. That is, the lower the internal clock frequency, the longer the overhead time. Therefore, the setting means can complete the setting operation before the data access is started, and it is possible to avoid processing failure.

請求項4の発明に従うデータ処理装置は、請求項1ないし3のいずれかに従属し、転送手段はデータ転送に先立って転送要求を発生する発生手段を含み、トリガは転送要求を承認する承認信号である。   A data processing device according to a fourth aspect of the present invention is dependent on any one of the first to third aspects, wherein the transfer means includes a generation means for generating a transfer request prior to the data transfer, and the trigger is an approval signal for approving the transfer request. It is.

この発明によれば、プロセサと協働してデータ転送を実行する転送モードが選択されたときは、トリガの発行タイミングが遅延される。データ転送は、内部クロックと外部クロックとの間で所定の周波数関係が成立した後に開始される。これによって、処理の破綻が回避される。また、プロセサとの協働が必要でない転送モードが選択されたときは、遅延手段による遅延処理が行われることはない。内部クロックの周波数は、選択された転送モードに対応する周波数に、速やかに設定される。これによって、データ処理が迅速に実行される。   According to the present invention, when the transfer mode for executing data transfer in cooperation with the processor is selected, the trigger issue timing is delayed. Data transfer is started after a predetermined frequency relationship is established between the internal clock and the external clock. This avoids processing failures. Further, when a transfer mode that does not require cooperation with the processor is selected, delay processing by the delay means is not performed. The frequency of the internal clock is quickly set to a frequency corresponding to the selected transfer mode. As a result, data processing is performed quickly.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1を参照して、この実施例のデータ処理装置10は、外部クロックを発生するクロック発生器16を含む。CPU14は、クロック発生器16から出力された外部クロックに応答して、1フレームの画像データを記録媒体12からASIC18に転送する。このときの転送速度は54MHzであり、転送された画像データは、バッファ回路20を形成するSRAM20sに蓄積される。なお、1フレームの画像データは、たとえば垂直640画素×水平480画素の解像度を有する。   Referring to FIG. 1, data processing apparatus 10 of this embodiment includes a clock generator 16 that generates an external clock. In response to the external clock output from the clock generator 16, the CPU 14 transfers one frame of image data from the recording medium 12 to the ASIC 18. The transfer speed at this time is 54 MHz, and the transferred image data is stored in the SRAM 20 s forming the buffer circuit 20. Note that one frame of image data has a resolution of, for example, vertical 640 pixels × horizontal 480 pixels.

バッファ回路20を形成するコントローラ20cは、所定量(たとえば64画素)の画像データがSRAM20sに蓄積される毎に、書き込みリクエストをSDRAM制御回路24に与える。この書き込みリクエストがSDRAM制御回路24によって承認されると、コントローラ20cは、SRAM20sに蓄積された所定量の画像データを、アドレス情報とアクセス態様情報とが記述された制御データとともに、SDRAM制御回路24に出力する。   The controller 20c forming the buffer circuit 20 gives a write request to the SDRAM control circuit 24 every time a predetermined amount (for example, 64 pixels) of image data is accumulated in the SRAM 20s. When the write request is approved by the SDRAM control circuit 24, the controller 20c sends a predetermined amount of image data stored in the SRAM 20s to the SDRAM control circuit 24 together with control data in which address information and access mode information are described. Output.

このとき、クロック発生器22から出力される内部クロックは54MHzの周波数を有し、画像データおよび制御データは、54MHzのクロックレートでSDRAM制御回路24に与えられる。SDRAM制御回路24は、所定量の画像データをバースト転送態様でSDRAM26の指定アドレスに書き込む。このような書き込み動作の繰り返しによって、1フレームの画像データがSDRAM26に蓄積される。   At this time, the internal clock output from the clock generator 22 has a frequency of 54 MHz, and the image data and the control data are given to the SDRAM control circuit 24 at a clock rate of 54 MHz. The SDRAM control circuit 24 writes a predetermined amount of image data at a designated address of the SDRAM 26 in a burst transfer manner. By repeating such a writing operation, one frame of image data is accumulated in the SDRAM 26.

一方、バッファ回路28に設けられたコントローラ28cは、読み出しリクエストをSDRAM制御回路24に与える。読み出しリクエストがSDRAM制御回路24によって承認されると、バッファ回路28は、アドレス情報とアクセス態様情報とが記述された制御データをSDRAM制御回路24に与える。SDRAM制御回路24は、SDRAM26の指定アドレスからバースト転送態様で所定量の画像データを読み出し、読み出された画像データをバッファ回路28に転送する。   On the other hand, the controller 28 c provided in the buffer circuit 28 gives a read request to the SDRAM control circuit 24. When the read request is approved by the SDRAM control circuit 24, the buffer circuit 28 provides the SDRAM control circuit 24 with control data in which address information and access mode information are described. The SDRAM control circuit 24 reads a predetermined amount of image data from the designated address of the SDRAM 26 in a burst transfer manner, and transfers the read image data to the buffer circuit 28.

このとき、クロック発生器22は108MHzの内部クロックを出力し、画像データは108MHzのクロックレートでバッファ回路28に与えられる。与えられた画像データは、コントローラ28cによってSRAM28sに蓄積される。このような読み出し動作の繰り返しによって、SDRAM26に格納された画像データが所定量ずつバッファ回路28に転送される。   At this time, the clock generator 22 outputs an internal clock of 108 MHz, and the image data is given to the buffer circuit 28 at a clock rate of 108 MHz. The given image data is stored in the SRAM 28s by the controller 28c. By repeating such a reading operation, the image data stored in the SDRAM 26 is transferred to the buffer circuit 28 by a predetermined amount.

ビデオエンコーダ30は、画像データをSRAM28sから順次読み出し、読み出された画像データをコンポジット画像データにエンコードする。エンコードされたコンポジット画像データは、D/A変換器32によってアナログ信号であるコンポジット画像信号に変換され、変換されたコンポジット画像信号はLCDモニタ34に出力される。この結果、再生画像がモニタ画面に表示される。   The video encoder 30 sequentially reads image data from the SRAM 28s, and encodes the read image data into composite image data. The encoded composite image data is converted into a composite image signal which is an analog signal by the D / A converter 32, and the converted composite image signal is output to the LCD monitor 34. As a result, the reproduced image is displayed on the monitor screen.

なお、所定量の画像データをバッファ回路20からSDRAM26に転送するモードを“書き込みモード”と定義し、所定量の画像データをSDRAM26からバッファ回路28に転送するモードを“読み出しモード”と定義する。また、ASIC18を形成するバッファ回路20,28,SDRAM制御回路24,ビデオエンコーダ30およびD/A変換器32のいずれも、クロック発生器22から出力された内部クロックに同期して処理を行う。   A mode in which a predetermined amount of image data is transferred from the buffer circuit 20 to the SDRAM 26 is defined as a “write mode”, and a mode in which a predetermined amount of image data is transferred from the SDRAM 26 to the buffer circuit 28 is defined as a “read mode”. Also, all of the buffer circuits 20 and 28, the SDRAM control circuit 24, the video encoder 30 and the D / A converter 32 forming the ASIC 18 perform processing in synchronization with the internal clock output from the clock generator 22.

ASIC18は、図2に示すように構成される。かかるASIC18の動作を、図4および図5を参照して説明する。バッファ回路20のコントローラ20cは、書き込みリクエストW_REQを優先順位決定回路50に出力し、バッファ回路28のコントローラ28cは、読み出しリクエストR_REQを優先順位決定回路50に出力する。   The ASIC 18 is configured as shown in FIG. The operation of the ASIC 18 will be described with reference to FIGS. The controller 20 c of the buffer circuit 20 outputs the write request W_REQ to the priority determination circuit 50, and the controller 28 c of the buffer circuit 28 outputs the read request R_REQ to the priority determination circuit 50.

優先順位決定回路50は、所定量の画像データDTの転送が完了する毎に、優先順位に従って、バッファ回路20(つまり書き込みモード)またはバッファ回路28(つまり読み出しモード)を選択する。優先順位決定回路50からは、選択されたバッファ回路の識別番号が記述された選択番号SNO.が出力される。選択番号SNO.は、バッファ回路20が選択されたとき“1”を示し、バッファ回路28が選択されたとき“2”を示す。生成された選択番号SNO.は、バッファ回路20および28,セレクタ40,42および44,S_ACK生成回路38,クロック制御回路36に与えられる。   The priority determination circuit 50 selects the buffer circuit 20 (that is, the writing mode) or the buffer circuit 28 (that is, the reading mode) according to the priority every time the transfer of the predetermined amount of image data DT is completed. From the priority order determination circuit 50, a selection number SNO. Is output. Selection number SNO. Indicates “1” when the buffer circuit 20 is selected and indicates “2” when the buffer circuit 28 is selected. The generated selection number SNO. Is supplied to buffer circuits 20 and 28, selectors 40, 42 and 44, S_ACK generation circuit 38, and clock control circuit 36.

なお、優先順位決定回路50は、所定量の画像データDTの転送が完了した時点で後続のリクエストが存在しないとき、選択番号SNO.を“0”に設定する。   Note that the priority determination circuit 50 selects the selection number SNO.2 when there is no subsequent request when the transfer of the predetermined amount of image data DT is completed. Is set to “0”.

バッファ回路20および28の各々は、返送された選択番号SNO.を自分に割り当てられた識別番号と比較する。比較結果が“一致”を示すバッファ回路は、S_ACK回路38から出力されるアクティブLの承認信号S_ACKが立ち下がったときに、アクセス動作を開始する。バッファ回路20が選択されたときは、アドレス情報Adrsおよびアクセス態様情報Wが記述された制御データがコントローラ20cから出力され、所定量の画像データDTがSRAM20sから出力される。バッファ28が選択されたときは、アドレス情報Adrsおよびアクセス態様情報Rが記述された制御データがコントローラ28cから出力される。   Each of the buffer circuits 20 and 28 has a selection number SNO. Is compared to the identification number assigned to you. When the comparison result indicates “match”, the buffer circuit starts the access operation when the active L acknowledgment signal S_ACK output from the S_ACK circuit 38 falls. When the buffer circuit 20 is selected, control data describing the address information Adrs and the access mode information W is output from the controller 20c, and a predetermined amount of image data DT is output from the SRAM 20s. When the buffer 28 is selected, control data describing the address information Adrs and the access mode information R is output from the controller 28c.

セレクタ40,42および44の各々は、選択番号SNO.に対応するバッファ回路を選択する。セレクタ40は、選択されたバッファ回路からのアクセス態様情報R/Wをコマンド生成回路46に与え、セレクタ42は、選択されたバッファ回路からのアドレス情報Adrsをアドレスコンバータ48に与える。セレクタ44は、選択番号SNO.が“1”を示すときバッファ回路20から出力された画像データDTをSDRAM26に与え、選択番号SNO.が“2”を示すときSDRAM26から読み出された画像データDTをバッファ回路28に与える。   Each of selectors 40, 42 and 44 has a selection number SNO. The buffer circuit corresponding to is selected. The selector 40 provides access mode information R / W from the selected buffer circuit to the command generation circuit 46, and the selector 42 provides address information Adrs from the selected buffer circuit to the address converter 48. The selector 44 selects the selection number SNO. Indicates "1", the image data DT output from the buffer circuit 20 is applied to the SDRAM 26, and the selection number SNO. When “2” indicates “2”, the image data DT read from the SDRAM 26 is supplied to the buffer circuit 28.

コマンド生成回路46は、セレクタ40からのアクセス態様情報R/Wに対応するコマンドCMNDを生成し、生成されたコマンドCMNDをSDRAM26に与える。アドレスコンバータ48は、セレクタ42からのアドレス情報Adrsが示すアドレスをSDRAM26の実アドレスADRSに変換し、変換された実アドレスADRSをSDRAM26に与える。この結果、セレクタ44から出力された画像データDTがSDRAM26の所望アドレスに書き込まれ、あるいはセレクタ44に向けられた画像データDTがSDRAM26の所望アドレスから読み出される。   The command generation circuit 46 generates a command CMND corresponding to the access mode information R / W from the selector 40, and gives the generated command CMND to the SDRAM 26. The address converter 48 converts the address indicated by the address information Adrs from the selector 42 into the real address ADRS of the SDRAM 26, and gives the converted real address ADRS to the SDRAM 26. As a result, the image data DT output from the selector 44 is written to the desired address of the SDRAM 26, or the image data DT directed to the selector 44 is read from the desired address of the SDRAM 26.

なお、所定量の画像データDTの書き込み/読み出しが終了すると、アクティブHの終了信号がコマンド生成回路46から出力される。終了信号ENDは、書き込み/読み出しの終了に応答して立ち上がり、立ち上がりから1クロック期間が経過した時点で立ち下がる。   When the writing / reading of the predetermined amount of image data DT is completed, an active H end signal is output from the command generation circuit 46. The end signal END rises in response to the end of writing / reading, and falls when one clock period has elapsed from the rise.

クロック制御回路36は、優先順位決定回路50からの選択番号SNO.に基づいて、アクティブHのリクエストC54_REQまたはC108_REQをクロック発生器22に出力する。選択番号SNO.が“1”を示すときはリクエストC54_REQが立ち上がり、選択番号SNO.が“2”を示すときはリクエストC108_REQが立ち上がる。   The clock control circuit 36 selects the selection number SNO. Based on the above, the active C request C54_REQ or C108_REQ is output to the clock generator 22. Selection number SNO. Indicates "1", the request C54_REQ rises and the selection number SNO. Indicates “2”, the request C108_REQ rises.

リクエストC54_REQの立ち上がりタイミングは選択番号SNO.が“1”を示すと同時であり、リクエストC108_REQの立ち上がりタイミングは選択番号SNO.が“2”を示してから1クロック期間が経過した時点である。また、リクエストC54_REQまたはC108_REQは、アクティブLの承認信号S_ACKが立ち上がるタイミングで立ち下がる。   The rising timing of the request C54_REQ is the selection number SNO. Indicates “1”, and the rising timing of the request C108_REQ is the selection number SNO. Is the time when one clock period has elapsed since the value of “2” indicates “2”. Further, the request C54_REQ or C108_REQ falls at the timing when the active L acknowledgment signal S_ACK rises.

クロック発生器22は、リクエストC54_REQの立ち上がりに応答してアクティブHの承認信号C54_ACKを立ち上げ、リクエストC54_REQの立ち下がりに応答してアクティブHの承認信号C54_ACKを立ち下げる。クロック発生器22はまた、リクエストC108_REQの立ち上がりに応答してアクティブHの承認信号C108_ACKを立ち上げ、リクエストC108_REQの立ち下がりに応答してアクティブHの承認信号C108_ACKを立ち下げる。承認信号C54_ACKは、クロック制御回路36に入力される。承認信号C108_ACKは、クロック制御回路36およびS_ACK生成回路38に与えられる。   The clock generator 22 raises the active H acknowledgment signal C54_ACK in response to the rising edge of the request C54_REQ, and falls the active H acknowledgment signal C54_ACK in response to the falling edge of the request C54_REQ. The clock generator 22 also raises the active H acknowledgment signal C108_ACK in response to the rising edge of the request C108_REQ, and falls the active H acknowledgment signal C108_ACK in response to the falling edge of the request C108_REQ. The approval signal C54_ACK is input to the clock control circuit 36. The approval signal C108_ACK is supplied to the clock control circuit 36 and the S_ACK generation circuit 38.

クロック発生器22は、承認信号C54_ACKがHレベルを維持する期間に内部クロックS_CLKの周波数を54MHzに設定し、承認信号C108_ACKがHレベルを維持する期間に内部クロックS_CLKの周波数を108MHzに設定し、そして承認信号C54_ACKおよびC108_ACKのいずれもがLレベルを維持する期間に内部クロックS_CLKの周波数を27MHzに設定する。   The clock generator 22 sets the frequency of the internal clock S_CLK to 54 MHz while the approval signal C54_ACK maintains the H level, and sets the frequency of the internal clock S_CLK to 108 MHz while the approval signal C108_ACK maintains the H level. Then, the frequency of the internal clock S_CLK is set to 27 MHz in a period in which both of the approval signals C54_ACK and C108_ACK are maintained at the L level.

S_ACK生成回路38は、図3に示すように構成される。図4に示す期間Aにおいて、S_ACK生成回路38は、図6に示す要領で動作する。クロック発生器22からの承認信号C108_ACKはアクセス制限回路38aに与えられ、優先順位決定回路50からの選択番号SNO.はアクセス制限回路38aおよびアクセス開始命令回路38bに与えられ、そしてコマンド生成回路46からの終了信号ENDはフリップフロップ回路38dのR端子に与えられる。   The S_ACK generation circuit 38 is configured as shown in FIG. In the period A shown in FIG. 4, the S_ACK generation circuit 38 operates in the manner shown in FIG. The acknowledgment signal C108_ACK from the clock generator 22 is given to the access restriction circuit 38a, and the selection number SNO. Is supplied to the access restriction circuit 38a and the access start instruction circuit 38b, and the end signal END from the command generation circuit 46 is supplied to the R terminal of the flip-flop circuit 38d.

アクセス開始命令回路38bは、選択番号SNO.が“0”から“1”または“2”に更新されたとき、あるいは選択番号SNO.が“1”および“2”の間で変更されたとき、アクティブHの開始信号STRTを所定の数十クロック期間にわたって立ち上げる。   The access start command circuit 38b selects the selection number SNO. Is updated from “0” to “1” or “2”, or the selection number SNO. Is changed between “1” and “2”, the active high start signal STRT is raised for a predetermined tens of clock periods.

アクセス制限回路38aは、承認信号C108_ACKがHレベルの状態で選択番号SNO.が“1”を示したとき、アクティブHの遅延信号DLYを立ち上げる。つまり、遅延信号DLYの立ち上げには、今回選択される転送モードがCPU14と協働してデータ転送を実行する書き込みモードであるというモード条件と、内部クロックS_CLKの周波数の変更方向が減少方向(108MHz→54MHz)であるという周波数条件とが要求される。この2つの条件が満たされなければ遅延信号DLYはLレベルを維持し、この2つの条件が満たされると遅延信号DLYはHレベルに移行する。   The access restriction circuit 38a selects the selection number SNO. With the approval signal C108_ACK at the H level. When "1" indicates "1", the active H delay signal DLY is raised. That is, for the rise of the delay signal DLY, the mode condition that the transfer mode selected this time is a write mode in which data transfer is executed in cooperation with the CPU 14 and the direction of changing the frequency of the internal clock S_CLK is decreasing ( 108 MHz → 54 MHz) is required. If these two conditions are not satisfied, the delay signal DLY maintains the L level, and if these two conditions are satisfied, the delay signal DLY shifts to the H level.

なお、Hレベルに移行した遅延信号DLYは、承認信号C108_ACKの立ち下がりと同時に立ち下がる。   Note that the delay signal DLY that has shifted to the H level falls simultaneously with the fall of the approval signal C108_ACK.

開始信号STRTおよび遅延信号DLYはそれぞれ、ANDゲート38cの非反転入力端子および反転入力端子に与えられる。遅延信号DLYがLレベルのとき、ANDゲート38cの出力信号ANDは、開始信号STRTの立ち上がりと同時に立ち上がる。一方、遅延信号DLYがHレベルのとき、ANDゲート38cの出力信号ANDは、承認信号C108_ACKの立ち下がりと同時に立ち上がる。ANDゲート38cの出力信号ANDは、フリップフロップ回路38dのS端子に与えられる。   The start signal STRT and the delay signal DLY are applied to the non-inverting input terminal and the inverting input terminal of the AND gate 38c, respectively. When the delay signal DLY is at L level, the output signal AND of the AND gate 38c rises simultaneously with the rise of the start signal STRT. On the other hand, when the delay signal DLY is at the H level, the output signal AND of the AND gate 38c rises simultaneously with the fall of the approval signal C108_ACK. The output signal AND of the AND gate 38c is supplied to the S terminal of the flip-flop circuit 38d.

フリップフロップ回路38dは、S端子の立ち上がりに応答してQ端子の出力を立ち上げ、R端子の立ち上がりに応答してQ端子の出力を立ち下げる。Q端子の出力はインバータ38eで反転され、これによってアクティブLの承認信号S_ACKが生成される。   The flip-flop circuit 38d raises the output of the Q terminal in response to the rise of the S terminal, and falls the output of the Q terminal in response to the rise of the R terminal. The output of the Q terminal is inverted by the inverter 38e, thereby generating an active L acknowledgment signal S_ACK.

したがって、転送モードが読み出しモードから書き込みモードに変更される場合(108MHz→54MHz)、承認信号S_ACKは、承認信号C108_ACKの立ち下がりに応答して立ち下がる。一方、転送モードが書き込みモードから読み出しモードに変更される場合(54MHz→108MHz)、書き込みモードが連続する場合(54MHz→54MHz)、あるいは読み出しモードが連続する場合(108MHz→108MHz)、承認信号S_ACKは、開始信号STRTの立ち上がりと同時に立ち下がる。   Therefore, when the transfer mode is changed from the read mode to the write mode (108 MHz → 54 MHz), the approval signal S_ACK falls in response to the fall of the approval signal C108_ACK. On the other hand, when the transfer mode is changed from the write mode to the read mode (54 MHz → 108 MHz), when the write mode is continuous (54 MHz → 54 MHz), or when the read mode is continuous (108 MHz → 108 MHz), the approval signal S_ACK is The signal falls at the same time as the start signal STRT rises.

なお、立ち下がった承認信号S_ACKは、上述のように、所定量の画像データDTの転送が完了した時点で立ち上がる。   Note that the falling approval signal S_ACK rises when the transfer of the predetermined amount of image data DT is completed as described above.

以上の説明から分かるように、優先順位決定回路50は、複数の転送モードのいずれか1つを選択する。承認信号S_ACK(トリガ)がS_ACK生成回路38から出力されると、優先順位決定回路50によって選択された転送モードに従うデータ転送が、バッファ回路20または28によって実行される。このデータ転送は、クロック発生器22から出力された内部クロックS_CLKに応答する。クロック制御回路36は、かかる内部クロックS_CLKの周波数を優先順位決定回路50によって選択された転送モードに対応する周波数に設定する。   As can be understood from the above description, the priority determination circuit 50 selects one of a plurality of transfer modes. When the acknowledgment signal S_ACK (trigger) is output from the S_ACK generation circuit 38, the buffer circuit 20 or 28 performs data transfer according to the transfer mode selected by the priority determination circuit 50. This data transfer is in response to the internal clock S_CLK output from the clock generator 22. The clock control circuit 36 sets the frequency of the internal clock S_CLK to a frequency corresponding to the transfer mode selected by the priority determination circuit 50.

優先順位決定回路50によるモード選択が所定条件を満足するか否かは、アクセス制限回路38aによって判別される。ANDゲート38cは、アクセス制限回路38aの判別結果が肯定的であるとき、クロック制御回路36の設定動作が完了するまで承認信号S_ACKの出力タイミングを遅らせる。   Whether or not the mode selection by the priority determination circuit 50 satisfies a predetermined condition is determined by the access restriction circuit 38a. When the determination result of the access restriction circuit 38a is affirmative, the AND gate 38c delays the output timing of the approval signal S_ACK until the setting operation of the clock control circuit 36 is completed.

ここで、所定条件は、優先順位決定回路50によって今回選択された転送モードが外部クロックに応答するCPU14と協働してデータ転送を実行する書き込みモード(特定転送モード)であるというモード条件を含む。   Here, the predetermined condition includes a mode condition that the transfer mode selected this time by the priority determination circuit 50 is a write mode (specific transfer mode) in which data transfer is performed in cooperation with the CPU 14 responding to the external clock. .

したがって、CPU14と協働してデータ転送を実行する書き込みモードが選択されたときは、承認信号S_ACKの出力タイミングが遅延される。データ転送は、内部クロックS_CLKの周波数が54MHzに設定された後に開始される。これによって、処理の破綻が回避される。また、CPU14との協働が必要でない読み出しモードが選択されたときは、承認信号S_ACKの発行タイミングが遅延されることはない。内部クロックS_CLKの周波数は、選択された転送モードに対応する周波数に、速やかに設定される。これによって、データ処理が迅速に実行される。   Therefore, when the write mode for executing data transfer in cooperation with the CPU 14 is selected, the output timing of the approval signal S_ACK is delayed. Data transfer is started after the frequency of the internal clock S_CLK is set to 54 MHz. This avoids processing failures. Further, when a read mode that does not require cooperation with the CPU 14 is selected, the issuing timing of the approval signal S_ACK is not delayed. The frequency of the internal clock S_CLK is quickly set to a frequency corresponding to the selected transfer mode. As a result, data processing is performed quickly.

また、所定条件は、優先順位決定回路50によって今回選択された転送モードに対応する内部クロックS_CLKの周波数が優先順位決定回路50によって前回選択された転送モードに対応する内部クロックS_CLKの周波数よりも低いという周波数条件をさらに含む。これによって、内部クロックS_CLKの周波数を上昇方向に変更させる場合、所定条件は満足されず、承認信号S_ACKの発行が遅延されることはない。   Further, the predetermined condition is that the frequency of the internal clock S_CLK corresponding to the transfer mode selected this time by the priority determining circuit 50 is lower than the frequency of the internal clock S_CLK corresponding to the transfer mode previously selected by the priority determining circuit 50. The frequency condition is further included. Accordingly, when the frequency of the internal clock S_CLK is changed in the upward direction, the predetermined condition is not satisfied, and the issue of the approval signal S_ACK is not delayed.

バースト転送では、データアクセスに先立ってオーバヘッドが生じる。このオーバヘッドの時間帯では、内部クロックS_CLKと外部クロックとの間で所定の周波数関係が成立する必要性はない。ここで、オーバヘッドに要する時間長さは、内部クロックS_CLKの周波数に依存する。つまり、内部クロックS_CLKの周波数が低いほど、オーバヘッドの時間は長くなる。したがって、クロック制御回路36は、データアクセスが開始される前に設定動作を完了することができ、処理の破綻の回避が可能となる。   In burst transfer, overhead occurs prior to data access. In this overhead time zone, there is no need to establish a predetermined frequency relationship between the internal clock S_CLK and the external clock. Here, the time length required for the overhead depends on the frequency of the internal clock S_CLK. That is, the lower the frequency of the internal clock S_CLK, the longer the overhead time. Therefore, the clock control circuit 36 can complete the setting operation before the data access is started, and it is possible to avoid the failure of the process.

なお、この実施例では、遅延信号DLYを立ち上げる条件として、内部クロックS_CLKの周波数が減少方向(108MHz→54MHz)に変更されるという周波数条件を要求しているが、この周波数条件は省略してもよい。周波数条件を省略した場合、遅延信号DLYは、内部クロックS_CLKの周波数が27MHzから54MHzに変更されるとき、つまりアイドル状態から書き込みモードに移行したときにも、立ち上がる。   In this embodiment, as a condition for raising the delay signal DLY, a frequency condition that the frequency of the internal clock S_CLK is changed in a decreasing direction (108 MHz → 54 MHz) is required, but this frequency condition is omitted. Also good. When the frequency condition is omitted, the delay signal DLY rises also when the frequency of the internal clock S_CLK is changed from 27 MHz to 54 MHz, that is, when the write mode is shifted from the idle state.

この発明の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of this invention. 図1実施例に適用されるSDRAM制御回路の構成の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of a configuration of an SDRAM control circuit applied to the embodiment in FIG. 1. 図2実施例に適用されるS_ACK生成回路の構成の一例を示すブロック図である。FIG. 3 is a block diagram illustrating an example of a configuration of an S_ACK generation circuit applied to the embodiment in FIG. 2. 図2実施例の動作の一部を示すタイミング図である。FIG. 3 is a timing chart showing a part of the operation of the embodiment in FIG. 2; 図2実施例の動作の他の一部を示すタイミング図である。FIG. 10 is a timing diagram showing another part of the operation of the embodiment in FIG. 2; 図3実施例の動作の一部を示すタイミング図である。FIG. 4 is a timing chart showing a part of the operation of the embodiment in FIG. 3;

符号の説明Explanation of symbols

10 …ディジタルカメラ
14 …CPU
16,22 …クロック発生器
18 …ASIC
20,28 …バッファ回路
24 …SDRAM制御回路
26 …SDRAM
10 ... Digital camera 14 ... CPU
16, 22 ... Clock generator 18 ... ASIC
20, 28 ... Buffer circuit 24 ... SDRAM control circuit 26 ... SDRAM

Claims (4)

複数の転送モードのいずれか1つを選択する選択手段、
トリガが発行されたとき前記選択手段によって選択された転送モードに従うデータ転送を内部クロックに応答して実行する転送手段、
前記内部クロックの周波数を前記選択手段によって選択された転送モードに対応する周波数に設定する設定手段、
前記選択手段によるモード選択が所定条件を満足するか否かを判別する判別手段、および
前記判別手段の判別結果が肯定的であるとき前記設定手段の設定動作が完了するまで前記トリガの発行タイミングを遅らせる遅延手段を備え、
前記所定条件は、前記選択手段によって今回選択された転送モードが外部クロックに応答するプロセサと協働して前記データ転送を実行する特定転送モードであるというモード条件を含む、データ処理装置。
Selection means for selecting any one of a plurality of transfer modes;
Transfer means for executing data transfer according to the transfer mode selected by the selection means in response to an internal clock when a trigger is issued;
Setting means for setting the frequency of the internal clock to a frequency corresponding to the transfer mode selected by the selection means;
Determining means for determining whether or not the mode selection by the selecting means satisfies a predetermined condition; and when the determination result of the determining means is affirmative, issuance timing of the trigger until the setting operation of the setting means is completed With delay means to delay,
The data processing apparatus, wherein the predetermined condition includes a mode condition that a transfer mode selected this time by the selection unit is a specific transfer mode in which the data transfer is executed in cooperation with a processor that responds to an external clock.
前記転送手段はバースト転送態様でメモリにアクセスするアクセス手段を含む、請求項1記載のデータ処理装置。   2. The data processing apparatus according to claim 1, wherein said transfer means includes access means for accessing the memory in a burst transfer mode. 前記所定条件は、前記選択手段によって今回選択された転送モードに対応する前記内部クロックの周波数が前記選択手段によって前回選択された転送モードに対応する前記内部クロックの周波数よりも低いという周波数条件をさらに含む、請求項2記載のデータ処理装置。   The predetermined condition further includes a frequency condition that a frequency of the internal clock corresponding to the transfer mode currently selected by the selection unit is lower than a frequency of the internal clock corresponding to the transfer mode selected last by the selection unit. The data processing apparatus according to claim 2, further comprising: 前記転送手段は前記データ転送に先立って転送要求を発生する発生手段を含み、
前記トリガは前記転送要求を承認する承認信号である、請求項1ないし3のいずれかに記載のデータ処理装置。
The transfer means includes generating means for generating a transfer request prior to the data transfer;
The data processing apparatus according to claim 1, wherein the trigger is an approval signal for approving the transfer request.
JP2004251937A 2004-08-31 2004-08-31 Data processing device Expired - Fee Related JP4666980B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004251937A JP4666980B2 (en) 2004-08-31 2004-08-31 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004251937A JP4666980B2 (en) 2004-08-31 2004-08-31 Data processing device

Publications (2)

Publication Number Publication Date
JP2006072454A true JP2006072454A (en) 2006-03-16
JP4666980B2 JP4666980B2 (en) 2011-04-06

Family

ID=36153057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004251937A Expired - Fee Related JP4666980B2 (en) 2004-08-31 2004-08-31 Data processing device

Country Status (1)

Country Link
JP (1) JP4666980B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11144234B2 (en) 2018-05-30 2021-10-12 Fujitsu Limited Apparatus, method for storage access management, and non-transitory computer-readable storage medium for storing program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0362252A (en) * 1989-07-31 1991-03-18 Toshiba Corp Picture information processor
JPH08263436A (en) * 1995-03-20 1996-10-11 Fujitsu Ltd Data transfer device
JP2002328744A (en) * 2001-04-27 2002-11-15 Fujitsu Ltd Semiconductor integrated circuit device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0362252A (en) * 1989-07-31 1991-03-18 Toshiba Corp Picture information processor
JPH08263436A (en) * 1995-03-20 1996-10-11 Fujitsu Ltd Data transfer device
JP2002328744A (en) * 2001-04-27 2002-11-15 Fujitsu Ltd Semiconductor integrated circuit device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11144234B2 (en) 2018-05-30 2021-10-12 Fujitsu Limited Apparatus, method for storage access management, and non-transitory computer-readable storage medium for storing program

Also Published As

Publication number Publication date
JP4666980B2 (en) 2011-04-06

Similar Documents

Publication Publication Date Title
JP2009098822A (en) Data processor and shared memory accessing method
JP2007172254A (en) Memory control circuit
JP4666980B2 (en) Data processing device
TWI377474B (en) Data processing device and monitor using thereof
JP2006343946A (en) Memory access controller, and computer program
JP2004171678A (en) Apparatus, method, and program for storing information
JP2009059412A (en) Refresh controller and method thereof
US7113208B1 (en) Image processing apparatus, image processing method and recording medium
JP2011034214A (en) Memory controller
JP2009063699A (en) Image display drive unit and image display system
JP2006109224A (en) Imaging apparatus
WO2010086914A1 (en) Video signal processing device, video signal processing system, and video signal processing method
JP2009163172A (en) Display system and projector
US11153478B2 (en) Image processing device
JP4335784B2 (en) Scanner image data transfer apparatus and method
JP2006337859A (en) Display control device and method, and program
JP2008225894A (en) Sdram controller
JP5489871B2 (en) Image processing device
JPH07311842A (en) Picture storage device
JP2007071940A (en) Memory for display
JP2006303629A (en) Frame rate conversion device, frame conversion method, and display device
JPS6024474B2 (en) Storage device
US20070073961A1 (en) Memory controller
JP2006164323A (en) Refresh control circuit for dram
JP2005063181A (en) Synchronous dram controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101001

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: 20101214

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Effective date: 20110111

Free format text: JAPANESE INTERMEDIATE CODE: A61

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140121

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140121

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140121

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140121

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees