JP4621825B2 - Circuit device with CPU - Google Patents

Circuit device with CPU Download PDF

Info

Publication number
JP4621825B2
JP4621825B2 JP2005180613A JP2005180613A JP4621825B2 JP 4621825 B2 JP4621825 B2 JP 4621825B2 JP 2005180613 A JP2005180613 A JP 2005180613A JP 2005180613 A JP2005180613 A JP 2005180613A JP 4621825 B2 JP4621825 B2 JP 4621825B2
Authority
JP
Japan
Prior art keywords
address
cpu
comparison
unit
output
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.)
Expired - Fee Related
Application number
JP2005180613A
Other languages
Japanese (ja)
Other versions
JP2007004257A (en
Inventor
中嶋  茂雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo Corp
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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP2005180613A priority Critical patent/JP4621825B2/en
Publication of JP2007004257A publication Critical patent/JP2007004257A/en
Application granted granted Critical
Publication of JP4621825B2 publication Critical patent/JP4621825B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Description

本発明は、CPUを搭載した回路装置に関するものであって、特に、その回路装置において自己診断機能を備えたものに関する。   The present invention relates to a circuit device equipped with a CPU, and more particularly to a circuit device provided with a self-diagnosis function.

従来より、例えばカードリーダなど、CPUを搭載した回路が組み込まれた製品を市場に出荷する際には、不良品が市場に流出するのを防ぐため、予め検査が行われている。この検査では、まず、CPUを搭載した回路は、検査装置に接続され、その検査プログラムに従って、例えばカードを搬送するモータ,シャッタを開閉するアクチュエータなどの複数の外部デバイスに対し、CPUから制御信号を送信して正常に動作するか(例えば、カードが所望方向に搬送されるか、シャッタが所望タイミングで開閉されるか)否かを判断する。   Conventionally, when a product incorporating a circuit incorporating a CPU, such as a card reader, is shipped to the market, an inspection is performed in advance to prevent a defective product from flowing into the market. In this inspection, first, a circuit equipped with a CPU is connected to an inspection apparatus, and in accordance with the inspection program, for example, a control signal is sent from the CPU to a plurality of external devices such as a motor for carrying a card and an actuator for opening and closing a shutter. It is determined whether it is transmitted and operates normally (for example, whether the card is conveyed in a desired direction or whether the shutter is opened and closed at a desired timing).

このように、CPUを搭載した回路が組み込まれた製品が市場に出荷される際には、その検査プログラムに従って、各部が正常に作動するか否かが検査される。   Thus, when a product incorporating a circuit incorporating a CPU is shipped to the market, it is inspected whether each part operates normally according to the inspection program.

しかしながら、上述した従来の検査においては、CPUおよびこれとアドレスバスで接続されたROMやRAM等のCPU周辺デバイスが正常に作動することを前提としており、CPUおよびCPU周辺デバイスが正常に動作しない場合には検査プログラムが正しく動作できず検査をすることが不可能となっていた。また、CPUおよびCPU周辺デバイスの異常箇所やその原因を特定するのに時間がかかっていた。   However, in the conventional inspection described above, it is assumed that the CPU and CPU peripheral devices such as ROM and RAM connected to the CPU and the address bus normally operate, and the CPU and CPU peripheral devices do not operate normally. In this case, the inspection program cannot operate correctly and it is impossible to perform the inspection. In addition, it takes time to identify abnormal locations and causes of the CPU and the CPU peripheral devices.

すなわち、CPUおよびCPU周辺デバイスが正常に動作しない場合には、回路中の各接点にテスターを当てたりして、例えば回路中のどこか(CPUのピンを含む)に半田付け不良が生じていないか等、不具合箇所を特定するのに時間がかかっていた。また、回路配線が微細又は複雑な場合には、回路中の所望の接点にテスターを当てるのも難しく、不具合箇所を特定するのが困難であった。   That is, when the CPU and the CPU peripheral device do not operate normally, a tester is applied to each contact in the circuit, for example, there is no soldering failure anywhere in the circuit (including the CPU pin). It took a long time to identify the problem part. In addition, when the circuit wiring is fine or complicated, it is difficult to apply a tester to a desired contact in the circuit, and it is difficult to identify a defective part.

本発明は、このような点に鑑みてなされたものであり、その目的は、CPUが搭載された回路のCPUおよびCPU周辺デバイスのアドレス異常箇所を検出して、CPU周辺の異常箇所やその原因を容易に特定することが可能な自己診断機能を備えた回路装置を提供することにある。   The present invention has been made in view of such a point, and an object of the present invention is to detect an abnormal position of the CPU and a peripheral device of the CPU in the circuit on which the CPU is mounted, and an abnormal position around the CPU and its cause. It is an object of the present invention to provide a circuit device having a self-diagnosis function that can easily specify the above.

以上のような課題を解決するために、本発明は、CPUから出力されるアドレスをデコードする一方で、CPUから出力されるチップセレクト信号に基づいて比較アドレスを設定し、この比較アドレスとデコードされたデコード値とを比較することを特徴とする。   In order to solve the above-described problems, the present invention decodes an address output from the CPU, and sets a comparison address based on a chip select signal output from the CPU. The decoded value is compared.

より詳細には、本発明は、以下のものを提供する。   More specifically, the present invention provides the following.

(1) CPUと、前記CPUから出力されるアドレスをデコードするアドレスデコード部と、前記CPUから出力されるチップセレクト信号に基づいて比較アドレスを設定する比較アドレス設定部と、前記比較アドレスと前記アドレスデコード部の出力とが一致するか否かを比較する比較部と、前記比較アドレスと前記アドレスデコード部の出力とが一致していない旨の情報が入力されることを契機としてエラー通知を行うと共に、前記比較部で不一致とされたアドレスビットを表示するエラー通知部と、を有することを特徴とする回路装置。 (1) a CPU, an address decoding unit for decoding an address output from the CPU, a comparison address setting unit for setting a comparison address based on a chip select signal output from the CPU, the comparison address and the address a comparator for comparing whether the output of the decoding unit are matched, along with information indicating that said comparison address and an output of said address decoder unit do not match performs error notification triggered by input And an error notification unit for displaying the address bits which are not matched by the comparison unit .

本発明によれば、CPU(本明細書ではMPUを含む趣旨である)から出力されるアドレスをデコードするアドレスデコード部(例えばアドレスデコーダ)と、CPUから出力されるチップセレクト信号(例えばRAMチップセレクト信号やROMチップセレクト信号など)に基づいて比較アドレスを設定する比較アドレス設定部と、その比較アドレスとアドレスデコード部の出力とが一致するか否かを比較する比較部と、を回路装置に設けることとしたので、CPUおよびその周辺デバイスのアドレスを用いてCPUが搭載された回路の異常箇所を容易に特定することができる。   According to the present invention, an address decoding unit (for example, an address decoder) that decodes an address output from a CPU (in this specification, including an MPU), and a chip select signal (for example, a RAM chip select) output from the CPU. The circuit device includes a comparison address setting unit that sets a comparison address based on a signal, a ROM chip select signal, and the like, and a comparison unit that compares whether or not the comparison address matches the output of the address decoding unit. As a result, it is possible to easily identify the abnormal part of the circuit on which the CPU is mounted using the addresses of the CPU and its peripheral devices.

すなわち、比較アドレス設定部によって設定された比較アドレスと、アドレスデコード部からの出力とが一致していた場合には、CPUから出力されたアドレスに対応するアドレスビットは正常であることが分かる一方で、これらが一致していない場合には、CPUから出力されたアドレスに対応するアドレスビットは異常であることが分かる。   That is, when the comparison address set by the comparison address setting unit matches the output from the address decoding unit, it can be seen that the address bits corresponding to the address output from the CPU are normal. If they do not match, it can be seen that the address bits corresponding to the address output from the CPU are abnormal.

ここで、本発明は、回路検査するに当たって、CPUから出力されるアドレスをデコードしたデコード値を利用するだけでなく、CPU内で生成され、アクティブ状態にすべきチップを選択するためのチップセレクト信号に対応して設定される比較アドレスを利用するものである。チップセレクト信号は、CPUと周辺デバイス(ROMやRAM等)とを接続する1本の信号線により伝達される信頼性の高い信号であることから、CPU周辺のアドレス異常箇所を精度良く特定することができる。なお、「チップセレクト信号」とは、複数のRAMや複数のROM等をそれぞれ活性化(アクティブ状態に)するための各信号をいう。   Here, the present invention uses a chip select signal for selecting a chip to be generated in the CPU and to be activated in addition to using a decode value obtained by decoding an address output from the CPU for circuit inspection. The comparison address set corresponding to is used. Since the chip select signal is a highly reliable signal transmitted through a single signal line connecting the CPU and peripheral devices (ROM, RAM, etc.), it is possible to accurately identify an abnormal address area around the CPU. Can do. The “chip select signal” refers to each signal for activating (activating) a plurality of RAMs, a plurality of ROMs, and the like.

本発明によれば、上述した回路装置に、上述した比較アドレスとアドレスデコード部の出力とが一致していない旨の情報が入力されたとき、エラー通知を行うエラー通知部を設けることとしたので、検査者は、CPU周辺のアドレスに異常が起きたことが分かる。   According to the present invention, when the information indicating that the comparison address and the output of the address decoding unit do not match is input to the circuit device described above, the error notification unit that performs error notification is provided. The examiner knows that an abnormality has occurred in the addresses around the CPU.

) 前記エラー通知部は、LEDを用いてなることを特徴とする()記載の回路装置。 ( 2 ) The circuit device according to ( 1 ), wherein the error notification unit includes an LED.

