JP2012059104A - Information processor - Google Patents

Information processor Download PDF

Info

Publication number
JP2012059104A
JP2012059104A JP2010202850A JP2010202850A JP2012059104A JP 2012059104 A JP2012059104 A JP 2012059104A JP 2010202850 A JP2010202850 A JP 2010202850A JP 2010202850 A JP2010202850 A JP 2010202850A JP 2012059104 A JP2012059104 A JP 2012059104A
Authority
JP
Japan
Prior art keywords
current
control unit
cartridge
input
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010202850A
Other languages
Japanese (ja)
Inventor
Yasuyuki Eguchi
康之 江口
Yukihiro Nomura
幸弘 野村
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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2010202850A priority Critical patent/JP2012059104A/en
Publication of JP2012059104A publication Critical patent/JP2012059104A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To prevent an irregular cartridge from acquiring a normal game program or executing an irregular game program.SOLUTION: The information processor includes: a power terminal for supplying a power source voltage to an internal circuit of a memory device; a ground terminal connected to the internal circuit; a current measurement unit for measuring an operation current in the internal circuit that is input in the ground terminal; and a memory control unit that executes input/output of data in/from the memory device when the operation current is an expected current, and does not execute input/output of data in/from the memory device when the operation current is not the expected current, so that an irregular cartridge can be prevented from acquiring a normal game program or executing an irregular game program.

Description

本発明は、記憶装置へのデータの入出力を制御する記憶制御部を備えた情報処理装置に関する。   The present invention relates to an information processing apparatus including a storage control unit that controls input / output of data to / from a storage device.

情報処理装置としてのゲーム機は、記憶装置としてのカートリッジが接続され、カートリッジからゲームプログラムを読み出して実行する。本来、ゲームプログラムを格納したカートリッジは、ゲームプログラムの著作権者や著作物の利用の許諾を受けた者により頒布される。ユーザは対価を支払ってカートリッジを入手し、ゲーム機によりカートリッジからゲームプログラムを読出して実行することで、ゲームを行う。   A game machine as an information processing apparatus is connected to a cartridge as a storage device, and reads and executes a game program from the cartridge. Originally, the cartridge storing the game program is distributed by the copyright holder of the game program or a person who has received permission to use the copyrighted work. The user pays the price to obtain the cartridge, and reads and executes the game program from the cartridge with the game machine to play the game.

近年、カートリッジからゲームプログラムを読み出して不正に複製し、複製されたゲームプログラムをインターネット上などで頒布する行為が増加している。かかる行為を実施する侵害者は、例えば、まず、正規に入手したカートリッジ(以下、正規カートリッジという)をゲーム機に接続し、ゲーム機にゲームプログラム(以下、正規カートリッジに格納されたゲームプログラムを正規ゲームプログラムという)を実行させる。このとき、ゲーム機内のRAM(Random Access Memory)に正規ゲームプログラムが一時的に保持される。その状態で、侵害者は、正規カートリッジを取り外し、ゲーム機をハッキングして制御するための回路構成が実装されたカートリッジ(以下、不正カートリッジという)を、ゲーム機に接続する。不正カートリッジは、ゲーム機のCPU(Central Processing Unit)に偽の制御信号を入力し、RAMに保持された正規ゲームプログラムを不正カートリッジに書き込むようにCPUを制御する。このようにして、侵害者は、正規ゲームプログラムを取得する。   In recent years, there has been an increase in the act of reading a game program from a cartridge and duplicating it illegally and distributing the duplicated game program on the Internet or the like. For example, an infringer who conducts such an act first connects a properly obtained cartridge (hereinafter referred to as a regular cartridge) to a game machine and connects the game program to the game machine (hereinafter referred to as a game program stored in the regular cartridge). Game program). At this time, the regular game program is temporarily held in a RAM (Random Access Memory) in the game machine. In this state, the infringer removes the regular cartridge and connects a cartridge (hereinafter referred to as an illegal cartridge) on which a circuit configuration for hacking and controlling the game machine is mounted to the game machine. The unauthorized cartridge inputs a false control signal to a CPU (Central Processing Unit) of the game machine, and controls the CPU to write the regular game program held in the RAM to the unauthorized cartridge. In this way, the infringer obtains a regular game program.

次に、侵害者は、取得したゲームプログラムを複製して不正ゲームプログラムを作製し、これをたとえばインターネットを介して頒布する。一方で、侵害者は、不正ゲームプログラムをゲーム機に読み取らせるための不正カートリッジを作製し、頒布する。不正ゲームプログラムと不正カートリッジとを入手したユーザは、不正ゲームプログラムを不正カートリッジに格納する。ユーザが不正カートリッジをゲーム機に接続すると、不正カートリッジは、ゲーム機のCPUに偽の制御信号を入力して、CPUに不正カートリッジから不正ゲームプログラムを読み出させる。こうして、ゲーム機は、正規カートリッジが接続されたときと同様にして、不正カートリッジから不正ゲームプログラムを読み出して実行する。   Next, the infringer creates a fraudulent game program by duplicating the acquired game program, and distributes it via, for example, the Internet. On the other hand, the infringer creates and distributes an unauthorized cartridge for causing the game machine to read the unauthorized game program. The user who has obtained the unauthorized game program and the unauthorized cartridge stores the unauthorized game program in the unauthorized cartridge. When the user connects the unauthorized cartridge to the game machine, the unauthorized cartridge inputs a fake control signal to the CPU of the game machine and causes the CPU to read the unauthorized game program from the unauthorized cartridge. In this way, the game machine reads and executes the unauthorized game program from the unauthorized cartridge in the same manner as when the regular cartridge is connected.

このような不正ゲームプログラムの頒布や実行を防止するための方法が提案されている(たとえば、特許文献1〜3)。一つの例では、正規カートリッジとゲーム機とに予め認証情報を格納しておき、ゲーム機が、接続されるカートリッジから認証情報を読み出して認証を行う。ゲーム機は、正規カートリッジが接続され、認証が成功したときには正規ゲームプログラムを実行するが、不正カートリッジが接続され、認証が失敗したときには、種々のエラー処理を実行したり、不正ゲームプログラムの実行を中止したりする。   Methods for preventing the distribution and execution of such illegal game programs have been proposed (for example, Patent Documents 1 to 3). In one example, authentication information is stored in advance in a regular cartridge and a game machine, and the game machine reads the authentication information from the connected cartridge and performs authentication. The game machine executes a regular game program when a regular cartridge is connected and authentication is successful, but when a fraudulent cartridge is connected and authentication fails, various error processing or execution of the illegal game program is performed. Or cancel.

特開平8−286903号公報JP-A-8-286903 特開2000−76063号公報JP 2000-76063 A 特開2002−73423号公報JP 2002-73423 A

しかしながら、認証情報を用いて認証を行う方法では、認証情報を偽装されて実効性を欠くおそれがある。   However, in the method of performing authentication using authentication information, the authentication information may be disguised and lack effectiveness.

そこで、本発明の目的は、より確実に不正カートリッジを判別でき、不正カートリッジによる正規ゲームプログラムの取得や、不正カートリッジによる不正ゲームプログラムの実行を防止できる情報処理装置を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to provide an information processing apparatus that can more reliably discriminate an unauthorized cartridge and prevent acquisition of a legitimate game program using an unauthorized cartridge and execution of an unauthorized game program using an unauthorized cartridge.

上記の目的を達成するために、本発明の1つの側面における情報処理装置は、記憶装置の内部回路に電源電圧を供給する電源端子と、前記内部回路に接続されるグランド端子と、前記グランド端子に入力される前記内部回路の動作電流を測定する電流測定部と、前記動作電流が期待電流であるときに前記記憶装置へのデータの入出力を実行し、前記動作電流が前記期待電流でないときに前記記憶装置へのデータの入出力を実行しない記憶制御部とを有する。   In order to achieve the above object, an information processing apparatus according to one aspect of the present invention includes a power supply terminal for supplying a power supply voltage to an internal circuit of a storage device, a ground terminal connected to the internal circuit, and the ground terminal. A current measuring unit that measures the operating current of the internal circuit that is input to the memory, and executes input / output of data to / from the storage device when the operating current is an expected current, and when the operating current is not the expected current And a storage control unit that does not execute input / output of data to / from the storage device.

上記側面によれば、電流測定部が動作電流を測定することにより、不正カートリッジを判別できる。そして、記憶制御部は、前記動作電流が前記期待電流であるときに前記記憶装置へのデータの入出力を実行し、前記動作電流が前記期待電流でないときに前記記憶装置へのデータの入出力を実行しないので、不正カートリッジによる正規ゲームプログラムの取得や、不正カートリッジによる不正ゲームプログラムの実行を防止できる。   According to the above aspect, an illegal cartridge can be determined by measuring the operating current by the current measuring unit. The storage control unit executes input / output of data to / from the storage device when the operating current is the expected current, and inputs / outputs data to / from the storage device when the operating current is not the expected current Therefore, it is possible to prevent acquisition of a regular game program using an unauthorized cartridge and execution of an unauthorized game program using an unauthorized cartridge.

本実施形態におけるゲーム機とカートリッジの構成を説明する図である。It is a figure explaining the structure of the game machine and cartridge in this embodiment. 第1実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。It is a figure explaining the structure of the principal part of the game machine 4 and the regular cartridge 2 in 1st Example. 第1実施例における電流測定部36の構成例を説明する図である。It is a figure explaining the structural example of the current measurement part 36 in 1st Example. 第1実施例におけるゲーム機4の動作を説明する図である。It is a figure explaining operation | movement of the game machine 4 in 1st Example. 第1実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。FIG. 4 is a diagram illustrating an example of signals input to and output from an address / command control unit 34 in the first embodiment. 第2実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。It is a figure explaining the structure of the principal part of the game machine 4 and the regular cartridge 2 in 2nd Example. 第2実施例におけるゲーム機4の動作を説明する図である。It is a figure explaining operation | movement of the game machine 4 in 2nd Example. 第2実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。FIG. 10 is a diagram illustrating an example of signals input to and output from an address / command control unit 34 in the second embodiment. 第3実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。It is a figure explaining the structure of the principal part of the game machine 4 and the regular cartridge 2 in 3rd Example. 電流生成回路38の構成例を説明する図である。3 is a diagram illustrating a configuration example of a current generation circuit 38. FIG. 第3実施例における電流測定部36の構成例を示す。The structural example of the electric current measurement part 36 in 3rd Example is shown. 第3実施例におけるゲーム機4の動作を説明する図である。It is a figure explaining operation | movement of the game machine 4 in 3rd Example. 第3実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。FIG. 10 is a diagram illustrating an example of signals input to and output from an address / command control unit 34 in the third embodiment. 第4実施例における電流測定部36の構成について説明する図である。It is a figure explaining the structure of the electric current measurement part 36 in 4th Example. 第4実施例におけるゲーム機4の動作を説明する図である。It is a figure explaining operation | movement of the game machine 4 in 4th Example. 第4実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。FIG. 10 is a diagram illustrating an example of signals input to and output from an address / command control unit 34 in the fourth embodiment. 第5実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。It is a figure explaining the structure of the principal part of the game machine 4 and the regular cartridge 2 in 5th Example. 第5実施例におけるゲーム機4の動作を説明する図である。It is a figure explaining operation | movement of the game machine 4 in 5th Example. 第5実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。FIG. 10 is a diagram illustrating an example of signals input to and output from an address / command control unit 34 in the fifth embodiment.

以下、図面にしたがって本発明の実施の形態について説明する。但し、本発明の技術的範囲はこれらの実施の形態に限定されず、特許請求の範囲に記載された事項とその均等物まで及ぶものである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to these embodiments, but extends to the matters described in the claims and equivalents thereof.

本実施形態では、情報処理装置は例えばゲーム機である。また、情報処理装置に接続される外部の記憶装置は、例えばゲームプログラムが格納されたカートリッジである。   In the present embodiment, the information processing apparatus is a game machine, for example. An external storage device connected to the information processing apparatus is, for example, a cartridge that stores a game program.

図1は、本実施形態におけるゲーム機とカートリッジの構成を説明する図である。図1(A)は、正規カートリッジが接続される場合の構成を示す。正規カートリッジ2は、接続部9によりゲーム機4と接続される。正規カートリッジ2は、ROM(Read Only Memory)6と、ROM6に接続されるROM制御部8とを有する。ROM6には、正規ゲームプログラムが格納される。ROM制御部8は、ROM6からのデータの読み出しを制御する。たとえば、ROM制御部8は、ROM6から正規ゲームプログラムを読み出す。また、ROM6が例えば書き換え可能なROMである場合には、ROM制御部8は、ROM6に対するデータの書き込みを制御する。この場合、たとえば、ゲームの実行に関してユーザが設定するパラメータ等がROM6に書き込まれる。   FIG. 1 is a diagram illustrating a configuration of a game machine and a cartridge in the present embodiment. FIG. 1A shows a configuration when a regular cartridge is connected. The regular cartridge 2 is connected to the game machine 4 through the connection unit 9. The regular cartridge 2 includes a ROM (Read Only Memory) 6 and a ROM control unit 8 connected to the ROM 6. The ROM 6 stores a regular game program. The ROM control unit 8 controls reading of data from the ROM 6. For example, the ROM control unit 8 reads a regular game program from the ROM 6. Further, when the ROM 6 is a rewritable ROM, for example, the ROM control unit 8 controls the writing of data to the ROM 6. In this case, for example, parameters set by the user regarding the execution of the game are written in the ROM 6.

ゲーム機4は、正規カートリッジ2が接続される接続部11と、接続部11を介し正規カートリッジ2のROM制御部8と接続される記憶制御部10と、記憶制御部10と接続されるメイン制御部12とを有する。また、ゲーム機4では、メイン制御部12は、ROM14と、RAM16と、表示部18と、音声出力部20と、操作入力部22と、ネットワーク接続部24と接続される。   The game machine 4 includes a connection unit 11 to which the regular cartridge 2 is connected, a storage control unit 10 that is connected to the ROM control unit 8 of the regular cartridge 2 via the connection unit 11, and a main control that is connected to the storage control unit 10. Part 12. In the game machine 4, the main control unit 12 is connected to the ROM 14, the RAM 16, the display unit 18, the audio output unit 20, the operation input unit 22, and the network connection unit 24.

操作入力部22は、ユーザによる操作入力を受け付け、操作入力に応じた制御信号をメイン制御部12に入力する。操作入力部22は、操作ボタンや操作レバーを有する。また、操作入力部22には、電源スイッチが含まれる。電源スイッチは、押ボタンや、ゲーム機4の蓋の開閉と連動して電源が投入・遮断される形態のスイッチなどを有する。   The operation input unit 22 receives an operation input by the user and inputs a control signal corresponding to the operation input to the main control unit 12. The operation input unit 22 includes an operation button and an operation lever. The operation input unit 22 includes a power switch. The power switch includes a push button and a switch that is turned on and off in conjunction with opening and closing of the lid of the game machine 4.

メイン制御部12は、電源が投入されると起動して、ROM14に格納される制御プログラムを読み出してこれを実行し、ゲーム機4の各部を制御する。このとき、メイン制御部12は、各種演算のためのデータをRAM16に一時的に保持させる。   The main control unit 12 is activated when the power is turned on, reads a control program stored in the ROM 14 and executes it, and controls each unit of the game machine 4. At this time, the main control unit 12 temporarily stores data for various calculations in the RAM 16.

