JP2004355495A - Computer system - Google Patents

Computer system Download PDF

Info

Publication number
JP2004355495A
JP2004355495A JP2003154772A JP2003154772A JP2004355495A JP 2004355495 A JP2004355495 A JP 2004355495A JP 2003154772 A JP2003154772 A JP 2003154772A JP 2003154772 A JP2003154772 A JP 2003154772A JP 2004355495 A JP2004355495 A JP 2004355495A
Authority
JP
Japan
Prior art keywords
function
control
circuit
cpu
signal
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
JP2003154772A
Other languages
Japanese (ja)
Inventor
Toru Mizushima
徹 水嶋
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2003154772A priority Critical patent/JP2004355495A/en
Publication of JP2004355495A publication Critical patent/JP2004355495A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a system which does not fall into an abnormal state as a whole even if each function block falls into an abnormal state by realizing function operation/ function stop and an initializing function for each function block in a computer system with a CPU and other function blocks. <P>SOLUTION: Each of the function blocks 120, 130, 140 is refreshed by providing a control signal generation circuit 106 for performing function operation/function stop and initializing control of each of the function blocks 120, 130, 140 and performing processes of function stop/initializing and function operation for each operation of each of the function blocks 120, 130, 140 by software control using the CPU 101. As each of the function blocks 120, 130, 140 can be always started from an initial state when using them by performing the refresh operation, it starts from a normal state at the next time even if it is in an abnormal state at a certain timing. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、CPUと、CPU以外の少なくとも一つの機能ブロックとを有するコンピュータシステムに関するもので、特に、CPUを用いたソフトウェア制御により各機能ブロックの機能動作/機能停止および初期化を行うことができるコンピュータシステムに関するものである。
【0002】
【従来の技術】
従来、CPUと、CPU以外の少なくとも一つの機能ブロックとを有するコンピュータシステムにおいては、CPUが双方向バスを介して、各機能ブロックの様々な制御を行っている。
【0003】
図3に従来のコンピュータシステムの構成の一例を示す。図3において、301はCPU(中央処理装置)、302は機能ブロックの一つである通信ブロック、303は他の機能ブロック、304はさらに他の機能ブロック、305は双方向のバス(データ、アドレスetc)、306は外部リセット信号が入力される外部リセット端子である。
【0004】
例えば、通信ブロック302を制御して他の機器(図示せず)との通信を実現する場合は、CPU301より通信ブロック302に対してバス305を介して送信データや送信命令等の命令を送信する。通信ブロック302は、CPU301からの命令をもとに、他の機器と通信を始める。その他の機能ブロック303,304に関しても、CPU301が命令を送信してその命令をもとにそれぞれの機能ブロック303,304に応じた動作をする。
【0005】
これらCPU301と通信ブロック302および機能ブロック303,304とを有するコンピュータシステムに外部よりノイズ等が混入し、通常ではありえない状態にコンピュータシステムが陥り、コンピュータシステムが動作不可能な状態になった場合には、外部リセット端子306にリセット信号を入れることでCPU301や通信ブロック302、機能ブロック303,304を一斉にリセットしシステム全体の初期化を行うか、異常の発生した機能ブロックに対してCPU301を用いてソフトウェア的に初期状態に戻せる部分(レジスタ等)のみを初期化して正常状態にもどす制御を行う。
【0006】
外部リセット端子306は、ハードウェアリセットとも呼ばれ、電源立ち上げ時にも使用される。この外部リセット端子306に外部リセット信号を入れることで、CPU301およびそれ以外の全ての機能ブロックに対してハードウェアリセットをかけることが可能である。
【0007】
このようなコンピュータシステムに異常が起きた際の制御方法としては、上記方法以外に異常の起きたブロックのみを初期化する制御方法を用いているものもある(例えば、特許文献1参照)。
【0008】
【特許文献1】
特開平5−265596号公報
【0009】
【発明が解決しようとする課題】
CPUとそれ以外の少なくとも一つの機能ブロックを有する、昨今のコンピュータシステムにおいては、外部からの影響等によりシステム全体が異常状態に陥ることのないシステムが求められてきている。
【0010】
CPUとそれ以外の少なくとも一つの機能ブロックを有するコンピュータシステムにおいて、外部からの影響等によりCPU以外の機能ブロックに異常状態が発生した場合の制御方法として、従来技術では、以下のような方法が使用されている。コンピュータシステムの異常状態を監視し、異常状態が発生したと検出した場合に、機能ブロックをソフトウェアにて制御しソフトウェア的にリセットをかけるか、コンピュータシステム全体にハードウェア的にリセットをかけ、コンピュータシステム全体を初期状態に戻すか、異常状態にある機能ブロックに個別にソフトウェアリセットをかけ、その機能ブロックのみを初期状態に戻し復帰する手段を行っていた。
【0011】
しかしながら、上記のような復旧手段は、異常状態を監視し異常状態が発生したと検出した場合にのみ機能する手段である。そのため、異常状態の検出ができなかった場合には、システムを復旧する手段としてはシステム全体にハードウェア的にリセットをかけ、システム全体を初期状態に戻すしかない。
【0012】
したがって、本発明の目的は、CPUとそれ以外の少なくとも一つの機能ブロックを有するシステムにおいて、システム全体の安定性を確保することができるコンピュータシステムを提供することである。
【0013】
【課題を解決するための手段】
本発明のコンピュータシステムは、CPUとそれ以外の少なくとも一つの機能ブロックを有するシステムにおいて、CPUを用いたソフトウェア制御により各機能ブロック毎に、機能動作および機能停止を制御可能とし、各機能ブロックを機能停止させたときに、その機能ブロックを初期化する構成を採用する。
【0014】
その結果、CPUを用いたソフトウェア制御により各機能ブロックの動作開始時にその機能ブロックのみを機能停止および初期化のリフレッシュ動作することが可能である。
【0015】
したがって、各機能ブロックの使用開始時にその機能ブロックを初期状態にリフレッシュした状態で動作させることができる。その結果、例えばある機能ブロックが外部からのノイズ等により通常状態ではなりえない状態に陥ったとしても、その機能ブロックの使用時にはこのリフレッシュ動作により初期状態にリフレッシュされるため、システム全体の安定性を確保することが可能となる。
【0016】
本発明のコンピュータシステムは、CPUと、CPUによって動作が制御されて特定の機能を実行する少なくとも一つの機能ブロックと、CPUと少なくとも一つの機能ブロックとを接続するバスと、各機能ブロックに対して各機能ブロックを動作させる機能動作信号と各機能ブロックを停止させる機能停止信号を与える制御信号生成回路とを備えている。
【0017】
各機能ブロックは、主機能回路と、主機能回路の動作を規定する制御データを保持する制御レジスタと、制御レジスタと主機能回路との間に設けられて制御レジスタの保持データと制御レジスタの初期データとを選択的に主機能回路に入力するレジスタ信号制御回路とを有する。
【0018】
上記の制御信号生成回路は、例えば、バスに接続されてCPUからバスに出力される各機能ブロックの機能動作命令もしくは機能停止命令をそれぞれ受け取り、各機能ブロックの機能動作命令もしくは機能停止命令に対応して各機能ブロックに対して機能動作信号もしくは機能停止信号を与えるようにしている。
【0019】
また、CPUは、例えば各機能ブロックの機能停止命令をバスに出力したときに、各機能ブロックの動作を規定する制御データをバスに併せて出力し、制御レジスタはCPUから出力される制御データを格納するように構成されている。
【0020】
また、レジスタ信号制御回路は、例えば制御信号生成回路より機能停止信号が与えられたときに制御レジスタの初期データを主機能回路に与え、制御信号生成回路より機能動作信号が与えられたときに制御レジスタの保持データを主機能回路に与える。
【0021】
さらに、主機能回路は、例えば制御信号生成回路より機能停止信号が与えられたときに停止し初期化されて制御レジスタの初期データが設定され、制御信号生成回路より機能動作信号が与えられたときに制御レジスタの保持データを基に動作する。
【0022】
【発明の実施の形態】
図1は、本発明のCPUとそれ以外の少なくとも一つの機能ブロックとを有するコンピュータシステムにおいて、CPUを用いたソフトウェア制御により、機能ブロックを初期化および動作制御する方法を示すブロック図である。
【0023】
本発明の実施の形態のコンピュータシステムは、CPU101と、CPU101によって動作が制御されて各々特定の機能を実行する機能ブロック120、130、140、・・・と、各機能ブロック120、130、140、・・・に対して各機能ブロック120、130、140、・・・を動作させる機能動作信号と各機能ブロックを停止させる機能停止信号を与える制御信号生成回路106と、双方向のバス105とから構成される。CPU101と機能ブロック120、機能ブロック130、機能ブロック140、・・・と、制御信号生成回路106とは、バス105により結ばれている。
【0024】
例えば、機能ブロック120は、論理回路などで構成される主機能回路125と、主機能回路125の動作を規定する制御データを保持する制御レジスタ124と、制御レジスタ124と主機能回路125との間に設けられて制御レジスタ124の保持データと制御レジスタの初期データとを選択的に主機能回路125に入力するレジスタ信号制御回路126とを有する。他の機能ブロック130、140なども同様の構成である。
【0025】
また、制御信号生成回路106は、バス105に接続されてCPU101からバス105に出力される各機能ブロック120、130、140、・・・の機能動作命令もしくは機能停止命令をそれぞれ受け取り、各機能ブロック120、130、140、・・・の機能動作命令もしくは機能停止命令に対応して各機能ブロック120、130、140、・・・に対して機能動作信号もしくは機能停止信号を与える。
【0026】
また、CPU101は、各機能ブロック120、130、140、・・・の機能停止命令をバス105に出力したときに、各機能ブロック120、130、140、・・・の動作を規定する制御データをバス105に併せて出力し、制御レジスタ124はCPU101から出力される制御データを格納するように構成されている。
【0027】
また、レジスタ信号制御回路126は、制御信号生成回路106より機能停止信号が与えられたときに制御レジスタの初期データを主機能回路125に与え、制御信号生成回路106より機能動作信号が与えられたときに制御レジスタ124の保持データを主機能回路125に与える。
【0028】
さらに、主機能回路125は、制御信号生成回路106より機能停止信号が与えられたときに停止し初期化されて制御レジスタの初期データが設定され、制御信号生成回路106より機能動作信号が与えられたときに制御レジスタ124の保持データを基に動作する。
【0029】
以下、実施の形態をさらに具体的に説明する。
【0030】
制御信号生成回路106は、CPU101よりバス105を介して各機能ブロック120,130,140に対する動作命令(Enable)/停止命令(Disenable)を受けると、制御信号107の信号線を介して機能ブロック120、機能ブロック130、機能ブロック140、・・・のうちどれかまたはいくつかに動作(Enable)/停止(Disenable)のための機能動作信号もしく機能停止信号を送る。
【0031】
機能ブロック120、機能ブロック130、機能ブロック140、・・・は、外部リセット端子108から入力されるハードウェアリセット信号109が供給されるリセット入力端子121、リセット入力端子131、リセット入力端子141、・・・とは別に、回路の動作(Enable)/停止(Disenable)が選択できる動作制御端子122、動作制御端子132、動作制御端子142、・・・を装備している。
【0032】
機能ブロック120、機能ブロック130、機能ブロック140、・・・は、それぞれの動作制御端子122、動作制御端子132、動作制御端子142、・・・より機能停止信号(動作停止命令)を受けると動作を停止し、機能動作信号(動作開始命令)を受けると動作開始するように構成されている。
【0033】
機能ブロックA120を例にとると、動作制御端子120は、内部動作制御信号123の信号線を介して制御レジスタ124以外の主機能回路125とレジスタ信号制御回路126とに接続され、主機能回路125の動作(Enable)/停止(Disenable)の制御を行う以外に、停止時は主機能回路125の初期化も行われる。
【0034】
停止時において、制御レジスタ124は動作可能であり、次に動作する際の設定値を設定保存することが可能である。その際、内部動作制御信号123がレジスタ信号制御回路126を制御することにより、主機能回路125に対して、レジスタ信号制御回路から初期値を与える構成になっている。これによって、上記したように、主機能回路125が初期化される。
【0035】
その他の機能ブロック130、機能ブロック140、・・・に関しても同様な構成となっている。
【0036】
例えば、機能ブロック120を使用する場合、まずCPU101は、制御信号生成回路106に対して機能ブロック120の停止命令を送る。
【0037】
制御信号生成回路106は、CPU101より機能ブロック120の停止(Disenable)命令を受けると、制御信号107として機能ブロックA120に停止(Disenable)の信号を送る。
【0038】
停止(Disenable)信号を受け取った機能ブロック120は、主機能回路125の停止および初期化(リフレッシュ)を行う、これと同時に、CPU101は、機能ブロック120の制御レジスタ124に機能ブロック120の動作に必要な設定値を設定する。この際、制御レジスタ124と主機能回路125とはレジスタ信号制御回路126により分離され、制御レジスタ124の設定値が主機能回路125に影響を及ぼさない。これらの動作完了後に、CPU101は、制御信号生成回路106に機能ブロック120の動作命令を送る。
【0039】
動作(Enable)命令を受け取った機能ブロック120は、制御レジスタ124に設定された値で、主機能回路125の動作を行う。
【0040】
上記の動作を各機能ブロック120、130、140、・・・の動作時に毎回行うことで常にリフレッシュされた状態でコンピュータシステム全体が動作し、ある機能ブロックが外部からのノイズ等により通常状態ではなりえない状態に陥ったとしてもその機能ブロック使用時にはこのリフレッシュ動作により初期状態にリフレッシュされる。そのため、コンピュータシステム全体の安定性を確保することが可能となる。
【0041】
また、それぞれの機能ブロック120、130、140、・・・において動作(Enable)/停止(Disenable)が選択できることから、異常状態におちいった機能ブロックを容易にコンピュータシステムから切り離し、コンピュータシステム全体への影響を避けることも可能である。
【0042】
さらに、それぞれの機能ブロック120、130、140、・・・において、動作(Enable)/停止(Disenable)が選択できることから、ある機能ブロックを使用しない場合は、その機能ブロックを停止(Disenable)状態にすることで、コンピュータシステム全体の消費電力を下げることも可能となる。
【0043】
以下に図1および図2を用いて、本発明の実施の形態を、より具体的に説明する。図2には本発明の実施例として機能ブロック120および制御信号生成回路106の具体的な構成を示す。なお、以下の説明は、実施の形態における一例であり、これ以外に種々の応用例が考えられることは容易に理解できる。
【0044】
実施例における機能ブロック120は、ANDゲート127と、他の任意の回路構成の論理回路(例えばフリップフロップなど)によって構成されており、動作制御端子122からの制御信号が主機能回路125内の各論理回路のリセット端子に入力されるようになっている。レジスタ信号制御回路126は、セレクタで構成されており、内部動作制御信号123のレベルに応じて制御レジスタ124の保持値を出力するか、制御レジスタ124の初期値を出力するかが選択される。
【0045】
機能ブロック120をシリアル通信ブロックと仮定すると、シリアル通信時CPU101は、まずバス105を介して制御信号生成回路106にシリアル通信ブロック停止命令“0”を書き込む。すると、制御信号生成回路106は、制御信号107として“L”を出力し、その信号が、シリアル通信ブロックである機能ブロック120に伝えられる。伝えられた信号は、動作制御端子122から内部動作制御信号123としてANDゲートA127に伝わり、シリアル通信ブロックの主機能回路125内に構成される論理回路のリセット端子に入力され、主機能回路125の動作停止および初期化、すなわち機能ブロック120の動作停止および初期化を行う。
【0046】
同時に、内部動作制御信号123がレジスタ信号制御回路126に入力され、レジスタ信号制御回路126から機能ブロック120の主機能回路125へは、制御レジスタ124の初期値が入力される。
【0047】
シリアル通信ブロックで機能ブロック120が停止されたら、CPU101は、シリアル通信ブロックである機能ブロック120を動作させるための送信データ/通信設定等を機能ブロック120内の制御レジスタ124に書き込む。この時点で機能ブロック120の主機能回路125へは、制御レジスタ124の初期値が入力される。
【0048】
CPU101により機能ブロック120の停止と初期化、制御レジスタ124への命令の書き込みが行われたら、上記とは逆にバス105を介して制御信号生成回路106に機能ブロック(シリアル通信ブロック)120の動作命令“1”を書き込む。すると、制御信号生成回路106は、制御信号107として“H”を出力し、その信号が、機能ブロック(シリアル通信ブロック)120に伝えられる。伝えられた信号は、動作制御端子122から内部動作制御信号123としてANDゲート127に伝わり、機能ブロック120の主機能回路125内に構成される論理回路のリセット端子のリセット状態を解除し、機能ブロック120の主機能回路125の動作を行わせる。
【0049】
同時に、内部動作制御信号123は、レジスタ信号制御回路126に入力されレジスタ信号制御回路126から機能ブロック120主機能回路125へは、制御レジスタ124に設定された送信データ/通信設定等が入力される。
【0050】
上記例はシリアル通信ブロックについて説明しているが、その他の機能ブロックに関しても同様である。
【0051】
上記動作を、各機能ブロックの動作開始毎に行い、毎回各機能ブロックのリフレッシュを行うことで、コンピュータシステム全体が異常状態に陥ることを回避する。
【0052】
さらに、機能ブロック120、機能ブロック130、機能ブロック140、・・・の異常がコンピュータシステム全体に悪影響を及ぼしている場合などは、上述の制御信号107を用いて機能ブロック120、機能ブロック130、機能ブロック140、・・・を常時停止状態に置くことで、コンピュータシステムからの切り離しを行うことができる。
【0053】
また、正常状態にあっても、ある動作状態において機能ブロック120、機能ブロック130、機能ブロック140、・・・を使用しない場合は、上述の制御信号107を用いて機能ブロック120、機能ブロック130、機能ブロック140、・・・を常時停止状態に置くことで、機能ブロック120、機能ブロック130、機能ブロック140・・・を停止でき、コンピュータシステム全体の消費電力の低減を図ることが可能である。
【0054】
【発明の効果】
上記に述べたように、本発明によれば、外部からの影響によりある機能ブロックが異常状態に陥ってもその機能ブロック使用毎にその機能ブロックのみ初期化処理されるため、システム全体が異常状態に陥ることを回避することができる。
【0055】
さらに、異常状態に陥った場合システム全体を初期化するのではなく、異常状態にある機能ブロックのみを個別に停止し初期化することが可能である。また、機能ブロックを個別に停止/動作の選択が可能なことから異常状態に陥った機能ブロックを停止しコンピュータシステムから切り離すことも容易にできる。また、使用しない機能ブロックを停止し、コンピュータシステム全体の消費電力を下げることも可能になる。
【図面の簡単な説明】
【図1】本発明の実施の形態におけるコンピュータシステムの構成を示すブロック図である。
【図2】図1中の機能ブロックおよび制御信号生成回路の詳細構成の一例を示すブロック図である。
【図3】従来のコンピュータシステムの構成を示すブロック図である。
【符号の説明】
101 CPU
105 バス
106 制御信号生成回路
107 制御信号
108 外部リセット端子
109 ハードウェアリセット信号
120 機能ブロック
121 リセット入力端子
122 動作制御端子
123 内部動作制御信号
124 制御レジスタ
125 主機能回路
126 レジスタ信号制御回路
127 ANDゲート
130 機能ブロック
131 リセット入力端子
132 動作制御端子
140 機能ブロック
141 リセット入力端子
142 動作制御端子
301 CPU
302 通信ブロック
303 機能ブロック
304 機能ブロック
305 バス
306 外部リセット端子
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a computer system having a CPU and at least one functional block other than the CPU. In particular, the functional operation / stop and initialization of each functional block can be performed by software control using the CPU. It concerns computer systems.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in a computer system having a CPU and at least one functional block other than the CPU, the CPU performs various controls of each functional block via a bidirectional bus.
[0003]
FIG. 3 shows an example of the configuration of a conventional computer system. 3, reference numeral 301 denotes a CPU (central processing unit); 302, a communication block which is one of the functional blocks; 303, another functional block; 304, another functional block; and 305, a bidirectional bus (data, address). etc), 306 are external reset terminals to which an external reset signal is input.
[0004]
For example, when controlling the communication block 302 to realize communication with another device (not shown), the CPU 301 transmits commands such as transmission data and a transmission command to the communication block 302 via the bus 305. . The communication block 302 starts communication with another device based on a command from the CPU 301. With respect to the other functional blocks 303 and 304, the CPU 301 transmits an instruction and performs an operation corresponding to the functional blocks 303 and 304 based on the instruction.
[0005]
When noise or the like is mixed from the outside into the computer system having the CPU 301, the communication block 302, and the function blocks 303 and 304, the computer system falls into an unusual state, and the computer system becomes inoperable. By inputting a reset signal to the external reset terminal 306, the CPU 301, the communication block 302, and the function blocks 303 and 304 are reset at the same time to initialize the entire system, or the CPU 301 is used for a function block in which an abnormality has occurred. Control is performed to initialize only the portion (registers and the like) that can be returned to the initial state by software and return to the normal state.
[0006]
The external reset terminal 306 is also called a hardware reset, and is used even when the power is turned on. By inputting an external reset signal to the external reset terminal 306, a hardware reset can be performed on the CPU 301 and all other functional blocks.
[0007]
As a control method when an abnormality occurs in such a computer system, there is a method using a control method of initializing only a block in which an abnormality has occurred in addition to the above method (for example, see Patent Document 1).
[0008]
[Patent Document 1]
JP-A-5-265596
[Problems to be solved by the invention]
In recent computer systems having a CPU and at least one other functional block, there is a demand for a system in which the whole system does not fall into an abnormal state due to an external influence or the like.
[0010]
In a computer system having a CPU and at least one other functional block, a conventional method uses the following method as a control method when an abnormal state occurs in a functional block other than the CPU due to an external influence or the like. Have been. Monitors the abnormal state of the computer system and, if it detects that an abnormal state has occurred, controls the functional blocks by software and resets it by software, or resets the entire computer system by hardware and resets the computer system. Means for returning the entire system to the initial state or individually performing a software reset on the functional blocks in the abnormal state, and returning only the functional blocks to the initial state and returning.
[0011]
However, the recovery means as described above is a means that functions only when monitoring an abnormal state and detecting that an abnormal state has occurred. Therefore, if an abnormal state cannot be detected, the only means for restoring the system is to reset the entire system by hardware and return the entire system to the initial state.
[0012]
Therefore, an object of the present invention is to provide a computer system capable of ensuring the stability of the entire system in a system having a CPU and at least one other functional block.
[0013]
[Means for Solving the Problems]
A computer system according to the present invention is a system having a CPU and at least one other functional block, in which a functional operation and a functional stop can be controlled for each functional block by software control using the CPU. When stopped, a configuration for initializing the functional block is adopted.
[0014]
As a result, when the operation of each functional block is started by software control using the CPU, it is possible to perform a refresh operation of stopping and initializing only the functional block.
[0015]
Therefore, each functional block can be operated in a state where the functional block is refreshed to the initial state at the start of use. As a result, even if a certain functional block falls into a state where it cannot be put into a normal state due to external noise or the like, when the functional block is used, it is refreshed to the initial state by this refresh operation. Can be secured.
[0016]
The computer system of the present invention includes a CPU, at least one function block whose operation is controlled by the CPU to execute a specific function, a bus connecting the CPU and at least one function block, A control signal generating circuit for providing a function operation signal for operating each function block and a function stop signal for stopping each function block is provided.
[0017]
Each functional block includes a main function circuit, a control register that holds control data that specifies the operation of the main function circuit, and a control register that is provided between the control register and the main function circuit. And a register signal control circuit for selectively inputting data to the main function circuit.
[0018]
The control signal generation circuit described above receives, for example, a function operation instruction or a function stop instruction of each function block connected to the bus and output from the CPU to the bus, and responds to the function operation instruction or function stop instruction of each function block. Then, a function operation signal or a function stop signal is given to each function block.
[0019]
Further, for example, when a function stop command of each functional block is output to the bus, the CPU outputs control data defining the operation of each functional block to the bus, and the control register stores control data output from the CPU. It is configured to store.
[0020]
In addition, the register signal control circuit supplies the initial data of the control register to the main function circuit when a function stop signal is given from the control signal generation circuit, and controls when the function operation signal is given from the control signal generation circuit. The data held in the register is given to the main function circuit.
[0021]
Further, the main function circuit is stopped and initialized when a function stop signal is given from the control signal generation circuit, the initial data of the control register is set, and when the function operation signal is given from the control signal generation circuit. Operates based on the data held in the control register.
[0022]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a block diagram showing a method for initializing and controlling operation of functional blocks by software control using a CPU in a computer system having a CPU of the present invention and at least one other functional block.
[0023]
The computer system according to the embodiment of the present invention includes a CPU 101, function blocks 120, 130, 140,... Whose operations are controlled by the CPU 101 to execute specific functions, respectively, and functional blocks 120, 130, 140,. , A function signal for operating the function blocks 120, 130, 140,... And a function stop signal for stopping the function blocks, and a bidirectional bus 105. Be composed. The CPU 101 is connected to the function block 120, the function block 130, the function block 140,... And the control signal generation circuit 106 by a bus 105.
[0024]
For example, the function block 120 includes a main function circuit 125 including a logic circuit, a control register 124 that holds control data that specifies the operation of the main function circuit 125, and a function block between the control register 124 and the main function circuit 125. And a register signal control circuit 126 for selectively inputting the data held in the control register 124 and the initial data of the control register to the main function circuit 125. Other functional blocks 130 and 140 have the same configuration.
[0025]
The control signal generation circuit 106 is connected to the bus 105 and receives the function operation command or the function stop command of each of the function blocks 120, 130, 140,... Output from the CPU 101 to the bus 105. A function operation signal or a function stop signal is given to each of the function blocks 120, 130, 140,... In response to the function operation command or the function stop command of 120, 130, 140,.
[0026]
When the CPU 101 outputs the function stop command of each of the function blocks 120, 130, 140,... To the bus 105, the CPU 101 transmits control data that defines the operation of each of the function blocks 120, 130, 140,. The control register 124 is configured to store the control data output from the CPU 101 together with the output to the bus 105.
[0027]
Further, the register signal control circuit 126 supplies the initial data of the control register to the main function circuit 125 when the function stop signal is supplied from the control signal generation circuit 106, and receives the function operation signal from the control signal generation circuit 106. Sometimes, the data held in the control register 124 is given to the main function circuit 125.
[0028]
Further, the main function circuit 125 is stopped and initialized when the function stop signal is given from the control signal generation circuit 106, the initial data of the control register is set, and the function operation signal is given from the control signal generation circuit 106. It operates on the basis of the data held in the control register 124 at the time of occurrence.
[0029]
Hereinafter, embodiments will be described more specifically.
[0030]
When the control signal generation circuit 106 receives an operation command (Enable) / stop command (Disable) for each of the function blocks 120, 130, and 140 from the CPU 101 via the bus 105, the function block 120 via a signal line of the control signal 107. , A function operation signal or a function stop signal for operation (Enable) / disable (Disable) is sent to any or some of the function blocks 130, 140,...
[0031]
The functional block 120, the functional block 130, the functional block 140,... Include a reset input terminal 121, a reset input terminal 131, a reset input terminal 141 to which a hardware reset signal 109 input from the external reset terminal 108 is supplied. .. Are provided with an operation control terminal 122, an operation control terminal 132, an operation control terminal 142,... Which can select operation (Enable) / stop (Disable) of the circuit.
[0032]
When the function block 120, the function block 130, the function block 140,... Receive a function stop signal (operation stop command) from the operation control terminal 122, the operation control terminal 132, the operation control terminal 142,. Are stopped, and the operation is started when a function operation signal (operation start command) is received.
[0033]
Taking the function block A120 as an example, the operation control terminal 120 is connected to a main function circuit 125 other than the control register 124 and a register signal control circuit 126 via a signal line of an internal operation control signal 123, and the main function circuit 125 In addition to controlling the operation (Enable) / stop (Disable), the main function circuit 125 is also initialized at the time of stop.
[0034]
At the time of stop, the control register 124 is operable, and can set and store a set value for the next operation. At this time, the internal operation control signal 123 controls the register signal control circuit 126, so that the register signal control circuit gives an initial value to the main function circuit 125. Thereby, as described above, the main function circuit 125 is initialized.
[0035]
The other functional blocks 130, 140,... Have the same configuration.
[0036]
For example, when using the function block 120, first, the CPU 101 sends an instruction to stop the function block 120 to the control signal generation circuit 106.
[0037]
When receiving the stop (Disable) command of the function block 120 from the CPU 101, the control signal generation circuit 106 sends a stop (Disable) signal to the function block A 120 as the control signal 107.
[0038]
The function block 120 that has received the stop (Disable) signal stops and initializes (refreshes) the main function circuit 125, and at the same time, the CPU 101 stores the control register 124 of the function block 120 as necessary for the operation of the function block 120. Set the appropriate setting value. At this time, the control register 124 and the main function circuit 125 are separated by the register signal control circuit 126, and the set value of the control register 124 does not affect the main function circuit 125. After completing these operations, the CPU 101 sends an operation instruction of the functional block 120 to the control signal generation circuit 106.
[0039]
The function block 120 that has received the operation (Enable) instruction operates the main function circuit 125 with the value set in the control register 124.
[0040]
By performing the above operation every time when each of the functional blocks 120, 130, 140,... Is performed, the entire computer system operates in a constantly refreshed state, and a certain functional block is in a normal state due to external noise or the like. Even if the state becomes impossible, when the functional block is used, the refresh operation is performed to the initial state. Therefore, it is possible to ensure the stability of the entire computer system.
[0041]
Further, since the operation (Enable) / stop (Disable) can be selected in each of the functional blocks 120, 130, 140,..., The functional blocks that have fallen into an abnormal state can be easily separated from the computer system, and the entire computer system can be transferred. It is possible to avoid the effects.
[0042]
Further, in each of the function blocks 120, 130, 140,..., The operation (Enable) / stop (Disable) can be selected. Therefore, when a certain function block is not used, the function block is set to the stop (Disable) state. By doing so, it is also possible to reduce the power consumption of the entire computer system.
[0043]
Hereinafter, an embodiment of the present invention will be described more specifically with reference to FIGS. FIG. 2 shows a specific configuration of the functional block 120 and the control signal generation circuit 106 as an embodiment of the present invention. The following description is an example of the embodiment, and it is easy to understand that other various application examples can be considered.
[0044]
The functional block 120 according to the embodiment includes an AND gate 127 and a logic circuit (for example, a flip-flop or the like) having another arbitrary circuit configuration, and a control signal from the operation control terminal 122 is transmitted to each of the main functional circuits 125. The signal is input to the reset terminal of the logic circuit. The register signal control circuit 126 is constituted by a selector, and selects whether to output the held value of the control register 124 or to output the initial value of the control register 124 according to the level of the internal operation control signal 123.
[0045]
Assuming that the functional block 120 is a serial communication block, at the time of serial communication, the CPU 101 first writes a serial communication block stop command “0” to the control signal generation circuit 106 via the bus 105. Then, the control signal generation circuit 106 outputs “L” as the control signal 107, and the signal is transmitted to the functional block 120 which is a serial communication block. The transmitted signal is transmitted from the operation control terminal 122 to the AND gate A127 as the internal operation control signal 123, and is input to the reset terminal of a logic circuit included in the main function circuit 125 of the serial communication block. Operation stop and initialization, that is, operation stop and initialization of the functional block 120 are performed.
[0046]
At the same time, the internal operation control signal 123 is input to the register signal control circuit 126, and the initial value of the control register 124 is input from the register signal control circuit 126 to the main function circuit 125 of the function block 120.
[0047]
When the function block 120 is stopped in the serial communication block, the CPU 101 writes transmission data / communication settings for operating the function block 120, which is a serial communication block, in the control register 124 in the function block 120. At this point, the initial value of the control register 124 is input to the main function circuit 125 of the function block 120.
[0048]
When the CPU 101 stops and initializes the function block 120 and writes an instruction to the control register 124, the control signal generation circuit 106 sends the operation of the function block (serial communication block) 120 to the control signal generation circuit 106 via the bus 105 in a manner opposite to the above. Write instruction "1". Then, the control signal generation circuit 106 outputs “H” as the control signal 107, and the signal is transmitted to the functional block (serial communication block) 120. The transmitted signal is transmitted from the operation control terminal 122 to the AND gate 127 as the internal operation control signal 123, and the reset state of the reset terminal of the logic circuit included in the main function circuit 125 of the function block 120 is released. The operation of the main function circuit 125 of 120 is performed.
[0049]
At the same time, the internal operation control signal 123 is input to the register signal control circuit 126, and the transmission data / communication settings and the like set in the control register 124 are input from the register signal control circuit 126 to the function block 120 main function circuit 125. .
[0050]
The above example describes a serial communication block, but the same applies to other functional blocks.
[0051]
The above operation is performed each time the operation of each functional block is started, and each functional block is refreshed each time, thereby preventing the entire computer system from falling into an abnormal state.
[0052]
Further, when an abnormality in the function blocks 120, 130, 140,... Has an adverse effect on the entire computer system, the above-described control signal 107 is used for the function blocks 120, 130, and 130. By keeping the blocks 140,... Always stopped, disconnection from the computer system can be performed.
[0053]
Further, even if the function block 120, the function block 130, the function block 140,... Are not used in a certain operation state even in the normal state, the function block 120, the function block 130, By keeping the functional blocks 140,... Always in a stopped state, the functional blocks 120, 130, 130,... Can be stopped, and the power consumption of the entire computer system can be reduced.
[0054]
【The invention's effect】
As described above, according to the present invention, even if a certain functional block enters an abnormal state due to an external influence, only the functional block is initialized each time the functional block is used. Can be avoided.
[0055]
Further, when an abnormal state occurs, it is possible to individually stop and initialize only the functional blocks in the abnormal state, instead of initializing the entire system. In addition, since the function blocks can be individually selected to be stopped or operated, it is easy to stop the function blocks that have fallen into an abnormal state and disconnect them from the computer system. It is also possible to stop unused functional blocks and reduce the power consumption of the entire computer system.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a computer system according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating an example of a detailed configuration of a functional block and a control signal generation circuit in FIG. 1;
FIG. 3 is a block diagram showing a configuration of a conventional computer system.
[Explanation of symbols]
101 CPU
105 Bus 106 Control signal generation circuit 107 Control signal 108 External reset terminal 109 Hardware reset signal 120 Function block 121 Reset input terminal 122 Operation control terminal 123 Internal operation control signal 124 Control register 125 Main function circuit 126 Register signal control circuit 127 AND gate 130 Function block 131 Reset input terminal 132 Operation control terminal 140 Function block 141 Reset input terminal 142 Operation control terminal 301 CPU
302 Communication block 303 Function block 304 Function block 305 Bus 306 External reset terminal

