[go: up one dir, main page]

JP2018072896A - Bus control device and control method thereof - Google Patents

Bus control device and control method thereof Download PDF

Info

Publication number
JP2018072896A
JP2018072896A JP2016208036A JP2016208036A JP2018072896A JP 2018072896 A JP2018072896 A JP 2018072896A JP 2016208036 A JP2016208036 A JP 2016208036A JP 2016208036 A JP2016208036 A JP 2016208036A JP 2018072896 A JP2018072896 A JP 2018072896A
Authority
JP
Japan
Prior art keywords
bus
frequency
clock
clock signal
control device
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.)
Pending
Application number
JP2016208036A
Other languages
Japanese (ja)
Inventor
美馬 毅
Takeshi Mima
毅 美馬
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 JP2016208036A priority Critical patent/JP2018072896A/en
Publication of JP2018072896A publication Critical patent/JP2018072896A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Bus Control (AREA)
  • Power Sources (AREA)

Abstract

【課題】動作していない箇所の消費電力を低下させるとともに、装置のハングアップを防止できる技術を提供する。【解決手段】バス制御装置100において、バス調停部は、アクセス要求を出力する複数のバスマスタからのアクセス要求を調停して、バスマスタからのアクセス要求を受け付けるとともに、そのアクセス要求が受け付けられた第1バスマスタに供給するクロック信号の周波数を第1周波数とし、複数のバスマスタの内、第1バスマスタ以外のバスマスタに供給するクロック信号の周波数を第1周波数よりも低い第2周波数とする。【選択図】図1The present invention provides a technique capable of reducing power consumption in a portion that is not operating and preventing an apparatus from hanging up. In a bus control device, a bus arbitration unit arbitrates access requests from a plurality of bus masters that output an access request, receives an access request from the bus master, and receives a first access request that has been received. The frequency of the clock signal supplied to the bus master is a first frequency, and the frequency of the clock signal supplied to a bus master other than the first bus master among the plurality of bus masters is a second frequency lower than the first frequency. [Selection] Figure 1

Description

本発明は、バス制御装置とその制御方法に関するものである。   The present invention relates to a bus control device and a control method therefor.

半導体集積回路の省電力制御において、動作していない部分へのクロック信号の供給を遮断するクロックゲーティング手法は、回路全体の消費電力を低減する手法として広く利用されている。例えば特許文献1には、このクロックゲーティング手法をバス制御装置に採用し、バスの使用状況に応じて装置の低電力化を図る技術が提案されている。これによれば、バス調停回路において、複数のバスマスタから同一のバススレーブに対するアクセス要求の競合状態を検出して、バス権を獲得できなかったバスマスタに対応するバス調停回路内の要求保持回路へクロック信号の供給を停止している。これにより、バスマスタが待ち状態や転送要求を発行していないときは、バス調停回路内のバスマスタに対応する転送回路の消費電力を低減させることができる。   In power saving control of a semiconductor integrated circuit, a clock gating technique for cutting off supply of a clock signal to a non-operating part is widely used as a technique for reducing power consumption of the entire circuit. For example, Patent Document 1 proposes a technique for adopting this clock gating method in a bus control device and reducing the power consumption of the device in accordance with the bus usage status. According to this, in the bus arbitration circuit, a competition state of access requests to the same bus slave from a plurality of bus masters is detected, and the clock is sent to the request holding circuit in the bus arbitration circuit corresponding to the bus master that cannot acquire the bus right. The signal supply is stopped. Thereby, when the bus master does not issue a waiting state or a transfer request, the power consumption of the transfer circuit corresponding to the bus master in the bus arbitration circuit can be reduced.

特開2004−185375号公報JP 2004-185375 A

しかしながら、動作していない部分へのクロック信号の供給を停止すると、例えば、クロック信号が供給されていない回路内のレジスタに対してCPUからアクセス要求が発生した場合、そのアクセス要求に対する応答信号等を発行できない。このため、CPUはアクセス要求に対する応答信号が受信できないため待ち状態となり、動作がハングアップしてしまう。このような場合は、動作しているOSやソフトウェアでの制御が不能になり、装置の電源を遮断したり、或いはリセット操作をしないと復帰できないという課題がある。   However, when the supply of the clock signal to the non-operating part is stopped, for example, when an access request is generated from the CPU to a register in the circuit to which the clock signal is not supplied, a response signal to the access request is given. It cannot be issued. For this reason, since the CPU cannot receive a response signal to the access request, the CPU enters a waiting state, and the operation hangs up. In such a case, there is a problem that control by the operating OS and software becomes impossible, and the apparatus cannot be restored unless the power of the apparatus is shut off or a reset operation is performed.

本発明の目的は、上記従来技術の課題を解決することにある。   An object of the present invention is to solve the above-described problems of the prior art.

本発明の目的は、動作していない箇所の消費電力を低下させるとともに、装置のハングアップを防止できる技術を提供することにある。   The objective of this invention is providing the technique which can prevent the hang-up of an apparatus while reducing the power consumption of the location which is not operate | moving.

上記目的を達成するために本発明の一態様に係るバス制御装置は以下のような構成を備える。即ち、
アクセス要求を出力する複数のバスマスタと、
前記複数のバスマスタからのアクセス要求を調停して、バスマスタからのアクセス要求を受け付ける調停手段と、
前記調停手段によってアクセス要求が受け付けられた第1バスマスタに供給するクロック信号の周波数を第1周波数とし、前記複数のバスマスタの内、前記第1バスマスタ以外のバスマスタに供給するクロック信号の周波数を前記第1周波数よりも低い第2周波数とするクロック制御手段と、を有することを特徴とする。
In order to achieve the above object, a bus control device according to an aspect of the present invention has the following configuration. That is,
Multiple bus masters that output access requests;
Arbitration means for arbitrating access requests from the plurality of bus masters and receiving access requests from the bus masters;
The frequency of the clock signal supplied to the first bus master for which the access request has been accepted by the arbitration means is the first frequency, and the frequency of the clock signal supplied to the bus masters other than the first bus master among the plurality of bus masters is the first frequency. And a clock control means for setting a second frequency lower than the first frequency.

本発明によれば、データ転送を行わないバスマスタへ供給するクロックの周波数を低下させ、データ転送を行うバスマスタへ供給するクロックの周波数を、より高い周波数とする。これにより、消費電力を低減しながら、動作のハングアップを防止できるという効果がある。   According to the present invention, the frequency of the clock supplied to the bus master that does not perform data transfer is lowered, and the frequency of the clock that is supplied to the bus master that performs data transfer is set to a higher frequency. Thereby, there is an effect that it is possible to prevent the hang-up of the operation while reducing the power consumption.

本発明のその他の特徴及び利点は、添付図面を参照とした以下の説明により明らかになるであろう。なお、添付図面においては、同じ若しくは同様の構成には、同じ参照番号を付す。   Other features and advantages of the present invention will become apparent from the following description with reference to the accompanying drawings. In the accompanying drawings, the same or similar components are denoted by the same reference numerals.

添付図面は明細書に含まれ、その一部を構成し、本発明の実施形態を示し、その記述と共に本発明の原理を説明するために用いられる。
本発明の実施形態1に係るバス制御装置の構成を説明するブロック図。 実施形態1に係るクロック制御部の構成を説明するブロック図。 実施形態1に係る周波数変更制御部のそれぞれのLUTに格納されるクロック周波数選択テーブルを説明する図。 実施形態1に係るバス制御装置が、リセット直後に行う、バスマスタ及びススレーブの動作クロック信号の周波数の初期設定の制御を説明するフローチャート。 実施形態1に係るバス調停部とクロック制御部による制御処理を説明するフローチャート。 実施形態1に係るバス調停部とクロック制御部、及びバスマスタの動作例を説明するタイミングチャート。 実施形態1に係るバス制御装置において、CPUからバスマスタに対してレジスタアクセスする際の、レジスタアクセスバスのタイミングチャートの一例を示す図。 実施形態2に係るバス調停部とクロック制御部による制御処理を説明するフローチャート。 実施形態2に係るバス調停部とクロック制御部、及びバスマスタの動作例を説明するタイミングチャート。
The accompanying drawings are included in the specification, constitute a part thereof, show an embodiment of the present invention, and are used together with the description to explain the principle of the present invention.
The block diagram explaining the structure of the bus control apparatus which concerns on Embodiment 1 of this invention. FIG. 3 is a block diagram illustrating a configuration of a clock control unit according to the first embodiment. FIG. 6 is a diagram for explaining a clock frequency selection table stored in each LUT of the frequency change control unit according to the first embodiment. 6 is a flowchart for explaining control of initial setting of the frequency of the operation clock signal of the bus master and slave, which is performed immediately after the reset by the bus control device according to the first embodiment. 5 is a flowchart for explaining control processing by a bus arbitration unit and a clock control unit according to the first embodiment. 3 is a timing chart for explaining an operation example of a bus arbitration unit, a clock control unit, and a bus master according to the first embodiment. FIG. 3 is a diagram illustrating an example of a timing chart of a register access bus when the CPU performs register access to the bus master in the bus control device according to the first embodiment. 9 is a flowchart for explaining control processing by a bus arbitration unit and a clock control unit according to the second embodiment. 9 is a timing chart for explaining an operation example of a bus arbitration unit, a clock control unit, and a bus master according to the second embodiment.

以下、添付図面を参照して本発明の実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the present invention according to the claims, and all combinations of features described in the embodiments are not necessarily essential to the solution means of the present invention. .

[実施形態1]
図1は、本発明の実施形態1に係るバス制御装置100の構成を説明するブロック図である。
[Embodiment 1]
FIG. 1 is a block diagram illustrating the configuration of the bus control device 100 according to the first embodiment of the present invention.

このバス制御装置100は、CPU101、バスマスタ102〜104、バス調停部105、バススレーブ106、基準クロック生成部107及びクロック制御部108を有している。バスマスタ102〜104は、バス上のデータの転送制御を行うモジュールであり、それぞれバス調停部105とバス接続され、バス調停部105での調停の結果、バスの使用権を得ると、ターゲットとなるバススレーブ106に対してデータ転送を行う。   The bus control device 100 includes a CPU 101, bus masters 102 to 104, a bus arbitration unit 105, a bus slave 106, a reference clock generation unit 107, and a clock control unit 108. The bus masters 102 to 104 are modules that control data transfer on the bus. Each of the bus masters 102 to 104 is connected to the bus arbitration unit 105 via a bus. As a result of arbitration in the bus arbitration unit 105, the bus masters 102 to 104 become targets. Data transfer is performed to the bus slave 106.