メイン制御部12は、正規カートリッジ2からの正規ゲームプログラムの読出しを指示する制御信号を記憶制御部10に出力する。記憶制御部10は、これに応答して、正規ゲームプログラムの読み出しを指示する制御信号をROM制御部8に出力する。すると、ROM制御部8は、これに応答して、ROM6から正規ゲームプログラムを読み出して記憶制御部10に転送する。記憶制御部10は、正規ゲームプログラムをメイン制御部12に転送する。そして、メイン制御部12は、正規ゲームプログラムをRAM16に格納して、これを実行する。また、メイン制御部12は、ユーザの操作入力に応じて各種パラメータを生成し、これにより正規ゲームプログラムを実行する。   The main control unit 12 outputs a control signal for instructing reading of the regular game program from the regular cartridge 2 to the storage control unit 10. In response to this, the storage control unit 10 outputs a control signal for instructing reading of the regular game program to the ROM control unit 8. Then, in response to this, the ROM control unit 8 reads the regular game program from the ROM 6 and transfers it to the storage control unit 10. The storage control unit 10 transfers the regular game program to the main control unit 12. The main control unit 12 stores the regular game program in the RAM 16 and executes it. Further, the main control unit 12 generates various parameters in accordance with user operation inputs, thereby executing the regular game program.

メイン制御部12は、正規ゲームプログラムを実行することで、ゲームの状況に応じた画像データや音声データを生成する。メイン制御部12は、画像データを表示部18に出力する。表示部18は、画像データに応じた画像をたとえばLCD(Liquid Crystal Display)などの表示画面に表示する。また、メイン制御部12は、音声データを音声出力部20に出力する。音声出力部20は、音声データに応じた音声をスピーカから出力する。さらに、メイン制御部12は、ネットワーク接続部24を介してインターネットなどの公衆通信回線網に接続し、他のゲーム機やサーバなどと通信しながら正規ゲームプログラムを実行する。   The main control unit 12 generates image data and sound data according to the game situation by executing the regular game program. The main control unit 12 outputs the image data to the display unit 18. The display unit 18 displays an image corresponding to the image data on a display screen such as an LCD (Liquid Crystal Display). Further, the main control unit 12 outputs audio data to the audio output unit 20. The sound output unit 20 outputs sound corresponding to the sound data from the speaker. Further, the main control unit 12 is connected to a public communication network such as the Internet via the network connection unit 24, and executes the regular game program while communicating with other game machines and servers.

図1(B)は、不正カートリッジが接続される場合の構成を示す。不正カートリッジ102は、正規カートリッジ9の接続部を偽装した接続部109を有し、接続部109によりゲーム機4と接続される。不正カートリッジ102は、SDカードやUSBメモリなどの記憶媒体108が接続される記憶媒体接続部104と、記憶媒体接続部104と接続される、たとえばFPGA(Field Programmable Gate Array)などのプログラマブル・ロジック・デバイス(PLD)106とを有する。   FIG. 1B shows a configuration when an unauthorized cartridge is connected. The fraudulent cartridge 102 has a connection portion 109 in which the connection portion of the regular cartridge 9 is disguised, and is connected to the game machine 4 through the connection portion 109. The unauthorized cartridge 102 includes a storage medium connection unit 104 to which a storage medium 108 such as an SD card or a USB memory is connected, and a programmable logic device such as an FPGA (Field Programmable Gate Array) connected to the storage medium connection unit 104. Device (PLD) 106.

記憶媒体接続部104は、記憶媒体108に対するデータの読み書きを行う。PLD106は、記憶媒体108に対するデータの読み書きを指示する制御信号を、記憶媒体接続部104に出力する。また、PLD106は、図示を省略するEEPROM(Electronically Erasable and Programmable ROM)などから予め格納された回路情報を読み出して、その回路構成を実装する。たとえば、PLD106は、ゲーム機4のメイン制御部12をハッキングして制御するための回路構成を実装する。   The storage medium connection unit 104 reads / writes data from / to the storage medium 108. The PLD 106 outputs a control signal that instructs reading / writing of data to / from the storage medium 108 to the storage medium connection unit 104. The PLD 106 reads circuit information stored in advance from an EEPROM (Electronically Erasable and Programmable ROM) or the like (not shown) and mounts the circuit configuration. For example, the PLD 106 implements a circuit configuration for hacking and controlling the main control unit 12 of the game machine 4.

このような不正カートリッジ102は、侵害者により、正規ゲームプログラムを取得するために、たとえば次のようにして用いられる。まず、ゲーム機4に正規カートリッジ2が接続され、メイン制御部12が正規ゲームプログラムをRAM16に保持させて実行する。その状態で正規カートリッジ2がゲーム機4から取り外され、不正カートリッジ102がゲーム機4に接続される。不正カートリッジ102が接続されると、PLD106は、メイン制御部12をハッキングするための各種制御信号を出力する。この各種制御信号は、記憶制御部10からメイン制御部12に転送される。メイン制御部12は、これに応答して、RAM16に格納された正規ゲームプログラムを読み出して記憶制御部10に転送する。そして、記憶制御部10は、転送された正規ゲームプログラムを、PLD106に転送する。そして、PLD106は、記憶媒体接続部104により、正規ゲームプログラムを記憶媒体108に書き込む。こうして、不正カートリッジ102により、正規ゲームプログラムが正規カートリッジ2から読み出されて取得される。   Such a fraudulent cartridge 102 is used as follows, for example, in order to obtain a legitimate game program by an infringer. First, the regular cartridge 2 is connected to the game machine 4, and the main control unit 12 stores the regular game program in the RAM 16 and executes it. In this state, the regular cartridge 2 is removed from the game machine 4, and the unauthorized cartridge 102 is connected to the game machine 4. When the unauthorized cartridge 102 is connected, the PLD 106 outputs various control signals for hacking the main control unit 12. These various control signals are transferred from the storage control unit 10 to the main control unit 12. In response to this, the main control unit 12 reads the regular game program stored in the RAM 16 and transfers it to the storage control unit 10. Then, the storage control unit 10 transfers the transferred regular game program to the PLD 106. Then, the PLD 106 writes the regular game program in the storage medium 108 by the storage medium connection unit 104. In this way, the regular game program is read from the regular cartridge 2 and acquired by the unauthorized cartridge 102.

侵害者は、上記のようにして入手した正規ゲームプログラムを不正に複製し、複製された不正ゲームプログラムをたとえばインターネットを介して頒布する。そして、不正カートリッジ102は、不正ゲームプログラムを入手したユーザにより、不正ゲームプログラムを実行するために、たとえば次のように用いられる。ユーザは、入手した不正ゲームプログラムを記憶媒体108に格納し、これを記憶媒体接続部104に接続する。そして、その状態で、ユーザは、不正カートリッジ102をゲーム機4に接続し、ゲーム機4を起動する。このとき、PLD106は、不正ゲームプログラムをメイン制御部12に実行させるための回路構成を実装している。PLD106は、記憶媒体接続部104により記憶媒体108から不正ゲームプログラムを読み出してゲーム機4に転送するとともに、正規カートリッジ2のROM制御部8による制御信号を偽装した制御信号を出力する。そうすることで、メイン制御部12は、正規カートリッジ2が接続されたときと同様にして、不正ゲームプログラムを実行する。   The infringer illegally duplicates the legitimate game program obtained as described above, and distributes the duplicated illegal game program via, for example, the Internet. The unauthorized cartridge 102 is used, for example, as follows in order to execute the unauthorized game program by the user who has obtained the unauthorized game program. The user stores the obtained illegal game program in the storage medium 108 and connects it to the storage medium connection unit 104. In this state, the user connects the unauthorized cartridge 102 to the game machine 4 and activates the game machine 4. At this time, the PLD 106 has a circuit configuration for causing the main control unit 12 to execute the unauthorized game program. The PLD 106 reads out an unauthorized game program from the storage medium 108 by the storage medium connection unit 104 and transfers it to the game machine 4, and outputs a control signal impersonating the control signal from the ROM control unit 8 of the regular cartridge 2. By doing so, the main control unit 12 executes the unauthorized game program in the same manner as when the regular cartridge 2 is connected.

ここで、正規カートリッジ2または不正カートリッジ102の内部回路は、詳しくは後述するように、ゲーム機4から電源供給を受けて動作する。そのとき、不正カートリッジ102の内部回路による動作電流は、正規カートリッジ2の内部回路による動作電流より一般に大きい。これは、不正カートリッジ102におけるPLD106の回路規模が、正規カートリッジ2におけるROM6のデータ読み出し(あるいは読み書き)専用に設計、製造されたROM制御部8と比べて大きく、所望の回路構成を実装したときであっても冗長なゲートを有するので、その分余計な動作電流を消費することによる。   Here, the internal circuit of the regular cartridge 2 or the illegal cartridge 102 operates by receiving power supply from the game machine 4 as will be described in detail later. At that time, the operating current by the internal circuit of the illegal cartridge 102 is generally larger than the operating current by the internal circuit of the regular cartridge 2. This is because the circuit scale of the PLD 106 in the illegal cartridge 102 is larger than that of the ROM control unit 8 designed and manufactured exclusively for reading (or reading and writing) data in the ROM 6 in the regular cartridge 2 and a desired circuit configuration is mounted. Even if there are redundant gates, the extra operating current is consumed accordingly.

このことを利用し、本実施形態では、接続されるカートリッジの内部回路の動作電流が、正規カートリッジ2が接続されたときに期待される動作電流(期待電流)であるか否かを、ゲーム機4が判定する。ハードウェア構成に依存する動作電流を偽装することは、たとえば認証情報などを偽装することより困難であるので、動作電流が期待電流である場合には正規カートリッジ2が接続されたと判別でき、期待電流でない場合には不正カートリッジ102が接続されたと判別できる。そして、ゲーム機4は、不正カートリッジ102を判別したときには、正規ゲームプログラムの転送や、不正ゲームプログラムの実行を中止する。そうすることで、不正カートリッジによる正規ゲームプログラムの取得や、不正カートリッジによる不正ゲームプログラムの実行を確実に防止できる。   By utilizing this, in the present embodiment, whether or not the operating current of the internal circuit of the connected cartridge is the operating current (expected current) expected when the regular cartridge 2 is connected is determined. 4 determines. Since it is more difficult to disguise the operating current depending on the hardware configuration than to disguise authentication information, for example, when the operating current is the expected current, it can be determined that the regular cartridge 2 is connected, and the expected current If not, it can be determined that the illegal cartridge 102 is connected. When the game machine 4 determines the unauthorized cartridge 102, the game machine 4 stops the transfer of the regular game program and the execution of the unauthorized game program. By doing so, it is possible to reliably prevent the acquisition of a regular game program using an unauthorized cartridge and the execution of an unauthorized game program using an unauthorized cartridge.

以下、本実施形態における実施例について説明する。   Hereinafter, examples in the present embodiment will be described.

[第1実施例]
図2は、第1実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。ゲーム機4の記憶制御部10は、アドレス・コマンド制御部34とデータ制御部32とを有する。一方、正規カートリッジ2のROM制御部8は、アドレス・コマンド制御部42と、データ制御部44とを有する。ゲーム機4のアドレス・コマンド制御部34と正規カートリッジ2のアドレス・コマンド制御部42は、接続部9、11を介して接続される。また、ゲーム機4のデータ制御部32と正規カートリッジ2のデータ制御部44は、接続部9、11を介して接続される。
[First embodiment]
FIG. 2 is a diagram illustrating the configuration of the main parts of the game machine 4 and the regular cartridge 2 in the first embodiment. The storage control unit 10 of the game machine 4 includes an address / command control unit 34 and a data control unit 32. On the other hand, the ROM controller 8 of the regular cartridge 2 has an address / command controller 42 and a data controller 44. The address / command control unit 34 of the game machine 4 and the address / command control unit 42 of the regular cartridge 2 are connected via the connection units 9 and 11. In addition, the data control unit 32 of the game machine 4 and the data control unit 44 of the regular cartridge 2 are connected via the connection units 9 and 11.

ゲーム機4は、接続部11に、電源端子13とグランド端子15を有する。ゲーム機4では、電源端子13は電源電圧VDDに、グランド端子15はグランド電位VSSに接続される。また、正規カートリッジ2は、接続部9に、電源端子13とグランド端子15とに接続される接続端子を有する。正規カートリッジ2では、ROM6やROM制御部8といった内部回路が、電源端子13を介して電源電圧VDDの供給を受け、グランド端子15を介してグランド電位の供給を受けて動作する。よって、ROM6やROM制御部8による動作電流(以下、単に動作電流という)は、グランド端子15を介してゲーム機4に出力される。   The game machine 4 has a power supply terminal 13 and a ground terminal 15 at the connection portion 11. In the game machine 4, the power supply terminal 13 is connected to the power supply voltage VDD, and the ground terminal 15 is connected to the ground potential VSS. Further, the regular cartridge 2 has a connection terminal connected to the power supply terminal 13 and the ground terminal 15 in the connection portion 9. In the regular cartridge 2, internal circuits such as the ROM 6 and the ROM control unit 8 operate by receiving the supply of the power supply voltage VDD through the power supply terminal 13 and the supply of the ground potential through the ground terminal 15. Therefore, the operating current (hereinafter simply referred to as operating current) from the ROM 6 and the ROM control unit 8 is output to the game machine 4 via the ground terminal 15.

ゲーム機4は、グランド端子15に接続される電流測定部36を有する。電流測定部36には、グランド端子15を介して、正規カートリッジ2から動作電流が入力される。電流測定部36は、予め設定される基準電流に対し動作電流が大きいか小さいかを測定し、その結果に応じた判定信号Judgeを出力する。なお、ここでは、電流測定部36が記憶制御部10の内部に設けられる場合が示されるが、電流測定部36は記憶制御部10の外部に設けられてもよい。   The game machine 4 has a current measurement unit 36 connected to the ground terminal 15. An operating current is input from the regular cartridge 2 to the current measuring unit 36 via the ground terminal 15. The current measuring unit 36 measures whether the operating current is larger or smaller than a preset reference current, and outputs a determination signal Judge according to the result. Here, the case where the current measurement unit 36 is provided inside the storage control unit 10 is shown, but the current measurement unit 36 may be provided outside the storage control unit 10.