本発明によれば、上述したエラー通知部は、LEDを用いてなることとしたので、検査者は、LEDの発光を視覚的に確認することで、CPU周辺のアドレスに異常が起きたことが分かる。   According to the present invention, since the error notification unit described above is configured by using an LED, the inspector has confirmed that an abnormality has occurred in the address around the CPU by visually confirming the light emission of the LED. I understand.

) 前記回路装置は、カードに対してデータの読み出し及び書き込みを行うカードリーダを駆動する駆動回路装置に内蔵されることを特徴とする(1)又は(2)記載の回路装置。 ( 3 ) The circuit device according to (1) or (2) , wherein the circuit device is built in a drive circuit device that drives a card reader that reads and writes data from and to a card.

本発明によれば、上述した回路装置は、磁気カードやICカードに対してデータの読み出しおよび書き込みを行う、カードリーダ(本明細書ではカードリーダライタを含む趣旨である)を駆動する、CPUを搭載した駆動回路装置に内蔵される自己診断回路として用いられることとしたので、カードリーダが市場に出荷される際、CPU周辺のアドレス異常により検査プログラムが正常に動作しない場合に、CPU周辺のアドレスの異常箇所を容易に特定することができる。   According to the present invention, the circuit device described above includes a CPU that drives a card reader (which includes a card reader / writer in this specification) that reads and writes data from and to a magnetic card or IC card. Because it is used as a self-diagnosis circuit built in the mounted drive circuit device, when the card reader is shipped to the market, if the inspection program does not operate normally due to an abnormal address around the CPU, the CPU peripheral address Can be easily identified.