バス調停部105は、バスに対する使用要求の競合を調整するモジュールであり、バスマスタ102〜104、バススレーブ106とバスを介して接続されている。ここでは、所定の調停方式(優先順位、先着順位など)に従って、バスの使用権をバスマスタ102〜104のいずれかに与えて、バススレーブ106へのデータ転送を許可する。バススレーブ106は、バス上のデータ転送制御を行うモジュールであり、バス調停部105とバスを介して接続され、バス調停部105での調停の結果、バスの使用権を得たバスマスタから転送されるデータを受け取る。   The bus arbitration unit 105 is a module that adjusts competition for use requests to the bus, and is connected to the bus masters 102 to 104 and the bus slave 106 via the bus. Here, in accordance with a predetermined arbitration method (priority order, first-come-first-served order, etc.), the right to use the bus is given to one of the bus masters 102 to 104, and data transfer to the bus slave 106 is permitted. The bus slave 106 is a module that controls data transfer on the bus, is connected to the bus arbitration unit 105 via the bus, and is transferred from the bus master that has obtained the right to use the bus as a result of arbitration in the bus arbitration unit 105. Receive data.

CPU101は、予め定められた命令セットに従って処理を実行するデータ処理ユニットであり、バスマスタ102〜104、バス調停部105、バススレーブ106、クロック制御部108とレジスタアクセスバス110を介して接続されている。CPU101は、このレジスタアクセスバス110を介して、接続される各モジュールのレジスタに対して命令をセットすることにより、各モジュールの動作を制御する。   The CPU 101 is a data processing unit that executes processing according to a predetermined instruction set, and is connected to the bus masters 102 to 104, the bus arbitration unit 105, the bus slave 106, the clock control unit 108, and the register access bus 110. . The CPU 101 controls the operation of each module by setting an instruction to the register of each connected module via the register access bus 110.

基準クロック生成部107は、水晶発振子や、出力信号の周波数を任意の値に変更可能な水晶発振器等を有し、このバス制御装置100で使用されるクロック信号の基準となる基準クロック信号を生成する。基準クロック生成部107で生成された基準クロック信号はクロック制御部108へ供給される。クロック制御部108は、バス調停部105から供給される周波数変更要求1〜4、及び周波数情報1〜4と、基準クロック生成部107から供給される基準クロック信号よりクロック信号1〜4を生成する。クロック制御部108の動作の詳細は後述する。   The reference clock generation unit 107 includes a crystal oscillator, a crystal oscillator that can change the frequency of the output signal to an arbitrary value, and the like. A reference clock signal that serves as a reference of the clock signal used in the bus control device 100 is obtained. Generate. The reference clock signal generated by the reference clock generation unit 107 is supplied to the clock control unit 108. The clock control unit 108 generates clock signals 1 to 4 from the frequency change requests 1 to 4 and the frequency information 1 to 4 supplied from the bus arbitration unit 105 and the reference clock signal supplied from the reference clock generation unit 107. . Details of the operation of the clock controller 108 will be described later.

図1において、バス制御装置100が有するバスマスタとバススレーブとして、説明の簡略化のためバスマスタの数は3、バススレーブの数は1として示したが、それ以外のバスマスタの数、バススレーブの数であっても構わない。   In FIG. 1, the number of bus masters and the number of bus slaves are shown as three as the bus master and the bus slave included in the bus control device 100 for simplification of description. It does not matter.

図2は、実施形態1に係るクロック制御部108の構成を説明するブロック図である。   FIG. 2 is a block diagram illustrating the configuration of the clock control unit 108 according to the first embodiment.

このクロック制御部108は、4つのクロック制御モジュール部210,220,230,240を含んでいる。実施形態1では、制御するクロック信号は4本であるため、クロック制御モジュール部の数は4であり、クロック制御モジュール部210,220,230,240のそれぞれの内部構成は同じである。   The clock control unit 108 includes four clock control module units 210, 220, 230, and 240. In the first embodiment, since there are four clock signals to be controlled, the number of clock control module units is four, and the internal configurations of the clock control module units 210, 220, 230, and 240 are the same.

PLL同期制御部211,221,231,241はそれぞれ、図示しない位相比較器、ループフィルタ、電圧制御発振器などを含み、基準クロック生成部107より入力された基準クロック信号の位相に同期したクロック信号を生成する。分周器212〜215,222〜225,232〜235,242〜245はそれぞれ、各対応するPLL同期制御部211,221,231,241から供給されるクロック信号の周波数を整数分の1に低下させる(分周する)。これら分周器は、CPU101から設定される、任意の整数値(分周値)に応じてクロック信号の周波数を分周するプログラマブル分周器である。実施形態1では、分周器212,222,232,242には分周値として「2」が設定されているため、これら分周器212,222,232,242からは、基準クロック信号の周波数の1/2の周波数のクロック信号が出力される。また分周器213,223,233,243には分周値として「4」が設定されているため、分周器213,223,233,243からは基準クロック信号の周波数の1/4の周波数のクロック信号が出力される。また分周器214,224,234,244には分周値として「10」が設定されているため、分周器214,224,234,244からは基準クロック信号の周波数の1/10の周波数のクロック信号が出力される。更に、分周器215,225,235,245には分周値として「20」が設定されているため、これら分周器215,225,235,245からは基準クロック信号の周波数の1/20の周波数のクロック信号が出力される。図2におけるクロック制御モジュール部210,220,230,240には、それぞれ4個の分周器212〜215,222〜225,232〜235,242〜245が設けられている。   Each of the PLL synchronization control units 211, 221, 231, and 241 includes a phase comparator, a loop filter, a voltage control oscillator, and the like (not shown), and outputs a clock signal synchronized with the phase of the reference clock signal input from the reference clock generation unit 107. Generate. Each of the frequency dividers 212 to 215, 222 to 225, 232 to 235, and 242 to 245 reduces the frequency of the clock signal supplied from each corresponding PLL synchronization control unit 211, 221, 231, 241 to an integer. Let (divide). These frequency dividers are programmable frequency dividers that divide the frequency of the clock signal in accordance with an arbitrary integer value (frequency division value) set by the CPU 101. In the first embodiment, since “2” is set as the frequency division value in the frequency dividers 212, 222, 232, and 242, the frequency of the reference clock signal is set from these frequency dividers 212, 222, 232, and 242. A clock signal having a frequency ½ of the above is output. Since the frequency dividers 213, 223, 233, and 243 are set to “4” as frequency division values, the frequency dividers 213, 223, 233, and 243 provide a frequency that is ¼ of the frequency of the reference clock signal. Clock signal is output. Since the frequency dividers 214, 224, 234, and 244 are set to "10" as the frequency dividing value, the frequency from the frequency dividers 214, 224, 234, and 244 is 1/10 the frequency of the reference clock signal. Clock signal is output. Further, since “20” is set as the frequency division value in the frequency dividers 215, 225, 235, and 245, the frequency dividers 215, 225, 235, and 245 provide 1/20 of the frequency of the reference clock signal. A clock signal having a frequency of is output. In the clock control module sections 210, 220, 230, and 240 in FIG. 2, four frequency dividers 212 to 215, 222 to 225, 232 to 235, and 242 to 245 are provided, respectively.

MUX216,226,236,246はそれぞれ、5入力1出力のマルチプレクサで、入力信号として、対応するPLL同期制御部211,221,231,241のいずれか、及び4個の分周器により生成されるクロック信号が入力される。即ち、MUX216,226,236,246のそれぞれには、対応するPLL同期制御部と分周器から供給される、互いに周波数が異なる5本のクロック信号が入力される。MUX216,226,236,246の選択信号として、各対応する周波数変更制御部217,227,237,247から供給される選択信号218,228,238,248が入力される。そして、この選択信号の値に従って、5本のクロック信号の中から選択されたクロック信号が、それぞれクロック信号1〜4として出力される。   Each of the MUXs 216, 226, 236, and 246 is a 5-input 1-output multiplexer, and is generated as an input signal by one of the corresponding PLL synchronization control units 211, 221, 231, 241 and four frequency dividers. A clock signal is input. That is, each of the MUXs 216, 226, 236, and 246 is input with five clock signals having different frequencies supplied from the corresponding PLL synchronization control unit and frequency divider. Selection signals 218, 228, 238, and 248 supplied from the corresponding frequency change control units 217, 227, 237, and 247 are input as selection signals for the MUXs 216, 226, 236, and 246, respectively. Then, clock signals selected from the five clock signals according to the value of the selection signal are output as clock signals 1 to 4, respectively.

ここで例えば、周波数変更制御部217は、バス調停部105から供給される周波数変更要求1と周波数情報1に基づいて、MUX216へ選択信号218を出力する。周波数変更制御部217は、内部に図示しないLUTを有し、そのLUTに、予め作成された周波数選択テーブルが格納されている。そして周波数変更要求1を受け取ると、周波数情報1に対応する、周波数選択テーブルのアドレスを参照して、そのアドレスに格納されている値を選択信号218としてMUX216に出力する。他の周波数変更制御部227,237,247の動作も、周波数変更要求と周波数情報、及びMUXが異なるだけで、基本的には同様の動作を実行する。   Here, for example, the frequency change control unit 217 outputs the selection signal 218 to the MUX 216 based on the frequency change request 1 and the frequency information 1 supplied from the bus arbitration unit 105. The frequency change control unit 217 has an LUT (not shown) inside, and a frequency selection table created in advance is stored in the LUT. When the frequency change request 1 is received, the address stored in the address corresponding to the frequency information 1 is output to the MUX 216 as the selection signal 218. The operations of the other frequency change control units 227, 237, and 247 basically perform the same operation except that the frequency change request, the frequency information, and the MUX are different.

図3は、実施形態1に係る周波数変更制御部217,227,237,247のそれぞれのLUTに格納される周波数選択テーブルのデータ例を説明する図である。   FIG. 3 is a diagram for explaining a data example of a frequency selection table stored in each LUT of the frequency change control units 217, 227, 237, and 247 according to the first embodiment.

ここでは周波数情報として「200」が入力された場合は、周波数変更制御部は選択信号として「1」を出力する。また周波数情報として「100」が入力された場合は、周波数変更制御部は選択信号として「2」を出力する。同様に、周波数情報として「50」が入力された場合は選択信号として「3」を出力する。更に、周波数情報として「20」が入力された場合は選択信号として「4」を、周波数情報として「10」が入力された場合は選択信号として「5」を出力する。   Here, when “200” is input as frequency information, the frequency change control unit outputs “1” as a selection signal. When “100” is input as the frequency information, the frequency change control unit outputs “2” as the selection signal. Similarly, when “50” is input as frequency information, “3” is output as a selection signal. Further, when “20” is input as the frequency information, “4” is output as the selection signal, and when “10” is input as the frequency information, “5” is output as the selection signal.