上記の構成において、ゲーム機4に電源が投入されてゲーム機4が起動するとき、アドレス・コマンド制御部34には、メイン制御部12からリセット信号RESETが入力される。そして、メイン制御部12によりリセット信号RESETが解除されると、メイン制御部12からデータのアドレスを指定するアドレス信号ADDと、データ読み出しを指示する制御信号ConSが入力される。アドレス・コマンド制御部34は、正規カートリッジ2のアドレス・コマンド制御部42に、クロック信号CLKと、チップセレクト信号CSと、データの読み出しアドレスを指定する制御信号Dinを出力し、ROM6からのデータの読み出しを指示する。正規カートリッジ2のアドレス・コマンド制御部42は、これに応答して、クロック信号CLKに同期してROM6からデータを読み出す。読み出されるデータは、たとえば、正規ゲームプログラムである。そして、データ制御部44は、読み出されたデータDoutをデータ制御部32に転送する。すると、データ制御部32は、転送されたデータDoutを読出しデータDrとしてメイン制御部12に転送する。   In the above configuration, when the game machine 4 is turned on and the game machine 4 is activated, the address / command control unit 34 receives the reset signal RESET from the main control unit 12. When the reset signal RESET is canceled by the main control unit 12, the main control unit 12 receives an address signal ADD that specifies an address of data and a control signal ConS that instructs data reading. The address / command control unit 34 outputs a clock signal CLK, a chip select signal CS, and a control signal Din designating a data read address to the address / command control unit 42 of the regular cartridge 2. Instruct reading. In response to this, the address / command control unit 42 of the regular cartridge 2 reads data from the ROM 6 in synchronization with the clock signal CLK. The read data is, for example, a regular game program. Then, the data control unit 44 transfers the read data Dout to the data control unit 32. Then, the data control unit 32 transfers the transferred data Dout to the main control unit 12 as read data Dr.

あるいは、正規カートリッジ2のROM6が書き換え可能に構成される場合、アドレス・コマンド制御部34は、メイン制御部12から、データの書き込みアドレスを指定するアドレス信号ADDと、データ書き込みを指示する制御信号ConSが入力される。このとき、メイン制御部12からデータ制御部32に、書き込み用データDwが転送される。データ制御部32は、書き込み用データDwをアドレス・コマンド制御部34に転送する。アドレス・コマンド制御部34は、正規カートリッジ2のアドレス・コマンド制御部42に、クロック信号CLKと、チップセレクト信号CSと、書き込みアドレスをともなった書き込みデータDinとを出力する。すると、正規カートリッジ2のアドレス・コマンド制御部42は、書き込みデータDinをデータ制御部44に転送する。データ制御部44は、これに応答して、ROM6に対しデータDinを書き込む。   Alternatively, when the ROM 6 of the regular cartridge 2 is configured to be rewritable, the address / command control unit 34 sends an address signal ADD that specifies a data write address and a control signal ConS that instructs data writing from the main control unit 12. Is entered. At this time, the write data Dw is transferred from the main control unit 12 to the data control unit 32. The data control unit 32 transfers the write data Dw to the address / command control unit 34. The address / command control unit 34 outputs a clock signal CLK, a chip select signal CS, and write data Din with a write address to the address / command control unit 42 of the regular cartridge 2. Then, the address / command control unit 42 of the regular cartridge 2 transfers the write data Din to the data control unit 44. In response to this, the data control unit 44 writes the data Din into the ROM 6.

以下では、アドレス・コマンド制御部34による、上記のようなクロック信号CLK、チップセレクト信号CS、書き込みデータDin等の出力、及びゲームプログラム等のデータDoutの読出しを含むデータの入出力を、通常動作という。   In the following, the input / output of data including the output of the clock signal CLK, the chip select signal CS, the write data Din and the like as described above, and the reading of the data Dout such as the game program by the address / command control unit 34 is performed in a normal operation That's it.

第1実施例では、電流測定部36が、リセット信号RESET解除時の動作電流を測定する。そして、アドレス・コマンド制御部34が、動作電流が期待電流のときに通常動作を実行し、動作電流が期待電流でないときに通常動作の実行を中止する。   In the first embodiment, the current measuring unit 36 measures the operating current when the reset signal RESET is released. The address / command control unit 34 executes the normal operation when the operating current is the expected current, and stops the normal operation when the operating current is not the expected current.

電流測定部36は、ゲーム機4の起動時に、メイン制御部12からリセット信号RESETが入力される。電流測定部36は、リセット信号RESETが解除されると、これに応答して、正規カートリッジ2の動作電流が基準電流より大きいか小さいかを測定する。   The current measurement unit 36 receives a reset signal RESET from the main control unit 12 when the game machine 4 is activated. When the reset signal RESET is canceled, the current measuring unit 36 measures whether the operating current of the regular cartridge 2 is larger or smaller than the reference current in response to the reset signal RESET.

正規カートリッジ2は、リセット信号RESETが解除されたタイミングでは、アドレス・コマンド制御部34からの制御信号の入力待ち状態である。つまり、アドレス・コマンド制御部42はデータの読み書きなどの動作開始前である。このとき、アドレス・コマンド制御部42とデータ制御部44を含むROM制御部8や、ROM6といった内部回路は、たとえば数μA程度の微小な待機電流を消費する。よって、この待機電流が動作電流として、グランド端子15を介して電流測定部36に入力される。ここで、かかる待機電流が期待電流に対応する。   The regular cartridge 2 is waiting for input of a control signal from the address / command control unit 34 at the timing when the reset signal RESET is released. That is, the address / command control unit 42 is before the start of operations such as data reading and writing. At this time, the ROM control unit 8 including the address / command control unit 42 and the data control unit 44 and the internal circuit such as the ROM 6 consume a small standby current of about several μA, for example. Therefore, this standby current is input to the current measuring unit 36 through the ground terminal 15 as an operating current. Here, the standby current corresponds to the expected current.

一方、正規カートリッジ2の代わりに不正カートリッジ102が接続された場合には、PLD106の回路構成に起因して、正規カートリッジ2の待機電流より大きい、たとえば数mAの待機電流が消費される。よって、電流測定部36には、正規カートリッジ2の動作電流、つまり期待電流より大きい動作電流が入力される。   On the other hand, when an unauthorized cartridge 102 is connected instead of the regular cartridge 2, a standby current larger than the standby current of the regular cartridge 2, for example, several mA, is consumed due to the circuit configuration of the PLD 106. Therefore, an operating current of the regular cartridge 2, that is, an operating current larger than the expected current is input to the current measuring unit 36.

電流測定部36には、期待電流より大きくかつ不正カートリッジ102の動作電流より小さい基準電流が予め設定される。そして、電流測定部36は、正規カートリッジ2が接続されることで基準電流より小さい動作電流が入力される場合、つまり入力される動作電流が期待電流の場合には、アドレス・コマンド制御部34に、通常動作の実行を許可するための判定信号Judgeを出力する。すると、アドレス・コマンド制御部34は、これに応答して通常動作を実行し、正規カートリッジ2から読み出された正規ゲームプログラムが実行される。   A reference current that is larger than the expected current and smaller than the operating current of the unauthorized cartridge 102 is preset in the current measuring unit 36. Then, the current measuring unit 36 is connected to the address / command control unit 34 when an operation current smaller than the reference current is input by connecting the regular cartridge 2, that is, when the input operation current is an expected current. The judgment signal Judge for permitting the execution of the normal operation is output. Then, in response to this, the address / command control unit 34 executes a normal operation, and the regular game program read from the regular cartridge 2 is executed.

一方、不正カートリッジ102が接続されることで基準電流より大きい動作電流が入力される場合、つまり入力される動作電流が期待電流でない場合には、電流測定部36は、アドレス・コマンド制御部34に、不正カートリッジ102に対する通常動作の実行を中止させるための判定信号Judgeを出力する。すると、アドレス・コマンド制御部34は、これに応答して通常動作の実行を中止する。すなわち、アドレス・コマンド制御部34は、不正カートリッジ102に対する正規ゲームプログラムの書き込みや、不正カートリッジ102から不正ゲームプログラムの読み出しを中止する。よって、不正カートリッジ102による正規ゲームプログラムの取得や、不正カートリッジによる102不正ゲームプログラムの実行を防止できる。   On the other hand, when an operation current larger than the reference current is input by connecting the illegal cartridge 102, that is, when the input operation current is not an expected current, the current measurement unit 36 sends an address / command control unit 34. Then, the judgment signal Judge for stopping the execution of the normal operation for the illegal cartridge 102 is output. Then, in response to this, the address / command control unit 34 stops the execution of the normal operation. That is, the address / command control unit 34 stops writing the regular game program to the unauthorized cartridge 102 and reading the unauthorized game program from the unauthorized cartridge 102. Therefore, acquisition of the regular game program by the unauthorized cartridge 102 and execution of the 102 unauthorized game program by the unauthorized cartridge can be prevented.

ここにおいて、正規カートリッジ2または不正カートリッジ102は、それぞれが固有の電源を有さず、ゲーム機4から電源供給を受けて動作するので、それぞれの動作電流は、内部回路の規模や構成に依存する。よって、動作電流を用いることで、接続されたカートリッジのハードウェア構成を推測することができ、正規カートリッジ102または不正カートリッジ102を確度良く判別できる。また、リセット信号RESET解除時の待機電流は、その後、正規カートリッジ2や不正カートリッジ102が動作を開始したときの動作電流より安定しているので、かかる動作開始後の動作電流より的確な判定が可能であり、確度良く正規カートリッジ2または不正カートリッジ102の判別を行うことができる。   Here, the regular cartridge 2 or the illegal cartridge 102 does not have a specific power source and operates by receiving power supply from the game machine 4, so that each operating current depends on the scale and configuration of the internal circuit. . Therefore, by using the operating current, the hardware configuration of the connected cartridge can be estimated, and the regular cartridge 102 or the illegal cartridge 102 can be accurately identified. Further, the standby current when the reset signal RESET is released is more stable than the operation current when the regular cartridge 2 or the illegal cartridge 102 starts to operate thereafter, so that the determination can be made more accurately than the operation current after the operation starts. Thus, the regular cartridge 2 or the illegal cartridge 102 can be discriminated with high accuracy.

また第1実施例の一態様では、アドレス・コマンド制御部34は、不正カートリッジ102と判別されたことを示す判定信号Judgeに応答して、不正カートリッジ102が接続されたことを示すエラー信号ERRをメイン制御部12に出力する。すると、メイン制御部12は、エラー信号ERRに応答して、不正行為に対する警告メッセージや空白画面を表示部18に表示させたり、音声出力部20に音声出力させたりする。あるいは、メイン制御部12は、デバッグモードに移行するなどして、動作を中止してもよい。そうすることで、不正カートリッジ102による正規ゲームプログラムの取得や、不正カートリッジ102による不正ゲームプログラムの実行を、より確実に防止できる。メイン制御部12によるかかる動作を、以下では、不正動作時の動作という。   Further, in one aspect of the first embodiment, the address / command control unit 34 responds to the determination signal Judge indicating that the illegal cartridge 102 has been determined, and outputs an error signal ERR indicating that the illegal cartridge 102 has been connected. Output to the main control unit 12. Then, in response to the error signal ERR, the main control unit 12 causes the display unit 18 to display a warning message and a blank screen for fraudulent activity, or causes the audio output unit 20 to output audio. Alternatively, the main control unit 12 may stop the operation, for example, by shifting to the debug mode. By doing so, acquisition of the regular game program by the unauthorized cartridge 102 and execution of the unauthorized game program by the unauthorized cartridge 102 can be prevented more reliably. Such an operation by the main control unit 12 is hereinafter referred to as an operation during an illegal operation.

図3は、第1実施例における電流測定部36の構成例を説明する図である。電流測定部36は、予め設定される基準電流に対し入力される動作電流が大きいか小さいかを測定する。そのための構成として、たとえば、電流測定部36は、電圧比較器37を有する。電圧比較器37の非反転入力端子は、接続端子N1と接続される。接続端子N1は、グランド端子15に接続される。接続端子N1とゲーム機4のグランド電位VSSの間には、抵抗R1が設けられる。   FIG. 3 is a diagram illustrating a configuration example of the current measurement unit 36 in the first embodiment. The current measuring unit 36 measures whether the operating current input is large or small with respect to a preset reference current. For example, the current measuring unit 36 includes a voltage comparator 37 as a configuration for that purpose. The non-inverting input terminal of the voltage comparator 37 is connected to the connection terminal N1. The connection terminal N1 is connected to the ground terminal 15. A resistor R1 is provided between the connection terminal N1 and the ground potential VSS of the game machine 4.

上記の構成において、正規カートリッジ2の動作電流Iが、グランド端子15を介して接続端子N1に入力される。よって、動作電流Iと抵抗R1の抵抗値とに応じた接続端子N1の電圧V(a)が、電圧比較器37の非反転入力端子に入力される。電圧比較器37の反転入力端子には、基準電圧Vrefが入力される。基準電圧Vrefより非反転入力端子に入力される電圧V(a)の方が大きければ、電圧比較器37はHレベルの判定信号Judgeを出力する。一方、基準電圧Vrefより非反転入力端子に入力される電圧V(a)の方が小さければ、電圧比較器37は、Lレベルの判定信号Judgeを出力する。   In the above configuration, the operating current I of the regular cartridge 2 is input to the connection terminal N1 via the ground terminal 15. Therefore, the voltage V (a) of the connection terminal N1 corresponding to the operating current I and the resistance value of the resistor R1 is input to the non-inverting input terminal of the voltage comparator 37. The reference voltage Vref is input to the inverting input terminal of the voltage comparator 37. If the voltage V (a) input to the non-inverting input terminal is higher than the reference voltage Vref, the voltage comparator 37 outputs an H level determination signal Judge. On the other hand, if the voltage V (a) input to the non-inverting input terminal is smaller than the reference voltage Vref, the voltage comparator 37 outputs an L level determination signal Judge.

ここでは、抵抗R1の抵抗値に対して生成される電圧V(a)が基準電圧Vrefと一致するような動作電流が、基準電流に対応する。このような構成によれば、接続端子N1に基準電流より小さい動作電流Iが入力されたときには、電圧比較器37の非反転入力端子には基準電圧Vrefより小さい電圧V(a)が入力されるので、Lレベルの判定信号Judgeが出力される。一方、基準電流より大きい動作電流Iが入力されたときには、電圧比較器37の非反転入力端子には基準電圧Vrefより大きい電圧V(a)が入力されるので、Hレベルの判定信号Judgeが出力される。   Here, an operating current such that the voltage V (a) generated with respect to the resistance value of the resistor R1 matches the reference voltage Vref corresponds to the reference current. According to such a configuration, when the operating current I smaller than the reference current is input to the connection terminal N1, the voltage V (a) smaller than the reference voltage Vref is input to the non-inverting input terminal of the voltage comparator 37. Therefore, the L level determination signal Judge is output. On the other hand, when the operating current I greater than the reference current is input, the voltage V (a) greater than the reference voltage Vref is input to the non-inverting input terminal of the voltage comparator 37, so that the H level determination signal Judge is output. Is done.

すると、アドレス・コマンド制御部34は、Lレベルの判定信号Judgeに応答して、通常動作を実行する。一方、アドレス・コマンド制御部34は、Hレベルの判定信号Judgeに応答して、通常動作の実行を中止する。また、アドレス・コマンド制御部34は、Hレベルの判定信号Judgeに応答して、メイン制御部12に不正動作時の動作を実行させるためのエラー信号ERRを出力する。   Then, the address / command control unit 34 executes a normal operation in response to the L level determination signal Judge. On the other hand, the address / command control unit 34 stops the execution of the normal operation in response to the determination signal Judge at the H level. Further, the address / command control unit 34 outputs an error signal ERR for causing the main control unit 12 to perform an operation at the time of an illegal operation in response to the determination signal Judge at the H level.