(4) CPUを備える回路装置であって、前記CPUから出力されるチップセレクト信号に基づいて比較アドレスを設定する比較アドレス設定部と、前記比較アドレスと前記CPUから出力される実体アドレスとが一致するか否かを比較する比較部と、前記比較アドレスと前記実体アドレスとが一致していない旨の情報が入力されることを契機としてエラー通知を行うと共に、前記比較部で不一致とされたアドレスビットを表示するエラー通知部と、を含む自己検査回路を備えることを特徴とする回路装置。 (4) A circuit device including a CPU, wherein a comparison address setting unit that sets a comparison address based on a chip select signal output from the CPU, and the comparison address and an actual address output from the CPU match A comparison unit for comparing whether or not to perform an error notification triggered by input of information indicating that the comparison address and the entity address do not match, and an address that is not matched by the comparison unit A circuit device comprising a self-inspection circuit including an error notification unit for displaying a bit .

本発明によれば、CPUを備える回路装置に、CPUから出力されるチップセレクト信号に基づいて比較アドレスを設定するとともに、その比較アドレスと、CPUから出力される実体アドレスとが一致するか否かを比較する自己検査回路を設けることとしたので、CPUから出力される実体アドレスにおいて異常となったアドレスビットをダイレクトに特定することが可能となる。   According to the present invention, a comparison address is set in a circuit device including a CPU based on a chip select signal output from the CPU, and whether or not the comparison address matches an actual address output from the CPU. Since the self-inspection circuit for comparing the two is provided, it becomes possible to directly specify the address bit that is abnormal in the actual address output from the CPU.

ここで、「実体アドレス」とは、CPUから出力される実際のアドレス線の状況を表わすアドレスをいう。例えば、アドレス線が半田付け不良等により異常となった場合は、その状況を反映した異常状態のアドレスとなる。   Here, the “substance address” refers to an address representing the actual status of the address line output from the CPU. For example, when an address line becomes abnormal due to a soldering failure or the like, the address is in an abnormal state reflecting the situation.

本発明によれば、上述した回路装置に、比較アドレスと実体アドレスとが一致していない旨の情報が入力されることを契機としてエラー通知を行うエラー通知部を設けることとしたので、検査者は、CPUから出力される実体アドレスにおいて、どのアドレスビットが異常になったかを直接的かつ容易に特定することができる。   According to the present invention, the above-described circuit device is provided with the error notification unit that performs error notification when the information indicating that the comparison address does not match the actual address is input. Can directly and easily specify which address bit is abnormal in the actual address output from the CPU.