周波数変更制御部217,227,237,247はそれぞれ選択信号を出力し、周波数が変更されたクロック信号1〜4の位相が、基準クロック信号の位相と同期した後に、周波数変更応答1〜4をバス調停部105へ出力する。周波数が変更されたクロック信号1〜4の位相が、基準クロック信号の位相に同期するまでの時間は、各対応するPLL同期制御部211,221,231,241によるループフィルタの時定数によって決定される。   The frequency change control units 217, 227, 237, and 247 output selection signals, respectively, and after the phases of the clock signals 1 to 4 whose frequencies have been changed are synchronized with the phases of the reference clock signals, the frequency change responses 1 to 4 are output. Output to the bus arbitration unit 105. The time until the phase of the clock signals 1 to 4 whose frequency has been changed is synchronized with the phase of the reference clock signal is determined by the time constant of the loop filter by the corresponding PLL synchronization control unit 211, 221, 231, 241. The

よって、周波数変更要求1〜4が発行されてから、ループフィルタの時定数と、周波数変更量を加味した予め決められた時間が経過したタイミングで、周波数変更応答1〜4がバス調停部105に返される。   Therefore, after the frequency change requests 1 to 4 are issued, the frequency change responses 1 to 4 are sent to the bus arbitration unit 105 at a timing when a predetermined time including the time constant of the loop filter and the frequency change amount has elapsed. returned.

次に実施形態1の特徴である、バスの使用状況に応じて、バスマスタ、バススレーブの動作クロック信号の周波数を変更する制御について説明する。   Next, a control that changes the frequency of the operation clock signal of the bus master and the bus slave according to the bus use status, which is a feature of the first embodiment, will be described.

図4は、実施形態1に係るバス制御装置100が、リセット直後に行う、バスマスタ102〜104及びススレーブ106の動作クロック信号の周波数の初期設定の制御を説明するフローチャートである。   FIG. 4 is a flowchart for explaining the initial setting control of the frequency of the operation clock signal of the bus masters 102 to 104 and the slave 106 performed immediately after the reset by the bus control device 100 according to the first embodiment.

初めにS401において、バス制御装置100の全体にかかるリセット信号が解除されるのを待つ。S402で、リセット信号が解除されるのを待ち、リセット信号が解除されるとS403へ進むが、リセットが解除されていない場合はS401へ進む。尚、このリセット信号は、バス制御装置100の基準クロック生成部107を除く全てのモジュールに対して入力される。従って、リセット信号がかかっている状態でも基準クロック生成部107からは、基準クロック信号が出力され続けている。尚、バス制御装置100へリセット信号が出力されてから所定時間が経過すると、リセット信号は解除される。S403でバス調停部105は、全てのバスマスタ、バススレーブの動作クロック信号の周波数を、データ転送時の周波数よりも低くなるように設定する。   First, in S401, it waits for the reset signal applied to the entire bus control device 100 to be released. In step S402, the process waits for the reset signal to be released. If the reset signal is released, the process proceeds to step S403. If the reset is not released, the process proceeds to step S401. The reset signal is input to all modules except the reference clock generation unit 107 of the bus control device 100. Therefore, the reference clock signal continues to be output from the reference clock generation unit 107 even when the reset signal is applied. Note that the reset signal is canceled when a predetermined time elapses after the reset signal is output to the bus control device 100. In S403, the bus arbitration unit 105 sets the frequency of the operation clock signal of all bus masters and bus slaves to be lower than the frequency at the time of data transfer.

リセット信号が解除されると、基準クロック信号が次に立ち上がるタイミングで、周波数変更制御部217,227,237,247のそれぞれより、予め決められた値の各選択信号218,228,238,248が、各対応するMUXに出力される。この選択信号により、クロック制御部108からバスマスタ102〜104、バススレーブ106へ供給される動作クロック信号であるクロック信号1〜4の周波数が決定され、S403では、データ転送時の周波数よりも低くなるように設定される。   When the reset signal is released, the selection signals 218, 228, 238, and 248 having predetermined values are respectively sent from the frequency change control units 217, 227, 237, and 247 at the timing when the reference clock signal rises next. , Output to each corresponding MUX. By this selection signal, the frequencies of the clock signals 1 to 4 that are operation clock signals supplied from the clock control unit 108 to the bus masters 102 to 104 and the bus slave 106 are determined. In S403, the frequency is lower than the frequency at the time of data transfer. Is set as follows.

例えば実施形態1では、説明の簡略化のために、データ転送時のクロック信号1〜4の周波数を200MHzとし、基準クロック生成部107より供給される基準クロック信号の周波数も同様に、200MHzである場合を例に説明する。   For example, in the first embodiment, for simplification of description, the frequency of the clock signals 1 to 4 at the time of data transfer is set to 200 MHz, and the frequency of the reference clock signal supplied from the reference clock generation unit 107 is also 200 MHz. A case will be described as an example.

実施形態1において、例えば、クロック制御モジュール部210を例に説明する。分周器212、分周器213、分周器214、分周器215には、上述したように、分周値としてそれぞれ「2」、「4」、「10」、「20」が設定されている。このとき、これら分周器212,213,215,215から出力されるクロック信号の周波数は、それぞれ100MHz、50MHz、20MHz、10MHzとなる。そして、この初期状態時に出力される選択信号218が「2」とすると、MUX216の、この選択信号218の値に対応する入力端子(2)に接続されている分周器212から供給されているクロック信号が選択されてクロック信号1として出力される。これによりクロック信号1の周波数は、データ転送時の周波数である200MHzよりも低い周波数である100MHzとなる。これは他のクロック制御モジュール部220,230,240の場合も同様に動作する。   In the first embodiment, for example, the clock control module unit 210 will be described as an example. In the frequency divider 212, the frequency divider 213, the frequency divider 214, and the frequency divider 215, as described above, “2”, “4”, “10”, and “20” are set as the frequency division values, respectively. ing. At this time, the frequencies of the clock signals output from these frequency dividers 212, 213, 215, and 215 are 100 MHz, 50 MHz, 20 MHz, and 10 MHz, respectively. If the selection signal 218 output in the initial state is “2”, the MUX 216 is supplied from the frequency divider 212 connected to the input terminal (2) corresponding to the value of the selection signal 218. The clock signal is selected and output as the clock signal 1. As a result, the frequency of the clock signal 1 becomes 100 MHz, which is a lower frequency than 200 MHz that is the frequency at the time of data transfer. This also operates in the case of the other clock control module units 220, 230, and 240.

図5は、実施形態1に係るバス調停部105とクロック制御部108による制御処理を説明するフローチャートである。ここでは、データ転送する際の、バスマスタ102〜104及びバススレーブ106の動作クロック信号の周波数の変更制御に関わる処理を示している。尚、データ転送を行うジョブは、バスマスタ102,103,104より、それぞれ3サイクル、2サイクル、3サイクル分のデータがバス上に転送される場合を例に説明する。   FIG. 5 is a flowchart for explaining control processing by the bus arbitration unit 105 and the clock control unit 108 according to the first embodiment. Here, processing related to change control of the frequency of the operation clock signal of the bus masters 102 to 104 and the bus slave 106 at the time of data transfer is shown. The job for transferring data will be described by taking as an example a case where data for three cycles, two cycles, and three cycles are transferred from the bus masters 102, 103, and 104 to the bus, respectively.

先ずS501,S502でバス調停部105は、バスマスタ102〜104のいずれかからデータの転送を要求する要求信号が発行されるのを待つ。S502で要求信号が発行されたと判定した場合はS503へ進む。ここではCPU101が、バスを使用してデータ転送を行うジョブを実行すると、CPU101より、ジョブで使用するバスマスタ102〜104に対して、データ転送に必要な転送先のアドレス情報や転送サイズ情報などに関するレジスタ設定が行われる。これにより、そのバスマスタからバス調停部105に対して、バスの使用権を求めるために転送要求信号をオンにする。   First, in S501 and S502, the bus arbitration unit 105 waits for a request signal for requesting data transfer from any of the bus masters 102 to 104. If it is determined in S502 that a request signal has been issued, the process proceeds to S503. Here, when the CPU 101 executes a job for transferring data using the bus, the CPU 101 relates to address information, transfer size information, and the like of a transfer destination necessary for data transfer to the bus masters 102 to 104 used in the job. Register settings are made. As a result, the transfer request signal is turned on in order to request the right to use the bus from the bus master to the bus arbitration unit 105.

S503でバス調停部105は、バスマスタ102〜104のうち複数のバスマスタから、同一バススレーブへの転送要求が発生して競合しているか否かを判定する。ここで転送要求が競合していると判定した場合はS505へ進み、そうでないときはS506へ進む。   In step S <b> 503, the bus arbitration unit 105 determines whether a transfer request from a plurality of bus masters among the bus masters 102 to 104 to the same bus slave is generated and conflicts. If it is determined that the transfer requests are in conflict, the process proceeds to S505. If not, the process proceeds to S506.

尚、ここで、複数のバスマスタが同一のバススレーブに対してデータ転送要求を発行して転送要求が競合している状態は、ここではバススレーブ106の数は1であるため、複数のバススレーブ102〜104からの転送要求信号が全てオンになっていることを意味する。   Here, the state in which a plurality of bus masters issue data transfer requests to the same bus slave and the transfer requests are in conflict is the number of bus slaves 106 here. This means that the transfer request signals from 102 to 104 are all turned on.

図6は、実施形態1に係るバス調停部105とクロック制御部108、及びバスマスタ102〜104の動作例を説明するタイミングチャートである。   FIG. 6 is a timing chart for explaining an operation example of the bus arbitration unit 105, the clock control unit 108, and the bus masters 102 to 104 according to the first embodiment.

例えばタイミングT1では、バスマスタ102からの転送要求信号1、バスマスタ103からの転送要求信号2、バスマスタ104からの転送要求信号3の全てがオンとなって、3つのバスマスタからの転送要求信号が発行されている。   For example, at timing T1, transfer request signal 1 from bus master 102, transfer request signal 2 from bus master 103, and transfer request signal 3 from bus master 104 are all turned on, and transfer request signals from three bus masters are issued. ing.

以下、図6のタイミングチャートを参照しながら図5のフローチャートを説明する。   The flowchart of FIG. 5 will be described below with reference to the timing chart of FIG.