図4は、第1実施例におけるゲーム機4の動作を説明する図である。図5は、第1実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。図5には、横軸を時間軸として、アドレス・コマンド制御部34から出力されるクロック信号CLK、メイン制御部12から電流測定部36及びアドレス・コマンド制御部34に入力されるリセット信号RESET、電流測定部36からアドレス・コマンド制御部34に入力される判定信号Judge、及びアドレス・コマンド制御部34からメイン制御部12に入力されるエラー信号ERRが示される。図5では、図4の手順に対応するタイミングには図4と同じ符号が付してある。   FIG. 4 is a diagram for explaining the operation of the game machine 4 in the first embodiment. FIG. 5 is a diagram illustrating examples of signals input to and output from the address / command control unit 34 in the first embodiment. In FIG. 5, with the horizontal axis as the time axis, the clock signal CLK output from the address / command control unit 34, the reset signal RESET input from the main control unit 12 to the current measurement unit 36 and the address / command control unit 34, A judgment signal Judge that is input from the current measuring unit 36 to the address / command control unit 34 and an error signal ERR that is input from the address / command control unit 34 to the main control unit 12 are shown. In FIG. 5, the timing corresponding to the procedure of FIG.

図4に従い、図5を参照しつつゲーム機4の動作を説明する。ユーザが電源スイッチをオンしたり、ゲーム機4の蓋を開けたりすることで、ゲーム機4に電源が投入される(S2)。すると、メイン制御部12は、リセット信号RESETを出力し、これを解除する(S4)。すると、電流測定部36は、手順S6で、動作電流が基準電流より大きいか小さいかを測定する。具体的には、電流測定部36は、接続端子N1の電圧V(a)を基準電圧Vrefと比較し、Vrefより小さいとき(S6の「V(a)<Vref」)、つまり動作電流Iが基準電流より小さい期待電流であるときに、Lレベルの判定信号Judgeを出力する(S8)。アドレス・コマンド制御部34は、これに応答して、通常動作を実行する(S10)。一方、接続端子N1の電圧V(a)が基準電圧Vrefより大きいとき(S6の「V(a)>Vref」)、つまり動作電流Iが基準電流より大きく、期待電流でないときには、Hレベルの判定信号Judgeを出力する(S12)。アドレス・コマンド制御部34は、これに応答して、不正カートリッジ102に対する通常動作を中止し、エラー信号ERRをメイン制御部12に出力する(S14)。そして、メイン制御部12は、警告の表示や音声出力など不正動作時の動作を実行する(S16)。   The operation of the game machine 4 will be described according to FIG. 4 with reference to FIG. When the user turns on the power switch or opens the lid of the game machine 4, the game machine 4 is powered on (S2). Then, the main control unit 12 outputs a reset signal RESET and cancels it (S4). Then, the current measuring unit 36 measures whether the operating current is larger or smaller than the reference current in step S6. Specifically, the current measuring unit 36 compares the voltage V (a) of the connection terminal N1 with the reference voltage Vref, and when it is smaller than Vref (“V (a) <Vref” in S6), that is, the operating current I is When the expected current is smaller than the reference current, the L level determination signal Judge is output (S8). In response to this, the address / command control unit 34 executes a normal operation (S10). On the other hand, when the voltage V (a) at the connection terminal N1 is greater than the reference voltage Vref (“V (a)> Vref” in S6), that is, when the operating current I is greater than the reference current and not the expected current, the H level determination The signal Judge is output (S12). In response to this, the address / command control unit 34 stops the normal operation for the illegal cartridge 102 and outputs an error signal ERR to the main control unit 12 (S14). Then, the main control unit 12 performs an operation during an illegal operation such as a warning display or audio output (S16).

上記のような手順により、不正カートリッジ102による正規ゲームプログラムの取得や、不正カートリッジ102による不正ゲームプログラムの実行を防止できる。   According to the procedure as described above, acquisition of a regular game program by the unauthorized cartridge 102 and execution of the unauthorized game program by the unauthorized cartridge 102 can be prevented.

[第2実施例]
上述の第1実施例では、ゲーム機4起動直後の待機電流を動作電流として用い、動作電流が期待電流か否かの判定が行われた。次に説明する第2実施例では、待機電流より小さい省電力(パワーダウン)モード時の動作電流について、期待電流か否かの判定が行われる。
[Second Embodiment]
In the first embodiment described above, the standby current immediately after the game machine 4 is started is used as the operating current, and it is determined whether or not the operating current is the expected current. In a second embodiment to be described next, it is determined whether or not the operating current in the power saving (power down) mode smaller than the standby current is an expected current.

図6は、第2実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。図6の構成のうち、第1実施例における図2の構成と同じ構成には、図2と同じ符号が付してある。ここでは、第1実施例と異なる点について説明する。第2実施例では、メイン制御部12が、アドレス・コマンド制御部34に、パワーダウン制御信号PDを入力する。メイン制御部12は、所定のイベントを検知したときに、パワーダウン制御信号PDを出力する。所定のイベントは、たとえば、ゲーム機4の蓋が閉じられたときや、一定時間以上操作入力がなされないとき、操作入力の有無に関わらず一定時間タイマで計時されたとき、もしくは、正規ゲームプログラムの実行中に、ゲームのステージをクリアしたりネットワークに接続されたりしたときが含まれる。あるいは、ゲーム機4の起動時において、リセット信号RESETが解除されたとき、一旦パワーダウン制御信号PDを出力するようにしてもよい。   FIG. 6 is a diagram illustrating the configuration of the main parts of the game machine 4 and the regular cartridge 2 in the second embodiment. 6, the same reference numerals as those in FIG. 2 are assigned to the same configurations as those in FIG. 2 in the first embodiment. Here, differences from the first embodiment will be described. In the second embodiment, the main control unit 12 inputs the power-down control signal PD to the address / command control unit 34. The main control unit 12 outputs a power-down control signal PD when detecting a predetermined event. The predetermined event is, for example, when the lid of the game machine 4 is closed, when no operation input is made for a certain period of time, when a time is counted with a timer for a certain time regardless of the presence or absence of the operation input, or a regular game program This includes when the game stage is cleared or connected to the network. Alternatively, the power-down control signal PD may be output once when the reset signal RESET is canceled when the game machine 4 is activated.

アドレス・コマンド制御部34は、メイン制御部12からパワーダウン制御信号PDが入力されると、電流測定部36と正規カートリッジ2のアドレス・コマンド制御部42に、パワーダウン制御信号PDを入力する。   When the power-down control signal PD is input from the main control unit 12, the address / command control unit 34 inputs the power-down control signal PD to the current measurement unit 36 and the address / command control unit 42 of the regular cartridge 2.

正規カートリッジ2では、アドレス・コマンド制御部42は、パワーダウン制御信号PDが入力されると、パワーダウンモードに移行するよう構成される。パワーダウンモードのとき、正規カートリッジ2では、待機電流より小さい動作電流が流れるか、ほとんど動作電流が流れない状態となる。よって、電流測定部36において、第1実施例のときの基準電流より小さい基準電流を設定しておく。電流測定部36は、パワーダウン制御信号PDが入力されると、これに応答して、正規カートリッジ2の動作電流と基準電流とを比較する。そして、電流測定部36に入力される動作電流が基準電流より小さく、つまり期待電流であれば、電流測定部36は、正規カートリッジ2が接続されたことを示すLレベルの判定信号Judgeを出力する。よって、このとき、アドレス・コマンド制御部34は、通常動作を実行する。   In the regular cartridge 2, the address / command control unit 42 is configured to shift to the power-down mode when the power-down control signal PD is input. In the power down mode, the regular cartridge 2 is in a state where an operating current smaller than the standby current flows or almost no operating current flows. Therefore, a reference current smaller than the reference current in the first embodiment is set in the current measuring unit 36. In response to the input of the power-down control signal PD, the current measuring unit 36 compares the operating current of the regular cartridge 2 with the reference current. If the operating current input to the current measuring unit 36 is smaller than the reference current, that is, the expected current, the current measuring unit 36 outputs an L level determination signal Judge indicating that the regular cartridge 2 is connected. . Therefore, at this time, the address / command control unit 34 executes a normal operation.

一方、不正カートリッジ2が接続されたときには、パワーダウン制御信号PDが入力されたとしても、パワーダウンモードに移行するような動作が実行されない。その場合、電流測定部36には、基準電流より大きく、期待電流ではない動作電流が入力される。よって、電流測定部36は、不正カートリッジ102が接続されたことを示すHレベルの判定信号Judgeを出力する。よって、このとき、アドレス・コマンド制御部34は、不正カートリッジ102に対する通常動作を中止するとともに、エラー信号ERRを出力し、メイン制御部12に不正動作時の動作を実行させる。   On the other hand, when the illegal cartridge 2 is connected, even if the power-down control signal PD is input, the operation for shifting to the power-down mode is not executed. In this case, an operating current that is larger than the reference current and not the expected current is input to the current measuring unit 36. Therefore, the current measuring unit 36 outputs an H level determination signal Judge indicating that the unauthorized cartridge 102 is connected. Therefore, at this time, the address / command control unit 34 stops the normal operation with respect to the illegal cartridge 102 and outputs the error signal ERR to cause the main control unit 12 to execute the operation during the illegal operation.

図7は、第2実施例におけるゲーム機4の動作を説明する図である。図8は、第2実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。図8には、横軸を時間軸として、アドレス・コマンド制御部34から出力されるクロック信号CLK、イベントEVTとこれに応答してメイン制御部12から電流測定部36及びアドレス・コマンド制御部34に入力されるパワーダウン制御信号PD、電流測定部36からアドレス・コマンド制御部34に入力される判定信号Judge、及びアドレス・コマンド制御部34からメイン制御部12に入力されるエラー信号ERRが示される。また、図8では、図7の手順に対応するタイミングには図7と同じ符号が付してある。   FIG. 7 is a diagram for explaining the operation of the game machine 4 in the second embodiment. FIG. 8 is a diagram illustrating an example of each signal input to and output from the address / command control unit 34 in the second embodiment. In FIG. 8, with the horizontal axis as the time axis, the clock signal CLK and event EVT output from the address / command control unit 34 and the current control unit 36 and the address / command control unit 34 from the main control unit 12 in response thereto. A power-down control signal PD input to the control unit 34, a determination signal Judge input from the current measurement unit 36 to the address / command control unit 34, and an error signal ERR input from the address / command control unit 34 to the main control unit 12 are shown. It is. In FIG. 8, the timings corresponding to the procedure in FIG. 7 are denoted by the same reference numerals as in FIG.

図7に従い、図8を参照しつつゲーム機4の動作を説明する。メイン制御部12は、通常動作行っているときに(S20)、イベントEVTが発生すると(S22)、パワーダウン制御信号PDを出力する(S24)。すると、電流測定部36は、手順S26で、動作電流が基準電流より大きいか小さいかを測定する。具体的には、電流測定部36は、接続端子N1の電圧V(a)を基準電圧Vrefと比較し、Vrefより小さいとき(S26の「V(a)<Vref」)、つまり動作電流Iが基準電流より小さい期待電流であるときに、Lレベルの判定信号Judgeを出力する(S28)。アドレス・コマンド制御部34は、これに応答して、通常動作を実行する(S30)。一方、接続端子N1の電圧V(a)が基準電圧Vrefより大きいとき(S26の「V(a)>Vref」)、つまり動作電流Iが基準電流より大きく、期待電流でないときには、Hレベルの判定信号Judgeを出力する(S32)。アドレス・コマンド制御部34は、これに応答して、不正カートリッジ102に対する通常動作を中止し、エラー信号ERRをメイン制御部12に出力する(S34)。そして、メイン制御部12は、不正動作時の動作を実行する(S36)。   The operation of the game machine 4 will be described according to FIG. 7 with reference to FIG. The main control unit 12 outputs a power-down control signal PD when an event EVT occurs (S22) during normal operation (S20) (S24). Then, the current measuring unit 36 measures whether the operating current is larger or smaller than the reference current in step S26. Specifically, the current measuring unit 36 compares the voltage V (a) of the connection terminal N1 with the reference voltage Vref, and when it is smaller than Vref (“V (a) <Vref” in S26), that is, the operating current I is When the expected current is smaller than the reference current, the L level determination signal Judge is output (S28). In response to this, the address / command control unit 34 executes a normal operation (S30). On the other hand, when the voltage V (a) at the connection terminal N1 is larger than the reference voltage Vref (“V (a)> Vref” in S26), that is, when the operating current I is larger than the reference current and is not the expected current, the H level determination The signal Judge is output (S32). In response to this, the address / command control unit 34 stops the normal operation for the illegal cartridge 102 and outputs an error signal ERR to the main control unit 12 (S34). And the main control part 12 performs the operation | movement at the time of unauthorized operation | movement (S36).

上記のような手順によれば、正規カートリッジ2または不正カートリッジ102を判別することができる。   According to the above procedure, the regular cartridge 2 or the illegal cartridge 102 can be determined.

第2実施例は単独で実施することも可能であるが、第1実施例と同時に実施することが可能である。その場合、電流測定部36は、動作電流を複数の基準電流と比較可能な構成を有する。たとえば、図3で示したような構成を複数設け、それぞれで異なる基準電流を設定しておく。そして、電流測定部36は、リセット信号RESET解除時の動作電流が第1の基準電流より大きいか小さいかを測定する。さらに、電流測定部36は、パワーダウンモード時の動作電流が、第1の基準電流より小さい第2の基準電流に対して、大きいか小さいかを測定する。   The second embodiment can be carried out alone, but can be carried out simultaneously with the first embodiment. In that case, the current measuring unit 36 has a configuration capable of comparing the operating current with a plurality of reference currents. For example, a plurality of configurations as shown in FIG. 3 are provided, and different reference currents are set for each. Then, the current measuring unit 36 measures whether the operating current when the reset signal RESET is released is larger or smaller than the first reference current. Further, the current measuring unit 36 measures whether the operating current in the power down mode is larger or smaller than the second reference current smaller than the first reference current.

ここで、不正カートリッジ102はパワーダウンモードを実行しないので、パワーダウンモード時の動作電流を用いることで、確実に正規カートリッジ2または不正カートリッジ102を判別することができる。特に、不正カートリッジ102の待機電流が正規カートリッジ2の待機電流と近似しており、リセット信号RESET解除時の動作電流からは正規カートリッジ2または不正カートリッジ102を判別できない場合であっても、正規カートリッジ2または不正カートリッジ102を判別するさらなる機会を確保できる。また、ゲームの状況に応じたイベントごとにパワーダウンモード時の動作電流に基づく判別を行うようにすれば、仮に正規ゲームプログラムを複製した不正ゲームプログラムが実行されたときであっても、不正カートリッジ102を判別することができ、不正ゲームプログラムの実行を中止することができる。こうして、不正カートリッジ102による正規ゲームプログラムの取得や、不正カートリッジ102による不正ゲームプログラムの実行を防止できる。   Here, since the unauthorized cartridge 102 does not execute the power-down mode, the regular cartridge 2 or the unauthorized cartridge 102 can be reliably identified by using the operating current in the power-down mode. In particular, even if the standby current of the illegal cartridge 102 approximates the standby current of the regular cartridge 2 and the normal cartridge 2 or the illegal cartridge 102 cannot be determined from the operating current when the reset signal RESET is released, Or the further opportunity to discriminate the unauthorized cartridge 102 can be secured. Further, if the determination based on the operating current in the power down mode is performed for each event according to the game situation, even if an unauthorized game program that duplicates the regular game program is executed, the unauthorized cartridge 102 can be determined, and the execution of the illegal game program can be stopped. In this way, acquisition of the regular game program by the unauthorized cartridge 102 and execution of the unauthorized game program by the unauthorized cartridge 102 can be prevented.

