JP2000276369A - Bus bridge circuit, asic and electronic equipment - Google Patents
Bus bridge circuit, asic and electronic equipmentInfo
- Publication number
- JP2000276369A JP2000276369A JP11079547A JP7954799A JP2000276369A JP 2000276369 A JP2000276369 A JP 2000276369A JP 11079547 A JP11079547 A JP 11079547A JP 7954799 A JP7954799 A JP 7954799A JP 2000276369 A JP2000276369 A JP 2000276369A
- Authority
- JP
- Japan
- Prior art keywords
- data
- bus
- register
- input
- output 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.)
- Withdrawn
Links
- 238000012545 processing Methods 0.000 claims abstract description 77
- 238000000034 method Methods 0.000 claims abstract description 52
- 238000003745 diagnosis Methods 0.000 claims abstract description 23
- 101100004933 Arabidopsis thaliana CYP79F1 gene Proteins 0.000 abstract description 8
- 239000000872 buffer Substances 0.000 description 26
- 230000006870 function Effects 0.000 description 18
- 230000015654 memory Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 8
- 238000012544 monitoring process Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000010248 power generation Methods 0.000 description 2
- LHMQDVIHBXWNII-UHFFFAOYSA-N 3-amino-4-methoxy-n-phenylbenzamide Chemical compound C1=C(N)C(OC)=CC=C1C(=O)NC1=CC=CC=C1 LHMQDVIHBXWNII-UHFFFAOYSA-N 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000004092 self-diagnosis Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Bus Control (AREA)
Abstract
(57)【要約】
【課題】 故障個所を効率的に特定できる診断処理機能
を有するバスブリッジ回路、ASIC、電子機器を提供
すること
【解決手段】 CPU20が診断のためにI/Oレジス
タ13への書き込み処理を実行すると、データ保持レジ
スタ60はCPU20からの第1のデータをトラップし
保持する。CPU20が確認のためにI/Oレジスタ1
3からの読み出し処理を連続して2回実行すると、デー
タ保持レジスタ60からの第1のデータとI/Oレジス
タ13からの第2のデータが連続してCPU20に出力
される。CPU20は書き込みデータと第1、第2のデ
ータを比較し、BUS1、BUS2のいずれに故障個所
があるかを判断する。書き込み時の書き込みアドレスを
保持し、読み出し時の読み出しアドレスと比較する。リ
セット時にオンになり診断処理終了時にオフになる診断
モードフラグを記憶するフラグレジスタを設ける。
[PROBLEMS] To provide a bus bridge circuit, an ASIC, and an electronic device having a diagnosis processing function capable of efficiently specifying a failure point. [MEANS FOR SOLVING PROBLEMS] A CPU 20 sends an I / O register 13 for diagnosis. , The data holding register 60 traps and holds the first data from the CPU 20. CPU 20 checks I / O register 1
If the reading process from the third data is executed twice consecutively, the first data from the data holding register 60 and the second data from the I / O register 13 are continuously output to the CPU 20. The CPU 20 compares the write data with the first and second data, and determines which of BUS1 and BUS2 has a failed portion. The write address at the time of writing is held and compared with the read address at the time of reading. A flag register is provided for storing a diagnostic mode flag that is turned on at the time of reset and turned off at the end of the diagnostic processing.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、バスブリッジ回
路、ASIC、及び電子機器に関する。The present invention relates to a bus bridge circuit, an ASIC, and an electronic device.
【0002】[0002]
【背景技術及び発明が解決しようとする課題】CPU
(広義にはプロセッサ)が組み込まれるASIC(マイ
クロコンピュータ等)や、該ASICが組み込まれる電
子機器においては、自身のシステム内の故障の内容とそ
の発生箇所を調べるための診断処理(自己診断処理)が
必要になる。そして、この診断処理においては、如何に
して効率的に故障内容と故障個所を特定するかが重要な
技術的課題になる。2. Description of the Related Art CPU
In an ASIC (microcomputer or the like) incorporating a (processor in a broad sense) or an electronic device incorporating the ASIC, a diagnosis process (self-diagnosis process) for examining the contents of a failure in its own system and the location where the failure occurred. Is required. In this diagnosis processing, how to efficiently identify the content and location of the failure is an important technical problem.
【0003】特に、ASICにおいては CPUや高速
メモリなどの高性能のデバイスが接続されるバスと、タ
イマ、PIO、UARTなどの比較的低性能のI/Oデ
バイスが接続されるバスというように、2つのバスを有
するものが多い。そして、これらのバスは、通常、バス
ブリッジ回路と呼ばれるものを介して接続される。In particular, in the ASIC, a bus to which high-performance devices such as a CPU and a high-speed memory are connected, and a bus to which relatively low-performance I / O devices such as a timer, a PIO, and a UART are connected. Many have two buses. These buses are usually connected via what is called a bus bridge circuit.
【0004】しかしながら、これまでの診断処理手法に
おいては、このような2つのバスを有するASICにお
ける効率的な診断処理を実現できなかった。[0004] However, in the conventional diagnostic processing method, efficient diagnostic processing in such an ASIC having two buses cannot be realized.
【0005】また、例えば特開平2−148228、2
−148229には、第1、第2のバスの間にバッファ
回路とバス接続回路とを並列的に介在させる従来技術が
開示されている。For example, Japanese Patent Application Laid-Open No. 2-148228,
No. 148229 discloses a conventional technique in which a buffer circuit and a bus connection circuit are interposed in parallel between the first and second buses.
【0006】しかしながら、この従来技術では、例えば
バッファ回路にデータを書き込む場合には、診断処理プ
ログラム自身が、バッファ回路のアドレスを指定するな
どの、データ書き込みに必要な種々の処理を行わなけれ
ばならなかった。また、バスの接続や切り離しを行う場
合には、診断処理プログラム自身が、バス接続回路のア
ドレスを指定し、バス接続処理やバス切り離し処理を制
御しなければならなかった。このため、診断処理プログ
ラムの処理負荷が過大になるという問題があった。However, according to this conventional technique, when data is written to a buffer circuit, for example, the diagnostic processing program itself must perform various processes required for data writing, such as specifying an address of the buffer circuit. Did not. Further, when connecting or disconnecting a bus, the diagnostic processing program itself has to specify the address of the bus connection circuit and control the bus connection processing and the bus disconnection processing. For this reason, there is a problem that the processing load of the diagnostic processing program becomes excessive.
【0007】更に、上記従来技術では、バッファ回路と
バス接続回路とが第1、第2のバス間に並列的に接続さ
れると共に、第2のバス側からもバッファ回路にデータ
の書き込みが可能であるため、配線の引き回しが複雑
化、煩雑化したり、回路が大規模化するなどの問題があ
った。Further, according to the above-mentioned prior art, the buffer circuit and the bus connection circuit are connected in parallel between the first and second buses, and data can be written to the buffer circuit from the second bus side. Therefore, there have been problems such as complicated and complicated routing of wiring and an increase in circuit scale.
【0008】本発明は、以上のような技術的課題に鑑み
てなされたものであり、その目的とするところは、故障
個所を効率的に特定できる診断処理機能を有するバスブ
リッジ回路、該バスブリッジ回路を用いたASIC、及
び該ASICを用いた電子機器を提供することにある。The present invention has been made in view of the above technical problems, and an object of the present invention is to provide a bus bridge circuit having a diagnostic processing function capable of efficiently identifying a failure point, and the bus bridge circuit. An object is to provide an ASIC using a circuit and an electronic device using the ASIC.
【0009】[0009]
【課題を解決するための手段】上記課題を解決するため
に本発明は、第1のバスと、入出力デバイスが接続され
る第2のバスとの間に設けられ診断処理機能を有するバ
スブリッジ回路であって、プロセッサが診断のために入
出力デバイスへの書き込み処理を実行した場合に、プロ
セッサから前記第1のバスを介して前記入出力デバイス
に対して出力される第1のデータをトラップし保持する
データ保持レジスタと、前記書き込み処理が適正に行わ
れた否かを確認するためにプロセッサが前記入出力デバ
イスからの読み出し処理を実行した場合に、前記データ
保持レジスタから読み出される第1のデータと、前記入
出力デバイスから前記第2のバスを介して読み出される
第2のデータとをプロセッサに対して出力する回路とを
含むことを特徴とする。According to the present invention, there is provided a bus bridge provided between a first bus and a second bus to which an input / output device is connected and having a diagnostic processing function. A circuit for trapping first data output from the processor to the input / output device via the first bus when the processor executes a write process to the input / output device for diagnosis. A data holding register to be held and a first data read from the data holding register when a processor executes a reading process from the input / output device to check whether the writing process is properly performed. A circuit that outputs data and second data read from the input / output device via the second bus to a processor. That.
【0010】本発明によれば、プロセッサが診断のため
に入出力デバイス(特に入出力デバイスが有する入出力
レジスタ)への書き込み処理を実行すると、プロセッサ
からの第1のデータが、入出力デバイスに出力されると
共にデータ保持レジスタに保持される。また、プロセッ
サが確認のために入出力デバイスからの1又は複数回の
読み出し処理を実行すると、データ保持レジスタからの
第1のデータと入出力デバイスからの第2のデータと
が、プロセッサに対して出力される。According to the present invention, when the processor executes a write process to an input / output device (particularly, an input / output register of the input / output device) for diagnosis, first data from the processor is transmitted to the input / output device. It is output and held in the data holding register. When the processor executes one or more reading processes from the input / output device for confirmation, the first data from the data holding register and the second data from the input / output device are transmitted to the processor. Is output.
【0011】従って、本発明によれば、プロセッサは、
書き込みデータ(書き込みデータの特定のビットを変更
したものでもよい)等と、読み出された第1、第2のデ
ータとを比較することで、第1、第2のバスのいずれに
故障個所があるかを、簡易に判断できるようになる。こ
の結果、診断処理の負担の軽減化、診断処理プログラム
の簡易化、コンパクト化等を図れるようになる。Therefore, according to the present invention, the processor comprises:
By comparing the write data (a specific bit of the write data may be changed) or the like with the read first and second data, a failure point is found in any of the first and second buses. It is possible to easily determine whether or not there is. As a result, the burden on the diagnostic processing can be reduced, and the diagnostic processing program can be simplified, downsized, and the like.
【0012】また本発明は、プロセッサが前記読み出し
処理を連続して2回実行した場合に、前記データ保持レ
ジスタからの第1のデータと前記入出力デバイスからの
第2のデータとが前後に連続してプロセッサに出力され
ることを特徴とする。このようにすれば、プロセッサ
は、連続して2回読み出し処理を実行するだけで、第
1、第2のデータを連続して読み出すことが可能にな
り、プロセッサの処理の簡易化、処理負担の軽減化を図
れるようになる。Further, according to the present invention, when the processor executes the read processing twice in succession, the first data from the data holding register and the second data from the input / output device are successively forward and backward. And output to the processor. With this configuration, the processor can continuously read the first and second data only by executing the reading process twice consecutively, thereby simplifying the processing of the processor and reducing the processing load. It can be reduced.
【0013】また本発明は、プロセッサが前記入出力デ
バイスへの書き込み処理を実行した場合に、その書き込
みアドレスを保持するアドレス保持レジスタと、プロセ
ッサが前記入出力デバイスからの読み出し処理を実行し
た場合に、その読み出しアドレスと、前記アドレス保持
レジスタに保持される前記書き込みアドレスとを比較す
るアドレス比較器とを含むことを特徴とする。このよう
にすれば、書き込み処理時の書き込みアドレスと読み出
し処理時の読み出しアドレスとが異なるのにもかかわら
ず、データ保持レジスタからの第1のデータがプロセッ
サに対して出力されてしまうという不具合を防止でき
る。The present invention also provides an address holding register for holding a write address when a processor executes a write process to the input / output device, and an address holding register for holding a write address when the processor executes a read process from the input / output device. And an address comparator for comparing the read address with the write address held in the address holding register. This prevents the first data from the data holding register from being output to the processor even though the write address in the write process is different from the read address in the read process. it can.
【0014】また本発明は、リセット時にオンにセット
され診断処理の終了時にオフにセットされる診断モード
フラグを記憶するフラグレジスタを含み、前記診断モー
ドフラグがオンにセットされた場合には、診断モード時
の回路動作を行い、前記診断モードフラグがオフにセッ
トされた場合には、診断モード時の回路動作は行わずに
通常モード時の回路動作を行うことを特徴とする。この
ようにすれば、リセット時には、診断モードに自動的に
移行し、診断モード時の回路動作が自動的に行われるよ
うになる。また、診断モードフラグをオフにセットする
だけで、通常モードに自動的に移行し、診断モード時の
回路動作が行われないようになる。従って、少ない処理
負担で診断モードと通常モードの切り替えを制御できる
ようになる。Further, the present invention includes a flag register for storing a diagnostic mode flag which is set to ON at the time of resetting and is set to OFF at the end of diagnostic processing, wherein the diagnostic mode is set when the diagnostic mode flag is set to ON. The circuit operation in the mode is performed, and when the diagnostic mode flag is set to off, the circuit operation in the normal mode is performed without performing the circuit operation in the diagnostic mode. With this configuration, at the time of reset, the mode automatically shifts to the diagnostic mode, and the circuit operation in the diagnostic mode is automatically performed. Further, simply turning off the diagnostic mode flag automatically shifts to the normal mode, so that the circuit operation in the diagnostic mode is not performed. Therefore, switching between the diagnostic mode and the normal mode can be controlled with a small processing load.
【0015】また本発明に係るASICは、上記のいず
れかのバスブリッジ回路と、前記バスブリッジ回路に接
続される前記第1、第2のバスと、命令の実行処理を行
う前記プロセッサと、前記第2のバスに接続される前記
入出力デバイスと、前記入出力デバイスへの書き込み処
理と前記入出力デバイスからの読み出し処理を前記プロ
セッサの機能により実行する診断処理手段とを含むこと
を特徴とする。このようにすれば、ASICの信頼性の
向上、診断モード時の処理負担の軽減化を図れるように
なる。An ASIC according to the present invention includes any one of the bus bridge circuits described above, the first and second buses connected to the bus bridge circuit, the processor for executing instructions, and the processor. The input / output device connected to a second bus, and diagnostic processing means for executing a process of writing to the input / output device and a process of reading from the input / output device by a function of the processor. . This makes it possible to improve the reliability of the ASIC and reduce the processing load in the diagnostic mode.
【0016】また本発明は、前記診断処理手段が、前記
書き込み処理と2回の前記読み出し処理とを1組とする
一連の診断処理を実行することを特徴とする。このよう
にすれば、ASICで使用される診断処理プログラムの
簡易化、コンパクト化を図れるようになる。Further, the present invention is characterized in that the diagnostic processing means executes a series of diagnostic processing in which the writing processing and the two reading processings are a set. This makes it possible to simplify and downsize the diagnostic processing program used in the ASIC.
【0017】また本発明に係る電子機器は、データを入
力するための入力手段と、前記ASICの制御の下で画
像及び音の少なくとも一方を出力する出力手段とを含む
ことを特徴とする。このようにすれば、電子機器の信頼
性の向上、低コスト化を図れるようになる。Further, the electronic apparatus according to the present invention is characterized by including input means for inputting data, and output means for outputting at least one of an image and a sound under the control of the ASIC. By doing so, the reliability of the electronic device can be improved and the cost can be reduced.
【0018】[0018]
【発明の実施の形態】以下、本発明の好適な実施形態に
ついて図面を用いて詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the drawings.
【0019】1.バスブリッジ回路 図1に、本実施形態のバスブリッジ回路10とその周辺
のブロック図を示す。1. 1. Bus Bridge Circuit FIG. 1 shows a block diagram of a bus bridge circuit 10 of the present embodiment and its periphery.
【0020】本実施形態のバスブリッジ回路10は、B
US1(第1のバス)とBUS2(第2のバス)との間
に設けられ、これらのBUS1、BUS2を接続する機
能を有する。The bus bridge circuit 10 of the present embodiment
It is provided between US1 (first bus) and BUS2 (second bus), and has a function of connecting these BUS1 and BUS2.
【0021】ここでBUS1は、AB1(第1のアドレ
スバス)、BC1(第1のバス制御線)、DB1(第1
のデータバス)を含む。このBUS1としては、システ
ム用バスと呼ばれるものを考えることができ、BUS1
には、CPU20や高速のメモリ30などの高性能のデ
バイス(高速に処理を行うことが要求されるデバイス)
が接続される。また、BUS1ではBC1を用いたバス
制御も複雑なものとなっている。Here, BUS1 is AB1 (first address bus), BC1 (first bus control line), DB1 (first bus).
Data bus). As the BUS1, a bus called a system bus can be considered.
Includes high-performance devices such as the CPU 20 and the high-speed memory 30 (devices that are required to perform high-speed processing)
Is connected. In BUS1, bus control using BC1 is also complicated.
【0022】またBUS2は、AB2(第2のアドレス
バス)、BC2(第2のバス制御線)、DB2(第2の
データバス)を含む。このBUS2としては、ペリフェ
ラル用バスと呼ばれるものを考えることができ、CPU
20やメモリ30に比べて低性能のI/Oデバイス(ペ
リフェラルデバイス)12、14、16が接続される。
またBUS1では、BC2を用いたバス制御もBUS2
に比べて簡易になっている。BUS2 includes AB2 (second address bus), BC2 (second bus control line), and DB2 (second data bus). As the BUS2, a bus called a peripheral bus can be considered.
I / O devices (peripheral devices) 12, 14, and 16 having lower performance than the memory 20 and the memory 30 are connected.
In BUS1, bus control using BC2 is also BUS2
It is simpler than.
【0023】BUS1に接続されるCPU(広義にはプ
ロセッサ)20は各種の命令の実行処理を行うものであ
り、診断処理部22を有する。この診断処理部22は、
CPU20の機能(ハードウェア)と、メモリ30に格
納される診断処理プログラム32とにより動作するソフ
トウェア手段である。A CPU (processor in a broad sense) 20 connected to the BUS 1 executes various instructions for execution, and has a diagnosis processing unit 22. This diagnostic processing unit 22
It is software means operated by the function (hardware) of the CPU 20 and the diagnostic processing program 32 stored in the memory 30.
【0024】BUS2に接続されるI/Oデバイス1
2、14、16としては、例えばタイマ、PIO、UA
RTなどを考えることができ、各I/Oデバイス12、
14、16は、少なくとも1つのI/Oレジスタ13、
15、17を有する。このようなI/Oレジスタ13、
15、17としては、ステータスレジスタ、制御レジス
タ、送信データレジスタ、受信データレジスタなどを考
えることができる。I / O device 1 connected to BUS 2
Examples of 2, 14, 16 include a timer, a PIO, and a UA
RT and the like, each I / O device 12,
14, 16 are at least one I / O register 13,
15 and 17. Such an I / O register 13,
As 15 and 17, a status register, a control register, a transmission data register, a reception data register, and the like can be considered.
【0025】本実施形態のバスブリッジ回路10は、デ
ータ保持レジスタ60を含む。ここで、データ保持レジ
スタ60は、CPU20(診断処理部22)が、例えば
I/Oレジスタ13(広義にはI/Oデバイス12)へ
の書き込み処理を実行した場合に、CPU20からBU
S1を介してI/Oレジスタ13に対して出力される第
1のデータ(診断用データ)をトラップし保持する機能
を有する。CPU20は、I/Oレジスタ13への書き
込み処理の実行後、その書き込み処理が適正に行われた
否かを確認するためにI/Oレジスタ13からの読み出
し処理を実行する。この場合に、バスブリッジ回路10
は、データ保持レジスタ60から読み出される第1のデ
ータと、I/Oレジスタ13からBUS2を介して読み
出される第2のデータとを、CPU20に対して出力す
る。The bus bridge circuit 10 of the present embodiment includes a data holding register 60. Here, when the CPU 20 (diagnosis processing unit 22) executes, for example, a write process to the I / O register 13 (I / O device 12 in a broad sense), the data holding register 60 transmits the BU from the CPU 20.
It has a function of trapping and holding first data (diagnostic data) output to the I / O register 13 via S1. After executing the writing process to the I / O register 13, the CPU 20 executes the reading process from the I / O register 13 to check whether the writing process is properly performed. In this case, the bus bridge circuit 10
Outputs the first data read from the data holding register 60 and the second data read from the I / O register 13 via the BUS2 to the CPU 20.
【0026】より具体的には、本実施形態のバスブリッ
ジ回路10は図2(A)、(B)、(C)に示すように
動作する。More specifically, the bus bridge circuit 10 of the present embodiment operates as shown in FIGS. 2 (A), 2 (B) and 2 (C).
【0027】即ち、CPU20がI/Oレジスタ13へ
の書き込み処理を実行すると、図2(A)のE1に示す
ように、CPU20からの第1のデータは、データ保持
レジスタ60に書き込まれ保持される。また、E2に示
すように、この第1のデータはI/Oレジスタ13に書
き込まれる。That is, when the CPU 20 executes the writing process to the I / O register 13, the first data from the CPU 20 is written and held in the data holding register 60 as indicated by E1 in FIG. You. The first data is written to the I / O register 13 as indicated by E2.
【0028】次に、CPU20がI/Oレジスタ13か
らの読み出し処理を実行すると、1回目の読み出し処理
では、図2(B)のE3に示すようにデータ保持レジス
タ60に保持されていた第1のデータがCPU20に出
力される。また2回目の読み出し処理では、図2(C)
のE4に示すように、I/Oレジスタ13からの第2の
データがCPU20に出力される。Next, when the CPU 20 executes the reading process from the I / O register 13, in the first reading process, the first data held in the data holding register 60 as indicated by E3 in FIG. Is output to the CPU 20. Also, in the second read processing, FIG.
As shown in E4, the second data from the I / O register 13 is output to the CPU 20.
【0029】なお図2(A)、(B)、(C)では、C
PU20が読み出し処理を連続して2回実行した場合
に、CPU20に対して、データ保持レジスタ60から
の第1のデータを出力した後にI/Oレジスタ12から
の第2のデータを出力している。しかしながら、これと
は逆に、第2にデータを出力した後に第1のデータを出
力するようにしてもよい。In FIGS. 2A, 2B and 2C, C
When the PU 20 executes the read processing twice consecutively, the first data is output from the data holding register 60 to the CPU 20 and then the second data is output from the I / O register 12. . However, conversely, the first data may be output after the second data is output.
【0030】第1、第2のデータを読み出したCPU2
0は、これらの第1、第2のデータにエラーがあるか否
かを確認する。即ち、CPU20は、内蔵する汎用レジ
スタなどにI/Oレジスタへの書き込みデータを保持し
ている。そして、この保持されている書き込みデータと
読み出された第1、第2のデータとを比較し、一致すれ
ばエラーが無いと判断し、不一致ならばエラーがあると
判断する。CPU 2 that has read the first and second data
0 confirms whether there is an error in the first and second data. That is, the CPU 20 holds data to be written to the I / O register in a built-in general-purpose register or the like. Then, the held write data is compared with the read first and second data. If they match, it is determined that there is no error, and if they do not match, it is determined that there is an error.
【0031】但し、I/Oレジスタの種類によっては、
I/Oレジスタへのデータの書き込みにより特定のビッ
トが1から0或いは0から1に反転するものもある(こ
の場合には、エラーが無い場合にも第1のデータと第2
のデータとは異なるデータになる)。従って、このよう
な場合には、汎用レジスタに保持している書き込みデー
タのビットも反転させるようにする。However, depending on the type of the I / O register,
In some cases, specific bits are inverted from 1 to 0 or from 0 to 1 by writing data to the I / O register (in this case, the first data and the second data are inverted even when there is no error).
Will be different from the data of Therefore, in such a case, the bits of the write data held in the general-purpose register are also inverted.
【0032】CPU20(診断処理部22)は、第1の
データにエラーがあれば、BUS1(或いはその周辺)
に異常箇所があると判断する。第1のデータは、図2
(A)のE1に示すようにBUS1を介してCPU20
からデータ保持レジスタ60に書き込まれ、図2(B)
のE3に示すようにBUS1を介してデータ保持レジス
タ60からCPU20に読み出されているからである。If there is an error in the first data, the CPU 20 (diagnosis processing unit 22) sets BUS1 (or its vicinity).
It is determined that there is an abnormal part in. The first data is shown in FIG.
(A) As shown at E1, the CPU 20
Is written into the data holding register 60 from FIG.
This is because the data is read from the data holding register 60 to the CPU 20 via the BUS1 as indicated by E3.
【0033】一方、CPU20は、第1のデータにエラ
ーが無く且つ第2のデータにエラーがあれば、BUS2
(或いはその周辺)に異常箇所があると判断する。第2
のデータは、図2(A)のE1、E2に示すようにBU
S1、BUS2を介してCPU20からI/Oレジスタ
13に書き込まれ、図2(C)のE4に示すようにBU
S1、BUS2を介してI/Oレジスタ13からCPU
20に読み出されているからである。On the other hand, if there is no error in the first data and there is an error in the second data,
It is determined that there is an abnormal part (or its vicinity). Second
The data of BU as shown in E1 and E2 in FIG.
The data is written from the CPU 20 to the I / O register 13 through S1 and BUS2, and the BU is written as shown at E4 in FIG.
CPU from I / O register 13 via S1, BUS2
This is because the data has been read out to 20.
【0034】このように本実施形態によれば、BUS
1、BUS2のいずれに故障個所があるかを、CPU2
0が簡易に判断できるようになる。従って、故障個所の
特定が容易になり、診断処理の効率を大幅に向上でき
る。As described above, according to the present embodiment, the BUS
CPU2 determines which of BUS2 has a faulty location.
0 can be easily determined. Therefore, it is easy to specify the failure location, and the efficiency of the diagnostic processing can be greatly improved.
【0035】しかも、本実施形態によれば、CPU20
の診断処理の負担を大幅に軽減できる。Further, according to the present embodiment, the CPU 20
Can greatly reduce the burden of the diagnostic processing.
【0036】即ち、特開平2−148228、2−14
8229の従来技術では、診断処理プログラム自身が、
バッファ回路のアドレスの指定等の処理を行わなければ
ならない。また、診断処理プログラム自身が、バス接続
回路のアドレスを指定し、バス接続処理やバス切り離し
処理を制御しなければならない。従って、CPUの処理
負担が非常に重くなると共に、診断処理プログラムの記
述が複雑化し、プログラムが大規模化してしまう。That is, JP-A-2-148228, 2-14
In the conventional technology of 8229, the diagnostic processing program itself
Processing such as specification of the address of the buffer circuit must be performed. Further, the diagnostic processing program itself has to specify the address of the bus connection circuit and control the bus connection processing and the bus disconnection processing. Therefore, the processing load on the CPU becomes extremely heavy, and the description of the diagnostic processing program is complicated, and the program is enlarged.
【0037】これに対して本実施形態によれば、CPU
20(診断処理部22)は、I/Oレジスタ13への書
き込み処理と、I/Oレジスタ13からの2回の読み出
し処理を単に実行すればよい。従って、CPU20の処
理負担を従来技術に比べて大幅に軽減できる。また診断
処理プログラム32の記述も簡易になり、プログラムの
コンパクト化、バグの発生の低減化、プログラムの開発
期間の短縮化、プログラムを記憶するメモリの小容量化
等を図れるようになる。On the other hand, according to the present embodiment, the CPU
The diagnostic processing unit 20 (diagnosis processing unit 22) may simply execute the processing of writing to the I / O register 13 and the processing of reading twice from the I / O register 13. Therefore, the processing load on the CPU 20 can be greatly reduced as compared with the related art. In addition, the description of the diagnostic processing program 32 is simplified, so that the program can be made compact, the occurrence of bugs can be reduced, the development period of the program can be shortened, and the memory capacity for storing the program can be reduced.
【0038】なお、CPU20は、I/Oレジスタ13
についての診断が終わると、次はI/Oレジスタ15の
診断、その次はI/Oレジスタ17の診断というよう
に、BUS2に接続される全てのI/Oデバイスの全て
のI/Oレジスタの診断を行うことになる。Note that the CPU 20 operates in the I / O register 13
Is completed, the diagnosis of the I / O register 15 is performed next, the diagnosis of the I / O register 17 is performed next, and so on of all the I / O registers connected to the BUS2. A diagnosis will be made.
【0039】なお、データの書き込み時のI/Oレジス
タとデータの読み出し時のI/Oレジスタとは必ずしも
一致する必要はない。例えばI/Oデバイスが、送信デ
ータレジスタと、受信データレジスタと、送信データレ
ジスタ及び受信データレジスタを接続する自己ループと
を有していた場合を考える。この場合には、書き込み処
理時には送信データレジスタにデータを書き込み、読み
出し処理時には受信データレジスタからデータ(自己ル
ープを介して送信データレジスタから受信データレジス
タに送信されたデータ)を読み出すことになり、書き込
み時のI/Oレジスタと読み出し時のI/Oレジスタと
は一致しないことになる。The I / O register at the time of writing data and the I / O register at the time of reading data do not necessarily have to match. For example, consider a case where the I / O device has a transmission data register, a reception data register, and a self-loop connecting the transmission data register and the reception data register. In this case, data is written to the transmission data register at the time of the writing process, and data (data transmitted from the transmission data register to the reception data register via the self-loop) is read at the time of the reading process. The I / O register at the time does not match the I / O register at the time of reading.
【0040】図3に、バスブリッジ回路10の詳細な構
成例を示す。FIG. 3 shows a detailed configuration example of the bus bridge circuit 10.
【0041】図3のバスブリッジ回路10は、バッファ
33、トライステートバッファ34、アドレス保持レジ
スタ36、アドレス比較器38、制御信号変換部40、
アクセス監視・動作制御部42、フラグレジスタ44、
トライステートバッファ46、48、50、52、54
などを含む。The bus bridge circuit 10 shown in FIG. 3 includes a buffer 33, a tristate buffer 34, an address holding register 36, an address comparator 38, a control signal converter 40,
Access monitoring / operation control unit 42, flag register 44,
Tri-state buffers 46, 48, 50, 52, 54
Including.
【0042】ここで、アドレス保持レジスタ36は、図
2(A)のようにCPU20がI/Oレジスタ13(I
/Oデバイス12)への書き込み処理を実行した場合
に、その書き込みアドレスを保持するものである。この
アドレス保持レジスタへの書き込みアドレスの保持は、
アクセス監視・動作制御部42からのラッチ信号LT1
に基づいて行われる。またアドレス比較器38は、図2
(B)、(C)に示すようにCPU20が読み出し処理
を実行した場合に、その読み出しアドレスと、アドレス
保持レジスタ36に保持される書き込みアドレスとを比
較するものである。そして、アドレス比較器38は、読
み出しアドレスと書き込みアドレスとの一致、不一致を
信号CQを用いてアクセス監視・動作制御部42に伝え
ることになる。Here, as shown in FIG. 2A, the CPU 20 stores the address holding register 36 in the I / O register 13 (I
When a write process to the / O device 12) is executed, the write address is held. The holding of the write address in this address holding register is as follows.
Latch signal LT1 from access monitoring / operation control unit 42
It is performed based on. Also, the address comparator 38 is provided in FIG.
When the CPU 20 executes a read process as shown in (B) and (C), the read address is compared with the write address held in the address holding register 36. Then, the address comparator 38 notifies the access monitoring / operation control unit 42 of the coincidence or non-coincidence between the read address and the write address using the signal CQ.
【0043】制御信号変換部40は、BC1からの第1
のバス制御信号を、BC2への第2のバス制御信号に変
換するための処理を行う。例えば、より複雑な信号形態
の第1のバス制御信号を、より簡易な信号形態の第2の
バス制御信号に変換する処理を行う。即ち、第1のバス
制御信号が有するリード信号、ライト信号を、Lレベル
がリードを表しHレベルがライトを表す1つのリード/
ライト信号に変換する処理などを行う。The control signal conversion section 40 receives the first signal from the BC 1
Is performed to convert the second bus control signal to the second bus control signal to the BC 2. For example, a process of converting the first bus control signal in a more complex signal form into a second bus control signal in a simpler signal form is performed. That is, a read signal and a write signal included in the first bus control signal are represented by one read / write signal whose L level indicates a read and whose H level indicates a write.
For example, a process of converting to a write signal is performed.
【0044】また、制御信号変換部40は、アクセス監
視・動作制御部42からの信号CCに基づいて、BC2
への第2のバス制御信号の出力をイネーブルにしたり、
ディスエーブルにしたりする処理も行う。Further, the control signal converter 40, based on the signal CC from the access monitor / operation controller 42,
Enabling the output of a second bus control signal to
A process for disabling is also performed.
【0045】アクセス監視・動作制御部42は、CPU
20によるバスアクセスを監視したり、バスブリッジ回
路10の動作を制御する処理を行う。より具体的には、
AB1からのアドレス、BC1からの第1のバス制御信
号、アドレス比較器38からの信号CQ、フラグレジス
タ44からの信号FQを受け、各種の信号EN1、LT
1、LT2、LT3、WR1、WR2、RD1、RD
2、RD3を出力する。The access monitoring / operation control unit 42 includes a CPU
20 to monitor bus access and control the operation of the bus bridge circuit 10. More specifically,
It receives the address from AB1, the first bus control signal from BC1, the signal CQ from the address comparator 38, the signal FQ from the flag register 44, and receives various signals EN1, LT
1, LT2, LT3, WR1, WR2, RD1, RD
2. Output RD3.
【0046】フラグレジスタ44は、診断モードフラグ
を記憶する。この診断モードフラグは、例えば、パワー
オンリセット(広義にはリセット)時にオンにセットさ
れ、診断処理終了時にオフにセットされる。より具体的
には、パワーオンリセットにより発生させたパルス信号
等を用いて、フラグレジスタ44の診断モードフラグを
オンにセットする。また診断処理が終了すると、CPU
20がDB1、トライステートバッファ46を介して、
フラグレジスタ44の診断モードフラグをオフにセット
する。なお、フラグレジスタ44の診断モードフラグの
オン、オフのセットは、アクセス監視・動作制御部42
からのラッチ信号LT2に基づいて行われることにな
る。The flag register 44 stores a diagnostic mode flag. This diagnostic mode flag is set on, for example, at power-on reset (reset in a broad sense), and is set off at the end of diagnostic processing. More specifically, the diagnostic mode flag of the flag register 44 is set to on using a pulse signal or the like generated by a power-on reset. When the diagnostic processing is completed, the CPU
20 via the DB1 and the tri-state buffer 46,
The diagnostic mode flag in the flag register 44 is set to off. The on / off setting of the diagnostic mode flag of the flag register 44 is determined by the access monitoring / operation control unit 42.
Is performed based on the latch signal LT2 from the CPU.
【0047】フラグレジスタ44の診断モードフラグが
オンにセットされると、バスブリッジ回路10は、診断
モード時の回路動作を行う。一方、診断モードフラグが
オフにセットされると、バスブリッジ回路10は、診断
モード時の回路動作を行わずに、通常モード時の回路動
作を行う。より具体的には、診断モードフラグがオンに
セットされると、図2(A)のE1に示すようにCPU
20からの第1のデータをデータ保持レジスタ60に保
持したり、図2(B)のE3に示すようにデータ保持レ
ジスタ60からの第1のデータをCPU20に出力する
回路動作を行う。一方、診断モードフラグがオフにセッ
トされると、このような回路動作を行わず、バスブリッ
ジ回路10は、通常のバスブリッジの機能にしたがった
回路動作を行うようになる。When the diagnostic mode flag of the flag register 44 is set to ON, the bus bridge circuit 10 performs a circuit operation in the diagnostic mode. On the other hand, when the diagnostic mode flag is set to off, the bus bridge circuit 10 performs the circuit operation in the normal mode without performing the circuit operation in the diagnostic mode. More specifically, when the diagnostic mode flag is set to ON, the CPU is turned on as indicated by E1 in FIG.
The first data from the data holding register 20 is held in the data holding register 60, and the circuit operation of outputting the first data from the data holding register 60 to the CPU 20 is performed as shown by E3 in FIG. On the other hand, when the diagnostic mode flag is set to OFF, such a circuit operation is not performed, and the bus bridge circuit 10 performs a circuit operation according to a normal bus bridge function.
【0048】このようなフラグレジスタ44を設けるこ
とで、パワーオンリセット時に自動的に診断モードに移
行するようになり、図2(A)のE1、図2(B)のE
3に示すような特殊な回路動作をバスブリッジ回路10
が自動的に行うようになる。また、CPU20(診断処
理部22)がフラグレジスタ44の診断モードフラグを
オフにセットするだけで、診断モードから自動的に抜
け、上記のような特殊な回路動作をバスブリッジ回路1
0が行わないようになる。従って、CPU20は少ない
処理負担で診断モードと通常モードの切り替えを制御で
きるようになり、診断処理プログラム32の簡易化、コ
ンパクト化を図れるようになる。By providing such a flag register 44, the mode automatically shifts to the diagnostic mode at power-on reset, and E1 in FIG. 2A and E in FIG.
The special circuit operation shown in FIG.
Will do it automatically. Further, the CPU 20 (diagnosis processing unit 22) automatically sets the diagnostic mode flag in the flag register 44 to off, automatically exits the diagnostic mode, and performs the special circuit operation as described above.
0 will not be performed. Therefore, the CPU 20 can control the switching between the diagnostic mode and the normal mode with a small processing load, and can simplify and downsize the diagnostic processing program 32.
【0049】データ保持レジスタ60での第1のデータ
の保持はアクセス監視・動作制御部42からのラッチ信
号LT3に基づいて行われる。The holding of the first data in the data holding register 60 is performed based on the latch signal LT3 from the access monitoring / operation control unit 42.
【0050】より具体的には、図2(A)に示すように
CPU20がI/Oレジスタ13への書き込み処理を実
行すると、信号WR1がアクティブになることにより導
通状態となったトライステートバッファ46を介して、
CPU20からの第1のデータがデータ保持レジスタ6
0に書き込まれる。また信号WR2がアクティブになる
ことにより導通状態になったトライステートバッファ4
8を介して上記第1のデータがI/Oレジスタ13に書
き込まれる。More specifically, as shown in FIG. 2A, when the CPU 20 executes the write processing to the I / O register 13, the tri-state buffer 46 becomes conductive when the signal WR1 becomes active. Through
The first data from the CPU 20 is stored in the data holding register 6
Written to 0. Further, the tri-state buffer 4 which has become conductive due to the activation of the signal WR2.
The first data is written to the I / O register 13 through the interface 8.
【0051】また、図2(B)に示すようにCPU20
が1回目の読み出し処理を実行すると、信号RD1、R
D2がアクティブになることにより導通状態になったト
ライステートバッファ50、52を介して、データ保持
レジスタ60からの第1のデータがCPU20に出力さ
れる。Further, as shown in FIG.
Performs the first read process, the signals RD1 and R
The first data from the data holding register 60 is output to the CPU 20 via the tri-state buffers 50 and 52 which are turned on when D2 becomes active.
【0052】また、図2(C)に示すようにCPU20
が2回目の読み出し処理を実行すると、信号RD3、R
D2がアクティブになることにより導通状態になったト
ライステートバッファ54、52を介して、I/Oレジ
スタ13からの第2のデータがCPU20に出力され
る。Further, as shown in FIG.
Executes the second read process, the signals RD3, R
The second data from the I / O register 13 is output to the CPU 20 via the tri-state buffers 54 and 52 that have become conductive due to the activation of D2.
【0053】なお、CPU20が2回以上連続して書き
込み処理を実行する場合に、アドレス保持レジスタ3
6、データ保持レジスタ60のビット数を、これらの全
ての書き込みアドレス、書き込みデータを保持できるビ
ット数に設定してもよい。When the CPU 20 executes the write process two or more times continuously, the address holding register 3
6. The number of bits of the data holding register 60 may be set to the number of bits capable of holding all of these write addresses and write data.
【0054】また、アドレス保持レジスタ36、フラグ
レジスタ44、データ保持レジスタ60の機能は、フリ
ップフロップや半導体メモリなどのハードウェアにより
実現できる。また、アドレス比較器38、制御信号変換
部40、アクセス監視・動作制御部42の機能は、論理
回路、フリップフロップなどのハードウェアにより実現
できる。The functions of the address holding register 36, flag register 44, and data holding register 60 can be realized by hardware such as flip-flops and semiconductor memories. The functions of the address comparator 38, the control signal converter 40, and the access monitoring / operation controller 42 can be realized by hardware such as a logic circuit and a flip-flop.
【0055】図4は、CPU20(診断処理部22)が
行う処理について示すフローチャートである。以下、こ
のフローチャートを用いて、CPU20の処理とバスブ
リッジ回路10の回路動作とを説明する。FIG. 4 is a flowchart showing processing performed by the CPU 20 (diagnosis processing unit 22). Hereinafter, the processing of the CPU 20 and the circuit operation of the bus bridge circuit 10 will be described with reference to this flowchart.
【0056】電源がオンになるとパワーオンリセットが
行われ、フラグレジスタ44の診断モードフラグがオン
にセットされる(ステップS1)。When the power is turned on, a power-on reset is performed, and the diagnostic mode flag of the flag register 44 is set to on (step S1).
【0057】次に、CPU20が例えばI/Oレジスタ
13への書き込み処理を実行する(ステップS2)。Next, the CPU 20 executes, for example, a write process to the I / O register 13 (step S2).
【0058】すると、この場合には、図3のバッファ3
3、トライステートバッファ34を介して、アドレスバ
スAB1、AB2が接続される。また、CPU20から
の書き込みアドレスがアドレス保持レジスタ36に保持
される。Then, in this case, the buffer 3 shown in FIG.
3. The address buses AB1 and AB2 are connected via the tri-state buffer 34. Further, the write address from the CPU 20 is held in the address holding register 36.
【0059】また制御信号変換部40は、第1のバス制
御信号を第2のバス制御信号に変換してBC2に出力す
る。The control signal converter 40 converts the first bus control signal into a second bus control signal and outputs it to the BC2.
【0060】またトライステートバッファ46、48が
導通状態になり、データ保持レジスタ60にCPU20
からの第1のデータが保持されると共に、この第1のデ
ータがI/Oレジスタ13に書き込まれる。The tri-state buffers 46 and 48 become conductive, and the data holding register 60
Is held, and the first data is written to the I / O register 13.
【0061】次に、CPU20が1回目の読み出し処理
を実行する(ステップS3)。Next, the CPU 20 executes the first reading process (step S3).
【0062】すると、この場合には、トライステートバ
ッファ34は非導通状態になり、アドレスバスAB1、
AB2は非接続になる。また、CPU20からの読み出
しアドレスと、アドレス保持レジスタ36に保持されて
いる書き込みアドレスとが、アドレス比較器38により
比較される。そして、一致していればCQがアクティブ
になり、データ保持レジスタ60からの第1のデータの
出力が許可される。なお、不一致の場合にはCQが非ア
クティブになり、データ保持レジスタ60からの第1の
データの出力が不許可になる。Then, in this case, the tri-state buffer 34 is turned off, and the address bus AB1,
AB2 is disconnected. Further, a read address from the CPU 20 and a write address held in the address holding register 36 are compared by the address comparator 38. If they match, the CQ becomes active, and the output of the first data from the data holding register 60 is permitted. In the case of a mismatch, the CQ becomes inactive, and the output of the first data from the data holding register 60 is not permitted.
【0063】また制御信号変換部40は、BC2への第
2のバス制御信号の出力をディスイネーブルにする。The control signal converter 40 disables the output of the second bus control signal to the BC 2.
【0064】またトライステートバッファ50、52が
導通状態、トライステートバッファ54が非導通状態に
なり、データ保持レジスタ60からの第1のデータがC
PU20に出力される。The tri-state buffers 50 and 52 become conductive, the tri-state buffer 54 becomes non-conductive, and the first data from the data holding register 60 becomes C
Output to PU20.
【0065】次に、CPU20が、内蔵する汎用レジス
タに保持している書き込みデータと、ステップS3で読
み出された読み出しデータとを比較し、一致しているか
否かを判断する(ステップS4)。そして、不一致の場
合には、ステップS9のエラー処理に移行し、LCDや
CRTへのエラー表示等の処理を行う。Next, the CPU 20 compares the write data held in the built-in general-purpose register with the read data read in step S3, and determines whether or not they match (step S4). If they do not match, the process proceeds to error processing in step S9, and processing such as error display on the LCD or CRT is performed.
【0066】次に、CPU20が2回目の読み出し処理
を実行する(ステップS5)。Next, the CPU 20 executes a second reading process (step S5).
【0067】すると、この場合には、トライステートバ
ッファ34は導通状態になり、アドレスバスAB1、A
B2が接続される。Then, in this case, tristate buffer 34 is rendered conductive, and address buses AB 1 and A 2
B2 is connected.
【0068】また制御信号変換部40は、第1のバス制
御信号を第2のバス制御信号に変換してBC2に出力す
る。The control signal converter 40 converts the first bus control signal into a second bus control signal and outputs it to the BC 2.
【0069】またトライステートバッファ52、54が
導通状態、トライステートバッファ50が非導通状態に
なり、I/Oレジスタ13からの第2のデータがCPU
20に出力される。The tri-state buffers 52 and 54 become conductive, the tri-state buffer 50 becomes non-conductive, and the second data from the I / O register 13 is transmitted to the CPU.
20.
【0070】次に、CPU20が、内蔵する汎用レジス
タに保持している書き込みデータと、ステップS5で読
み出された読み出しデータとを比較し、一致しているか
否かを判断する(ステップS6)。そして、不一致の場
合には、ステップS9のエラー処理に移行する。Next, the CPU 20 compares the write data held in the built-in general-purpose register with the read data read in step S5, and determines whether or not they match (step S6). If they do not match, the process proceeds to error processing in step S9.
【0071】以上のようにして、BUS2に接続される
全てのI/Oデバイスの全てのI/Oレジスタの診断処
理が順次実行される。そして、診断処理が終了すると、
CPU20が、フラグレジスタ44の診断モードフラグ
をオフにセットする(ステップS7)。そして、初期設
定処理に移行する(ステップS8)。As described above, the diagnostic processing of all I / O registers of all I / O devices connected to BUS2 is sequentially executed. Then, when the diagnostic processing is completed,
The CPU 20 sets the diagnostic mode flag of the flag register 44 to off (step S7). Then, the process proceeds to the initial setting process (step S8).
【0072】図4から明らかなように、本実施形態によ
れば、CPU20(診断処理部22)は、書き込み処理
と2回の読み出し処理とを1組とする一連の診断処理を
順次実行するだけで、全てのI/Oデバイスの全てのI
/Oレジスタのエラー診断をできるようになる。従っ
て、特開平2−148228、2−148229の従来
技術に比べて、診断モード時のCPU20の処理負担を
格段に軽減できる。また、診断処理プログラム32のコ
ンパクト化、プログラムの開発期間の短縮化、プログラ
ムを記憶するメモリの小容量化等を図れるようになる。As is apparent from FIG. 4, according to the present embodiment, the CPU 20 (diagnosis processing unit 22) only sequentially executes a series of diagnosis processing in which the writing processing and the two reading processings constitute one set. And all I / O devices
Error diagnosis of the / O register can be performed. Therefore, the processing load on the CPU 20 in the diagnostic mode can be remarkably reduced as compared with the prior arts of Japanese Patent Application Laid-Open Nos. 2-148228 and 2-148229. Further, the diagnostic processing program 32 can be made compact, the development period of the program can be shortened, and the memory capacity for storing the program can be reduced.
【0073】2.ASIC 図5に、本実施形態のバスブリッジ回路10を含むAS
IC(マイクロコンピュータ)のブロック図の例を示
す。2. FIG. 5 shows an ASIC including the bus bridge circuit 10 of the present embodiment.
1 shows an example of a block diagram of an IC (microcomputer).
【0074】図5のASICでは、組み込み用途のCP
Uとして近年脚光を浴びている、ARM社のARM(A
dvancedRISCMachines)と呼ばれる
CPU20をそのコアに用いている。このARMは、高
速のスループットでありながら低消費電力で小規模で低
コストなRISC型のCPUである。そして、このAR
Mが組み込まれたASICは、携帯電話、GSMなどの
電子機器に組み込むのに好適なASICとして期待され
ている。In the ASIC shown in FIG.
ARM's ARM (A
A CPU 20 called advancedRISC Machines is used for its core. This ARM is a small-scale, low-cost RISC CPU with low power consumption and high throughput. And this AR
An ASIC in which M is incorporated is expected as an ASIC suitable for being incorporated in electronic devices such as a mobile phone and GSM.
【0075】ARMにおいては、ASB(Advanc
edSystemBus)とAPB(Advanced
PeripheralBus)がバスブリッジ回路1
0を介して接続されるAMBA(AdvancedMi
crocontrollerBusArchitect
ure)と呼ばれるバスアーキテクチャを採用してい
る。In the ARM, ASB (Advanc)
edSystemBus) and APB (Advanced)
Peripheral Bus) is the bus bridge circuit 1
0 connected via AMBA (AdvancedMi
crocontrollerBusArchitect
ure).
【0076】ASB(第1のバス)はシステム用の高性
能のバスであり、高速な処理速度が要求されるデイバイ
スが接続されるバスとして適している。The ASB (first bus) is a high-performance bus for the system, and is suitable as a bus to which devices that require a high processing speed are connected.
【0077】一方、APB(第2のバス)はペリフェラ
ル用のバスである。APBは、ASBに比べると低性能
のバスであるが、低消費電力という観点からはASBよ
りも優れている。またバス制御もASBに比べて簡易に
なっている。On the other hand, APB (second bus) is a bus for peripherals. APB is a bus with lower performance than ASB, but is superior to ASB from the viewpoint of low power consumption. Also, bus control is simpler than ASB.
【0078】図5に示すようにASBには、CPU2
0、高速のメモリ30などが接続されている。一方、A
SBとバスブリッジ回路10を介して接続されるAPB
には、タイマ62、PIO64、UART66、割り込
みコントローラ68などのI/Oデバイスが接続されて
いる。As shown in FIG. 5, the ASB includes the CPU 2
0, a high-speed memory 30 and the like. On the other hand, A
APB connected to SB via bus bridge circuit 10
Are connected to I / O devices such as a timer 62, a PIO 64, a UART 66, and an interrupt controller 68.
【0079】ASBはバスブリッジ回路(外部バスI/
F部)70を介して外部バスに接続される。そして、こ
の外部バスには、ユーザロジック回路部72、LCD制
御部74、外部メモリ76などが接続される。ASB is a bus bridge circuit (external bus I /
F section) 70 to an external bus. The external bus is connected to a user logic circuit section 72, an LCD control section 74, an external memory 76, and the like.
【0080】ここで、ユーザロジック回路部72は、ユ
ーザがゲートアレイなどを利用して設計した回路からな
るブロックである。このようなユーザロジック回路部7
2を設けることで、各ユーザ毎に仕様の異なるASIC
を実現できる。Here, the user logic circuit section 72 is a block composed of a circuit designed by a user using a gate array or the like. Such a user logic circuit unit 7
2 provides ASICs with different specifications for each user.
Can be realized.
【0081】LCD制御部74は、LCDの表示を制御
するための各種信号を生成するためのものである。この
ようなLCD制御部74を設けることで、携帯電話やG
SMに好適なASICを実現できるようになる。外部メ
モリ76は、外部に設けられるメモリであり、その機能
はRAMやROMなどのハードウェアにより実現でき
る。The LCD control section 74 is for generating various signals for controlling the display on the LCD. By providing such an LCD control unit 74, a mobile phone or a G
An ASIC suitable for SM can be realized. The external memory 76 is a memory provided outside, and its function can be realized by hardware such as a RAM and a ROM.
【0082】図5のASICによれば、効率的な診断処
理が可能になり、システムの信頼性を高めることができ
る。特に、本実施形態のバスブリッジ回路10の診断処
理機能を利用することで、故障内容と故障個所を効率的
に特定できるようになる。具体的には、ASBとAPB
のいずれで故障が発生したのかを簡易に特定できるよう
になる。また、診断モード時のCPU20の処理負担を
格段に軽減できると共に、診断処理プログラムの簡易
化、コンパクト化を図れるようになる。これにより、A
SICの小規模化、開発期間の短縮化等を図れ、より低
コストのASICを提供できるようになる。According to the ASIC shown in FIG. 5, efficient diagnostic processing can be performed, and the reliability of the system can be improved. In particular, by using the diagnostic processing function of the bus bridge circuit 10 of the present embodiment, the details of the failure and the location of the failure can be efficiently specified. Specifically, ASB and APB
Which of the above has caused the failure can be easily specified. Further, the processing load on the CPU 20 in the diagnosis mode can be remarkably reduced, and the diagnosis processing program can be simplified and downsized. Thus, A
The SIC can be reduced in size, the development period can be shortened, and the like, and a lower-cost ASIC can be provided.
【0083】なお、本実施形態の手法は、ASBと外部
バスを接続するバスブリッジ回路70に適用することも
可能である。このようにすることで、ASBと外部バス
のいずれに故障個所が発生したのかを容易に特定できる
ようになる。The method according to the present embodiment can be applied to a bus bridge circuit 70 that connects an ASB to an external bus. By doing so, it is possible to easily specify which of the ASB and the external bus has a fault location.
【0084】3.電子機器 図6に、図5のASIC(マイクロコンピュータ)を含
む電子機器のブロック図の一例を示す。この電子機器
は、ASIC500、入力部502、メモリ504、電
源生成部506、画像出力部508、音出力部510を
含む。3. Electronic Apparatus FIG. 6 shows an example of a block diagram of an electronic apparatus including the ASIC (microcomputer) in FIG. This electronic device includes an ASIC 500, an input unit 502, a memory 504, a power generation unit 506, an image output unit 508, and a sound output unit 510.
【0085】ここで、入力部502は、種々のデータを
入力するためのものである。ASIC500は、この入
力部502により入力されたデータに基づいて種々の処
理を行うことになる。メモリ504は、ASIC500
などの作業領域となるものである。電源生成部506
は、電子機器で使用される各種電源を生成するためのも
のである。画像出力部508は、電子機器が表示する各
種の画像(文字、アイコン、グラフィック等)を出力す
るためのものであり、その機能は、LCDやCRTなど
のハードウェアにより実現できる。音出力部510は、
電子機器が出力する各種の音(音声、ゲーム音等)を出
力するためのものであり、その機能は、スピーカなどの
ハードウェアにより実現できる。Here, the input section 502 is for inputting various data. The ASIC 500 performs various processes based on the data input by the input unit 502. The memory 504 includes the ASIC 500
It becomes a work area. Power generation unit 506
Is for generating various power supplies used in electronic devices. The image output unit 508 is for outputting various images (characters, icons, graphics, and the like) displayed by the electronic device, and its function can be realized by hardware such as an LCD and a CRT. The sound output unit 510
It is for outputting various sounds (sounds, game sounds, etc.) output from the electronic device, and its function can be realized by hardware such as a speaker.
【0086】図7(A)に、電子機器の1つである携帯
電話550の外観図の例を示す。この携帯電話550
は、入力部として機能するダイヤルボタン552、マイ
ク553や、画像出力部として機能し電話番号や名前や
アイコンなどを表示するLCD554や、音出力部とし
て機能し音声を出力するスピーカ556を備える。FIG. 7A shows an example of an external view of a mobile phone 550 which is one of electronic devices. This mobile phone 550
Has a dial button 552 and a microphone 553 that function as an input unit, an LCD 554 that functions as an image output unit and displays a telephone number, a name, an icon, and the like, and a speaker 556 that functions as a sound output unit and outputs sound.
【0087】図7(B)に、電子機器の1つである携帯
型ゲーム装置560の外観図の例を示す。この携帯型ゲ
ーム装置560は、入力部として機能する操作ボタン5
62、十字キー564や、画像出力部として機能しゲー
ム画像を表示するLCD566や、音出力部として機能
しゲーム音を出力するスピーカ568を備える。FIG. 7B shows an example of an external view of a portable game device 560 which is one of the electronic devices. The portable game device 560 includes an operation button 5 functioning as an input unit.
62, an arrow key 564, an LCD 566 that functions as an image output unit and displays a game image, and a speaker 568 that functions as a sound output unit and outputs game sounds.
【0088】図7(C)に、電子機器の1つである電子
手帳570の外観図の例を示す。この電子手帳570
は、入力部として機能するキーボード572や、画像出
力部として機能し文字、数字、グラフィックなどを表示
するLCD574を備える。FIG. 7C shows an example of an external view of an electronic organizer 570 which is one of the electronic devices. This electronic notebook 570
Includes a keyboard 572 functioning as an input unit, and an LCD 574 functioning as an image output unit and displaying characters, numbers, graphics, and the like.
【0089】図6〜図7(C)の電子機器に、図5のA
SICを組み込むことで、電子機器の診断処理の効率化
を図れると共に、信頼性を高めることができる。また、
電子機器の故障個所の発見が容易になると共に電子機器
の低コスト化を図れるようになる。The electronic device shown in FIGS.
By incorporating the SIC, the efficiency of the diagnostic processing of the electronic device can be improved, and the reliability can be improved. Also,
This makes it easy to find a failure point of the electronic device and to reduce the cost of the electronic device.
【0090】なお、診断処理を行うための診断処理プロ
グラムは、ASICを動作させるプログラム(BIOS
等)の中に組み込んでもよいし、電子機器を動作させる
プログラムの中に組み込んでもよい。The diagnostic processing program for performing the diagnostic processing is a program (BIOS) for operating the ASIC.
Etc.), or may be incorporated in a program for operating an electronic device.
【0091】また、本実施形態を利用できる電子機器と
しては、図7(A)、(B)、(C)に示すもの以外に
も、携帯型情報端末、デジタルカメラ、ハードディスク
装置、光ディスク(CD、DVD)装置、光磁気ディス
ク(MO)装置、オーディオ機器、電子手帳、電子卓上
計算機、POS端末、ページャー、タッチパネルを備え
た装置、プロジェクタ、ワードプロセッサ、ビューファ
インダ型又はモニタ直視型のビデオテープレコーダ、カ
ーナビゲーション装置、プリンタ等、種々の電子機器を
考えることができる。The electronic devices to which the present embodiment can be applied include, in addition to those shown in FIGS. 7A, 7B and 7C, portable information terminals, digital cameras, hard disk devices, optical disks (CDs). , DVD) device, magneto-optical disk (MO) device, audio equipment, electronic organizer, electronic desk calculator, POS terminal, pager, device with touch panel, projector, word processor, viewfinder type or monitor direct-view type video tape recorder, Various electronic devices such as a car navigation device and a printer can be considered.
【0092】なお、本発明は本実施形態に限定されず、
本発明の要旨の範囲内で種々の変形実施が可能である。The present invention is not limited to this embodiment.
Various modifications can be made within the scope of the present invention.
【0093】例えば本発明のバスブリッジ回路が接続さ
れるバスとしては、図5に示すようなASB、APBの
みならず、PCI、ISAなど種々のバスを考えること
ができる。例えば、CPUが接続されるシステムバス
や、PCIや、ISAを有するシステムの場合に、シス
テムバスとPCIを接続するバスブリッジ回路のみなら
ず、PCIとISAを接続するバスブリッジ回路にも本
発明を適用できる。For example, as the bus to which the bus bridge circuit of the present invention is connected, not only ASB and APB as shown in FIG. 5, but also various buses such as PCI and ISA can be considered. For example, in the case of a system having a system bus to which a CPU is connected, a PCI, or a system having an ISA, the present invention is applied not only to a bus bridge circuit for connecting the system bus and PCI but also to a bus bridge circuit for connecting PCI and ISA. Applicable.
【0094】また、バスブリッジ回路に3つ以上のバス
を接続する場合も、本発明の範囲内に含まれる。[0094] The case where three or more buses are connected to the bus bridge circuit is also included in the scope of the present invention.
【0095】また、プロセッサ(診断処理手段)は、図
4に示すような処理を実行することが特に望ましいが、
図4とは異なる形態の処理を実行する(例えば書き込み
処理を連続して実行した後に、読み出し処理を連続して
実行する)ようにしてもよい。It is particularly desirable that the processor (diagnosis processing means) execute the processing as shown in FIG.
A process different from that in FIG. 4 may be executed (for example, after the writing process is continuously executed, the reading process is continuously executed).
【0096】また、バスブリッジ回路の具体的な構成と
しては、図3に示すものが特に望ましいが、これに限定
されず種々の変形実施が可能である。Further, as a specific configuration of the bus bridge circuit, the one shown in FIG. 3 is particularly desirable, but it is not limited to this, and various modifications can be made.
【0097】また、本発明のASICや電子機器の構成
も、図5〜図7(C)で説明したものに限定されるもの
でなく、種々の変形実施が可能である。The configuration of the ASIC and the electronic device of the present invention is not limited to those described with reference to FIGS. 5 to 7C, and various modifications can be made.
【図1】本実施形態のバスブリッジ回路とその周辺につ
いてのブロック図である。FIG. 1 is a block diagram of a bus bridge circuit of the present embodiment and its periphery.
【図2】図2(A)、(B)、(C)は、本実施形態の
基本的な動作を説明するための図である。FIGS. 2A, 2B, and 2C are diagrams for explaining a basic operation of the present embodiment.
【図3】バスブリッジ回路の具体的な構成例を示すブロ
ック図である。FIG. 3 is a block diagram illustrating a specific configuration example of a bus bridge circuit.
【図4】CPU(診断処理部)が行う処理について示す
フローチャートである。FIG. 4 is a flowchart illustrating a process performed by a CPU (diagnosis processing unit).
【図5】本実施形態のバスブリッジ回路を用いたASI
C(マイクロコンピュータ)の構成例を示す図である。FIG. 5 shows an ASI using the bus bridge circuit of the embodiment.
FIG. 2 is a diagram illustrating a configuration example of a C (microcomputer).
【図6】図5のASICが組み込まれる電子機器のブロ
ック図の例である。6 is an example of a block diagram of an electronic device in which the ASIC of FIG. 5 is incorporated.
【図7】図7(A)、(B)、(C)は、種々の電子機
器の外観図の例である。FIGS. 7A, 7B, and 7C are examples of external views of various electronic devices.
10 バスブリッジ回路 12、14、16 I/Oデバイス 13、15、17 I/Oレジスタ 20 CPU 22 診断処理部 30 メモリ 32 診断処理プログラム 33 バッファ 34 トライステートバッファ 36 アドレス保持レジスタ 38 アドレス比較器 40 制御信号変換部 42 アクセス監視・動作制御部 44 フラグレジスタ 46、48、50、52、54 トライステートバッフ
ァ 60 データ保持レジスタReference Signs List 10 bus bridge circuit 12, 14, 16 I / O device 13, 15, 17 I / O register 20 CPU 22 diagnostic processing unit 30 memory 32 diagnostic processing program 33 buffer 34 tri-state buffer 36 address holding register 38 address comparator 40 control Signal conversion unit 42 Access monitoring / operation control unit 44 Flag register 46, 48, 50, 52, 54 Tri-state buffer 60 Data holding register
Claims (7)
れる第2のバスとの間に設けられ診断処理機能を有する
バスブリッジ回路であって、 プロセッサが診断のために入出力デバイスへの書き込み
処理を実行した場合に、プロセッサから前記第1のバス
を介して前記入出力デバイスに対して出力される第1の
データをトラップし保持するデータ保持レジスタと、 前記書き込み処理が適正に行われた否かを確認するため
にプロセッサが前記入出力デバイスからの読み出し処理
を実行した場合に、前記データ保持レジスタから読み出
される第1のデータと、前記入出力デバイスから前記第
2のバスを介して読み出される第2のデータとをプロセ
ッサに対して出力する回路とを含むことを特徴とするバ
スブリッジ回路。1. A bus bridge circuit provided between a first bus and a second bus to which an input / output device is connected and having a diagnostic processing function, wherein a processor connects the input / output device to the input / output device for diagnosis. A data holding register that traps and holds first data output from the processor to the input / output device via the first bus when the write processing is executed; When the processor executes a read process from the input / output device to confirm whether or not the data has been read, first data read from the data holding register and data from the input / output device via the second bus. A circuit for outputting the second data read out to the processor to the processor.
場合に、前記データ保持レジスタからの第1のデータと
前記入出力デバイスからの第2のデータとが前後に連続
してプロセッサに出力されることを特徴とするバスブリ
ッジ回路。2. The data processing system according to claim 1, wherein when the processor executes the read processing twice consecutively, the first data from the data holding register and the second data from the input / output device are changed. A bus bridge circuit which is continuously output to a processor.
行した場合に、その書き込みアドレスを保持するアドレ
ス保持レジスタと、 プロセッサが前記入出力デバイスからの読み出し処理を
実行した場合に、その読み出しアドレスと、前記アドレ
ス保持レジスタに保持される前記書き込みアドレスとを
比較するアドレス比較器とを含むことを特徴とするバス
ブリッジ回路。3. An input / output device according to claim 1, wherein when a processor executes a write process to said input / output device, an address holding register for holding a write address thereof, and wherein said processor executes a read process from said input / output device. A bus bridge circuit comprising, when executed, an address comparator for comparing the read address with the write address held in the address holding register.
にセットされる診断モードフラグを記憶するフラグレジ
スタを含み、 前記診断モードフラグがオンにセットされた場合には、
診断モード時の回路動作を行い、前記診断モードフラグ
がオフにセットされた場合には、診断モード時の回路動
作は行わずに通常モード時の回路動作を行うことを特徴
とするバスブリッジ回路。4. The diagnostic mode flag according to claim 1, further comprising a flag register for storing a diagnostic mode flag which is set to ON at the time of reset and which is set to OFF at the end of the diagnostic processing, wherein the diagnostic mode flag is set to ON. If so,
A bus bridge circuit that performs a circuit operation in a diagnostic mode, and performs a circuit operation in a normal mode without performing a circuit operation in the diagnostic mode when the diagnostic mode flag is set to off.
ジ回路と、 前記バスブリッジ回路に接続される前記第1、第2のバ
スと、 命令の実行処理を行う前記プロセッサと、 前記第2のバスに接続される前記入出力デバイスと、 前記入出力デバイスへの書き込み処理と前記入出力デバ
イスからの読み出し処理を前記プロセッサの機能により
実行する診断処理手段と、 を含むことを特徴とするASIC。5. The bus bridge circuit according to claim 1, wherein the first and second buses are connected to the bus bridge circuit, the processor that executes an instruction execution process, and the second bus. An ASIC that includes: the input / output device connected to the bus; and a diagnostic processing unit that executes a writing process to the input / output device and a reading process from the input / output device by a function of the processor. .
する一連の診断処理を実行することを特徴とするASI
C。6. The ASI according to claim 5, wherein said diagnostic processing means executes a series of diagnostic processing in which said writing processing and said two reading processings are a set.
C.
を出力する出力手段とを含むことを特徴とする電子機
器。7. The ASIC according to claim 5, further comprising: input means for inputting data; and output means for outputting at least one of an image and a sound under the control of the ASIC. Electronics.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11079547A JP2000276369A (en) | 1999-03-24 | 1999-03-24 | Bus bridge circuit, asic and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11079547A JP2000276369A (en) | 1999-03-24 | 1999-03-24 | Bus bridge circuit, asic and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000276369A true JP2000276369A (en) | 2000-10-06 |
Family
ID=13693037
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11079547A Withdrawn JP2000276369A (en) | 1999-03-24 | 1999-03-24 | Bus bridge circuit, asic and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000276369A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7245143B2 (en) | 2004-07-23 | 2007-07-17 | Seiko Epson Corporation | Electro-optical device, electronic apparatus, and mounting structure |
| US7345501B2 (en) | 2004-07-23 | 2008-03-18 | Seiko Epson Corporation | Electro-optical device, electronic apparatus, and mounting structure |
| US8332548B2 (en) | 2006-12-13 | 2012-12-11 | Fujitsu Limited | Monitoring device, semiconductor integrated circuit, and monitoring method |
-
1999
- 1999-03-24 JP JP11079547A patent/JP2000276369A/en not_active Withdrawn
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7245143B2 (en) | 2004-07-23 | 2007-07-17 | Seiko Epson Corporation | Electro-optical device, electronic apparatus, and mounting structure |
| US7345501B2 (en) | 2004-07-23 | 2008-03-18 | Seiko Epson Corporation | Electro-optical device, electronic apparatus, and mounting structure |
| US8332548B2 (en) | 2006-12-13 | 2012-12-11 | Fujitsu Limited | Monitoring device, semiconductor integrated circuit, and monitoring method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101449262B (en) | Inter-port communication in a multi- port memory device | |
| US9098304B2 (en) | Device enumeration support method for computing devices that does not natively support device enumeration | |
| US8726056B2 (en) | Clock control device, clock control method, clock control program and integrated circuit | |
| JPH1078889A (en) | Microcomputer | |
| JP3778246B2 (en) | Interrupt controller, ASIC, and electronic device | |
| US20070234092A1 (en) | Apparatus, system, and method for selecting a waking process | |
| JP2000276369A (en) | Bus bridge circuit, asic and electronic equipment | |
| JP2000276370A (en) | Microcomputer, electronic device and emulation method | |
| JP3666237B2 (en) | Information processing apparatus and electronic apparatus | |
| US20100146224A1 (en) | Request processing device, request processing system, and access testing method | |
| JP3606124B2 (en) | Semiconductor integrated circuit device and electronic device | |
| JPH08221293A (en) | Emulator device | |
| JP3741182B2 (en) | Microcomputer, electronic equipment and debugging system | |
| CN114238946B (en) | Device management method, device, electronic device and computer-readable storage medium | |
| JP2007193572A (en) | CPU, integrated circuit device, microcomputer and electronic device | |
| CN116264085B (en) | Storage system and data writing method thereof | |
| JP2003271417A (en) | Information processing equipment and electronic equipment | |
| JP3928730B2 (en) | Semiconductor device, microcomputer and electronic device | |
| TWI298438B (en) | ||
| JP3500561B2 (en) | Shared data buffer | |
| JP3125950B2 (en) | Application specific integrated circuits | |
| JPS59144246A (en) | Data reception control system | |
| CN115934607A (en) | Microkernel data transmission method, system, device and storage medium | |
| JP2015174410A (en) | Electronic device and image forming device | |
| JP3039489B2 (en) | Test method for semiconductor device and semiconductor device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20060606 |