図6のタイミングT1では、バスマスタ102〜104からの転送要求信号1〜3の全てが出力されている(転送要求が競合している)ため、S504の条件分岐では、転送要求が競合していると判定してS505に処理を進める。S505でバス調停部105は、所定の調停方式に従って、バスの使用権の調停を行う。このバスの調停方式には、先着順位方式、優先順位方式(固定型、可変型)など複数あり、実施形態1に係るバス制御装置100の特性や目的に合わせて、適切な調停方式が採用される。ここでは、可変型の優先順位方式を採用し、全てのバスマスタに対して順番に優先順位を割り当て、バスの使用権を獲得したバスマスタは、次は、一番低い優先順位へと割り当てる、ラウンドロビン方式を例に説明する。   At timing T1 in FIG. 6, since all the transfer request signals 1 to 3 from the bus masters 102 to 104 are output (transfer requests are in conflict), the transfer requests are in conflict in the conditional branch of S504. And the process proceeds to S505. In S505, the bus arbitration unit 105 arbitrates the right to use the bus according to a predetermined arbitration method. There are a plurality of bus arbitration methods, such as a first-come-first-served method and a priority method (fixed type, variable type), and an appropriate arbitration method is adopted according to the characteristics and purpose of the bus control device 100 according to the first embodiment. The Here, a variable priority method is adopted, priority is assigned to all bus masters in order, and the bus master that has acquired the right to use the bus next assigns it to the lowest priority. A method will be described as an example.

タイミングT1において、バスマスタ102〜104からの転送要求が競合している際の優先順位は1>2>3となっている。従って、バスマスタ102の優先順位が「1」、バスマスタ103の優先順位は「2」、バスマスタ103の優先順位は「3」である。このように、優先順位情報の「1>2>3」は、バスマスタ102>バスマスタ103>バスマスタ104の順に優先順位が高くなっていることを示している。   At timing T1, the priority order when the transfer requests from the bus masters 102 to 104 are competing is 1> 2> 3. Accordingly, the priority order of the bus master 102 is “1”, the priority order of the bus master 103 is “2”, and the priority order of the bus master 103 is “3”. Thus, “1> 2> 3” in the priority order information indicates that the priority order is higher in the order of bus master 102> bus master 103> bus master 104.

従って、タイミングT1において、転送要求信号1〜3がオンであるバスマスタ102〜104のうち、優先順位が一番高いのはバスマスタ102である。従って、バス調停部105はS507で、バスの使用権を与えるバスマスタとしてバスマスタ102を選定してS508に処理を進める。   Therefore, of the bus masters 102 to 104 whose transfer request signals 1 to 3 are on at the timing T1, the bus master 102 has the highest priority. Accordingly, in step S507, the bus arbitration unit 105 selects the bus master 102 as the bus master that gives the right to use the bus, and advances the processing to step S508.

S508でバス調停部105は、バスの使用権が与えられたバスマスタ102とバススレーブ106のクロック信号の周波数を高く(実施形態1では、200MHz)設定する。図6の例では、タイミングT1でバス調停部105は、バスの使用権を与えるバスマスタとしてバスマスタ102を選定すると、クロック制御部108に対して、バスマスタ102に対する周波数変更要求1をオンにする。また、これと同時に、変更する周波数の情報を示す周波数情報1を送信する。   In S508, the bus arbitration unit 105 sets the frequency of the clock signal of the bus master 102 and the bus slave 106 to which the right to use the bus is given (200 MHz in the first embodiment). In the example of FIG. 6, when the bus arbitration unit 105 selects the bus master 102 as the bus master to which the right to use the bus is selected at the timing T1, the frequency change request 1 for the bus master 102 is turned on to the clock control unit 108. At the same time, frequency information 1 indicating the frequency information to be changed is transmitted.

この実施形態1では、データ転送がされていない時のクロック信号1〜4の周波数は全て100MHzとし、データ転送する時のクロック信号1〜4の周波数は200MHzとする。よって、図6のタイミングT1では、周波数情報1として、200MHzに対応する「200」が送信される。   In the first embodiment, the frequencies of the clock signals 1 to 4 when data is not transferred are all 100 MHz, and the frequency of the clock signals 1 to 4 when data is transferred is 200 MHz. Therefore, “200” corresponding to 200 MHz is transmitted as the frequency information 1 at the timing T1 in FIG.

こうして周波数変更要求1がオンになると、クロック制御部108の周波数変更制御部217は、周波数情報1(ここでは「200」)に対応する周波数選択テーブルを参照して、選択信号218として「1」を出力する。この選択信号「1」がMUX216に供給されるとMUX216は、MUX216の入力端子(1)に入力されているPLL同期制御部211から供給されるクロック信号を選択し、クロック信号1として出力する。ここでPLL同期制御部211から供給されているクロック信号の周波数は200MHzであるため、クロック信号1の周波数は200MHzとなる。   When the frequency change request 1 is turned on in this way, the frequency change control unit 217 of the clock control unit 108 refers to the frequency selection table corresponding to the frequency information 1 (here, “200”) and sets “1” as the selection signal 218. Is output. When this selection signal “1” is supplied to the MUX 216, the MUX 216 selects the clock signal supplied from the PLL synchronization control unit 211 that is input to the input terminal (1) of the MUX 216 and outputs it as the clock signal 1. Here, since the frequency of the clock signal supplied from the PLL synchronization control unit 211 is 200 MHz, the frequency of the clock signal 1 is 200 MHz.

こうしてクロック信号1の周波数を変更した後、周波数変更制御部217は、変更後のクロック信号1の位相が基準クロック信号と同期したタイミングで、バス調停部105に対して周波数変更応答1をオンにする(図6のタイミングT2)。こうしてバス調停部105は、クロック制御部108の周波数変更制御部217よりの周波数変更応答1がオンになっているのを確認すると、バスマスタ102に対する転送許可信号1をオンにする(図6のタイミングT3)。これにより、周波数が200MHzのクロック信号1に同期して、バスマスタ102からバス調停部105を介してバススレーブ106へデータが転送される。   After changing the frequency of the clock signal 1 in this way, the frequency change control unit 217 turns on the frequency change response 1 to the bus arbitration unit 105 at the timing when the phase of the changed clock signal 1 is synchronized with the reference clock signal. (Timing T2 in FIG. 6). In this way, when the bus arbitration unit 105 confirms that the frequency change response 1 from the frequency change control unit 217 of the clock control unit 108 is on, the bus arbitration unit 105 turns on the transfer permission signal 1 for the bus master 102 (timing in FIG. 6). T3). As a result, data is transferred from the bus master 102 to the bus slave 106 via the bus arbitration unit 105 in synchronization with the clock signal 1 having a frequency of 200 MHz.

上記のバスマスタ102の動作クロック信号であるクロック信号1の周波数を変更する際にバス調停部105は、同時に、バススレーブ106の動作クロック信号であるクロック信号4の周波数も変更するよう制御する。尚、このクロック信号4の周波数を変更する処理は、クロック制御部108のクロック制御モジュール部240で行われるが、その処理はクロック制御モジュール部210の場合と同様であり、そのタイミングも同じであるため、その説明を割愛する。   When changing the frequency of the clock signal 1 that is the operation clock signal of the bus master 102, the bus arbitration unit 105 controls to change the frequency of the clock signal 4 that is the operation clock signal of the bus slave 106 at the same time. The process of changing the frequency of the clock signal 4 is performed by the clock control module unit 240 of the clock control unit 108, but the process is the same as that of the clock control module unit 210, and the timing is also the same. Therefore, the explanation is omitted.

こうしてS509に進み、バスの使用権が与えられたバスマスタ102からバススレーブ106へのデータ転送が実行される。図6に示す例では、転送許可信号1がオンになってから、クロック信号1の3サイクル分のデータ転送がデータ信号1で示すように、バスマスタ102よりバススレーブ106に対して実行される。   In step S509, data transfer from the bus master 102 to which the right to use the bus is given to the bus slave 106 is executed. In the example shown in FIG. 6, after the transfer permission signal 1 is turned on, data transfer for three cycles of the clock signal 1 is executed from the bus master 102 to the bus slave 106 as indicated by the data signal 1.

そして、このデータ転送が終了するとS510に進みバス調停部105は、バスの使用権が与えられたバスマスタ102とバススレーブ106の動作クロック信号の周波数を元に戻す。   When this data transfer is completed, the process proceeds to S510, where the bus arbitration unit 105 restores the frequencies of the operation clock signals of the bus master 102 and the bus slave 106 to which the right to use the bus is given.

実施形態1では、バスを使用してデータ転送を行う際のプロトコルとして、バスマスタ102から転送される最後のデータがデータ信号1として転送されるタイミングで、終了信号1がオンになる。こうしてバスマスタ102よりの終了信号1がオンになると、バス調停部105は、図6のタイミングT4で、周波数変更要求1をオンに、周波数情報1として「100」をクロック制御部108へ送信する。これによりクロック制御部108の周波数変更制御部217は、周波数情報1に対応するクロック周波数選択テーブルを参照して選択信号を出力する。即ち、図3に示す周波数選択テーブルがLUTに設定されている場合には、周波数情報1として「100」が入力されると、選択信号として「2」が選択されてMUX216の選択信号218として供給される。これによりMUX216は、選択信号218として「2」が入力されるため、MUX216の入力端子(2)に入力されている分周器212から供給されるクロック信号を選択し、クロック信号1として出力する。このとき分周器212から供給されるクロック信号の周波数は100MHzであるため、クロック信号1の周波数は200MHzから100MHzに変更される。   In the first embodiment, the end signal 1 is turned on at the timing when the last data transferred from the bus master 102 is transferred as the data signal 1 as a protocol for performing data transfer using the bus. When the end signal 1 from the bus master 102 is turned on in this way, the bus arbitration unit 105 turns on the frequency change request 1 and transmits “100” as frequency information 1 to the clock control unit 108 at timing T4 in FIG. Accordingly, the frequency change control unit 217 of the clock control unit 108 refers to the clock frequency selection table corresponding to the frequency information 1 and outputs a selection signal. That is, when the frequency selection table shown in FIG. 3 is set in the LUT, when “100” is input as the frequency information 1, “2” is selected as the selection signal and supplied as the selection signal 218 of the MUX 216. Is done. Accordingly, since “2” is input as the selection signal 218, the MUX 216 selects the clock signal supplied from the frequency divider 212 that is input to the input terminal (2) of the MUX 216 and outputs it as the clock signal 1. . At this time, since the frequency of the clock signal supplied from the frequency divider 212 is 100 MHz, the frequency of the clock signal 1 is changed from 200 MHz to 100 MHz.