[第3実施例]
上述の第1、第2実施例では、いずれも基準電流より大きい動作電流のときに期待電流ではないと判定し、不正カートリッジ102が判別された。第3実施例は、正規カートリッジ2に、所定の動作電流、たとえば、正規カートリッジ2や不正カートリッジの待機電流より大きい電流を生成する電流生成回路を設けておきこれを動作させる。そして、かかる電流を判定するための基準電流を設定しておき、基準電流より大きい動作電流のときに期待電流であると判定して正規カートリッジ2と判別し、基準電流より小さい動作電流のときに期待電流でないと判定して不正カートリッジ102と判別する。
[Third embodiment]
In the first and second embodiments described above, it is determined that the current is not the expected current when the operating current is larger than the reference current, and the unauthorized cartridge 102 is determined. In the third embodiment, the regular cartridge 2 is provided with a current generation circuit for generating a predetermined operating current, for example, a current larger than the standby current of the regular cartridge 2 or the illegal cartridge, and this is operated. Then, a reference current for determining such a current is set. When the operating current is larger than the reference current, it is determined that the current is an expected current, and when the operating current is smaller than the reference current. It is determined that the current is not the expected current, and the cartridge is determined as the illegal cartridge 102.

図9は、第3実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。図9の構成のうち、第2実施例における図6の構成と同じ構成には同じ符号が付してある。ここでは、第2実施例と異なる点について説明する。   FIG. 9 is a diagram illustrating the configuration of the main parts of the game machine 4 and the regular cartridge 2 in the third embodiment. 9, the same reference numerals are given to the same components as those in FIG. 6 in the second embodiment. Here, differences from the second embodiment will be described.

第3実施例では、正規カートリッジ2が、所定の動作電流を生成する電流生成回路38を有する。電流生成回路38は、ゲーム機4から電源端子13を介して供給される電源電圧VDDと、グランド端子15を介して供給されるグランド電位VSSとの間に設けられ、電源電圧VDDとグランド電位VSSが供給されて動作する。   In the third embodiment, the regular cartridge 2 has a current generation circuit 38 that generates a predetermined operating current. The current generation circuit 38 is provided between the power supply voltage VDD supplied from the game machine 4 via the power supply terminal 13 and the ground potential VSS supplied via the ground terminal 15, and the power supply voltage VDD and the ground potential VSS are provided. Is supplied and operates.

一方、ゲーム機4では、メイン制御部12が、アドレス・コマンド制御部34に、所定のイベントが発生したときにテストエントリ制御信号TENを入力する。所定のイベントは、たとえば、正規カートリッジ2の動作電流が低下するようなイベントである。ゲーム機4の蓋が閉じられたときや、一定時間以上操作入力がなされないとき、あるいは、正規ゲームプログラムの実行中に、ゲームのステージをクリアしたりネットワークに接続されたりしたときが含まれる。あるいは、ゲーム機4の起動時において、リセット信号RESETが解除されたときであってもよい。すると、アドレス・コマンド制御部34は、電流測定部36とカートリッジ2のアドレス・コマンド制御部42に、テストエントリ制御信号TENを入力する。   On the other hand, in the game machine 4, the main control unit 12 inputs a test entry control signal TEN to the address / command control unit 34 when a predetermined event occurs. The predetermined event is, for example, an event in which the operating current of the regular cartridge 2 decreases. This includes when the lid of the game machine 4 is closed, when no operation input is made for a certain period of time, or when the game stage is cleared or connected to the network while the regular game program is being executed. Alternatively, when the game machine 4 is activated, the reset signal RESET may be canceled. Then, the address / command control unit 34 inputs the test entry control signal TEN to the current measurement unit 36 and the address / command control unit 42 of the cartridge 2.

正規カートリッジ2では、アドレス・コマンド制御部42は、テストエントリ制御信号TENが入力されると、電流生成回路38にテストエントリ信号TENを出力する。電流生成回路38は、テストエントリ制御信号TENに応答して、所定の動作電流を生成してグランド端子15に出力する。ここで、正規カートリッジ2の動作電流が低下するようなイベントでテストエントリ信号TENが出力される。また、アドレス・コマンド制御部42は、テストエントリ信号TENに応答して、一時的に動作電流を低下させるようなモード(たとえばパワーダウンモード)に移行する。そうすることで、電流生成回路38により生成された動作電流にアドレス・コマンド制御部42等の動作電流が加算されることなく、ゲーム機4の電流測定部36に入力される。   In the regular cartridge 2, when the test entry control signal TEN is input, the address / command control unit 42 outputs the test entry signal TEN to the current generation circuit 38. The current generation circuit 38 generates a predetermined operating current in response to the test entry control signal TEN and outputs it to the ground terminal 15. Here, the test entry signal TEN is output at an event where the operating current of the regular cartridge 2 decreases. Further, the address / command control unit 42 shifts to a mode (for example, a power down mode) in which the operating current is temporarily reduced in response to the test entry signal TEN. By doing so, the operation current of the address / command control unit 42 and the like is not added to the operation current generated by the current generation circuit 38 and is input to the current measurement unit 36 of the game machine 4.

一方、電流測定部36では、電流生成回路38により生成される電流より小さく、かつ不正カートリッジ102の動作電流より大きい基準電流を設定しておく。そして、電流測定部36は、テストエントリ信号TENが入力されると、これに応答して、正規カートリッジ2から入力される電流が基準電流より大きいか、小さいかを測定する。そして、電流測定部36に入力される電流が基準電流より大きいとき、つまり入力される電流が期待電流であるときには、電流測定部36は正規カートリッジ2が接続されたことを示す判定信号Judgeを出力する。よって、このとき、アドレス・コマンド制御部34は、通常動作を実行する。   On the other hand, the current measuring unit 36 sets a reference current that is smaller than the current generated by the current generating circuit 38 and larger than the operating current of the unauthorized cartridge 102. Then, when the test entry signal TEN is input, the current measurement unit 36 measures whether the current input from the regular cartridge 2 is larger or smaller than the reference current. When the current input to the current measuring unit 36 is larger than the reference current, that is, when the input current is an expected current, the current measuring unit 36 outputs a determination signal Judge indicating that the regular cartridge 2 is connected. To do. Therefore, at this time, the address / command control unit 34 executes a normal operation.

ここで、不正カートリッジ102は、テストエントリ制御信号TENに応答して所定の動作電流を出力する構成を有さないので、不正カートリッジ102が接続されたときには、電流測定部36には、基準電流より小さい動作電流が入力される。よって、このとき、電流測定部36は、不正カートリッジ2が接続されたことを示す判定信号Judgeを出力する。すると、アドレス・コマンド制御部34は、不正カートリッジ102に対する通常動作を中止するとともに、エラー信号ERRを出力し、メイン制御部12に不正動作時の動作を実行させる。   Here, since the illegal cartridge 102 does not have a configuration for outputting a predetermined operating current in response to the test entry control signal TEN, when the illegal cartridge 102 is connected, the current measuring unit 36 receives the reference current from the reference current. A small operating current is input. Therefore, at this time, the current measuring unit 36 outputs the determination signal Judge indicating that the unauthorized cartridge 2 is connected. Then, the address / command control unit 34 stops the normal operation for the illegal cartridge 102 and outputs an error signal ERR to cause the main control unit 12 to execute an operation during the illegal operation.

図10は、電流生成回路38の構成例を説明する図である。電流生成回路38は、テストエントリ制御信号TENがゲートに入力され、ドレイン側が電源電圧VDD、ソース側がグランド電位VSSに接続されるFET(電界効果型トランジスタ)39を有する。この電流生成回路38では、Hレベルのテストエントリ制御信号TENがFET39のゲートに入力されると、電源電圧VDDとFET39の抵抗値に応じた、たとえば数十〜数百mAのドレイン−ソース電流I2が流れる。よって、ゲーム機4のグランド端子15に、電流I2が入力される。   FIG. 10 is a diagram illustrating a configuration example of the current generation circuit 38. The current generation circuit 38 has a FET (field effect transistor) 39 to which the test entry control signal TEN is input to the gate, the drain side is connected to the power supply voltage VDD, and the source side is connected to the ground potential VSS. In this current generation circuit 38, when an H level test entry control signal TEN is input to the gate of the FET 39, a drain-source current I2 of, for example, several tens to several hundred mA corresponding to the power supply voltage VDD and the resistance value of the FET 39. Flows. Therefore, the current I2 is input to the ground terminal 15 of the game machine 4.

図11は、第3実施例における電流測定部36の構成例を示す。電流測定部36は、電圧比較器37aを有する。電圧比較器37aの反転入力端子は接続端子N1と接続される。接続端子N1にはグランド端子15が接続され、電流生成回路38から出力された電流I2が入力される。接続端子N1とグランド電位VSSの間には、抵抗R2が設けられる。   FIG. 11 shows a configuration example of the current measuring unit 36 in the third embodiment. The current measuring unit 36 includes a voltage comparator 37a. The inverting input terminal of the voltage comparator 37a is connected to the connection terminal N1. The ground terminal 15 is connected to the connection terminal N1, and the current I2 output from the current generation circuit 38 is input. A resistor R2 is provided between the connection terminal N1 and the ground potential VSS.

上記の構成において、電流I2と抵抗R2の抵抗値とに応じた接続端子N1の電圧V(a)が、電圧比較器37aの反転入力端子に入力される。電圧比較器37aの非反転入力端子には、基準電圧Vref2が入力される。電圧比較器37aは、反転入力端子に入力される電圧V(a)の方が基準電圧Vref2より小さければ、Hレベルの判定信号Judgeを出力する。一方、反転入力端子に入力される電圧の方が基準電圧Vref2より大きければ、Lレベルの判定信号Judgeを出力する。ここで、抵抗R2の抵抗値に対し、接続端子N1の電圧V(a)が基準電圧Vref2と一致するような電流が基準電流に対応する。   In the above configuration, the voltage V (a) of the connection terminal N1 corresponding to the current I2 and the resistance value of the resistor R2 is input to the inverting input terminal of the voltage comparator 37a. The reference voltage Vref2 is input to the non-inverting input terminal of the voltage comparator 37a. If the voltage V (a) input to the inverting input terminal is smaller than the reference voltage Vref2, the voltage comparator 37a outputs an H level determination signal Judge. On the other hand, if the voltage input to the inverting input terminal is larger than the reference voltage Vref2, the L level determination signal Judge is output. Here, with respect to the resistance value of the resistor R2, a current such that the voltage V (a) of the connection terminal N1 matches the reference voltage Vref2 corresponds to the reference current.

上記の構成によれば、接続端子N1に基準電流より大きい動作電流I2が入力されたとき、つまり動作電流が期待電流のときには、正規カートリッジ2が接続されたことを示すLレベルの判定信号Judgeが出力される。すると、アドレス・コマンド制御部34は、Lレベルの判定信号Judgeに応答して、通常動作を実行する。一方、基準電流より小さい動作電流が入力されたとき、つまり動作電流が期待電流ではないときには、不正カートリッジ102が接続されたことを示すHレベルの判定信号Judgeが出力される。すると、アドレス・コマンド制御部34は、Hレベルの判定信号Judgeに応答して、通常動作の実行を中止し、エラー信号ERRを出力してメイン制御部12に不正動作時の動作を実行させる。   According to the above configuration, when the operating current I2 larger than the reference current is input to the connection terminal N1, that is, when the operating current is the expected current, the L level determination signal Judge indicating that the regular cartridge 2 is connected is generated. Is output. Then, the address / command control unit 34 executes a normal operation in response to the L level determination signal Judge. On the other hand, when an operating current smaller than the reference current is input, that is, when the operating current is not the expected current, an H level determination signal Judge indicating that the illegal cartridge 102 is connected is output. Then, the address / command control unit 34 stops the normal operation in response to the determination signal Judge at the H level, outputs the error signal ERR, and causes the main control unit 12 to execute the operation at the time of the illegal operation.

図12は、第3実施例におけるゲーム機4の動作を説明する図である。図12は、第2実施例における図7と手順S24aとS26aが異なるが、他の手順は図7と同じである。図13は、第3実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。図13には、横軸を時間軸として、アドレス・コマンド制御部34から出力されるクロック信号CLK、イベントEVTとこれに応答してメイン制御部12から電流測定部36及びアドレス・コマンド制御部34に入力されるテストエントリ信号TEN、電流測定部36からアドレス・コマンド制御部34に入力される判定信号Judge、及びアドレス・コマンド制御部34からメイン制御部12に入力されるエラー信号ERRが示される。また、図13では、図12の手順に対応するタイミングには図12と同じ符号が付してある。   FIG. 12 is a diagram for explaining the operation of the game machine 4 in the third embodiment. FIG. 12 differs from FIG. 7 in the second embodiment in steps S24a and S26a, but the other procedures are the same as those in FIG. FIG. 13 is a diagram illustrating an example of each signal input / output to / from the address / command control unit 34 in the third embodiment. In FIG. 13, with the horizontal axis as the time axis, the clock signal CLK and event EVT output from the address / command control unit 34 and the current control unit 36 and the address / command control unit 34 from the main control unit 12 in response thereto. The test entry signal TEN input to the address, the determination signal Judge input from the current measuring unit 36 to the address / command control unit 34, and the error signal ERR input from the address / command control unit 34 to the main control unit 12 are shown. . In FIG. 13, the same reference numerals as those in FIG. 12 are assigned to the timings corresponding to the procedure in FIG.

図12に従い、図13を参照しつつゲーム機4の動作を説明する。メイン制御部12は、通常動作行っているときに(S20)、イベントEVTが発生すると(S22)、テストエントリ信号TENを出力する(S24a)。すると、電流測定部36は、手順S26aで、動作電流が基準電流より大きいか小さいかを測定する。具体的には、電流測定部36は、接続端子N1の電圧V(a)を基準電圧Vref2と比較し、Vref2より大きいとき(S26aの「V(a)>Vref2」)、つまり電流I2が基準電流より大きい期待電流であるときに、Lレベルの判定信号Judgeを出力する(S28)。アドレス・コマンド制御部34は、これに応答して、継続して通常動作を実行する(S30)。一方、接続端子N1の電圧V(a)が基準電圧Vref2より小さいとき(S26aの「V(a)<Vref2」)、つまり電流I2が基準電流より小さく、期待電流でないときには、Hレベルの判定信号Judgeを出力する(S32)。アドレス・コマンド制御部34は、これに応答して、不正カートリッジ102に対するデータの読み書きを中止し、エラー信号ERRをメイン制御部12に出力する(S34)。そして、メイン制御部12は、警告の表示や音声出力など不正動作時の動作を実行する(S36)。   The operation of the game machine 4 will be described according to FIG. 12 with reference to FIG. The main control unit 12 outputs a test entry signal TEN (S24a) when an event EVT occurs (S22) during normal operation (S20). Then, the current measuring unit 36 measures whether the operating current is larger or smaller than the reference current in step S26a. Specifically, the current measurement unit 36 compares the voltage V (a) of the connection terminal N1 with the reference voltage Vref2, and when it is larger than Vref2 (“V (a)> Vref2” in S26a), that is, the current I2 is the reference. When the expected current is greater than the current, the L level determination signal Judge is output (S28). In response to this, the address / command control unit 34 continuously performs the normal operation (S30). On the other hand, when the voltage V (a) at the connection terminal N1 is smaller than the reference voltage Vref2 (“V (a) <Vref2” in S26a), that is, when the current I2 is smaller than the reference current and is not the expected current, the H level determination signal Judge is output (S32). In response to this, the address / command control unit 34 stops reading / writing data from / to the illegal cartridge 102 and outputs an error signal ERR to the main control unit 12 (S34). Then, the main control unit 12 performs an operation during an illegal operation such as a warning display or audio output (S36).