Claims (3)

CPUと、前記CPUによって動作が制御されて特定の機能を実行する少なくとも一つの機能ブロックと、前記CPUと前記少なくとも一つの機能ブロックとを接続するバスと、前記各機能ブロックに対して前記各機能ブロックを動作させる機能動作信号と前記各機能ブロックを停止させる機能停止信号を与える制御信号生成回路とを備え、
前記各機能ブロックは、主機能回路と、前記主機能回路の動作を規定する制御データを保持する制御レジスタと、前記制御レジスタと前記主機能回路との間に設けられて前記制御レジスタの保持データと前記制御レジスタの初期データとを選択的に前記主機能回路に入力するレジスタ信号制御回路とを有するコンピュータシステム。
A CPU, at least one function block whose operation is controlled by the CPU to execute a specific function, a bus connecting the CPU and the at least one function block, and A control signal generation circuit for providing a function operation signal for operating the block and a function stop signal for stopping the function blocks,
Each of the functional blocks includes a main function circuit, a control register that holds control data that defines the operation of the main function circuit, and data that is provided between the control register and the main function circuit and that is held in the control register. And a register signal control circuit for selectively inputting initial data of the control register to the main function circuit.
前記制御信号生成回路は、前記バスに接続されて前記CPUから前記バスに出力される前記各機能ブロックの機能動作命令もしくは機能停止命令をそれぞれ受け取り、前記各機能ブロックの機能動作命令もしくは機能停止命令に対応して前記各機能ブロックに対して機能動作信号もしくは機能停止信号を与えるようにしている請求項1記載のコンピュータシステム。The control signal generation circuit is connected to the bus and receives a function operation command or a function stop command of each of the function blocks output from the CPU to the bus, and receives a function operation command or a function stop command of the function block. 2. The computer system according to claim 1, wherein a function operation signal or a function stop signal is supplied to each of the function blocks in response to the above. 前記CPUは、前記各機能ブロックの機能停止命令を前記バスに出力したときに、前記各機能ブロックの動作を規定する制御データを前記バスに併せて出力し、
前記制御レジスタは前記CPUから出力される前記制御データを格納し、
前記レジスタ信号制御回路は、前記制御信号生成回路より前記機能停止信号が与えられたときに前記制御レジスタの初期データを前記主機能回路に与え、前記制御信号生成回路より前記機能動作信号が与えられたときに前記制御レジスタの保持データを前記主機能回路に与え、
前記主機能回路は前記制御信号生成回路より前記機能停止信号が与えられたときに停止し初期化されて前記制御レジスタの初期データが設定され、前記制御信号生成回路より前記機能動作信号が与えられたときに前記制御レジスタの保持データを基に動作する請求項2記載のコンピュータシステム。
The CPU, when outputting a function stop command of each of the functional blocks to the bus, outputs control data defining the operation of each of the functional blocks to the bus,
The control register stores the control data output from the CPU,
The register signal control circuit, when the function stop signal is given from the control signal generation circuit, gives the initial data of the control register to the main function circuit, and the function operation signal is given from the control signal generation circuit. When the data held in the control register is given to the main function circuit,
The main function circuit is stopped and initialized when the function stop signal is supplied from the control signal generation circuit, the initial data of the control register is set, and the function operation signal is supplied from the control signal generation circuit. 3. The computer system according to claim 2, wherein the computer system operates based on data held in the control register when the control register is operated.
JP2003154772A 2003-05-30 2003-05-30 Computer system Pending JP2004355495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003154772A JP2004355495A (en) 2003-05-30 2003-05-30 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003154772A JP2004355495A (en) 2003-05-30 2003-05-30 Computer system