こうしてクロック信号1の周波数を変更した後、周波数変更制御部217は、変更後のクロック信号1の位相が、基準クロック信号と同期したタイミングで、バス調停部105に対して周波数変更応答1をオンにする(図6のタイミングT5)。そしてS511に進みバス調停部105は、転送要求を発行した全てのバスマスタによるデータ転送が終了したか否かを判定し、終了している場合は、この処理を終了するが、そうでないときはS501へ進む。   After changing the frequency of the clock signal 1 in this way, the frequency change control unit 217 turns on the frequency change response 1 to the bus arbitration unit 105 at the timing when the phase of the changed clock signal 1 is synchronized with the reference clock signal. (Timing T5 in FIG. 6). In step S511, the bus arbitration unit 105 determines whether or not the data transfer by all the bus masters that have issued the transfer requests has been completed. If the data has been completed, the bus arbitration unit 105 ends the processing. Proceed to

バスマスタ102からのデータ転送が終了した後、図6のタイミングT6では、バスマスタ103とバスマスタ104からの転送要求信号2と転送要求信号3とがオンになっている。よってS504では、転送要求が競合していると判定してS505へ進む。S505でバス調停部105は、前述した調停方式に従ってバスの使用権の調停を行う。ここでは、タイミングT6で優先順位は、2>3>1となっている。つまりタイミングT6では、転送要求信号2〜3をオンにしているバスマスタ103,104のうち、優先順位が高いのはバスマスタ103である。従って、バス調停部105はS507で、バスの使用権を与えるバスマスタとしてバスマスタ103を選定する。そしてS508に進み、バスの使用権が与えられたバスマスタ103とバススレーブ106の動作クロック信号の周波数を高く設定する。   After the data transfer from the bus master 102 is completed, the transfer request signal 2 and the transfer request signal 3 from the bus master 103 and the bus master 104 are turned on at a timing T6 in FIG. Therefore, in S504, it is determined that the transfer requests are in conflict, and the process proceeds to S505. In step S505, the bus arbitration unit 105 arbitrates the right to use the bus according to the above-described arbitration method. Here, the priority is 2> 3> 1 at the timing T6. That is, at the timing T6, the bus master 103 has the highest priority among the bus masters 103 and 104 that have turned on the transfer request signals 2 to 3. Accordingly, the bus arbitration unit 105 selects the bus master 103 as a bus master that gives the right to use the bus in S507. In step S508, the frequency of the operation clock signal of the bus master 103 and the bus slave 106 to which the right to use the bus is given is set high.

即ち、タイミングT6では、クロック制御部108に対して、バスマスタ103に対する周波数変更要求2をオンにし、周波数変更要求2として「200」を発行する。これによりクロック制御部108の周波数変更制御部227は、周波数情報2に対応する周波数選択テーブル(図3)を参照して選択信号228を出力する。ここでは、図3に示す周波数選択テーブルがLUTに設定されているため、周波数情報2が「200」のときは選択信号として「1」が選択され、MUX226に選択信号228として供給される。これによりMUX226は、選択信号「1」に対応するMUX226の入力端子(1)に入力されているPLL同期制御部221から供給されるクロック信号を選択し、クロック信号2として出力する。このときPLL同期制御部221から供給されているクロック信号の周波数は200MHzであるため、クロック信号2の周波数は200MHzに変更される。こうしてクロック信号2の周波数を変更した後、周波数変更制御部227は、変更後のクロック信号2の位相が、基準クロック信号と同期したタイミングで、バス調停部105に対し、周波数変更応答2をオンにする(図6のタイミングT7)。こうしてバス調停部105は、クロック制御部108の周波数変更制御部227より周波数変更応答2がオンであることを確認すると、バスマスタ103に対する転送許可信号2をオンにする(図6のタイミングT8)。これによりS509で、バスの使用権が与えられたバスマスタ103からバススレーブ106へのデータ転送が実行される。   That is, at timing T6, the frequency change request 2 for the bus master 103 is turned on to the clock control unit 108, and “200” is issued as the frequency change request 2. Accordingly, the frequency change control unit 227 of the clock control unit 108 outputs the selection signal 228 with reference to the frequency selection table (FIG. 3) corresponding to the frequency information 2. Here, since the frequency selection table shown in FIG. 3 is set in the LUT, when the frequency information 2 is “200”, “1” is selected as the selection signal and supplied to the MUX 226 as the selection signal 228. As a result, the MUX 226 selects the clock signal supplied from the PLL synchronization control unit 221 that is input to the input terminal (1) of the MUX 226 corresponding to the selection signal “1”, and outputs it as the clock signal 2. At this time, since the frequency of the clock signal supplied from the PLL synchronization control unit 221 is 200 MHz, the frequency of the clock signal 2 is changed to 200 MHz. After changing the frequency of the clock signal 2 in this way, the frequency change control unit 227 turns on the frequency change response 2 to the bus arbitration unit 105 at the timing when the phase of the changed clock signal 2 is synchronized with the reference clock signal. (Timing T7 in FIG. 6). In this way, when the bus arbitration unit 105 confirms that the frequency change response 2 is on from the frequency change control unit 227 of the clock control unit 108, the bus arbitration unit 105 turns on the transfer permission signal 2 for the bus master 103 (timing T8 in FIG. 6). Thereby, in S509, data transfer from the bus master 103 to which the right to use the bus is given to the bus slave 106 is executed.

図6に示す例では、転送許可信号2がオンになってから、クロック信号1の2サイクル分の転送データが、データ信号2としてバスマスタ103よりバススレーブ106に転送される。そしてデータ転送が終了するとS510に進みバス調停部105は、バスの使用権が与えられたバスマスタ103とバススレーブ106の動作クロック信号の周波数を元に戻す。ここではバスマスタ102よりの終了信号2がオンになると、バス調停部105は、図6のタイミングT9において、周波数変更要求2をオンに、周波数情報2を「100」にしてクロック制御部108へ送信する。こうして周波数変更要求2がオンになると、クロック制御部108の周波数変更制御部227は、周波数情報1に対応する周波数選択テーブルを参照して選択信号228をMUX226に出力する。図3に示す周波数選択テーブルがLUTに設定されている場合には、周波数情報2として「100」が入力されると選択信号として「2」が選択され、これが選択信号228としてMUX226に供給される。MUX226は、この選択信号228を受け取ると、MUX226の入力端子(2)に入力されている分周器222から供給されるクロック信号を選択し、MUX226の出力信号であるクロック信号2として出力する。このとき分周器222から供給されているクロック信号の周波数は100MHzであるため、クロック信号2の周波数は200MHzから100MHzに変更される。こうしてクロック信号2の周波数を変更した後、周波数変更制御部227は、変更後のクロック信号2の位相が、基準クロック信号と同期したタイミングで、バス調停部105に対する周波数変更応答2をオンにする(図6のタイミングT10)。   In the example shown in FIG. 6, after the transfer permission signal 2 is turned on, transfer data for two cycles of the clock signal 1 is transferred from the bus master 103 to the bus slave 106 as the data signal 2. When the data transfer is completed, the process proceeds to S510, and the bus arbitration unit 105 restores the frequency of the operation clock signal of the bus master 103 and the bus slave 106 to which the right to use the bus is given. Here, when the end signal 2 from the bus master 102 is turned on, the bus arbitration unit 105 turns on the frequency change request 2 and transmits the frequency information 2 to “100” to the clock control unit 108 at timing T9 in FIG. To do. When the frequency change request 2 is turned on in this way, the frequency change control unit 227 of the clock control unit 108 outputs a selection signal 228 to the MUX 226 with reference to the frequency selection table corresponding to the frequency information 1. When the frequency selection table shown in FIG. 3 is set in the LUT, when “100” is input as the frequency information 2, “2” is selected as the selection signal, and this is supplied to the MUX 226 as the selection signal 228. . Upon receiving this selection signal 228, the MUX 226 selects the clock signal supplied from the frequency divider 222 that is input to the input terminal (2) of the MUX 226, and outputs it as the clock signal 2 that is the output signal of the MUX 226. At this time, since the frequency of the clock signal supplied from the frequency divider 222 is 100 MHz, the frequency of the clock signal 2 is changed from 200 MHz to 100 MHz. After changing the frequency of the clock signal 2 in this way, the frequency change control unit 227 turns on the frequency change response 2 for the bus arbitration unit 105 at a timing when the phase of the changed clock signal 2 is synchronized with the reference clock signal. (Timing T10 in FIG. 6).

こうしてバスマスタ103からのデータ転送が終了した後、図6のタイミングT11では、バスマスタ104から転送要求信号3のみがオンになっている。よってS504の条件分岐では、転送要求が競合していないと判定してS506へ進む。S506では、バススレーブ106へデータの転送要求を行っているのはバスマスタ104のみで、転送要求の競合は発生していないため、バスの使用権を与えるバスマスタとしてバスマスタ104を選定する。そしてS508に進みバス調停部105は、バスの使用権が与えられたバスマスタ104とバススレーブ106の動作クロック信号の周波数を高く設定する。   After the data transfer from the bus master 103 is thus completed, only the transfer request signal 3 from the bus master 104 is turned on at a timing T11 in FIG. Therefore, in the conditional branch of S504, it is determined that the transfer request is not competing, and the process proceeds to S506. In S506, only the bus master 104 makes a data transfer request to the bus slave 106, and there is no transfer request contention. Therefore, the bus master 104 is selected as the bus master that gives the right to use the bus. In step S508, the bus arbitration unit 105 sets the frequency of the operation clock signal of the bus master 104 and the bus slave 106 to which the bus use right is given to be high.