上記のような手順により、電流生成回路を有さない不正カートリッジを確実に判別でき、不正カートリッジ102による正規ゲームプログラムの取得や、不正カートリッジ102による不正ゲームプログラムの実行を防止できる。   With the above procedure, an unauthorized cartridge that does not have a current generation circuit can be reliably determined, and acquisition of a regular game program by the unauthorized cartridge 102 and execution of the unauthorized game program by the unauthorized cartridge 102 can be prevented.

[第4実施例]
第4実施例は、上述した第1実施例と第3実施例を組み合わせた実施例である。第4実施例では、複数のタイミングで正規カートリッジ2または不正カートリッジ102から入力される動作電流が、期待電流か否か判定される。そして、それぞれのタイミングで、期待電流が異なる。
[Fourth embodiment]
The fourth embodiment is a combination of the first and third embodiments described above. In the fourth embodiment, it is determined whether or not the operating current input from the regular cartridge 2 or the illegal cartridge 102 is an expected current at a plurality of timings. The expected current is different at each timing.

第4実施例は、図9で示したゲーム機4と正規カートリッジ2の要部の構成が適用される。また、第4実施例では、電流測定部36は、第1実施例での構成と第3実施例での構成との組合せにより構成される。たとえば、電流測定部36は、まず、ゲーム機4起動時のリセット信号RESET解除時の動作電流が基準電流より大きいか小さいかを測定し、次に、テストエントリ信号TEN出力時の動作電流が基準電流より大きいか小さいかを測定する。そして、それぞれの場合の測定結果に応じて、アドレス・コマンド制御部34は、通常動作の実行/中止を行う。   In the fourth embodiment, the configuration of the main parts of the game machine 4 and the regular cartridge 2 shown in FIG. 9 is applied. In the fourth embodiment, the current measuring unit 36 is configured by a combination of the configuration in the first embodiment and the configuration in the third embodiment. For example, the current measuring unit 36 first measures whether the operating current when the reset signal RESET is released when the game machine 4 is started is larger or smaller than the reference current, and then the operating current when the test entry signal TEN is output is the reference. Measure whether the current is larger or smaller. Then, according to the measurement result in each case, the address / command control unit 34 executes / stops the normal operation.

図14は、第4実施例における電流測定部36の構成について説明する図である。電流測定部36は、グランド端子15に接続される接続端子N1と、接続端子N1と接続される第1の電流測定部36a、第2の電流測定部36bと、テストエントリ制御信号TENが入力されてその反転信号を出力するインバータ43と、電流測定部36aの出力信号Mout1とインバータ43の出力信号とが入力されるAND回路41と、電流測定部36bの出力信号Mout2とテストエントリ制御信号TENとが入力されるAND回路42と、AND回路41、42の出力信号Jin1、Jin2が入力されるOR回路44とを有する。   FIG. 14 is a diagram illustrating the configuration of the current measuring unit 36 in the fourth embodiment. The current measurement unit 36 receives the connection terminal N1 connected to the ground terminal 15, the first current measurement unit 36a and the second current measurement unit 36b connected to the connection terminal N1, and the test entry control signal TEN. Inverter 43 for outputting the inverted signal, AND circuit 41 to which output signal Mout1 of current measuring unit 36a and the output signal of inverter 43 are input, output signal Mout2 of current measuring unit 36b and test entry control signal TEN, And an OR circuit 44 to which the output signals Jin1 and Jin2 of the AND circuits 41 and 42 are input.

電流測定部36aは、第1実施例における電流測定部36に対応し、待機電流を測定するための構成を有する。たとえば、電流測定部36aでは、非反転入力端子に接続端子N1の電圧V(a)が入力され、反転入力端子には基準電圧Vref1が入力される。一方、電流測定部36bは、第3実施例における電流測定部36に対応し、電流生成回路38による動作電流を測定するための構成を有する。よって、電流測定部36bには、電流測定部36aの基準電流より大きい基準電流が設定される。電流測定部36bでは、反転入力端子に接続端子N1の電圧V(a)が入力され、非反転入力端子には基準電圧Vref2(>Vref1)が入力される。   The current measuring unit 36a corresponds to the current measuring unit 36 in the first embodiment and has a configuration for measuring the standby current. For example, in the current measurement unit 36a, the voltage V (a) of the connection terminal N1 is input to the non-inverting input terminal, and the reference voltage Vref1 is input to the inverting input terminal. On the other hand, the current measuring unit 36b corresponds to the current measuring unit 36 in the third embodiment and has a configuration for measuring the operating current by the current generating circuit 38. Therefore, a reference current larger than the reference current of the current measurement unit 36a is set in the current measurement unit 36b. In the current measuring unit 36b, the voltage V (a) of the connection terminal N1 is input to the inverting input terminal, and the reference voltage Vref2 (> Vref1) is input to the non-inverting input terminal.

上記のような構成において、まず、テストエントリ制御信号TENがLレベルのとき、つまり、正規カートリッジ2が接続された場合であってもその電流生成回路38が動作しないときには、電流測定部36は、リセット信号RESET解除時に測定を行う。すなわち、電流測定部36は、グランド端子15を介して接続端子N1に入力される待機電流が基準電流より大きいか小さいか測定する。   In the above configuration, first, when the test entry control signal TEN is at the L level, that is, when the current generation circuit 38 does not operate even when the regular cartridge 2 is connected, the current measurement unit 36 Measurement is performed when the reset signal RESET is released. That is, the current measuring unit 36 measures whether the standby current input to the connection terminal N1 through the ground terminal 15 is larger or smaller than the reference current.

テストエントリ制御信号TENがLレベルのとき、インバータ43が出力する反転信号はHレベルとなる。よって、AND回路41には、電流測定部36aの出力信号Mout1と、Hレベルの反転信号が入力される。よって、AND回路40からは、電流測定部36aの出力信号Mout1に対応するレベルの出力信号Jin1が出力される。一方、AND回路42には電流測定部36bの出力信号Mout2とLレベルのテストエントリ信号TENとが入力されるので、Lレベルの出力信号Jin2が出力される。よって、OR回路44は、AND回路41の出力信号Jin1とAND回路42のLレベルの出力信号Jin2が入力され、その論理和、つまりAND回路41の出力信号Jin1のレベルに対応したレベルの判定信号Judgeが出力される。つまり、このとき、電流測定部36aによる測定結果が用いられる。   When the test entry control signal TEN is at L level, the inverted signal output from the inverter 43 is at H level. Therefore, the output signal Mout1 of the current measuring unit 36a and the H level inverted signal are input to the AND circuit 41. Therefore, the AND circuit 40 outputs the output signal Jin1 having a level corresponding to the output signal Mout1 of the current measuring unit 36a. On the other hand, since the output signal Mout2 of the current measuring unit 36b and the L level test entry signal TEN are input to the AND circuit 42, the L level output signal Jin2 is output. Therefore, the OR circuit 44 receives the output signal Jin1 of the AND circuit 41 and the L-level output signal Jin2 of the AND circuit 42, and the logical sum thereof, that is, a determination signal having a level corresponding to the level of the output signal Jin1 of the AND circuit 41. Judge is output. That is, at this time, the measurement result by the current measuring unit 36a is used.

ここで、正規カートリッジ2が接続されたときには、基準電流より小さい待機電流が動作電流として入力されるので、接続端子N1の電圧V(a)が電流測定部36aの基準電圧Vref1より小さくなり、電流測定部36aからLレベルの出力信号Mout1が出力される。よって、このとき、正規カートリッジ2が接続されたことを示すLレベルの判定信号Judgeが電流測定部36から出力される。一方、不正カートリッジ102が接続されたときには、基準電流より大きい待機電流が動作電流として入力されるので、接続端子N1の電圧V(a)が電流測定部36aの基準電圧Vref1より大きくなり、電流測定部36aからHレベルの出力信号Mout1が出力される。よって、このとき、不正カートリッジ102が接続されたことを示すHレベルの判定信号Judgeが電流測定部36から出力される。   Here, when the regular cartridge 2 is connected, since a standby current smaller than the reference current is input as the operating current, the voltage V (a) of the connection terminal N1 becomes smaller than the reference voltage Vref1 of the current measuring unit 36a, and the current An L level output signal Mout1 is output from the measurement unit 36a. Therefore, at this time, the L level determination signal Judge indicating that the regular cartridge 2 is connected is output from the current measuring unit 36. On the other hand, when the illegal cartridge 102 is connected, since a standby current larger than the reference current is input as the operating current, the voltage V (a) of the connection terminal N1 becomes larger than the reference voltage Vref1 of the current measuring unit 36a, and current measurement is performed. An H level output signal Mout1 is output from the unit 36a. Therefore, at this time, the H level determination signal Judge indicating that the unauthorized cartridge 102 is connected is output from the current measuring unit 36.

次に、テストエントリ制御信号TENがHレベルのとき、つまり、正規カートリッジ2が接続されていればその電流生成回路38が動作するときには、電流測定部36は、正規カートリッジ2または不正カートリッジ102が出力する電流を用いて、正規カートリッジ2または不正カートリッジ102を判別する。テストエントリ制御信号TENがHレベルのとき、インバータ43の反転出力信号はLレベルとなる。よって、AND回路40には電流測定部36aの出力信号Mout1とLレベルの反転信号が入力され、Lレベルの出力信号Jin1が出力される。一方、AND回路42には、Hレベルのテストエントリ信号TENと電流測定部36bの出力信号Mout2が入力される。よって、AND回路42は、電流測定部36bの出力信号Mout2のレベルに対応するレベルの出力信号Jin2を出力する。よって、OR回路44は、AND回路41のLレベルの出力信号Jin1とAND回路42の出力信号Jin2が入力され、その論理和、つまりAND回42の出力信号Jin2のレベルに対応したレベルの判定信号Judgeが出力される。つまり、このとき、電流測定部36bによる測定結果が用いられる。   Next, when the test entry control signal TEN is at the H level, that is, when the current generating circuit 38 operates if the normal cartridge 2 is connected, the current measuring unit 36 outputs the normal cartridge 2 or the illegal cartridge 102. The regular cartridge 2 or the illegal cartridge 102 is discriminated using the current to be used. When test entry control signal TEN is at the H level, the inverted output signal of inverter 43 is at the L level. Therefore, the AND circuit 40 receives the output signal Mout1 of the current measuring unit 36a and the L level inverted signal, and outputs the L level output signal Jin1. On the other hand, the H-level test entry signal TEN and the output signal Mout2 of the current measuring unit 36b are input to the AND circuit 42. Therefore, the AND circuit 42 outputs the output signal Jin2 having a level corresponding to the level of the output signal Mout2 of the current measuring unit 36b. Therefore, the OR circuit 44 receives the L level output signal Jin1 of the AND circuit 41 and the output signal Jin2 of the AND circuit 42, and the logical sum thereof, that is, a determination signal having a level corresponding to the level of the output signal Jin2 of the AND circuit 42. Judge is output. That is, at this time, the measurement result by the current measuring unit 36b is used.

ここで、正規カートリッジ2が接続されたときには、基準電流より大きい電流が入力されるので、接続端子N1の電圧V(a)が電流測定部36bの基準電圧Vref2より大きくなり、電流測定部36bからLレベルの出力信号Mout2が出力される。よって、このとき、正規カートリッジ2が接続されたことを示すLレベルの判定信号Judgeが電流測定部36から出力される。一方、不正カートリッジ102が接続されたときには、基準電流より小さい電流が入力されるので接続端子N1の電圧V(a)が電流測定部36bの基準電圧Vref2より小さくなり、電流測定部36bからHレベルの出力信号Mout2が出力される。よって、このとき、不正カートリッジ102が接続されたことを示すHレベルの判定信号Judgeが電流測定部36から出力される。   Here, since the current larger than the reference current is input when the regular cartridge 2 is connected, the voltage V (a) of the connection terminal N1 becomes larger than the reference voltage Vref2 of the current measuring unit 36b, and the current measuring unit 36b An L level output signal Mout2 is output. Therefore, at this time, the L level determination signal Judge indicating that the regular cartridge 2 is connected is output from the current measuring unit 36. On the other hand, since the current smaller than the reference current is input when the illegal cartridge 102 is connected, the voltage V (a) at the connection terminal N1 becomes smaller than the reference voltage Vref2 of the current measuring unit 36b, and the H level is output from the current measuring unit 36b. Output signal Mout2 is output. Therefore, at this time, the H level determination signal Judge indicating that the unauthorized cartridge 102 is connected is output from the current measuring unit 36.

図15は、第4実施例におけるゲーム機4の動作を説明する図である。図15では、手順S2〜S10及び手順S12〜S16が、図4で示した第1実施例における手順に対応し、手順S22以降が、図7で示した第3実施例における手順のうちの手順S22以降に対応する。図16は、第4実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。図16には、横軸を時間軸として、アドレス・コマンド制御部34から出力されるクロック信号CLK、メイン制御部12から電流測定部36及びアドレス・コマンド制御部34に入力されるリセット信号RESET、イベントEVTが発生したときにメイン制御部12から電流測定部36及びアドレス・コマンド制御部34に入力されるテストエントリ信号TEN、電流測定部36からアドレス・コマンド制御部34に入力される判定信号Judge、及びアドレス・コマンド制御部34からメイン制御部12に入力されるエラー信号ERRが示される。また、図16では、図15の手順に対応するタイミングには図15と同じ符号が付してある。   FIG. 15 is a diagram for explaining the operation of the game machine 4 in the fourth embodiment. In FIG. 15, steps S2 to S10 and steps S12 to S16 correspond to the steps in the first embodiment shown in FIG. 4, and the steps after step S22 are the steps in the steps in the third embodiment shown in FIG. This corresponds to S22 and later. FIG. 16 is a diagram illustrating an example of each signal input to and output from the address / command control unit 34 in the fourth embodiment. In FIG. 16, with the horizontal axis as the time axis, the clock signal CLK output from the address / command control unit 34, the reset signal RESET input from the main control unit 12 to the current measurement unit 36 and the address / command control unit 34, A test entry signal TEN input from the main control unit 12 to the current measurement unit 36 and the address / command control unit 34 when the event EVT occurs, and a determination signal Judge input from the current measurement unit 36 to the address / command control unit 34 And an error signal ERR input from the address / command control unit 34 to the main control unit 12 is shown. In FIG. 16, the timings corresponding to the procedure in FIG. 15 are denoted by the same reference numerals as in FIG.