記エラー通知部は、前記実体アドレスと前記比較アドレスとが不一致となった場合に、前記比較部で不一致とされたアドレスビットを表示する表示部を備えることを特徴とする。
Before Symbol error notification unit, when said physical block address and the comparison address is not matched, you further comprising a display unit for displaying the address bits inconsistent with the comparison unit.

本発明によれば、上述したエラー通知部に、実体アドレスと比較アドレスとが不一致となった場合に、比較部で不一致とされたアドレスビットを表示する表示部を設けることとしたので、検査者は、その表示を視認することによって、どのアドレスビットが異常になったかを直接的かつ視覚的に特定することができる。   According to the present invention, the error notification unit described above is provided with a display unit that displays the address bits that are not matched by the comparison unit when the entity address and the comparison address do not match. By visually recognizing the display, it is possible to directly and visually specify which address bit has become abnormal.

本発明に係る回路装置によれば、例えばCPU周辺回路中(CPUおよびこれとアドレスバスで接続されたROMやRAM等のCPU周辺デバイス)のアドレス(CPUのピンを含む)に半田付け不良等が生じていた場合であっても、アドレス異常箇所を容易に特定することができる   According to the circuit device of the present invention, for example, there is a soldering failure or the like in an address (including a CPU pin) in a CPU peripheral circuit (CPU and a CPU peripheral device such as ROM and RAM connected to the CPU and an address bus). Even if it has occurred, it is possible to easily identify the address abnormality location

以下、本発明を実施するための最良の形態について、図面を参照しながら説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

図1は、本発明の実施の形態に係る回路装置1の概要を示す回路図である。   FIG. 1 is a circuit diagram showing an outline of a circuit device 1 according to an embodiment of the present invention.

図1(a)において、回路装置1には、総合的な制御中枢となるCPU10と、CPU10のワーキングエリアとして機能するRAM11(例えばDRAMやSRAMなど)と、各種プログラムや変数などを格納するROM12(例えばフラッシュメモリやEPROM、EEPROMなど)と、CPU10から出力されるアドレスをデコードするアドレスデコーダ13と、RAMCS(RAMチップセレクト)信号やROMCS(ROMチップセレクト)信号が入力される比較アドレス設定部14と、アドレスデコーダ13の出力とチップセレクト信号に基づき設定された比較アドレスとを比較する比較部15と、比較部15による比較結果に基づきエラー通知を行うエラー通知部16と、の各要素によって構成されている。   1A, a circuit device 1 includes a CPU 10 serving as a comprehensive control center, a RAM 11 (for example, DRAM or SRAM) functioning as a working area for the CPU 10, and a ROM 12 (for example, various programs and variables). For example, a flash memory, EPROM, EEPROM, etc.), an address decoder 13 for decoding an address output from the CPU 10, a comparison address setting unit 14 for receiving a RAMCS (RAM chip select) signal or a ROMCS (ROM chip select) signal, The comparison unit 15 compares the output of the address decoder 13 with the comparison address set based on the chip select signal, and the error notification unit 16 performs error notification based on the comparison result of the comparison unit 15. ing.

CPUから出力され、情報の書き込みや読み込み等の制御を行う対象(RAM11やROM12にあっては、メモリセルにおける物理的な列と行を指す場合がある)を特定するためのアドレスは、アドレスバス101を介してRAM11,ROM12,及びアドレスデコーダ13に送信される。なお、図1(a)では、アドレスバス101は1本の線になっているが、実際は、例えばn+1ビットのアドレスA−Aから構成される。また、ここではバスとしてアドレスバス101のみを考えたが、他のバスとして、データバス等を考えてもよい。 An address output from the CPU and used to specify a target to control information writing or reading (in the case of the RAM 11 or ROM 12, it may indicate a physical column and row in a memory cell) is an address bus. The data is transmitted to the RAM 11, ROM 12, and address decoder 13 via 101. In FIG. 1 (a), but the address bus 101 is a single line, in fact consists of for example n + 1 bits of the address A 0 -A n. Although only the address bus 101 is considered here as a bus, a data bus or the like may be considered as another bus.