図6のタイミングT11において、クロック制御部108に対して、バスマスタ104に対する周波数変更要求3をオンにし、周波数変更要求2を「200」にする。こうして周波数変更要求3がオンになると、クロック制御部108の周波数変更制御部237は、周波数情報3に対応する周波数選択テーブルを参照して選択信号238を出力する。ここでは周波数情報3として「200」が入力されると、選択信号として「1」が選択され、選択信号「1」がMUX236に供給される。これによりMUX236は、選択信号「1」に応じてMUX236の入力端子(1)に入力されているPLL同期制御部231から供給されるクロック信号を選択し、クロック信号3として出力する。ここでPLL同期制御部231から供給されるクロック信号の周波数は200MHzであるため、クロック信号3の周波数は100MHzから200MHzへ変更される。こうしてクロック信号3の周波数を変更した後、周波数変更制御部237は、変更後のクロック信号3の位相が、基準クロック信号と同期したタイミングで、バス調停部105に対して周波数変更応答3をオンにする(図6のタイミングT12)。これによりバス調停部105は、クロック制御部108の周波数変更制御部237からの周波数変更応答3がオンになっていることを確認すると、バスマスタ104に対する転送許可信号3をオンにする(図6のタイミングT13)。   At timing T11 in FIG. 6, the frequency change request 3 for the bus master 104 is turned on and the frequency change request 2 is set to “200” for the clock control unit 108. When the frequency change request 3 is turned on in this way, the frequency change control unit 237 of the clock control unit 108 outputs a selection signal 238 with reference to the frequency selection table corresponding to the frequency information 3. Here, when “200” is input as the frequency information 3, “1” is selected as the selection signal, and the selection signal “1” is supplied to the MUX 236. As a result, the MUX 236 selects the clock signal supplied from the PLL synchronization control unit 231 that is input to the input terminal (1) of the MUX 236 according to the selection signal “1”, and outputs it as the clock signal 3. Here, since the frequency of the clock signal supplied from the PLL synchronization control unit 231 is 200 MHz, the frequency of the clock signal 3 is changed from 100 MHz to 200 MHz. After changing the frequency of the clock signal 3 in this way, the frequency change control unit 237 turns on the frequency change response 3 to the bus arbitration unit 105 at the timing when the phase of the changed clock signal 3 is synchronized with the reference clock signal. (Timing T12 in FIG. 6). As a result, when the bus arbitration unit 105 confirms that the frequency change response 3 from the frequency change control unit 237 of the clock control unit 108 is turned on, the bus arbitration unit 105 turns on the transfer permission signal 3 for the bus master 104 (FIG. 6). Timing T13).

こうしてS509で、バスの使用権が与えられたバスマスタ104からバススレーブ106へのデータ転送が実行される。図6に示す例では、転送許可信号3がオンになってから、クロック信号3の3サイクル分のデータがデータ信号3としてバスマスタ104より転送される。こうしてデータ転送が終了すると、S510でバス調停部105は、バスの使用権が与えられたバスマスタ104とバススレーブ106の動作クロック信号の周波数を元に戻す。そして、バスマスタ104よりの終了信号3がオンになるとバス調停部105は、図6のタイミングT14で、周波数変更要求3をオンにし、周波数情報3を「100」にしてクロック制御部108へ送信する。これによりクロック制御部108の周波数変更制御部237は、周波数情報3に対応する周波数選択テーブルを参照して選択信号238をMUX236に出力する。ここでは周波数情報1である「100」に対応する選択信号「2」を取得し、これが選択信号238としてMUX236に供給される。これによりMUX236は、選択信号「2」に対応する入力端子(2)に入力されている分周器232から供給されるクロック信号を選択し、MUX236からのクロック信号3として出力する。このとき分周器232から供給されるクロック信号の周波数は100MHzであるため、クロック信号3の周波数は200MHzから100MHzに変更される。   Thus, in S509, data transfer from the bus master 104 to which the right to use the bus is given to the bus slave 106 is executed. In the example shown in FIG. 6, data for three cycles of the clock signal 3 is transferred from the bus master 104 as the data signal 3 after the transfer permission signal 3 is turned on. When the data transfer is completed in this way, in S510, the bus arbitration unit 105 restores the frequencies of the operation clock signals of the bus master 104 and the bus slave 106 to which the right to use the bus is given. When the end signal 3 from the bus master 104 is turned on, the bus arbitration unit 105 turns on the frequency change request 3 at timing T14 in FIG. 6 and sets the frequency information 3 to “100” and transmits it to the clock control unit 108. . As a result, the frequency change control unit 237 of the clock control unit 108 refers to the frequency selection table corresponding to the frequency information 3 and outputs the selection signal 238 to the MUX 236. Here, the selection signal “2” corresponding to the frequency information “100” is acquired and supplied to the MUX 236 as the selection signal 238. As a result, the MUX 236 selects the clock signal supplied from the frequency divider 232 input to the input terminal (2) corresponding to the selection signal “2”, and outputs it as the clock signal 3 from the MUX 236. At this time, since the frequency of the clock signal supplied from the frequency divider 232 is 100 MHz, the frequency of the clock signal 3 is changed from 200 MHz to 100 MHz.

こうしてクロック信号3の周波数を変更した後、周波数変更制御部237は、変更後のクロック信号3の位相が、基準クロック信号と同期したタイミングで、バス調停部105に対する周波数変更応答3をオンにする(図6のタイミングT15)。そしてバスマスタ104からのデータ転送が終了した後、S512の条件分岐において、転送要求を発行した全てのバスマスタによるデータ転送が終了しているため、この処理を終了する。   After changing the frequency of the clock signal 3 in this way, the frequency change control unit 237 turns on the frequency change response 3 for the bus arbitration unit 105 at a timing when the phase of the changed clock signal 3 is synchronized with the reference clock signal. (Timing T15 in FIG. 6). Then, after the data transfer from the bus master 104 is completed, the data transfer by all the bus masters that have issued the transfer requests is completed in the conditional branch of S512.

以上に説明したように実施形態1によれば、バスを介したデータ転送を行う場合は、バスマスタへ供給するクロック信号の周波数を、例えば200MHzのように高くし、そのバスマスタ以外のクロック信号の周波数を低くする。これにより、データ転送を実施していない箇所の消費電力を抑えることができるとともに、その消費電力を抑えた箇所に対して、何らかの要求が発行された場合でも、それに対する応答を返すことができる。これにより、ハングアップの発生を防止できる。   As described above, according to the first embodiment, when performing data transfer via the bus, the frequency of the clock signal supplied to the bus master is increased to, for example, 200 MHz, and the frequency of the clock signal other than the bus master is set. Lower. As a result, it is possible to suppress power consumption at a location where data transfer is not performed, and to return a response to any request issued to the location where the power consumption is suppressed. Thereby, the occurrence of hang-up can be prevented.

ここでバス制御装置100において、データ転送中に発生するダイナミック消費電力Pは、回路の負荷容量をC、電源電圧をVdd、クロック信号の周波数をFとすると、以下の式1で表せる。   Here, in the bus control device 100, the dynamic power consumption P generated during data transfer can be expressed by the following equation 1 where C is the load capacity of the circuit, Vdd is the power supply voltage, and F is the frequency of the clock signal.

P=C×(Vddの2乗)×F …(式1)
この式1から明らかなように、ダイナミック消費電力は、クロック信号の周波数に比例する。実施形態1では、データ転送を実行しない箇所のクロック信号の周波数を、例えばデータ転送時の周波数の1/2にすることにより、データ転送を実行しないときのダイナミック消費電力を、データ転送時の約1/2に低減することができる。
P = C × (square of Vdd) × F (Formula 1)
As is apparent from Equation 1, the dynamic power consumption is proportional to the frequency of the clock signal. In the first embodiment, the frequency of the clock signal at a location where data transfer is not performed is set to, for example, ½ of the frequency during data transfer, so that the dynamic power consumption when data transfer is not performed is reduced to about the same as that during data transfer. It can be reduced to 1/2.

尚、実施形態1では、説明の便宜上、データ転送を行う際のバスマスタのクロック信号の周波数を、データ転送を実施しない場合の2倍にする例で説明した。しかしながら、データ転送が行われない際のクロック信号の周波数を、より低くすることにより、よりダイナミック消費電力を削減できることが予想される。例えば、データ転送が実施されていないバスマスタで実行される処理は、データ転送の進捗状況を確認するためのCPUからのレジスタアクセスに対する応答等が考えられる。この場合、CPUが、応答を受信しないためにハングアップすることがない程度の周波数のクロック信号を供給すれば良い。従って、データ転送時以外のクロック信号の周波数は、もっと低くすることができる。これにより、データ転送時以外のダイナミック消費電力は、もっと低減できると考えられる。   In the first embodiment, for the sake of convenience of explanation, the example in which the frequency of the clock signal of the bus master at the time of data transfer is doubled when the data transfer is not performed has been described. However, it is expected that the dynamic power consumption can be further reduced by lowering the frequency of the clock signal when data transfer is not performed. For example, a process executed by a bus master in which data transfer is not performed may be a response to a register access from the CPU for confirming the progress of data transfer. In this case, the CPU may supply a clock signal having a frequency that does not hang up because it does not receive a response. Therefore, the frequency of the clock signal other than during data transfer can be further reduced. Thereby, it is considered that the dynamic power consumption other than during data transfer can be further reduced.

図7は、実施形態1に係るバス制御装置100において、CPU101からバスマスタ102〜104に対してレジスタアクセスする際の、レジスタアクセスバスのタイミングチャートの一例を示す図である。ここでは、タイミングT1において、クロック信号の周波数を、前述したように、1/2まで低下している例を示している。   FIG. 7 is a diagram illustrating an example of a timing chart of the register access bus when register access is performed from the CPU 101 to the bus masters 102 to 104 in the bus control device 100 according to the first embodiment. Here, an example is shown in which the frequency of the clock signal is reduced to ½ as described above at the timing T1.

図7に示すように、タイミングT1以降は、クロック信号は周波数が低下しているが供給され続けているため、CPU101が発行したレジスタアクセス要求に対するス応答信号を発行することができる。よって、CPU101からのレジスタアクセスが発生した場合にも、それに対する応答を返せるため、前述したようなハングアップの発生を防止することができる。   As shown in FIG. 7, after the timing T1, the clock signal continues to be supplied although the frequency is lowered. Therefore, a response signal to the register access request issued by the CPU 101 can be issued. Therefore, even when a register access from the CPU 101 occurs, a response to the register access can be returned, so that the above-described hang-up can be prevented.

[実施形態2]
上述の実施形態1では、バスを介したデータ転送時のみ、バスの使用権を獲得したバスマスタ102〜104のクロック信号1〜3の周波数を、データ転送に必要な周波数まで高くする制御について説明した。これに対して本発明の実施形態2では、バスの使用権を獲得したバスマスタからのデータ転送でのデータの転送量を参照し、その転送量が所定の値よりも大きい場合のみ、対応するクロック信号の周波数を、データ転送に必要な周波数まで上げるように制御する。
[Embodiment 2]
In the first embodiment described above, the control for increasing the frequency of the clock signals 1 to 3 of the bus masters 102 to 104 that have acquired the right to use the bus to the frequency required for data transfer only during data transfer via the bus has been described. . On the other hand, in the second embodiment of the present invention, the data transfer amount in the data transfer from the bus master that has acquired the right to use the bus is referred to, and only when the transfer amount is larger than a predetermined value, the corresponding clock is The frequency of the signal is controlled to increase to a frequency necessary for data transfer.