図15に従い、図16を参照しつつゲーム機4の動作を説明する。ユーザが電源スイッチをオンしたり、ゲーム機4の蓋を開けたりすることで、ゲーム機4に電源が投入される(S2)。すると、メイン制御部12は、リセット信号RESETを出力し、これを解除する(S4)。すると、電流測定部36は、手順S6で動作電流が基準電流より大きいか小さいかを測定する。具体的には、電流測定部36は、接続端子N1の電圧V(a)が電流測定部36aの基準電圧Vref1より小さいとき(S6の「V(a)<Vref1」)、つまりカートリッジから入力される電流が基準電流より小さい期待電流であるときに、Lレベルの判定信号Judgeを出力する(S8)。アドレス・コマンド制御部34は、これに応答して、通常動作を実行する(S10)。一方、接続端子N1の電圧V(a)が基準電圧Vref1より大きいとき(S6の「V(a)>Vref1」)、つまりカートリッジから入力される電流が基準電流より大きく、期待電流でないときには、Hレベルの判定信号Judgeを出力する(S12)。アドレス・コマンド制御部34は、これに応答して、不正カートリッジ102に対するデータの読み書きを中止し、エラー信号ERRをメイン制御部12に出力する(S14)。そして、メイン制御部12は、不正動作時の動作を実行する(S16)。   The operation of the game machine 4 will be described according to FIG. 15 with reference to FIG. When the user turns on the power switch or opens the lid of the game machine 4, the game machine 4 is powered on (S2). Then, the main control unit 12 outputs a reset signal RESET and cancels it (S4). Then, the current measuring unit 36 measures whether the operating current is larger or smaller than the reference current in step S6. Specifically, when the voltage V (a) of the connection terminal N1 is smaller than the reference voltage Vref1 of the current measurement unit 36a (“V (a) <Vref1” in S6), that is, the current measurement unit 36 is input from the cartridge. When the current to be output is an expected current smaller than the reference current, an L level determination signal Judge is output (S8). In response to this, the address / command control unit 34 executes a normal operation (S10). On the other hand, when the voltage V (a) at the connection terminal N1 is greater than the reference voltage Vref1 (“V (a)> Vref1” in S6), that is, when the current input from the cartridge is greater than the reference current and not the expected current, H A level determination signal Judge is output (S12). In response to this, the address / command control unit 34 stops reading / writing data from / to the illegal cartridge 102 and outputs an error signal ERR to the main control unit 12 (S14). And the main control part 12 performs the operation | movement at the time of unauthorized operation | movement (S16).