CPUから出力され、アクティブ状態にすべき複数のチップ(DSPやメモリなど)のいずれかを選択するためのチップセレクト信号のうち、RAMCS信号は、RAMCS線102を介してRAM11及び比較アドレス設定部14に送信され、ROMCS信号は、ROMCS線103を介してROM12及び比較アドレス設定部14に送信される。すなわち、RAM11は、RAMCS信号がアクティブ(例えばLレベルの信号)となると、有効化されてアクティブ状態となり、読み出し及び書き込み可能な状態となる。また、ROM12は、ROMCS信号がアクティブ(例えばLレベルの信号)となると、有効化されてアクティブ状態となり、読み出し可能な状態となる。   Of the chip select signals output from the CPU and used to select one of a plurality of chips (DSP, memory, etc.) to be activated, the RAMCS signal is supplied to the RAM 11 and the comparison address setting unit 14 via the RAMCS line 102. The ROMCS signal is transmitted to the ROM 12 and the comparison address setting unit 14 via the ROMCS line 103. That is, when the RAMCS signal becomes active (for example, an L level signal), the RAM 11 is activated and becomes active, and can be read and written. In addition, when the ROMCS signal becomes active (for example, an L level signal), the ROM 12 is activated and becomes active, and becomes readable.

アドレスデコーダ13は、一般的にロジックICにより構成され、より具体的にはAND回路とNOT回路の組合せからなるものである。ただし、本発明はこれに限られず、例えばフリップフロップをAND回路及びNOT回路と組み合わせることによって構成することとしてもよい。このようにアドレスデコーダ13を使った場合は比較部に入力される信号を少なくできるため(アドレスデコーダの出力は、その出力に応じてROMやRAM等の周辺デバイスが特定するもので、アドレスビット毎の信号がデコードされた出力なので)、比較部の回路が簡易となり基板の省スペース化と部品コスト低減となる。   The address decoder 13 is generally composed of a logic IC, and more specifically is a combination of an AND circuit and a NOT circuit. However, the present invention is not limited to this, and may be configured by combining, for example, a flip-flop with an AND circuit and a NOT circuit. In this way, when the address decoder 13 is used, the number of signals input to the comparison unit can be reduced (the output of the address decoder is specified by a peripheral device such as a ROM or a RAM according to the output, and for each address bit. Therefore, the circuit of the comparison unit is simplified, saving the board space and reducing the component cost.

比較アドレス設定部14は、RAMCS信号とROMCS信号により、その内部に予め記憶された比較アドレスを選択する。ここで、比較アドレス設定部14は、例えば図1(b)に示すように、RAMCSやROMCSをデコードするデコーダ(以下、「DEC」と略す)と、RAMに対応するRAMアドレス及びROMに対応するROMアドレスをあらかじめ記憶し、DECの出力に基づいてRAMアドレス又はROMアドレスのいずれかを比較アドレスとして出力するセレクタ(以下、「SEL」と略す)と、から構成されている。なお、SELとしては、例えば2個のAND回路と、それらのAND回路の2出力を2入力とするOR回路と、を組み合わせた論理回路によって実現することができる。   The comparison address setting unit 14 selects a comparison address stored in advance in the RAMCS signal and the ROMCS signal. Here, the comparison address setting unit 14 corresponds to a decoder (hereinafter abbreviated as “DEC”) for decoding RAMCS and ROMCS, and a RAM address and ROM corresponding to the RAM, as shown in FIG. 1B, for example. It comprises a selector (hereinafter abbreviated as “SEL”) that stores ROM addresses in advance and outputs either RAM addresses or ROM addresses as comparison addresses based on the output of DEC. The SEL can be realized, for example, by a logic circuit that combines two AND circuits and an OR circuit that uses two outputs of the AND circuits as two inputs.

ここで、比較アドレス設定部14にあらかじめ記憶されている比較アドレス(RAMアドレスやROMアドレス)の形式は、アドレスデコーダ13の出力(デコード値)と同様の形式として、比較部15での比較を可能としている。   Here, the comparison address (RAM address or ROM address) stored in the comparison address setting unit 14 in the same format as the output (decoded value) of the address decoder 13 can be compared by the comparison unit 15. It is said.

比較部15も論理回路を組み合わせることによって実現でき、比較アドレス設定部14の出力(比較アドレス)と、アドレスデコーダ13の出力(デコード値)とが一致しない場合には、エラー通知部16にエラー通知を行うものである。なお、エラー通知部16としては、例えばLED等の発光素子を用いることができる。   The comparison unit 15 can also be realized by combining logic circuits. If the output (comparison address) of the comparison address setting unit 14 does not match the output (decoded value) of the address decoder 13, an error notification is sent to the error notification unit 16. Is to do. In addition, as the error notification part 16, light emitting elements, such as LED, can be used, for example.

図2は、本発明の実施の形態に係る回路装置1の情報処理の流れを示すフローチャートである。   FIG. 2 is a flowchart showing a flow of information processing of the circuit device 1 according to the embodiment of the present invention.

図2において、まず、CPU10は、検査対象とするRAMやROM等のチップ(又はデバイス)を選択する(ステップS1)。その後、CPU10よりアドレスが出力され(ステップS2)、そのアドレスは、アドレスデコーダ13に送信される。次いで、アドレスデコーダ13において、アドレスがデコードされ(ステップS3)、そのデコード値が比較部15へ入力される(ステップS4)。   In FIG. 2, first, the CPU 10 selects a chip (or device) such as a RAM or ROM to be inspected (step S1). Thereafter, an address is output from the CPU 10 (step S2), and the address is transmitted to the address decoder 13. Next, the address decoder 13 decodes the address (step S3), and the decoded value is input to the comparison unit 15 (step S4).

一方で、CPU10からは、チップ(ROMやRAM)を選択して活性化するチップセレクト信号が比較アドレス設定部14へ出力される(ステップS5)。次いで、比較アドレス設定部14は、CPU10からのチップセレクト信号に対応して検査対象とする比較アドレスを切り替える(ステップS6)。そして、RAM又はROMのいずれかに対応するアドレスを比較アドレスとして比較部15へ出力する(ステップS7)。   On the other hand, the CPU 10 outputs a chip select signal for selecting and activating a chip (ROM or RAM) to the comparison address setting unit 14 (step S5). Next, the comparison address setting unit 14 switches the comparison address to be inspected in response to the chip select signal from the CPU 10 (step S6). Then, an address corresponding to either RAM or ROM is output as a comparison address to the comparison unit 15 (step S7).

次いで、比較部15において、比較処理が行われる(ステップS8)。このとき、ステップ4において入力されたデコード値と、ステップS7において入力された比較アドレスとが一致するか否かが判断され(ステップS9)、一致する場合には、正常表示(或いは特に処理を行わない)がなされ(ステップS10)、一致しない場合には、異常表示(例えばエラー通知部16に対してエラー通知を行い、LEDを光らせるような処理)がなされる(ステップS11)。そして、他にも検査すべきチップがあるか否か、すなわち一連の処理を終了するか否かが判断され(ステップS12)、検査すべきチップが終了するまで、一連の処理がチップ(又はデバイス)ごとに順次繰り返される。   Next, a comparison process is performed in the comparison unit 15 (step S8). At this time, it is determined whether or not the decoded value input in step 4 matches the comparison address input in step S7 (step S9). If they match, normal display (or special processing is performed). If there is no coincidence (step S10), an error display (for example, a process of notifying the error notification unit 16 of an error and causing the LED to shine) is performed (step S11). Then, it is determined whether or not there are other chips to be inspected, that is, whether or not to end the series of processing (step S12), and the series of processing is continued until the end of the chip to be inspected. ) Is repeated sequentially.