これは、転送するデータ量が少ない場合には、クロック信号の周波数の変更に要する処理時間を考慮すると、クロック信号の周波数が低いままでも、データ転送を速く終了できる場合があるためである。よって、転送するデータ量が少ない場合は、クロック信号1〜3の周波数を、より高い周波数に変更することなく、そのままの周波数でデータ転送する例で説明する。   This is because when the amount of data to be transferred is small, considering the processing time required for changing the frequency of the clock signal, the data transfer may be completed quickly even if the frequency of the clock signal remains low. Therefore, when the amount of data to be transferred is small, an example will be described in which data is transferred at the same frequency without changing the frequency of the clock signals 1 to 3 to a higher frequency.

図8は、実施形態2に係るバス調停部105とクロック制御部108による制御処理を説明するフローチャートである。尚、図8に示す実施形態2のフローチャートは、前述の実施形態1に係る図5のフローチャートとほぼ同じであるため、それとの差分を中心に説明する。   FIG. 8 is a flowchart for explaining control processing by the bus arbitration unit 105 and the clock control unit 108 according to the second embodiment. The flowchart of the second embodiment shown in FIG. 8 is substantially the same as the flowchart of FIG.

尚、ここでは、データの転送量を表す情報として、バースト長を例に説明する。このデータの転送量を表す情報としては、他にもビート長、バイト数や、複数サイクル分の転送を期待するような転送種別信号などが考えられる。   Here, the burst length is described as an example as information indicating the data transfer amount. Other information representing the data transfer amount may include a beat length, the number of bytes, a transfer type signal that expects transfer for a plurality of cycles, and the like.

以下、図8に示すフローチャートを説明するにあたり、データ転送を行うジョブは、
バスマスタより、それぞれ1,2,3のバースト長分のデータがバス上に転送される場合を例に説明する。そして、図8のS801〜S807までの処理は、前述の実施形態1の図5のS501〜S507の処理と同じであるため、その説明を割愛する。
In the following description of the flowchart shown in FIG.
An example will be described in which data of burst lengths 1, 2, and 3 are transferred from the bus master onto the bus. The processes from S801 to S807 in FIG. 8 are the same as the processes from S501 to S507 in FIG.

S808でバス調停部105は、バスの使用権が与えたバスマスタからのデータ転送における、データのバースト長を取得し、S809で、そのバースト長が所定値よりも大きいか否かを判定する。この実施形態2では、S808における所定値が「1」の場合を例にして説明する。   In S808, the bus arbitration unit 105 acquires the burst length of data in the data transfer from the bus master given the right to use the bus, and determines in S809 whether the burst length is larger than a predetermined value. In the second embodiment, a case where the predetermined value in S808 is “1” will be described as an example.

図9は、実施形態2に係るバス調停部105とクロック制御部108、及びバスマスタ102〜104の動作例を説明するタイミングチャートである。   FIG. 9 is a timing chart illustrating exemplary operations of the bus arbitration unit 105, the clock control unit 108, and the bus masters 102 to 104 according to the second embodiment.

実施形態2では、バスを使用してデータ転送を行う際のプロトコルとして、転送要求信号1〜4を発行するタイミングと合わせて、データ転送のバースト長の値が、バースト長信号1〜4としてバス調停部105へ送信される。   In the second embodiment, as a protocol for performing data transfer using the bus, the burst length value of the data transfer is set as the burst length signals 1 to 4 together with the timing at which the transfer request signals 1 to 4 are issued. It is transmitted to the arbitration unit 105.

図9のタイミングT1において、バス調停部105は、バスの使用権が与えられたバスマスタ102のバースト長信号1を参照し、バスマスタ102のバースト長が「1」であることを確認する。これによりS809の分岐において、バスマスタ102のバースト長である「1」は、予め決められた所定値「1」よりも大きくない、即ち、所定値以下であるため、S810の周波数を高くする処理をスキップしてS811へ進む。S810からS811までの処理は、前述の実施形態1における図5のS508からS509までの処理と同じであるため、その説明を割愛する。   At timing T1 in FIG. 9, the bus arbitration unit 105 refers to the burst length signal 1 of the bus master 102 to which the right to use the bus is given, and confirms that the burst length of the bus master 102 is “1”. Thereby, in the branch of S809, the burst length “1” of the bus master 102 is not larger than the predetermined value “1” determined in advance, that is, not more than the predetermined value, so the process of increasing the frequency of S810 is performed. Skip to S811. Since the processing from S810 to S811 is the same as the processing from S508 to S509 in FIG. 5 in the first embodiment, description thereof will be omitted.

そしてS811におけるデータ転送が終了するとS812に進み、バスの使用権が与えられたバスマスタからの転送のバースト長と、前述の所定値とを比較する。ここでバースト長が所定値よりも大きい場合はS813に進み、そうでないときはS814に進む。これにより、最初にバスの使用権が与えられたバスマスタ102からのデータ転送では、S813のクロック信号の周波数を元に戻す処理を実行せずにS814へ進む。S813〜S815までの処理は、実施形態1の図5のS510〜S512までの処理と同じであるため、説明を割愛する。   When the data transfer in S811 is completed, the process proceeds to S812, where the burst length of the transfer from the bus master to which the right to use the bus is given is compared with the predetermined value. If the burst length is larger than the predetermined value, the process proceeds to S813. Otherwise, the process proceeds to S814. As a result, in the data transfer from the bus master 102 to which the right to use the bus is first given, the process proceeds to S814 without executing the process of returning the frequency of the clock signal in S813. The processing from S813 to S815 is the same as the processing from S510 to S512 in FIG.

こうしてバスマスタ102からのデータ転送が終了した後、図9のタイミングT2では、バスマスタ103とバスマスタ104から転送要求信号2、転送要求信号3が共にオンになって競合している。これによりバス調停部105での調停の結果、バスマスタ103が、バスの使用権を与えられたバスマスタとして選定される(S805、S807)。   After the data transfer from the bus master 102 is completed in this way, at the timing T2 in FIG. 9, both the transfer request signal 2 and the transfer request signal 3 from the bus master 103 and the bus master 104 are turned on to compete. As a result of the arbitration by the bus arbitration unit 105, the bus master 103 is selected as a bus master to which a bus use right is given (S805, S807).

図9のタイミングT2でバス調停部105は、バスの使用権が与えられたバスマスタ103のバースト長信号2を参照し、バスマスタ103のバースト長が「2」であることを確認する(S808)。そしてS809の条件分岐において、バスマスタ103のバースト長「2」は、予め決められた所定数である「1」よりも大きいためS810へ進む。S810でバス調停部105は、クロック制御部108に対して、バスマスタ103に対する周波数変更要求2をオンにし、周波数変更要求2として「200」を発行して、クロック信号2の周波数を高くするように設定を行う。   At timing T2 in FIG. 9, the bus arbitration unit 105 refers to the burst length signal 2 of the bus master 103 to which the bus use right is given, and confirms that the burst length of the bus master 103 is “2” (S808). In the conditional branch of S809, since the burst length “2” of the bus master 103 is larger than “1” which is a predetermined number, the process proceeds to S810. In S810, the bus arbitration unit 105 turns on the frequency change request 2 for the bus master 103 to the clock control unit 108, issues “200” as the frequency change request 2, and increases the frequency of the clock signal 2. Set up.

こうしてS811でバスマスタ103からバススレーブ106へのデータ転送が実行され、それが終了すると、S812で、バースト長と所定値とを比較する。ここではバスマスタ103のバースト長「2」は、予め決められた所定数である「1」よりも大きいためS813に進み、バス調停部105は、バスの使用権が与えられたバスマスタ103とバススレーブ106の動作クロック信号の周波数を元に戻す。   In this way, the data transfer from the bus master 103 to the bus slave 106 is executed in S811, and when this is completed, the burst length is compared with a predetermined value in S812. Here, since the burst length “2” of the bus master 103 is larger than “1” which is a predetermined number, the process proceeds to S813, and the bus arbitration unit 105 and the bus master 103 and the bus slave to which the right to use the bus is given. The frequency of the operation clock signal 106 is restored.

次に図9のタイミングT3で、バスマスタ104から転送要求信号3のみがオンになっている。この場合、転送要求が競合していないため、バス調停部105により、バスの使用権を与えられたバスマスタとしてバスマスタ104を選定する(S806)。   Next, at timing T3 in FIG. 9, only the transfer request signal 3 from the bus master 104 is turned on. In this case, since the transfer requests are not competing, the bus arbitration unit 105 selects the bus master 104 as the bus master to which the right to use the bus is given (S806).

これにより図9のタイミングT3で、バス調停部105は、バスの使用権が与えられたバスマスタ104についてのバースト長信号3を参照し、バスマスタ104のバースト長が「3」であることを確認する(S808)。この場合は、S809の条件分岐において、バスマスタ103のバースト長である「3」は、予め決められた所定数である「1」よりも大きいためS810へ進む。S810でバス調停部105は、クロック制御部108に対して、バスマスタ104に対する周波数変更要求3をオンにし、周波数変更要求3として「200」を発行して、クロック信号3の周波数を高くするように設定する。こうしてS811でバスマスタ104からバススレーブ106へのデータ転送が実行され、それが終了すると、S812で、バースト長と所定値とを比較する。ここではバスマスタ104のバースト長「3」は、予め決められた所定数である「1」よりも大きいためS813に進み、バス調停部105は、バスの使用権が与えられたバスマスタ104とバススレーブ106の動作クロック信号の周波数を元に戻す。そしてS814に進みバス調停部105は、転送要求を発行した全てのバスマスタによるデータ転送が終了していると判定すると、この処理を終了する。   Accordingly, at timing T3 in FIG. 9, the bus arbitration unit 105 refers to the burst length signal 3 for the bus master 104 to which the right to use the bus is given, and confirms that the burst length of the bus master 104 is “3”. (S808). In this case, since the burst length “3” of the bus master 103 is greater than the predetermined number “1” in the conditional branch of S809, the process proceeds to S810. In S810, the bus arbitration unit 105 turns on the frequency change request 3 for the bus master 104 to the clock control unit 108, issues "200" as the frequency change request 3, and increases the frequency of the clock signal 3. Set. In this way, data transfer from the bus master 104 to the bus slave 106 is executed in S811, and when this is completed, the burst length is compared with a predetermined value in S812. Here, since the burst length “3” of the bus master 104 is larger than the predetermined number “1”, the process proceeds to S813, and the bus arbitration unit 105 and the bus master 104 and the bus slave to which the right to use the bus is given. The frequency of the operation clock signal 106 is restored. Then, the process proceeds to S814, and if the bus arbitration unit 105 determines that the data transfer by all the bus masters that have issued the transfer request has been completed, this process ends.

以上に説明したように実施形態2によれば、転送するデータのバースト長が所定値よりも小さい場合は、そのデータ転送を行うバスマスタへ供給するクロック信号の周波数を変更しない。つまり、データ転送量が少なく、クロック信号の周波数の変更をしない方が、データ転送全体に要する時間が短くなる場合には、そのデータ転送に係るバスマスタのクロック信号の周波数を、より高い周波数に変更しないようにする。こうして、全体のデータ転送時間を考慮しながら、データ転送時のダイナミック消費電力を低減できるという効果がある。   As described above, according to the second embodiment, when the burst length of data to be transferred is smaller than a predetermined value, the frequency of the clock signal supplied to the bus master that performs the data transfer is not changed. In other words, if the amount of data transfer is small and the time required for the entire data transfer is shortened without changing the frequency of the clock signal, the frequency of the clock signal of the bus master related to the data transfer is changed to a higher frequency. Do not. Thus, there is an effect that the dynamic power consumption at the time of data transfer can be reduced while considering the entire data transfer time.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

本発明は上記実施形態に制限されるものではなく、本発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、本発明の範囲を公にするために、以下の請求項を添付する。   The present invention is not limited to the above-described embodiment, and various changes and modifications can be made without departing from the spirit and scope of the present invention. Therefore, in order to make the scope of the present invention public, the following claims are attached.

101…CPU、102〜104…バスマスタ、105…バス調停部、106…バススレーブ、107…基準クロック生成部、108…クロック制御部   DESCRIPTION OF SYMBOLS 101 ... CPU, 102-104 ... Bus master, 105 ... Bus arbitrator, 106 ... Bus slave, 107 ... Reference clock generator, 108 ... Clock controller

Claims (13)

アクセス要求を出力する複数のバスマスタと、
前記複数のバスマスタからのアクセス要求を調停して、バスマスタからのアクセス要求を受け付ける調停手段と、
前記調停手段によってアクセス要求が受け付けられた第1バスマスタに供給するクロック信号の周波数を第1周波数とし、前記複数のバスマスタの内、前記第1バスマスタ以外のバスマスタに供給するクロック信号の周波数を前記第1周波数よりも低い第2周波数とするクロック制御手段と、
を有することを特徴とするバス制御装置。
Multiple bus masters that output access requests;
Arbitration means for arbitrating access requests from the plurality of bus masters and receiving access requests from the bus masters;
The frequency of the clock signal supplied to the first bus master for which the access request has been accepted by the arbitration means is the first frequency, and the frequency of the clock signal supplied to the bus masters other than the first bus master among the plurality of bus masters is the first frequency. Clock control means having a second frequency lower than one frequency;
A bus control device comprising:
前記クロック制御手段は、
基準クロック信号から、互いに異なる周波数の複数のクロック信号を生成する複数の分周手段と、
前記複数のクロック信号のいずれかを、前記調停手段からの周波数情報に基づいて選択する選択手段と、
を有することを特徴とする請求項1に記載のバス制御装置。
The clock control means includes
A plurality of frequency dividing means for generating a plurality of clock signals having different frequencies from the reference clock signal;
Selecting means for selecting one of the plurality of clock signals based on frequency information from the arbitrating means;
The bus control device according to claim 1, comprising:
前記選択手段は、前記複数の分周手段から出力される前記複数のクロック信号を入力するマルチプレクサを含み、前記マルチプレクサは、前記調停手段からの周波数情報に基づいて生成された選択信号に応じて、前記複数のクロック信号のいずれかを選択することを特徴とする請求項2に記載のバス制御装置。   The selection means includes a multiplexer for inputting the plurality of clock signals output from the plurality of frequency dividing means, and the multiplexer is in response to a selection signal generated based on frequency information from the arbitration means, The bus control device according to claim 2, wherein one of the plurality of clock signals is selected. 前記調停手段は、前記複数のバスマスタからのアクセス要求が競合する場合、可変型の優先順位方式に従って、アクセス要求を受け付けるバスマスタを決定することを特徴とする請求項1乃至3のいずれか1項に記載のバス制御装置。   The arbitration unit determines a bus master that receives an access request according to a variable priority method when access requests from the plurality of bus masters compete with each other. The bus control device described. 前記調停手段は、前記複数のバスマスタからのアクセス要求が競合する場合、前記アクセス要求の先着順に、アクセス要求を受け付けるバスマスタを決定することを特徴とする請求項1乃至3のいずれか1項に記載のバス制御装置。   The arbitration unit determines a bus master that receives an access request in the order of arrival of the access requests when access requests from the plurality of bus masters compete with each other. Bus control device. 前記調停手段は、前記アクセス要求を受け付けるバスマスタに供給するクロック信号の周波数変更要求と前記周波数情報を前記クロック制御手段に出力することを特徴とする請求項2に記載のバス制御装置。   3. The bus control device according to claim 2, wherein the arbitration unit outputs a frequency change request of the clock signal supplied to the bus master that receives the access request and the frequency information to the clock control unit. 前記調停手段は、更に、前記アクセス要求に伴う処理が終了したバスマスタに供給するクロック信号の周波数を、前記第1周波数から前記第2周波数に低下させるように前記クロック制御手段を制御することを特徴とする請求項1乃至6のいずれか1項に記載のバス制御装置。   The arbitration means further controls the clock control means so as to lower the frequency of the clock signal supplied to the bus master that has completed the processing accompanying the access request from the first frequency to the second frequency. The bus control device according to any one of claims 1 to 6. 前記調停手段は、更に、前記アクセス要求に伴うデータ転送で転送されるデータ量が所定値以下の場合は、前記クロック制御手段が、前記調停手段によってアクセス要求が受け付けられた第1バスマスタに供給するクロック信号の周波数を変更しないように制御することを特徴とする請求項1に記載のバス制御装置。   The arbitration means further supplies the clock control means to the first bus master from which the access request has been accepted by the arbitration means when the amount of data transferred in the data transfer accompanying the access request is less than or equal to a predetermined value. 2. The bus control device according to claim 1, wherein control is performed so as not to change a frequency of the clock signal. 前記データ量は、前記データ転送で転送されるデータのバースト長であることを特徴とする請求項8に記載のバス制御装置。   9. The bus control device according to claim 8, wherein the data amount is a burst length of data transferred by the data transfer. 前記クロック制御手段は、更に、前記第1バスマスタから転送されたデータを受け取るバススレーブに供給するクロック信号の周波数を前記第1周波数とすることを特徴とする請求項1乃至9のいずれか1項に記載のバス制御装置。   10. The clock control unit according to claim 1, wherein the clock control means further sets the frequency of a clock signal supplied to a bus slave that receives data transferred from the first bus master as the first frequency. The bus control device described in 1. 前記調停手段は、更に、前記アクセス要求に伴うデータ転送が終了すると、前記バススレーブに供給するクロック信号の周波数を前記第1周波数から前記第2周波数に低下させるように前記クロック制御手段を制御することを特徴とする請求項10に記載のバス制御装置。   The arbitration unit further controls the clock control unit to lower the frequency of the clock signal supplied to the bus slave from the first frequency to the second frequency when the data transfer accompanying the access request is completed. The bus control device according to claim 10. 前記クロック制御手段は更に、前記基準クロック信号の位相に同期したクロック信号を生成するPLL同期制御手段を有することを特徴とする請求項2に記載のバス制御装置。   3. The bus control device according to claim 2, wherein the clock control unit further includes a PLL synchronization control unit that generates a clock signal synchronized with a phase of the reference clock signal. アクセス要求を出力する複数のバスマスタからのアクセス要求を制御するバス制御装置の制御方法であって、
調停手段が、前記複数のバスマスタからのアクセス要求を調停して、バスマスタからのアクセス要求を受け付ける調停工程と、
クロック制御手段が、前記調停工程でアクセス要求が受け付けられた第1バスマスタに供給するクロック信号の周波数を第1周波数とし、前記複数のバスマスタの内、前記第1バスマスタ以外のバスマスタに供給するクロック信号の周波数を前記第1周波数よりも低い第2周波数とするクロック制御工程と、
を有することを特徴とするバス制御装置の制御方法。
A control method of a bus control device that controls access requests from a plurality of bus masters that output access requests,
Arbitration means arbitrates access requests from the plurality of bus masters, and receives an access request from the bus master; and
The clock control means sets the frequency of the clock signal supplied to the first bus master for which the access request is accepted in the arbitration step as the first frequency, and the clock signal supplied to the bus masters other than the first bus master among the plurality of bus masters A clock control step of setting the frequency of the second frequency lower than the first frequency;
A control method for a bus control device comprising:
JP2016208036A 2016-10-24 2016-10-24 Bus control device and control method thereof Pending JP2018072896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016208036A JP2018072896A (en) 2016-10-24 2016-10-24 Bus control device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016208036A JP2018072896A (en) 2016-10-24 2016-10-24 Bus control device and control method thereof

Publications (1)

Publication Number Publication Date
JP2018072896A true JP2018072896A (en) 2018-05-10

Family

ID=62112829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016208036A Pending JP2018072896A (en) 2016-10-24 2016-10-24 Bus control device and control method thereof

Country Status (1)

Country Link
JP (1) JP2018072896A (en)

Similar Documents

Publication Publication Date Title
KR102384347B1 (en) System on chip includiing clock management unit and operating method thereof
US20140281036A1 (en) Synchronizing Scheduler Interrupts Across Multiple Computing Nodes
JP3954011B2 (en) Method and computer system for communicating between subsystems
KR101380364B1 (en) Sharing bandwidth of a single port sram between at least one dma peripheral and a cpu operating with a quadrature clock
JP2010165247A (en) Semiconductor device and data processor
JP2013097659A (en) Semiconductor data processor, time trigger communication system and communication system
JP2008276391A (en) Memory access control device
JP2016173798A (en) Semiconductor device
WO2012171582A1 (en) Resolving address conflicts in a bus system
US9652299B2 (en) Controlling the state of a process between a running and a stopped state by comparing identification information sent prior to execution
JP4902640B2 (en) Integrated circuit and integrated circuit system
US11157206B2 (en) Multi-die system capable of sharing non-volatile memory
JP6546479B2 (en) Information processing device
US11036205B2 (en) Control device and communication device
JP2018072896A (en) Bus control device and control method thereof
JP2005085079A (en) Data transfer control device
JP2009116702A (en) Semiconductor integrated circuit
JP5677007B2 (en) Bus arbitration device and bus arbitration method
US8786332B1 (en) Reset extender for divided clock domains
CN107678993A (en) Computer system and bus arbitration method
JP5621747B2 (en) Multitask system
JP4124579B2 (en) Bus control system
US20170212549A1 (en) Semiconductor device
US20160094228A1 (en) Information processing apparatus and control method therefor
JP2019012459A (en) Information processor and control method therefor