Publications (1)

Publication Number Publication Date
JP2004355495A true JP2004355495A (en) 2004-12-16

Family

ID=34049340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003154772A Pending JP2004355495A (en) 2003-05-30 2003-05-30 Computer system

Country Status (1)

Country Link
JP (1) JP2004355495A (en)

Similar Documents

Publication Publication Date Title
US7480808B2 (en) Method and apparatus for managing power consumption relating to a differential serial communication link
US9310838B2 (en) Power management method for switching power mode of a computer system based on detection of a human interface device
US7539883B2 (en) Information processing apparatus and control method for transitioning a state of a communication path between an active state and a standby state
US10817043B2 (en) System and method for entering and exiting sleep mode in a graphics subsystem
KR100867640B1 (en) System on chip including image processing memory with multiple access
JP2014510964A (en) Device for low power standby mode control circuit
JP2009099054A (en) Semiconductor integrated circuit and debug mode determination method
US20150253842A1 (en) Semiconductor device, and power control method for usbotg
JP4393954B2 (en) Microcomputer
JPH09237140A (en) Computer system
JP4711410B2 (en) Semiconductor integrated circuit
US8560867B2 (en) Server system and method for processing power off
US6829677B1 (en) Method and apparatus for preserving the contents of synchronous DRAM through system reset
CN109388216B (en) Starting device, single board of network equipment and network equipment
JP2014164471A (en) LSI and information processing system
KR20110115983A (en) Data processor and data processing system
JP2004355495A (en) Computer system
CN115639902A (en) Electronic device including multiple power management integrated circuits and method of operating the same
US7058842B2 (en) Microcontroller with multiple function blocks and clock signal control
JP2012116138A (en) Control device, control program, and image forming device
JP2003345672A (en) Data protection system for computer, and program for data protection
TW201407359A (en) Daisy-chained apparatus and system thereof
JP2003005871A (en) Method and device for backing up data of data processor
JP6906369B2 (en) Computer systems, their control methods, and programs
JP2006350957A (en) Control unit