以上説明したように、本発明に係る回路装置1によれば、比較アドレス設定部14によって設定された比較アドレスと、アドレスデコーダ13から出力されるデコード値とが一致していない場合には、エラー通知部16においてLEDが点灯し、CPUから出力されたアドレスに対応するアドレスビットは異常であることが分かるので、結果として、CPU10の周辺回路中(CPUおよびこれとアドレスバスで接続されたROMやRAM等のCPU周辺デバイス)のアドレス(CPUのピンを含む)に半田付け不良等が生じていた場合等の不良箇所を容易に特定することが可能になる。   As described above, according to the circuit device 1 of the present invention, if the comparison address set by the comparison address setting unit 14 and the decode value output from the address decoder 13 do not match, an error occurs. Since the LED lights up in the notification unit 16 and the address bit corresponding to the address output from the CPU is found to be abnormal, as a result, in the peripheral circuit of the CPU 10 (the ROM and the ROM connected to the CPU and the address bus) It is possible to easily identify a defective portion such as when a soldering failure or the like occurs in an address (including a CPU pin) of a CPU peripheral device such as a RAM.

このように、本実施の形態によれば、CPUを搭載した回路が組み込まれた製品を市場に出荷する際の検査において、効率的に不良品検査ができることは勿論であるが、製品を市場に出荷した後であっても、その製品に不具合が生じたときの不具合箇所を容易に特定することができる。   As described above, according to the present embodiment, it is possible to efficiently inspect a defective product in an inspection when a product incorporating a circuit incorporating a CPU is shipped to the market. Even after the shipment, it is possible to easily identify a defective part when a defect occurs in the product.