そして、メイン制御部12は、通常動作を実行しているときにイベントEVTが発生すると(S22)、テストエントリ信号TENを出力する(S24a)。すると、電流測定部36は、手順S26aで動作電流が基準電流より大きいか小さいかを測定し、接続端子N1の電圧V(a)が電流測定部36bの基準電圧Vref2より大きいとき(S26aの「V(a)>Vref2」)、つまりカートリッジから入力される動作電流が基準電流より大きい期待電流であるときに、Lレベルの判定信号Judgeを出力する(S28)。アドレス・コマンド制御部34は、これに応答して、通常動作を継続して実行する(S30)。一方、接続端子N1の電圧V(a)が基準電圧Vref2より小さいとき(S26aの「V(a)<Vref2」)、つまりカートリッジから入力される電流が基準電流より小さく、期待電流でないときには、Hレベルの判定信号Judgeを出力する(S32)。アドレス・コマンド制御部34は、これに応答して、不正カートリッジ102に対する通常動作を中止し、エラー信号ERRをメイン制御部12に出力する(S34)。そして、メイン制御部12は、不正動作時の動作を実行する(S36)。   When the event EVT occurs during the normal operation (S22), the main control unit 12 outputs the test entry signal TEN (S24a). Then, the current measuring unit 36 measures whether the operating current is larger or smaller than the reference current in step S26a, and when the voltage V (a) at the connection terminal N1 is larger than the reference voltage Vref2 of the current measuring unit 36b (“S26a” V (a)> Vref2 "), that is, when the operating current input from the cartridge is an expected current greater than the reference current, the L level determination signal Judge is output (S28). In response to this, the address / command control unit 34 continues the normal operation (S30). On the other hand, when the voltage V (a) at the connection terminal N1 is smaller than the reference voltage Vref2 (“V (a) <Vref2” in S26a), that is, when the current input from the cartridge is smaller than the reference current and is not the expected current, H The level determination signal Judge is output (S32). In response to this, the address / command control unit 34 stops the normal operation for the illegal cartridge 102 and outputs an error signal ERR to the main control unit 12 (S34). And the main control part 12 performs the operation | movement at the time of unauthorized operation | movement (S36).

このようにして、第4実施例では、複数のタイミングで正規カートリッジ2または不正カートリッジ102の電流が期待電流か否かを判定するので、正規カートリッジ2または不正カートリッジ102を判別するためのより多くの機会を確保できる。そして、それぞれのタイミングで異なる基準電流を用いることで、より確実に不正カートリッジ102を判別することができる。   In this way, in the fourth embodiment, it is determined whether the current of the regular cartridge 2 or the illegal cartridge 102 is the expected current at a plurality of timings. Opportunities can be secured. Then, by using different reference currents at the respective timings, the unauthorized cartridge 102 can be more reliably determined.

このように、第4実施例によれば、複数のタイミングにおいて動作電流を測定するので、正規カートリッジ2または不正カートリッジ102を判別するためのより多くの機会を確保できる。そして、それぞれのタイミングで異なる基準電流を用いることで、より確実に不正カートリッジ102を判別することができる。   As described above, according to the fourth embodiment, since the operating current is measured at a plurality of timings, more opportunities for discriminating the regular cartridge 2 or the illegal cartridge 102 can be secured. Then, by using different reference currents at the respective timings, the unauthorized cartridge 102 can be more reliably determined.

なお、上述の説明では第1、第3実施例の組合せによる第4実施例を示したが、第1〜第3実施例は、それぞれ単独で実施することもできるし、いずれか2つ以上の組合せにより実施することもできる。たとえば、第2、第3実施例の組合せにおいて、パワーダウンモード時の動作電流を電流測定部36aで判定し、テストエントリ制御信号TEN出力時の動作電流を電流測定部36bで判定してもよい。あるいは、第1〜第3実施例のすべての組合せにおいて、電流測定部36aを2つ設け、それぞれで異なる基準電流を設定してもよい。たとえば、リセット信号RESET解除時に待機電流が第1の基準電流より大きいか小さいかを測定し、その後、パワーダウン制御信号PD出力時に動作電流が第2の基準電流(第1の基準電流より小さい)より大きいか小さいかを測定し、さらに、別のタイミングでテストエントリ制御信号TENを出力して、そのときの動作電流を電流測定部36bで測定してもよい。このようにすることで、さらに多くのタイミングと基準電流の組合せにより、で不正カートリッジ102をより確実に判別できる。   In addition, although the 4th Example by the combination of the 1st, 3rd Example was shown in the above-mentioned description, the 1st-3rd Example can also each be implemented independently, and any two or more It can also be implemented in combination. For example, in the combination of the second and third embodiments, the operating current in the power down mode may be determined by the current measuring unit 36a, and the operating current when the test entry control signal TEN is output may be determined by the current measuring unit 36b. . Alternatively, in all combinations of the first to third embodiments, two current measuring units 36a may be provided and different reference currents may be set for each. For example, it is measured whether the standby current is larger or smaller than the first reference current when the reset signal RESET is released, and then the operating current is the second reference current (smaller than the first reference current) when the power-down control signal PD is output. It is also possible to measure whether it is larger or smaller, and further output the test entry control signal TEN at another timing, and measure the operating current at that time by the current measuring unit 36b. In this way, the illegal cartridge 102 can be more reliably discriminated by a combination of more timings and reference currents.

[第5実施例]
第5実施例は、電流測定部36の変形例に関する。第5実施例は、上述した第1〜第4実施例のいずれかとともに実施できる。ここでは、第1実施例とともに実施する場合について説明する。
[Fifth embodiment]
The fifth embodiment relates to a modification of the current measuring unit 36. The fifth embodiment can be implemented together with any of the first to fourth embodiments described above. Here, the case where it implements with 1st Example is demonstrated.

図17は、第5実施例におけるゲーム機4と正規カートリッジ2の要部の構成を説明する図である。図17の構成のうち、第1実施例における図2の構成と同じ構成には同じ符号が付してある。ここでは、第1実施例と異なる点について説明する。   FIG. 17 is a diagram illustrating the configuration of the main parts of the game machine 4 and the regular cartridge 2 in the fifth embodiment. In the configuration of FIG. 17, the same reference numerals are given to the same configurations as the configurations of FIG. 2 in the first embodiment. Here, differences from the first embodiment will be described.

第5実施例では、電流測定部36は、ADコンバータを有する。メイン制御部12は、たとえば、所定のイベントが発生したときに、電流値を要求するための制御信号Ireqをアドレス・コマンド制御部34に入力する。すると、アドレス・コマンド制御部34は、制御信号Ireqを電流測定部36に入力する。   In the fifth embodiment, the current measurement unit 36 includes an AD converter. For example, when a predetermined event occurs, the main control unit 12 inputs a control signal Ireq for requesting a current value to the address / command control unit 34. Then, the address / command control unit 34 inputs the control signal Ireq to the current measurement unit 36.

電流測定部36は、制御信号Ireqに応答して、入力される動作電流に応じた電圧をデジタル値に変換し、動作電流の電流値を示す電流値信号IOUTとしてアドレス・コマンド制御部34に入力する。ここでは、電流測定部36は、その分解能に応じた精度で動作電流の電流値を測定し、電流値を示す電流値信号IOUTを出力する。   In response to the control signal Ireq, the current measuring unit 36 converts a voltage corresponding to the input operating current into a digital value, and inputs it to the address / command control unit 34 as a current value signal IOUT indicating the current value of the operating current. To do. Here, the current measuring unit 36 measures the current value of the operating current with accuracy according to the resolution, and outputs a current value signal IOUT indicating the current value.

アドレス・コマンド制御部34は、期待電流に対応する電流値信号IOUTが入力されたとき、つまり正規カートリッジ2が接続されたときには、通常動作を実行する。期待電流は、たとえばリセット信号RESET解除時であれば待機電流である。あるいは、第2、第3実施例との組合せの場合、パワーダウンモード時の動作電流や、電流生成回路38により生成される電流であってもよい。一方、アドレス・コマンド制御部34は、期待電流に対応する信号IOUTが入力されないとき、つまり不正カートリッジ102が接続されたときには、通常動作を中止し、不正時の動作をメイン制御部12に実行させるためのエラー信号ERRを出力する。   The address / command control unit 34 performs normal operation when the current value signal IOUT corresponding to the expected current is input, that is, when the regular cartridge 2 is connected. The expected current is, for example, a standby current when the reset signal RESET is released. Alternatively, in the case of a combination with the second and third embodiments, an operating current in the power down mode or a current generated by the current generation circuit 38 may be used. On the other hand, when the signal IOUT corresponding to the expected current is not input, that is, when the illegal cartridge 102 is connected, the address / command control unit 34 stops the normal operation and causes the main control unit 12 to execute the operation at the illegal time. An error signal ERR is output.

このような第5実施例では、基準電流に対する動作電流の大小により動作電流が期待電流か否かを判定する場合より、精度よく動作電流が期待電流と一致するか否かを判定することができ、したがって正規カートリッジ2または不正カートリッジ102を判別することができる。また、複数のタイミングで異なる期待電流か否かを判定する場合、電流測定部36の分解能に応じ、電流値が期待電流と一致するか否かを判定することができる。よって、たとえば第4実施例で示した電流測定部36の場合より精度良く判定が行える。   In the fifth embodiment, it is possible to determine whether or not the operating current matches the expected current more accurately than when determining whether or not the operating current is the expected current based on the magnitude of the operating current with respect to the reference current. Therefore, the regular cartridge 2 or the illegal cartridge 102 can be determined. Further, when determining whether or not the expected currents are different at a plurality of timings, it can be determined whether or not the current value matches the expected current according to the resolution of the current measuring unit 36. Therefore, for example, the determination can be made with higher accuracy than in the case of the current measuring unit 36 shown in the fourth embodiment.

図18は、第5実施例におけるゲーム機4の動作を説明する図である。図19は、第5実施例において、アドレス・コマンド制御部34に入出力される各信号の例を示す図である。図19には、横軸を時間軸として、アドレス・コマンド制御部34から出力されるクロック信号CLK、メイン制御部12から電流測定部36及びアドレス・コマンド制御部34に入力される電流要求信号Ireq、電流測定部36からアドレス・コマンド制御部34に入力される信号IOUT、及びアドレス・コマンド制御部34からメイン制御部12に入力されるエラー信号ERRが示される。また、図19では、図18の手順に対応するタイミングには図18と同じ符号が付してある。   FIG. 18 is a diagram for explaining the operation of the game machine 4 in the fifth embodiment. FIG. 19 is a diagram illustrating examples of signals input to and output from the address / command control unit 34 in the fifth embodiment. In FIG. 19, the horizontal axis is the time axis, the clock signal CLK output from the address / command control unit 34, and the current request signal Ireq input from the main control unit 12 to the current measurement unit 36 and the address / command control unit 34. The signal IOUT input from the current measurement unit 36 to the address / command control unit 34 and the error signal ERR input from the address / command control unit 34 to the main control unit 12 are shown. In FIG. 19, the timings corresponding to the procedure in FIG.

図18に従い、図19を参照しつつゲーム機4の動作を説明する。アドレス・コマンド制御部34は、電源が投入されて(S40)通常動作行っているときに(S42)、メイン制御部12から制御信号Ireqが入力されて電流値が要求されると、これを電流測定部36に入力する(S44)。すると、電流測定部36はこれに応答して電流値を示す信号IOUTを出力するので、アドレス・コマンド制御部34は信号IOUTにより電流値を取得する(S46)。そして、アドレス・コマンド制御部34は、電流値が期待電流と一致するときには(S48の「一致」)、通常動作を実行する(S52)。一方、期待電流と不一致のときには(S48の「不一致」)、アドレス・コマンド制御部34は、不正カートリッジ102に対する通常動作を中止し、エラー信号ERRをメイン制御部12に出力する(S54)。そして、メイン制御部12は、不正動作時の動作を実行する(S56)。   The operation of the game machine 4 will be described according to FIG. 18 with reference to FIG. When the power is turned on (S40) and the normal operation is being performed (S42), the address / command control unit 34 receives the control signal Ireq from the main control unit 12 and requests a current value. It inputs into the measurement part 36 (S44). Then, in response to this, the current measuring unit 36 outputs the signal IOUT indicating the current value, and the address / command control unit 34 acquires the current value from the signal IOUT (S46). When the current value matches the expected current (“match” in S48), the address / command control unit 34 performs a normal operation (S52). On the other hand, when there is a mismatch with the expected current (“mismatch” in S48), the address / command controller 34 stops the normal operation for the illegal cartridge 102 and outputs an error signal ERR to the main controller 12 (S54). And the main control part 12 performs the operation | movement at the time of unauthorized operation | movement (S56).

上記のような手順により、確実に正規カートリッジ2または不正カートリッジ102を判別することができる。よって、不正カートリッジ102による正規ゲームプログラムの取得や、不正カートリッジ102による不正ゲームプログラムの実行を防止できる。   The regular cartridge 2 or the illegal cartridge 102 can be reliably determined by the procedure as described above. Therefore, acquisition of the regular game program by the unauthorized cartridge 102 and execution of the unauthorized game program by the unauthorized cartridge 102 can be prevented.

また、第5実施例の変形例では、第3実施例のような電流生成回路38を正規カートリッジ2に設けておき、テストエントリ信号TENにより所定の動作電流を出力させ、これが期待電流と一致するか否かにより正規カートリッジ2または不正カートリッジ102を判別してもよい。その場合において、判別のタイミングごとに異なる期待電流を用いても良い。たとえば、リセット信号RESET解除時と、所定のイベントが発生したときに電流値を取得するようにした場合、リセット信号RESET解除時に動作電流として取得する待機電流と、イベント発生時にテストエントリ信号TENを出力して取得する動作電流とで異なる期待電流を用いることができる。たとえば、アドレス・コマンド制御部34は、それぞれのタイミングで異なる期待電流を用いて、電流値がこれと一致するか否かの判断を行う。さらに、電流生成回路38を、テストエントリ信号TENのレベルやデジタル値に応じて異なる電流を生成するように構成しておき、テストエントリ信号TENごとに、取得する電流とこれに対する基準電流とを変更してもよい。そうすることで、期待電流と判別のタイミングの組合せ数を増加させることができる。よって、より高い確度で、正規カートリッジ2または不正カーとリッジ102を判別することができる。   In the modification of the fifth embodiment, a current generating circuit 38 as in the third embodiment is provided in the regular cartridge 2, and a predetermined operating current is output by the test entry signal TEN, which matches the expected current. Whether the regular cartridge 2 or the illegal cartridge 102 may be determined. In that case, a different expected current may be used for each determination timing. For example, when the reset signal RESET is released and when a current value is acquired when a predetermined event occurs, a standby current acquired as an operating current when the reset signal RESET is released, and a test entry signal TEN is output when the event occurs Thus, an expected current that is different from the operating current acquired can be used. For example, the address / command control unit 34 uses a different expected current at each timing to determine whether or not the current value matches this. Further, the current generation circuit 38 is configured to generate different currents according to the level or digital value of the test entry signal TEN, and the current to be acquired and the reference current corresponding thereto are changed for each test entry signal TEN. May be. By doing so, the number of combinations of expected current and determination timing can be increased. Therefore, the regular cartridge 2 or the illegal car and the ridge 102 can be discriminated with higher accuracy.

上述したとおり、本実施形態によれば、不正カートリッジによる正規ゲームプログラムの取得や、不正カートリッジによる不正ゲームプログラムの実行を防止できる。   As described above, according to the present embodiment, it is possible to prevent the acquisition of a regular game program using an unauthorized cartridge and the execution of the unauthorized game program using an unauthorized cartridge.

なお、上述において、ゲーム機とカートリッジを例として説明したが、本実施形態は、かかる例に限定されない。たとえば、認証情報を格納したSIMカード(記憶装置)と、認証成功時に所定の動作を行う携帯電話機(情報処理装置)にも、本実施形態は適用できる。   In the above description, the game machine and the cartridge have been described as examples. However, the present embodiment is not limited to such examples. For example, the present embodiment can also be applied to a SIM card (storage device) that stores authentication information and a mobile phone (information processing device) that performs a predetermined operation when authentication is successful.

以上の実施の形態をまとめると、次の付記のとおりである。   The above embodiment is summarized as follows.

(付記1)
記憶装置の内部回路に電源電圧を供給する電源端子と、
前記内部回路に接続されるグランド端子と、
前記グランド端子に入力される前記内部回路の動作電流を測定する電流測定部と、
前記動作電流が期待電流であるときに前記記憶装置へのデータの入出力を実行し、前記動作電流が前記期待電流でないときに前記記憶装置へのデータの入出力を実行しない記憶制御部とを有する情報処理装置。
(Appendix 1)
A power supply terminal for supplying a power supply voltage to the internal circuit of the storage device;
A ground terminal connected to the internal circuit;
A current measuring unit for measuring an operating current of the internal circuit input to the ground terminal;
A storage control unit that executes input / output of data to / from the storage device when the operating current is an expected current, and does not execute input / output of data to / from the storage device when the operating current is not the expected current; Information processing apparatus.

(付記2)
付記1において、
前記動作電流が前記期待電流でないときに、警告を示す情報を出力する情報処理装置。
(Appendix 2)
In Appendix 1,
An information processing apparatus that outputs information indicating a warning when the operating current is not the expected current.

(付記3)
付記1または2において、
前記電流測定部は、前記内部回路が前記記憶装置内の記憶媒体にデータの読み出しまたは書き込みを開始する前に、前記動作電流を測定する情報処理装置。
(Appendix 3)
In Appendix 1 or 2,
The current measurement unit is an information processing apparatus that measures the operating current before the internal circuit starts reading or writing data to a storage medium in the storage device.

(付記4)
付記1または2において、
前記記憶制御部は前記記憶装置に前記期待電流に対応する前記動作電流を出力させるための制御信号を前記記憶装置に出力し、
前記電流測定部は、前記記憶制御部が前記制御信号を前記記憶装置に出力したときに前記動作電流を測定する情報処理装置。
(Appendix 4)
In Appendix 1 or 2,
The storage control unit outputs a control signal for causing the storage device to output the operating current corresponding to the expected current to the storage device,
The current measuring unit is an information processing apparatus that measures the operating current when the storage control unit outputs the control signal to the storage device.

(付記5)
付記4において、
前記制御信号は、前記記憶装置に前記動作電流を低下させるためのパワーダウン制御信号であり、
前記電流測定部は、前記記憶装置が前記パワーダウン制御信号に応答して出力する前記動作電流を測定する情報処理装置。
(Appendix 5)
In Appendix 4,
The control signal is a power-down control signal for reducing the operating current in the storage device,
The current measuring unit is an information processing apparatus that measures the operating current output from the storage device in response to the power-down control signal.

(付記6)
付記4において、
前記制御信号は、前記記憶装置に所定の動作電流を生成させるためのテストエントリ制御信号であり、
前記電流測定部は、前記記憶装置が前記テストエントリ制御信号に応答して出力する前記動作電流を測定する情報処理装置。
(Appendix 6)
In Appendix 4,
The control signal is a test entry control signal for causing the storage device to generate a predetermined operating current,
The current measuring unit is an information processing apparatus that measures the operating current that the storage device outputs in response to the test entry control signal.

(付記7)
付記1または2において、
前記期待電流は、前記動作電流が入力されるタイミングに応じて異なる情報処理装置。
(Appendix 7)
In Appendix 1 or 2,
The expected current is an information processing apparatus that varies depending on a timing at which the operating current is input.

(付記8)
付記1乃至7のいずれかにおいて
前記電流測定部は、前記動作電流が前記期待電流の大きさを示す電流値信号を前記記憶制御部に出力し、
前記記憶制御部は、前記電流値信号が前記期待電流に対応するときに前記記憶装置へのデータの入出力を実行し、前記電流値信号が前記期待電流に対応しないときに前記記憶装置へのデータの入出力を実行しない情報処理装置。
(Appendix 8)
In any one of appendices 1 to 7, the current measuring unit outputs a current value signal indicating the magnitude of the expected current as the operating current to the storage control unit,
The storage control unit executes input / output of data to / from the storage device when the current value signal corresponds to the expected current, and to the storage device when the current value signal does not correspond to the expected current. An information processing device that does not perform data input / output.

(付記9)
付記4において、
前記記憶装置にはゲームプログラムが格納され、
前記記憶制御部は、前記記憶装置から前記ゲームプログラムを読み出し、前記ゲームプログラムの実行中に所定のイベントが発生したときに、前記制御信号を前記記憶装置に出力する情報処理装置。
(Appendix 9)
In Appendix 4,
A game program is stored in the storage device,
The storage control unit reads the game program from the storage device, and outputs the control signal to the storage device when a predetermined event occurs during the execution of the game program.

2:正規カートリッジ、 4:ゲーム機、 10:記憶制御部、 11:接続部、
12:メイン制御部、 13:電源端子、15:グランド端子、36:電流測定部、
38:電流生成回路、102:不正カートリッジ
2: regular cartridge, 4: game machine, 10: storage control unit, 11: connection unit,
12: Main control unit, 13: Power supply terminal, 15: Ground terminal, 36: Current measurement unit,
38: current generation circuit, 102: illegal cartridge

Claims (5)

記憶装置の内部回路に電源電圧を供給する電源端子と、
前記内部回路に接続されるグランド端子と、
前記グランド端子に入力される前記内部回路の動作電流を測定する電流測定部と、
前記動作電流が前記期待電流であるときに前記記憶装置へのデータの入出力を実行し、前記動作電流が前記期待電流でないときに前記記憶装置へのデータの入出力を実行しない記憶制御部とを有する情報処理装置。
A power supply terminal for supplying a power supply voltage to the internal circuit of the storage device;
A ground terminal connected to the internal circuit;
A current measuring unit for measuring an operating current of the internal circuit input to the ground terminal;
A storage control unit that executes input / output of data to / from the storage device when the operating current is the expected current, and does not execute input / output of data to / from the storage device when the operating current is not the expected current; An information processing apparatus.
請求項1において、
前記動作電流が前記期待電流でないときに、警告を示す情報を出力する情報処理装置。
In claim 1,
An information processing apparatus that outputs information indicating a warning when the operating current is not the expected current.
請求項1または2において、
前記電流測定部は、前記内部回路が前記記憶装置内の記憶媒体にデータの読み出しまたは書き込みを開始する前に、前記動作電流を測定する情報処理装置。
In claim 1 or 2,
The current measurement unit is an information processing apparatus that measures the operating current before the internal circuit starts reading or writing data to a storage medium in the storage device.
請求項1または2において、
前記記憶制御部は前記記憶装置に前記期待電流に対応する前記動作電流を出力させるための制御信号を前記記憶装置に出力し、
前記電流測定部は、前記記憶制御部が前記制御信号を前記記憶装置に出力したときに前記動作電流を測定する情報処理装置。
In claim 1 or 2,
The storage control unit outputs a control signal for causing the storage device to output the operating current corresponding to the expected current to the storage device,
The current measuring unit is an information processing apparatus that measures the operating current when the storage control unit outputs the control signal to the storage device.
請求項1または2において、
前記期待電流は、前記動作電流が入力されるタイミングに応じて異なる情報処理装置。
In claim 1 or 2,
The expected current is an information processing apparatus that varies depending on a timing at which the operating current is input.
JP2010202850A 2010-09-10 2010-09-10 Information processor Pending JP2012059104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010202850A JP2012059104A (en) 2010-09-10 2010-09-10 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010202850A JP2012059104A (en) 2010-09-10 2010-09-10 Information processor

Publications (1)

Publication Number Publication Date
JP2012059104A true JP2012059104A (en) 2012-03-22

Family

ID=46056104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010202850A Pending JP2012059104A (en) 2010-09-10 2010-09-10 Information processor

Country Status (1)

Country Link
JP (1) JP2012059104A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014048893A (en) * 2012-08-31 2014-03-17 Mega Chips Corp Memory system, memory device, information processor, memory system operation method, and comparison computing unit
JP2019109575A (en) * 2017-12-15 2019-07-04 株式会社メガチップス Information processing apparatus, program, and authenticity determination method of attachment apparatus
JP2020187443A (en) * 2019-05-10 2020-11-19 株式会社メガチップス Attack detection device and attack detection method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0482760U (en) * 1990-11-26 1992-07-17
JP2010072707A (en) * 2008-09-16 2010-04-02 Ricoh Co Ltd Image processor, image processing system, control program and recording medium
JP2010079410A (en) * 2008-09-24 2010-04-08 Sharp Corp Power supply device, memory device, processing apparatus, memory device decision method, software processing system, processing program, and recording medium with the processing program recorded thereon

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0482760U (en) * 1990-11-26 1992-07-17
JP2010072707A (en) * 2008-09-16 2010-04-02 Ricoh Co Ltd Image processor, image processing system, control program and recording medium
JP2010079410A (en) * 2008-09-24 2010-04-08 Sharp Corp Power supply device, memory device, processing apparatus, memory device decision method, software processing system, processing program, and recording medium with the processing program recorded thereon

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014048893A (en) * 2012-08-31 2014-03-17 Mega Chips Corp Memory system, memory device, information processor, memory system operation method, and comparison computing unit
JP2019109575A (en) * 2017-12-15 2019-07-04 株式会社メガチップス Information processing apparatus, program, and authenticity determination method of attachment apparatus
JP2020187443A (en) * 2019-05-10 2020-11-19 株式会社メガチップス Attack detection device and attack detection method
JP7235586B2 (en) 2019-05-10 2023-03-08 株式会社メガチップス Attack detection device

Similar Documents

Publication Publication Date Title
US20210182974A1 (en) Method for offering a protection policy for a mobile device
JP4562759B2 (en) Access control apparatus, access control method, and access control program
EP3287800B1 (en) Jtag debug apparatus and jtag debug method
US8694830B2 (en) Debug registers for halting processor cores after reset or power off
US7643369B2 (en) Information processing apparatus, memory unit erroneous write preventing method, and information processing system
US20090183245A1 (en) Limited Functionality Mode for Secure, Remote, Decoupled Computer Ownership
US20180217752A1 (en) Flash controller and control method for flash controller
JP2010079410A (en) Power supply device, memory device, processing apparatus, memory device decision method, software processing system, processing program, and recording medium with the processing program recorded thereon
KR20080003539A (en) Method and system for communicating between image forming apparatus and non-volatile memory in consumption goods
CN107290650B (en) BIST logic circuit, low-power-consumption chip, memory testing method and electronic equipment
JP2008009721A (en) Evaluation system and evaluation method thereof
JP2012059104A (en) Information processor
JP2001035192A (en) Integrated circuit incorporating memory and test method for the same
JP2011053065A (en) Test apparatus, test method, program, and interface circuit
JP2006318485A (en) Fingerprint data creating device and program
JP2011154582A (en) Integrated circuit device and electronic equipment
JP5867173B2 (en) Power activation control device
US9535812B2 (en) Apparatus and method to track device usage
TW201117009A (en) Testing method for System Management Bus
TWI760673B (en) Electronic device
JP6471018B2 (en) Control device, storage device, memory controller, sub-processor, main processor, and control program
JP2006350889A (en) Semiconductor integrated circuit
JP5477574B2 (en) Integrated circuit device, electronic equipment
JP5710543B2 (en) Semiconductor integrated circuit
US9372639B2 (en) System LSI capable of erasing internally stored program and program erasing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130529

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140415

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140812