なお、アドレスデコーダ13によってデコードするアドレスは、使用するアドレスビット全てをデコードしてもよいし、或いは、回路規模が大きくなるのを防ぐため、上位アドレスのみをデコードしてもよい。また、FPGA等のプログラマブルデバイスを持つ基板においては、アドレスデコーダ13,比較アドレス設定部14,比較部15,及びエラー通知部16等は、そのFPGA内に搭載されていてもよい。   As the address decoded by the address decoder 13, all the address bits to be used may be decoded, or only the upper address may be decoded in order to prevent the circuit scale from becoming large. In a board having a programmable device such as an FPGA, the address decoder 13, the comparison address setting unit 14, the comparison unit 15, the error notification unit 16, and the like may be mounted in the FPGA.

[変形例]
上述の実施の形態では、アドレスデコーダ13を用いて、比較部15の回路の簡易化、基板の省スペース化を図ったが、このアドレスデコーダ13を省略する構成とすることもできる。次のその実施の形態を説明する。
[Modification]
In the above-described embodiment, the address decoder 13 is used to simplify the circuit of the comparison unit 15 and save the board space. However, the address decoder 13 may be omitted. The following embodiment will be described.

アドレスデコーダ13を用いない場合は、CPU10から出力される実体アドレスと比較アドレスを比較することとなる。この場合、比較アドレスは、実体アドレスとの比較が可能な形式とし、あらかじめ比較アドレス設定部14に記憶させておく。このような構成により、CPU10から出力される実体アドレスにおいて異常となったアドレスビットを直接に特定することが可能となる。   When the address decoder 13 is not used, the actual address output from the CPU 10 is compared with the comparison address. In this case, the comparison address has a format that can be compared with the actual address, and is stored in the comparison address setting unit 14 in advance. With such a configuration, it is possible to directly identify an abnormal address bit in the actual address output from the CPU 10.

更に、エラー通知部16には、アドレスビットのビット異常箇所を表示する表示部として、7セグメントディスプレイや液晶ディスプレー等を接続してもよい。   Further, a 7-segment display, a liquid crystal display, or the like may be connected to the error notification unit 16 as a display unit that displays a bit error location of the address bits.

上述の実施の形態における処理フローにおいて、図2において異なる点は、ステップS2でCPU10より出力されるアドレス出力(実体アドレス)とステップS7で出力される比較アドレスをステップS8で直接に比較することである。即ち、図2のステップS3及びS4が省略されることとなる。このとき比較部での比較処理により、どのアドレスビットが異常となったかの特定がビット単位で可能となる。   In the processing flow in the above-described embodiment, the difference in FIG. 2 is that the address output (substance address) output from the CPU 10 in step S2 and the comparison address output in step S7 are directly compared in step S8. is there. That is, steps S3 and S4 in FIG. 2 are omitted. At this time, it is possible to specify which address bit is abnormal in a bit unit by the comparison processing in the comparison unit.

本発明に係る回路装置は、CPUを搭載した回路のCPU周辺のアドレス異常箇所を容易に特定することが可能なものとして有用である。   The circuit device according to the present invention is useful as one that can easily identify an abnormal address portion around the CPU of a circuit on which the CPU is mounted.

本発明の実施の形態に係る回路装置の概要を示す回路図である。1 is a circuit diagram showing an outline of a circuit device according to an embodiment of the present invention. 本発明の実施の形態に係る回路装置の情報処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the information processing of the circuit device which concerns on embodiment of this invention.

符号の説明Explanation of symbols

1 回路装置
10 CPU
11 RAM
12 ROM
13 アドレスデコーダ
14 比較アドレス設定部
15 比較部
16 エラー通知部
1 circuit device 10 CPU
11 RAM
12 ROM
13 Address decoder 14 Comparison address setting unit 15 Comparison unit 16 Error notification unit

Claims (4)

CPUと、
前記CPUから出力されるアドレスをデコードするアドレスデコード部と、
前記CPUから出力されるチップセレクト信号に基づいて比較アドレスを設定する比較アドレス設定部と、
前記比較アドレスと前記アドレスデコード部の出力とが一致するか否かを比較する比較部と、
前記比較アドレスと前記アドレスデコード部の出力とが一致していない旨の情報が入力されることを契機としてエラー通知を行うと共に、前記比較部で不一致とされたアドレスビットを表示するエラー通知部と、を有することを特徴とする回路装置。
CPU,
An address decoding unit for decoding an address output from the CPU;
A comparison address setting unit for setting a comparison address based on a chip select signal output from the CPU;
A comparison unit for comparing whether or not the comparison address matches the output of the address decoding unit;
An error notification unit that performs error notification triggered by input of information indicating that the comparison address and the output of the address decoding unit do not match, and displays an address bit that is not matched by the comparison unit; And a circuit device.
前記エラー通知部は、LEDを用いてなることを特徴とする請求項1記載の回路装置。   The circuit device according to claim 1, wherein the error notification unit includes an LED. 前記回路装置は、カードに対してデータの読み出し及び書き込みを行うカードリーダを駆動する駆動回路装置に内蔵されることを特徴とする請求項1又は2記載の回路装置。   3. The circuit device according to claim 1, wherein the circuit device is built in a drive circuit device that drives a card reader that reads and writes data from and to a card. CPUを備える回路装置であって、
前記CPUから出力されるチップセレクト信号に基づいて比較アドレスを設定する比較アドレス設定部と、
前記比較アドレスと前記CPUから出力される実体アドレスとが一致するか否かを比較する比較部と、
前記比較アドレスと前記実体アドレスとが一致していない旨の情報が入力されることを契機としてエラー通知を行うと共に、前記比較部で不一致とされたアドレスビットを表示するエラー通知部と、を含む自己検査回路を備えることを特徴とする回路装置。
A circuit device comprising a CPU,
A comparison address setting unit for setting a comparison address based on a chip select signal output from the CPU;
A comparison unit for comparing whether or not the comparison address and the actual address output from the CPU match;
An error notification unit for notifying an error when information indicating that the comparison address and the entity address do not match is input, and displaying an address bit that is not matched by the comparison unit. A circuit device comprising a self-test circuit.
JP2005180613A 2005-06-21 2005-06-21 Circuit device with CPU Expired - Fee Related JP4621825B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005180613A JP4621825B2 (en) 2005-06-21 2005-06-21 Circuit device with CPU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005180613A JP4621825B2 (en) 2005-06-21 2005-06-21 Circuit device with CPU

Publications (2)

Publication Number Publication Date
JP2007004257A JP2007004257A (en) 2007-01-11
JP4621825B2 true JP4621825B2 (en) 2011-01-26

Family

ID=37689852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005180613A Expired - Fee Related JP4621825B2 (en) 2005-06-21 2005-06-21 Circuit device with CPU

Country Status (1)

Country Link
JP (1) JP4621825B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08278902A (en) * 1995-04-07 1996-10-22 Nippon Steel Corp Program run away detecting device
JP2004272555A (en) * 2003-03-07 2004-09-30 Seiko Epson Corp Program runaway detecting circuit, and recorder

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08278902A (en) * 1995-04-07 1996-10-22 Nippon Steel Corp Program run away detecting device
JP2004272555A (en) * 2003-03-07 2004-09-30 Seiko Epson Corp Program runaway detecting circuit, and recorder

Also Published As

Publication number Publication date
JP2007004257A (en) 2007-01-11

Similar Documents

Publication Publication Date Title
KR100265765B1 (en) Redundancy circuit having built-in self test circuit and repair method using the same
US6259639B1 (en) Semiconductor integrated circuit device capable of repairing defective parts in a large-scale memory
US20130010557A1 (en) Memory repair systems and methods for a memory having redundant memory
JP5127737B2 (en) Semiconductor device
JPS61278992A (en) Ic card having failure inspecting function
JPH09282900A (en) Memory module
US7372750B2 (en) Integrated memory circuit and method for repairing a single bit error
JP2008059711A (en) Semiconductor memory device
KR20010083784A (en) Memory module
US7545666B2 (en) Electrical fuse self test and repair
KR100825068B1 (en) Built in self test and built in self repair system
JP4257342B2 (en) Semiconductor memory device, memory module, and memory module inspection method
JP4621825B2 (en) Circuit device with CPU
JP2007505439A (en) Testing for open resistance failures in RAM address decoders
JP2008171287A (en) Information equipment, connection inspection method, program and recording medium
WO2001056038A1 (en) Semiconductor system
JP5106069B2 (en) Memory inspection method
US7389445B2 (en) Circuit for detecting abnormal operation of memory and integrated circuit and method for detecting abnormal operation
KR20030058256A (en) Flash memory device and repairing method thereof
KR100327402B1 (en) Method and apparatus for self-testing of the micro-processor
US6836440B2 (en) Method of checking electrical connections between a memory module and a semiconductor memory chip
US7085974B2 (en) Semiconductor device, method of testing the same and electronic instrument
JP2008217848A (en) Semiconductor integrated circuit device
KR100384777B1 (en) A built-in self-test circuit for a memory card
JPH04341998A (en) Memory circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071026

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090428

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090628

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100326

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100625

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20100702

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100729

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100809

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131112

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees