JP4945287B2 - Hard random number generator error detection method - Google Patents

Hard random number generator error detection method Download PDF

Info

Publication number
JP4945287B2
JP4945287B2 JP2007091527A JP2007091527A JP4945287B2 JP 4945287 B2 JP4945287 B2 JP 4945287B2 JP 2007091527 A JP2007091527 A JP 2007091527A JP 2007091527 A JP2007091527 A JP 2007091527A JP 4945287 B2 JP4945287 B2 JP 4945287B2
Authority
JP
Japan
Prior art keywords
random number
hard random
register
game
generation circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007091527A
Other languages
Japanese (ja)
Other versions
JP2008245956A (en
Inventor
秀樹 山下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Heiwa Corp
Original Assignee
Heiwa Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Heiwa Corp filed Critical Heiwa Corp
Priority to JP2007091527A priority Critical patent/JP4945287B2/en
Publication of JP2008245956A publication Critical patent/JP2008245956A/en
Application granted granted Critical
Publication of JP4945287B2 publication Critical patent/JP4945287B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Slot Machines And Peripheral Devices (AREA)

Description

本発明は、ハード乱数発生回路のエラー検出方法に関し、より詳細には、ハード乱数発生回路で生成されたハード乱数について、ビット単位で異常を検出することができるエラー検出方法に関する。   The present invention relates to an error detection method for a hard random number generation circuit, and more particularly to an error detection method capable of detecting an abnormality in bit units for a hard random number generated by a hard random number generation circuit.

従来、弾球遊技機または回胴式遊技機などの遊技機においては、所定のタイミングで乱数を発生させて抽選、すなわち役の当選及び落選(はずれ、役の不当選)を決定している。乱数の発生は、ソフトウェア・プログラムによってインクリメントカウンタを実現し、そのカウント値から発生させるソフト乱数と、ハードウェアであるインクリメントカウンタを用いて発生させるハード乱数とがある。ソフト乱数は、外部クロックと同期してインクリメントカウンタが動作してしまうために不正行為が行われやすい。また、ソフト乱数の発生は、遊技機内のCPUの処理能力に制限されるので、遊技機内の抽選は、ハード乱数が用いられることが多い。   Conventionally, in a gaming machine such as a ball game machine or a revolving game machine, a random number is generated at a predetermined timing to determine a lottery, that is, a winning combination and a defeat (losing, unfair winning combination). There are two types of random number generation: a soft random number generated from a count value obtained by realizing an increment counter by a software program and a hard random number generated using an increment counter that is hardware. Soft random numbers tend to be fraudulent because the increment counter operates in synchronization with the external clock. In addition, since the generation of soft random numbers is limited to the processing capability of the CPU in the gaming machine, hard random numbers are often used for lottery in the gaming machine.

一方、遊技機内の抽選においてハード乱数を用いる場合、ハードウェアであるインクリメントカウンタに異常があっても、ハード乱数の異常を検出するのが困難であった。特に、ハード乱数の特定のビットのみに不具合が生じた場合には、当選の発生頻度が設計値と異なってしまう。そこで、インクリメントカウンタから出力されるカウンタ値の上位ビットと下位ビットのそれぞれに比較手段を備えたハード乱数監視装置が知られている(例えば、特許文献1参照)。この装置は、ハード乱数の上位ビットおよび下位ビットのそれぞれを、以前に取得したハード乱数の上位ビットおよび下位ビットのそれぞれと比較することにより、ハード乱数の異常を検出する。   On the other hand, when a hard random number is used in a lottery in a gaming machine, it is difficult to detect an abnormality in the hard random number even if there is an abnormality in the increment counter that is hardware. In particular, when a problem occurs only in a specific bit of a hard random number, the occurrence frequency of winning is different from the design value. Therefore, a hard random number monitoring device is known in which comparison means is provided for each of the upper and lower bits of the counter value output from the increment counter (see, for example, Patent Document 1). This device detects an abnormality of the hard random number by comparing each of the upper bit and the lower bit of the hard random number with each of the upper bit and the lower bit of the previously acquired hard random number.

特開2005−168562号公報(第4〜11頁、第3〜10図)Japanese Patent Laying-Open No. 2005-168562 (pages 4-11, FIGS. 3-10)

しかしながら、従来のハード乱数監視装置では、ハード乱数の上位ビットおよび下位ビットのビットセットのそれぞれに対して異常の検出が行われるだけであった。すなわち、いずれかのビットセット内において一箇所でもビット値が変更されていれば、ハード乱数の異常とはみなされない。いずれかのビットセット内の特定の1ビットのみが全く変化しないような異常状態を、ハード乱数の異常として検出することができないという問題があった。   However, the conventional hard random number monitoring device only detects an abnormality for each of the upper bit and lower bit set of the hard random number. That is, if the bit value is changed even at one place in any of the bit sets, it is not regarded as a hard random number abnormality. There is a problem that an abnormal state in which only one specific bit in any bit set does not change cannot be detected as a hard random number abnormality.

また、従来のハード乱数監視装置においては、以前に取得したハード乱数と今回取得したハード乱数との比較を行うので、遊技を2回以上実行しないと異常を検出することができない。すなわち、遊技がされていない状態では、ハード乱数の異常を検出することができない。さらに、遊技中に判定処理を入れることは、遊技を中断することになり、一遊技の最短時間に影響を与えるという問題もあった。   Moreover, in the conventional hard random number monitoring apparatus, since the hard random number acquired previously is compared with the hard random number acquired this time, an abnormality cannot be detected unless the game is executed twice or more. That is, in the state where no game is played, it is not possible to detect an abnormality of the hard random number. Furthermore, there is a problem that putting the determination process in the game interrupts the game and affects the shortest time of one game.

本発明は、このような問題に鑑みてなされたもので、その目的とするところは、遊技に影響を与えることなく、ハード乱数について、ビット単位で異常を検出することができるハード乱数発生回路のエラー検出方法を提供することにある。   The present invention has been made in view of such a problem, and an object of the present invention is to provide a hard random number generation circuit capable of detecting abnormality in bit units for hard random numbers without affecting the game. To provide an error detection method.

本発明は、このような目的を達成するために、請求項1に記載の発明は、遊技機の当落を抽選するためのハード乱数を所定のタイミングで発生するハード乱数発生回路を備えた遊技機における、前記ハード乱数発生回路の異常を検出するためのエラー検出方法において、前記遊技機の中央処理装置が、前記ハード乱数発生回路から複数のハード乱数を取得し、前記複数のハード乱数のビット演算を行って、前記ハード乱数を構成する全てのビットが更新されたか否かを確認することにより、前記ハード乱数発生回路の異常の有無を判定し、前記ビット演算は、取得した第1のハード乱数と、全てのビットが0のレジスタAと論理和演算を行って前記レジスタAに格納する第1ステップと、前記第1のハード乱数と、全てのビットが1のレジスタBと排他的論理和演算を行って前記レジスタBに格納する第2ステップと、該レジスタBと、全てのビットが0のレジスタCと論理和演算を行って前記レジスタCに格納する第3ステップと、取得した第2のハード乱数と、前記レジスタAと論理和演算を行って前記レジスタAに格納する第4ステップと、前記第2のハード乱数と、全てのビットが1のレジスタBと排他的論理和演算を行って前記レジスタBに格納する第5ステップと、該レジスタBと、前記レジスタCと論理和演算を行って前記レジスタCに格納する第6ステップとを含み、前記第4ステップから前記第6ステップを、取得した前記複数のハード乱数の数から1を引いた回数繰り返し、前記レジスタAおよび前記レジスタCの全てのビットが1の場合に、前記ハード乱数発生回路に異常が無いことを判定することを特徴とする。 Game present invention, in order to achieve the object, a first aspect of the present invention, which includes a hard random number generating circuit which occurs the hard random number at a predetermined timing to draw the Toraku game machine In the error detection method for detecting an abnormality of the hard random number generation circuit in a machine, the central processing unit of the gaming machine acquires a plurality of hard random numbers from the hard random number generation circuit, and the plurality of hard random number bits It is determined whether or not there is an abnormality in the hard random number generation circuit by confirming whether or not all bits constituting the hard random number have been updated by performing an operation, and the bit operation is performed using the acquired first hardware A first step of performing a logical OR operation with a register A in which all the bits are 0 and storing them in the register A, the first hard random number, and a register in which all the bits are 1 A second step of performing an exclusive OR operation with B and storing it in the register B, and a third step of performing an OR operation with the register B and a register C in which all bits are 0 and storing in the register C And the obtained second hard random number, the fourth step of performing an OR operation with the register A and storing it in the register A, the second hard random number, and the register B in which all the bits are 1 are exclusive. A fifth step of performing a logical OR operation and storing in the register B, and a sixth step of performing a logical OR operation with the register B and storing in the register C, the fourth step The sixth step is repeated a number of times obtained by subtracting 1 from the obtained number of the hard random numbers, and when all the bits of the register A and the register C are 1, the hard random number And judging that there is no abnormality in the raw circuit.

請求項2に記載の発明は、請求項1に記載のハード乱数発生回路のエラー検出方法において1回の乱数更新確認処理が、前記遊技機における一遊技の中で行われ、前記乱数更新確認処理は、前回の前記一遊技の終了から次の一遊技の前記ハード乱数を用いた抽選処理を行うまでの間に実行されることを特徴とする。 According to a second aspect of the present invention, in the error detection method of the hard random number generation circuit according to the first aspect , one random number update confirmation process is performed in one game in the gaming machine, and the random number update confirmation is performed. The process is performed between the end of the previous one game and the lottery process using the hard random number of the next one game.

請求項3に記載の発明は、請求項1に記載のハード乱数発生回路のエラー検出方法において1回の乱数更新確認処理が、前記遊技機における一遊技の中で行われ、前記乱数更新確認処理は、前記抽選処理を行った後の待機処理の間に実行されることを特徴とする。 According to a third aspect of the present invention, in the error detection method of the hard random number generation circuit according to the first aspect , one random number update confirmation process is performed in one game in the gaming machine, and the random number update confirmation is performed. process, characterized in that it is performed during the pre Ki抽 election process a waiting process after.

請求項4に記載の発明は、請求項2または3に記載のハード乱数発生回路のエラー検出方法において、前記一遊技は、遊技価値の投入の検出から払出し処理までを表すことを特徴とするAccording to a fourth aspect of the present invention, in the error detection method of the hard random number generation circuit according to the second or third aspect, the one game represents from detection of input of game value to payout processing .

以上説明したように、本発明によれば、一遊技の中で行われる1回の乱数更新確認処理であって、遊技機の中央処理装置が、ハード乱数発生回路から複数のハード乱数を取得し、複数のハード乱数のビット演算を行って、ハード乱数を構成する全てのビットが更新されたか否かを確認することにより、ハード乱数発生回路の異常の有無を判定するので、ハード乱数について、ビット単位で異常を検出することが可能となる。   As described above, according to the present invention, the random number update confirmation process is performed once in one game, and the central processing unit of the gaming machine acquires a plurality of hard random numbers from the hard random number generation circuit. Since it is determined whether or not there is an abnormality in the hard random number generation circuit by performing bit operations on a plurality of hard random numbers and checking whether all the bits constituting the hard random numbers have been updated, An abnormality can be detected in units.

また、乱数更新確認処理を、前回の一遊技の終了から次の一遊技のハード乱数を用いた抽選処理を行うまでの間、またはハード乱数を用いた抽選処理を行った後の待機処理の間に実行することにより、遊技に影響を与えることなく、ハード乱数発生回路のエラー検出を行うことが可能となる。   In addition, the random number update confirmation process is performed from the end of the previous game until the lottery process using the hard random number of the next one game, or the standby process after the lottery process using the hard random number is performed. By executing the above, error detection of the hard random number generation circuit can be performed without affecting the game.

以下、図面を参照しながら本発明の実施形態について詳細に説明する。本実施形態では、回胴式遊技機のハード乱数発生回路を例に説明するが、弾球遊技機その他の遊技機のハード乱数発生回路にも適用することができる。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the present embodiment, a hard random number generation circuit of a revolving game machine will be described as an example, but it can also be applied to a hard random number generation circuit of a ball game machine or other game machines.

図1は、本発明の一実施形態にかかる回胴式遊技機の外観を示す図である。本実施形態の回胴式遊技機100は、内部で回転するリール(回胴)の図柄を表示する表示窓101〜103と、遊技上の価値として使用するメダルが投入されるメダル投入口104と、クレジット数を表示するクレジット数表示装置115と、ベットボタン116〜118と、スタートレバー119と、停止ボタン120〜122とを有している。表示窓101〜103には、図柄停止の有効ラインとなりうる5本のラインを表示する入賞ライン表示105〜109が施され、投入されたメダル枚数により有効となったラインを表示する有効ラインLED110〜114が備えられている。   FIG. 1 is a diagram showing an external appearance of a swivel type gaming machine according to an embodiment of the present invention. The spinning cylinder gaming machine 100 of the present embodiment includes display windows 101 to 103 that display symbols of a reel (rotating cylinder) that rotates inside, and a medal slot 104 into which medals used as gaming values are inserted. , A credit amount display device 115 for displaying the credit amount, bet buttons 116 to 118, a start lever 119, and stop buttons 120 to 122. In the display windows 101 to 103, winning line displays 105 to 109 for displaying five lines that can be effective lines for symbol stop are provided, and effective lines LEDs 110 to 110 for displaying lines that are activated depending on the number of inserted medals. 114 is provided.

クレジット数表示装置115は、7セグメントLED等で、メダル投入口104からメダルが投入された場合の投入メダル数、又は役に対応して払い出されるメダルの払出枚数を加算表示する。ベットボタン116が押下されると、クレジットされているメダルが1枚投入され、クレジット数表示装置115に表示されているクレジット数を1減少させ、有効ラインLED110を点灯させる。ベットボタン117が押下されると、クレジットされているメダルが2枚投入され、クレジット数表示装置115に表示されているクレジット数を2減少させ、有効ラインLED110〜112を点灯させる。ベットボタン118が押下されると、クレジットされているメダルが3枚投入され、クレジット数表示装置115に表示されているクレジット数を3減少させ、有効ラインLED110〜114を点灯させる。   The credit number display device 115 displays the addition of the number of inserted medals when a medal is inserted from the medal insertion slot 104 or the number of medals to be paid out corresponding to the combination using a 7-segment LED or the like. When the bet button 116 is pressed, one credited medal is inserted, the credit number displayed on the credit number display device 115 is decreased by 1, and the effective line LED 110 is turned on. When the bet button 117 is pressed, two credited medals are inserted, the credit number displayed on the credit amount display device 115 is decreased by 2, and the effective lines LEDs 110 to 112 are turned on. When the bet button 118 is pressed, three credited medals are inserted, the number of credits displayed on the credit number display device 115 is decreased by 3, and the effective lines LEDs 110 to 114 are turned on.

遊技者がスタートレバー119を操作(スタートレバーON)すると、左から順に横3列に並んだ表示窓101〜103内のリールが上から下向きへ回転を始める。リールの回転と同時に、主制御部(後述)において抽選が行われ、役の当選及び落選が決定される。停止ボタン120〜122が押下されると、それぞれ左から順に回転するリールの停止の契機が与えられる。   When the player operates the start lever 119 (start lever ON), the reels in the display windows 101 to 103 arranged in three horizontal rows in order from the left start to rotate from top to bottom. Simultaneously with the rotation of the reel, a lottery is performed in a main control unit (described later), and winning / losing of a combination is determined. When the stop buttons 120 to 122 are pressed, an opportunity to stop the reels rotating in order from the left is given.

また、回胴式遊技機100は、払出されるメダル枚数を表示する払出数表示装置123と、メダルが放出されるメダル放出口124と、放出されたメダルをためておくメダル受皿125と、遊技状態を報知する状態ランプ126と、クレジットを精算する精算ボタン128とを有している。さらに、遊技者に対する遊技の演出のために、回胴式遊技機100は、効果音が出力されるスピーカ127と、抽選が当選していることを示す告知ランプ129と、遊技者が獲得可能なメダル枚数を示すゲームカウンタ表示装置130と、演出による画像が表示される画像表示装置131とを有している。   In addition, the swing type gaming machine 100 includes a payout number display device 123 that displays the number of medals to be paid out, a medal discharge port 124 from which medals are released, a medal tray 125 for storing the released medals, and a game It has a status lamp 126 for notifying the status and a checkout button 128 for checking out the credit. Further, in order to produce a game for the player, the revolving game machine 100 can acquire a speaker 127 that outputs sound effects, a notification lamp 129 that indicates that the lottery is won, and the player can acquire. It has a game counter display device 130 indicating the number of medals, and an image display device 131 on which an effect image is displayed.

図2は、本発明の一実施形態にかかる回胴式遊技機の制御回路を示すブロック図である。本実施形態の回胴式遊技機の制御回路は、主制御部201と、主制御部201の出力に接続され、演出に関する処理を実行する副制御部202とに分けられる。主制御部201は、中央処理装置(CPU)211と、読取専用のデータが格納される読取専用記憶領域(ROM)212と、読み書き可能なデータが格納される一時記憶領域(RAM)213と、カウンタ値を出力するハードウェア(例えばIC)であるインクリメントカウンタ214とを備え、それぞれバスを介して接続されている。   FIG. 2 is a block diagram showing a control circuit of the spinning cylinder game machine according to the embodiment of the present invention. The control circuit of the spinning-reel game machine of this embodiment is divided into a main control unit 201 and a sub-control unit 202 that is connected to the output of the main control unit 201 and executes processing related to effects. The main control unit 201 includes a central processing unit (CPU) 211, a read-only storage area (ROM) 212 that stores read-only data, a temporary storage area (RAM) 213 that stores readable and writable data, An increment counter 214, which is hardware (for example, an IC) that outputs a counter value, is connected to each other via a bus.

また、制御回路には、上述したボタン、レバー等の状態変化を検出するための信号入力を受信する入力ポート215と、上述したリール、LED、表示装置等および副制御部202を制御するための信号出力を送信する出力ポート216とが備えられている。   In addition, the control circuit controls the input port 215 that receives a signal input for detecting the state change of the above-described buttons, levers, etc., and the above-described reel, LED, display device, etc. And an output port 216 for transmitting a signal output.

図3に、本発明の一実施例にかかるハード乱数発生回路の詳細を示す。遊技者がスタートレバー119をONすると、STTSW信号が主制御部201のラッチ回路221に送信される。ラッチ回路221の出力により、インクリメントカウンタ214を構成する2つの8ビットカウンタ214a,214bがインクリメントを開始する。CPU211は、所定のタイミングで8ビットカウンタ214a,214bにチップセレクト(CS)信号を送信し、16ビットのカウンタ値を、データバス222を介して取り込む。   FIG. 3 shows details of a hard random number generation circuit according to an embodiment of the present invention. When the player turns on the start lever 119, an STTSW signal is transmitted to the latch circuit 221 of the main control unit 201. In response to the output of the latch circuit 221, the two 8-bit counters 214a and 214b constituting the increment counter 214 start incrementing. The CPU 211 transmits a chip select (CS) signal to the 8-bit counters 214 a and 214 b at a predetermined timing, and takes in a 16-bit counter value via the data bus 222.

すなわち、主制御部201のインクリメントカウンタ214は、16進数の0からFFFFまでの値を、単に1ずつインクリメントし、CPU211が所定のタイミングでインクリメントカウンタ214から読み出した16ビットのカウンタ値がハード乱数となる。CPU211は、取り込んだカウンタ値を、RAM213に格納しておく。CPU211は、RAM213に格納されたカウンタ値とROM212に格納された抽選テーブルの値とを比較する。抽選テーブルには、各々の役に応じた値が格納されており、いずれかに一致した場合に、該当する役に当選したと決定される。   That is, the increment counter 214 of the main control unit 201 simply increments the value from 0 to FFFF in hexadecimal by 1 and the 16-bit counter value read from the increment counter 214 by the CPU 211 at a predetermined timing is a hard random number. Become. The CPU 211 stores the fetched counter value in the RAM 213. The CPU 211 compares the counter value stored in the RAM 213 with the value of the lottery table stored in the ROM 212. In the lottery table, values corresponding to each combination are stored, and when the value matches any one, it is determined that the corresponding combination is won.

なお、本実施例のハード乱数発生回路は、CPUとカウンタとを個別の素子で構成しているが、CPUの内部に設けられたカウンタ回路を使用してもよいし、16ビットのカウンタ1個を使用してもよい。   In the hard random number generation circuit of this embodiment, the CPU and the counter are composed of separate elements. However, a counter circuit provided in the CPU may be used, or one 16-bit counter may be used. May be used.

図4は、本発明の第1の実施例にかかるハード乱数発生回路のエラー検出方法を示すフローチャートである。エラー検出方法は、主制御部201のROM212に、プログラムとして格納されており、主制御部201のメインループ処理に組み込まれている。メインループ処理は、一遊技ごとに行われるループ処理である。回胴式遊技機の電源が投入されると、主制御部201は初期化処理を行い(S301)、後述する乱数更新確認処理、すなわちハード乱数発生回路のエラー検出を行う(S302)。遊技価値であるメダルの投入が検出されると、一遊技の開始となり、押下されたベットボタンに応じて処理が行われ(S303)、スタートレバーがONされるのを待つ。   FIG. 4 is a flowchart showing an error detection method of the hard random number generation circuit according to the first exemplary embodiment of the present invention. The error detection method is stored as a program in the ROM 212 of the main control unit 201 and is incorporated in the main loop process of the main control unit 201. The main loop process is a loop process performed for each game. When the rotary gaming machine is turned on, the main control unit 201 performs an initialization process (S301), and performs a random number update confirmation process described later, that is, an error detection of a hard random number generation circuit (S302). When insertion of a medal as a game value is detected, one game is started, processing is performed according to the pressed bet button (S303), and the start lever is turned on.

スタートレバーがONされると(S304)、リプレイ投入処理(S305)が行われた後、ハード乱数発生回路を用いて、乱数抽選処理が行われる(S306)。また、スタートレバーONを契機として、左から順に横3列に並んだ表示窓内のリールが回転を始め(S307)、停止ボタンの押下に従ってリールの停止が行われる(S308)。リールが停止すると、抽選の結果に従って払出しの処理が行われ(S309)、一遊技が終了して乱数更新確認処理(S302)に戻る。   When the start lever is turned on (S304), a replay insertion process (S305) is performed, and then a random number lottery process is performed using a hard random number generation circuit (S306). In response to the start lever being turned on, the reels in the display windows arranged in three horizontal rows in order from the left start to rotate (S307), and the reels are stopped according to the pressing of the stop button (S308). When the reels stop, payout processing is performed according to the lottery result (S309), one game ends, and the process returns to the random number update confirmation processing (S302).

第1の実施例では、乱数更新確認処理は、メダル投入処理(S303)の前に行われる。すなわち、CPU211が待機状態のときに処理を行う。乱数更新確認処理は、数μsの処理なので、初期化処理の終了後または前回の一遊技の終了から次の一遊技の乱数抽選処理の直前までの間ならば、いつ行っても構わない。第1の実施例によれば、一遊技ごとに乱数更新確認処理を行うことができ、リールが回転を始めるまでの間、CPU211の処理の空き時間を利用して行うので、遊技を中断することもない。   In the first embodiment, the random number update confirmation process is performed before the medal insertion process (S303). That is, processing is performed when the CPU 211 is in a standby state. Since the random number update confirmation process is a process of several μs, it may be performed at any time after the end of the initialization process or between the end of the previous one game and the random number lottery process of the next one game. According to the first embodiment, the random number update confirmation process can be performed for each game, and the game is interrupted because it is performed using the idle time of the processing of the CPU 211 until the reel starts to rotate. Nor.

図5は、本発明の第2の実施例にかかるハード乱数発生回路のエラー検出方法を示すフローチャートである。第2の実施例では、回胴回転処理を始める直前に乱数更新確認処理を実行する。初期化処理(S401)、メダル投入処理・ベットボタン処理(S402)、スタートレバー押下処理(S403)、リプレイ投入処理(S404)、乱数抽選処理(S405)の手順、内容は、第1の実施例と同じである。ここで、回胴式遊技機は、一遊技と一遊技の間隔を4.1秒以上とすることが定められているので、前回の回胴回転処理、すなわちリールの回転開始時点から、次にリールを回転させるまでの間が、4.1秒となるように待機処理がなされている(S406)。そこで、この待機処理の間に乱数更新確認処理を行う(S407)。以下、回胴回転処理(S408)、回胴停止処理(S409)、払出し処理(S410)が第1の実施例と同じ手順で行われ、メダル投入処理(S402)の前に戻る。   FIG. 5 is a flowchart showing an error detection method of the hard random number generation circuit according to the second exemplary embodiment of the present invention. In the second embodiment, the random number update confirmation process is executed immediately before starting the spinning cylinder rotation process. Procedures and contents of initialization processing (S401), medal insertion processing / bet button processing (S402), start lever pressing processing (S403), replay insertion processing (S404), random number lottery processing (S405) are the same as in the first embodiment. Is the same. Here, since it is determined that the interval between one game and the game is 4.1 seconds or more, the next rotation process, that is, the reel rotation start time, The waiting process is performed so that the time until the reel is rotated is 4.1 seconds (S406). Therefore, a random number update confirmation process is performed during this standby process (S407). Thereafter, the spinning cylinder rotation process (S408), the spinning cylinder stop process (S409), and the payout process (S410) are performed in the same procedure as in the first embodiment, and the process returns to before the medal insertion process (S402).

第2の実施例では、乱数更新確認処理は、待機処理中に行われる。乱数更新確認処理は、数μsの処理なので、4.1秒という一遊技の最短時間に影響を与えることなく、乱数更新確認処理を行うことができる。なお、第2の実施例では、必ずしも一遊技ごとに乱数更新確認処理を行う訳ではないが、一般的に待機処理の頻度を考慮すると、ハード乱数発生回路のエラー検出には十分である。   In the second embodiment, the random number update confirmation process is performed during the standby process. Since the random number update confirmation process is a process of several μs, the random number update confirmation process can be performed without affecting the minimum time of one game of 4.1 seconds. In the second embodiment, the random number update confirmation process is not necessarily performed for each game, but generally it is sufficient for error detection of the hard random number generation circuit in consideration of the frequency of the standby process.

図6は、本発明の一実施形態にかかる乱数更新確認処理を示すフローチャートである。上述したフローチャートのS302およびS407で行われる処理である。最初に、CPU211は、RAM213に、それぞれ16ビットのカウンタ値格納領域(レジスタX)、ビット値0確認用領域A(レジスタA)、ビット値1確認用領域B(レジスタB)およびビット値1確認用領域C(レジスタC)を設定する。CPU211は、ビット値0確認用領域Aおよびビット値1確認用領域Cは全て0に、ビット値1確認用領域Bは全て1に初期設定する(S501)。また、処理回数も設定しておく。   FIG. 6 is a flowchart showing random number update confirmation processing according to an embodiment of the present invention. This is processing performed in S302 and S407 of the flowchart described above. First, the CPU 211 stores a 16-bit counter value storage area (register X), a bit value 0 confirmation area A (register A), a bit value 1 confirmation area B (register B), and a bit value 1 confirmation in the RAM 213, respectively. An area C (register C) is set. The CPU 211 initializes all the bit value 0 confirmation area A and the bit value 1 confirmation area C to 0, and all the bit value 1 confirmation areas B to 1 (S501). In addition, the number of processing times is also set.

CPU211は、乱数チェック処理において、ビット演算を行い(S502)、RAM213に設定した領域の更新を行う。乱数チェック処理の詳細は、図7を参照して後述する。CPU211は、ビット値0確認用領域Aを読み出して、全てのビットが0→1に変化しているか確認する(S503)。さらに、ビット値1確認用領域Cを読み出して、全てのビットが1→0に変化しているか確認する(S504)。いずれも肯定の場合は、ハード乱数発生回路に異常が無いと判定して終了する。   In the random number check process, the CPU 211 performs a bit operation (S502), and updates the area set in the RAM 213. Details of the random number check process will be described later with reference to FIG. The CPU 211 reads the bit value 0 confirmation area A and confirms whether all the bits have changed from 0 to 1 (S503). Further, the bit value 1 confirmation area C is read to confirm whether all the bits have changed from 1 to 0 (S504). If both are positive, it is determined that there is no abnormality in the hard random number generation circuit, and the process ends.

S503、S504のいずれかが否定の場合は、処理回数に達するまで(S505)、乱数チェック処理(S502)を行う。処理回数に達しても、全てのビットが0→1または1→0に変化していない場合は、乱数発生回路に異常が生じていると判定し、エラー処理を実行する(S506)。このように、乱数更新確認処理は、CPU211が、ハード乱数発生回路から複数のハード乱数を取得し、複数のハード乱数のビット演算を行って、ハード乱数を構成する全てのビットが更新されたか否かを確認することにより、ハード乱数発生回路の異常の有無を判定する。   If either S503 or S504 is negative, random number check processing (S502) is performed until the number of processing times is reached (S505). If all the bits have not changed from 0 → 1 or 1 → 0 even after the number of processing times has been reached, it is determined that an abnormality has occurred in the random number generation circuit, and error processing is executed (S506). In this way, in the random number update confirmation process, the CPU 211 acquires a plurality of hard random numbers from the hard random number generation circuit, performs bit calculation of the plurality of hard random numbers, and has updated all the bits constituting the hard random numbers. Whether or not there is an abnormality in the hard random number generation circuit is determined.

乱数更新確認処理は、例えば、処理回数=100回とすると、乱数更新確認処理用のプログラムが150サイクル程度であるとして、システムクロック=8MHzとすると、約1.8μsで終了する。従って、一遊技の中の1回の乱数更新確認処理によって、ハード乱数発生回路のエラー検出を行うことができる。   For example, if the number of processing times is 100, the random number update confirmation processing is completed in about 1.8 μs when the program for random number update confirmation processing is about 150 cycles and the system clock is 8 MHz. Therefore, the error detection of the hard random number generation circuit can be performed by one random number update confirmation processing in one game.

図7に、本発明の一実施形態にかかる乱数チェック処理を示す。図6のフローチャートのS502の処理である。また、図8に、RAM213に設定された各領域のビット演算の結果の変遷を示す。CPU211は、乱数更新確認処理の間、ラッチ回路221に制御(CONT)信号を送信し、インクリメントカウンタ214をインクリメント動作状態にしておく。CPU211は、所定のタイミングでチップセレクト(CS)信号を送信し、インクリメントカウンタ214から読み出した16ビットのカウンタ値をカウンタ値格納領域に格納する(S601)。次に、カウンタ値格納領域の内容とビット値0確認用領域Aの内容とを論理和(OR)演算し(S602)、ビット値0確認用領域Aに格納する(S603)。乱数更新確認処理の1回の処理回数ごとに、ビット値0確認用演算(S603)を行うので、少なくとも数十回の処理回数の実行により全てのビットが0→1に変化したことを確認することができる。言い換えると、数十回の実行によっても、0から変化しなかったビットがあるという異常状態を検出することができる。   FIG. 7 shows a random number check process according to an embodiment of the present invention. This is the process of S502 in the flowchart of FIG. FIG. 8 shows the transition of the result of bit operation for each area set in the RAM 213. During the random number update confirmation process, the CPU 211 transmits a control (CONT) signal to the latch circuit 221 to keep the increment counter 214 in the increment operation state. The CPU 211 transmits a chip select (CS) signal at a predetermined timing, and stores the 16-bit counter value read from the increment counter 214 in the counter value storage area (S601). Next, the contents of the counter value storage area and the contents of the bit value 0 confirmation area A are ORed (S602) and stored in the bit value 0 confirmation area A (S603). Since the bit value 0 confirmation calculation (S603) is performed every time the random number update confirmation process is performed, it is confirmed that all bits have changed from 0 to 1 by executing at least several tens of processes. be able to. In other words, it is possible to detect an abnormal state that there is a bit that has not changed from 0 even after several tens of executions.

一方、カウンタ値格納領域の内容とビット値1確認用領域Bの内容とを排他的論理和(XOR)演算し、ビット値1確認用領域Bに格納する。ビット値1確認用領域Bには、カウンタ値格納領域の内容の0と1が反転した内容が格納される。次に、ビット値1確認用領域Bの内容とビット値1確認用領域Cの内容とをOR演算し(S604)、ビット値1確認用領域Cに格納する(S605)。なお、ビット値1確認用領域Bは次の処理までに、全て1にリセットしておく。初期設定する乱数更新確認処理の1回の処理回数ごとに、ビット値1確認用演算を行うので、少なくとも数十回の処理回数の実行により全てのビットが1→0に変化したことを確認することができる。言い換えると、数十回の実行によっても、1から変化しなかったビットがあるという異常状態を検出することができる。   On the other hand, the contents of the counter value storage area and the contents of the bit value 1 confirmation area B are subjected to an exclusive OR (XOR) operation and stored in the bit value 1 confirmation area B. In the bit value 1 confirmation area B, the contents obtained by inverting the contents 0 and 1 of the counter value storage area are stored. Next, the contents of the bit value 1 confirmation area B and the contents of the bit value 1 confirmation area C are ORed (S604) and stored in the bit value 1 confirmation area C (S605). The bit value 1 confirmation area B is all reset to 1 before the next processing. Since the calculation for checking the bit value 1 is performed every time the initial random number update confirmation processing is performed, it is confirmed that all bits have changed from 1 to 0 by executing at least several tens of processing times. be able to. In other words, it is possible to detect an abnormal state in which there is a bit that has not changed from 1 even after several tens of executions.

このようにして、ハード乱数発生回路のエラー検出は、インクリメントカウンタ214の全てのビットが0→1および1→0に変化しているのを確認するので、ハード乱数の全てのビットについて、異常の有無を検出することができる。   In this way, the error detection of the hard random number generation circuit confirms that all the bits of the increment counter 214 have changed from 0 → 1 and 1 → 0. The presence or absence can be detected.

本実施形態によれば、一遊技の中の1回の乱数更新確認処理によって、ハード乱数発生回路のエラー検出を行うことができ、4.1秒という一遊技の最短時間に影響を与えることがない。また、ハード乱数について、ビット単位で異常を検出することができるので、回胴式遊技機の生産時に発生したハード乱数発生回路の不具合、市場に導入した後のハード乱数発生回路の不具合も、早期に発見することが可能なる。   According to the present embodiment, the error detection of the hard random number generation circuit can be detected by one random number update check process in one game, which affects the shortest time of one game of 4.1 seconds. Absent. In addition, since it is possible to detect abnormalities in units of hard random numbers, malfunctions in the hard random number generation circuit that occurred during the production of a revolving game machine, and problems in the hard random number generation circuit after it was introduced to the market It becomes possible to discover.

本発明の一実施形態にかかる回胴式遊技機の外観を示す図である。It is a figure which shows the external appearance of the rotary type game machine concerning one Embodiment of this invention. 本発明の一実施形態にかかる回胴式遊技機の制御回路を示すブロック図である。It is a block diagram which shows the control circuit of the rotary type game machine concerning one Embodiment of this invention. 本発明の一実施例にかかるハード乱数発生回路を示す図である。It is a figure which shows the hard random number generation circuit concerning one Example of this invention. 本発明の第1の実施例にかかるハード乱数発生回路のエラー検出方法を示すフローチャートである。It is a flowchart which shows the error detection method of the hard random number generation circuit concerning 1st Example of this invention. 本発明の第2の実施例にかかるハード乱数発生回路のエラー検出方法を示すフローチャートである。It is a flowchart which shows the error detection method of the hard random number generation circuit concerning the 2nd Example of this invention. 本発明の一実施形態にかかる乱数更新確認処理を示すフローチャートである。It is a flowchart which shows the random number update confirmation process concerning one Embodiment of this invention. 本発明の一実施形態にかかる乱数チェック処理を示すフローチャートである。It is a flowchart which shows the random number check process concerning one Embodiment of this invention. 乱数チェック処理においてRAMに設定された各領域のビット演算の結果の変遷を示す図である。It is a figure which shows the transition of the result of the bit calculation of each area | region set to RAM in the random number check process.

符号の説明Explanation of symbols

100 回胴式遊技機
101〜103 表示窓
104 メダル投入口
105〜109 入賞ライン表示
110〜114 有効ラインLED
115 クレジット数表示装置
116〜118 ベットボタン
119 スタートレバー
120〜122 停止ボタン
123 払出数表示装置
124 メダル放出口
125 メダル受皿
126 状態ランプ
127 スピーカ
128 精算ボタン
129 告知ランプ
130 ゲームカウンタ表示装置
131 画像表示装置
201 主制御部
202 副制御部
211 中央処理装置(CPU)
212 読取専用記憶領域(ROM)
213 一時記憶領域(RAM)
214 インクリメントカウンタ
215 入力ポート
216 出力ポート
221 ラッチ回路
222 データバス
100-turn-type game machine 101-103 display window 104 medal slot 105-109 winning line display 110-114 active line LED
115 Credit Number Display Device 116-118 Bet Button 119 Start Lever 120-122 Stop Button 123 Payout Number Display Device 124 Medal Release Port 125 Medal Receiving Plate 126 Status Lamp 127 Speaker 128 Checkout Button 129 Notification Lamp 130 Game Counter Display Device 131 Image Display Device 201 Main control unit 202 Sub control unit 211 Central processing unit (CPU)
212 Read-only storage area (ROM)
213 Temporary storage area (RAM)
214 Increment counter 215 Input port 216 Output port 221 Latch circuit 222 Data bus

Claims (4)

遊技機の当落を抽選するためのハード乱数を所定のタイミングで発生するハード乱数発生回路を備えた遊技機における、前記ハード乱数発生回路の異常を検出するためのエラー検出方法において、
前記遊技機の中央処理装置が、前記ハード乱数発生回路から複数のハード乱数を取得し、前記複数のハード乱数のビット演算を行って、前記ハード乱数を構成する全てのビットが更新されたか否かを確認することにより、前記ハード乱数発生回路の異常の有無を判定し、
前記ビット演算は、
取得した第1のハード乱数と、全てのビットが0のレジスタAと論理和演算を行って前記レジスタAに格納する第1ステップと、
前記第1のハード乱数と、全てのビットが1のレジスタBと排他的論理和演算を行って前記レジスタBに格納する第2ステップと、
該レジスタBと、全てのビットが0のレジスタCと論理和演算を行って前記レジスタCに格納する第3ステップと、
取得した第2のハード乱数と、前記レジスタAと論理和演算を行って前記レジスタAに格納する第4ステップと、
前記第2のハード乱数と、全てのビットが1のレジスタBと排他的論理和演算を行って前記レジスタBに格納する第5ステップと、
該レジスタBと、前記レジスタCと論理和演算を行って前記レジスタCに格納する第6ステップとを含み、
前記第4ステップから前記第6ステップを、取得した前記複数のハード乱数の数から1を引いた回数繰り返し、
前記レジスタAおよび前記レジスタCの全てのビットが1の場合に、前記ハード乱数発生回路に異常が無いことを判定することを特徴とするハード乱数発生回路のエラー検出方法。
In the gaming machine having a hard random number generating circuit which occurs the hard random number at a predetermined timing to draw the Toraku of the game machine, the error detection method for detecting an abnormality of the hardware random number generator,
Whether the central processing unit of the gaming machine has acquired a plurality of hard random numbers from the hard random number generation circuit, performs bit operations on the plurality of hard random numbers, and has updated all the bits constituting the hard random numbers By determining whether or not there is an abnormality in the hard random number generation circuit ,
The bit operation is
A first step of performing an OR operation with the acquired first hard random number and the register A in which all bits are 0, and storing the result in the register A;
A second step of performing an exclusive OR operation with the first hard random number and the register B in which all bits are 1 and storing the result in the register B;
A third step of performing an OR operation with the register B and a register C in which all bits are 0 and storing the result in the register C;
A fourth step of performing an OR operation with the obtained second hard random number and the register A and storing it in the register A;
A fifth step of performing an exclusive OR operation with the second hard random number and the register B in which all bits are 1 and storing the result in the register B;
A sixth step of performing an OR operation with the register B and storing the register B in the register C;
Repeating the fourth step to the sixth step by subtracting 1 from the obtained number of the hard random numbers,
An error detection method for a hard random number generation circuit, wherein when all the bits of the register A and the register C are 1, it is determined that there is no abnormality in the hard random number generation circuit.
1回の乱数更新確認処理が、前記遊技機における一遊技の中で行われ、
前記乱数更新確認処理は、前回の前記一遊技の終了から次の一遊技の前記ハード乱数を用いた抽選処理を行うまでの間に実行されることを特徴とする請求項1に記載のハード乱数発生回路のエラー検出方法。
One random number update confirmation process is performed in one game in the gaming machine,
2. The hard random number according to claim 1, wherein the random number update check process is executed between the end of the previous one game and the lottery process using the hard random number of the next one game. Error detection method for generating circuit.
1回の乱数更新確認処理が、前記遊技機における一遊技の中で行われ、
前記乱数更新確認処理は、前記抽選処理を行った後の待機処理の間に実行されることを特徴とする請求項1に記載のハード乱数発生回路のエラー検出方法。
One random number update confirmation process is performed in one game in the gaming machine,
The random number update check processing, the error detection method of the hard random number generating circuit according to claim 1, characterized in that it is performed during the pre Ki抽 election process a waiting process after.
前記一遊技は、遊技価値の投入の検出から払出し処理までを表すことを特徴とする請求項2または3に記載のハード乱数発生回路のエラー検出方法。4. The hard random number generation circuit error detection method according to claim 2, wherein the one game represents from detection of game value input to payout processing.
JP2007091527A 2007-03-30 2007-03-30 Hard random number generator error detection method Expired - Fee Related JP4945287B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007091527A JP4945287B2 (en) 2007-03-30 2007-03-30 Hard random number generator error detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007091527A JP4945287B2 (en) 2007-03-30 2007-03-30 Hard random number generator error detection method

Publications (2)

Publication Number Publication Date
JP2008245956A JP2008245956A (en) 2008-10-16
JP4945287B2 true JP4945287B2 (en) 2012-06-06

Family

ID=39971621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007091527A Expired - Fee Related JP4945287B2 (en) 2007-03-30 2007-03-30 Hard random number generator error detection method

Country Status (1)

Country Link
JP (1) JP4945287B2 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011156343A (en) * 2010-01-05 2011-08-18 Sammy Corp Game machine
JP6172896B2 (en) * 2012-06-22 2017-08-02 株式会社三洋物産 Game machine
JP6011059B2 (en) * 2012-06-22 2016-10-19 株式会社三洋物産 Game machine
JP6226513B2 (en) * 2012-06-22 2017-11-08 株式会社三洋物産 Game machine
JP6241526B2 (en) * 2016-09-22 2017-12-06 株式会社三洋物産 Game machine
JP6304354B2 (en) * 2016-11-28 2018-04-04 株式会社三洋物産 Game machine
JP6304353B2 (en) * 2016-11-28 2018-04-04 株式会社三洋物産 Game machine
JP2018086545A (en) * 2018-03-07 2018-06-07 株式会社三洋物産 Game machine
JP6780753B2 (en) * 2019-09-03 2020-11-04 株式会社三洋物産 Game machine
JP6780752B2 (en) * 2019-09-03 2020-11-04 株式会社三洋物産 Game machine
CN118377459A (en) * 2024-06-21 2024-07-23 山东云海国创云计算装备产业创新中心有限公司 Random number detection device and method, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4291902B2 (en) * 1998-07-29 2009-07-08 株式会社エルイーテック A microcomputer for controlling game machines with a built-in random number generator having a fault diagnosis function

Also Published As

Publication number Publication date
JP2008245956A (en) 2008-10-16

Similar Documents

Publication Publication Date Title
JP4945287B2 (en) Hard random number generator error detection method
JP5885763B2 (en) Game machine
JP5473083B2 (en) Game machine
JP6022196B2 (en) Slot machine
JP5802308B1 (en) Game machine
JP2014161349A (en) Slot machine
JP2015223274A (en) Game machine
JP2017042352A (en) Game machine
JP5286578B1 (en) Game machine and program for game machine
JP2007325869A (en) Game management device and game parlor system
JP5156512B2 (en) Slot machine
JP4005866B2 (en) Slot machine
JP2005027819A (en) Game machine, and method and program for command communication in game machine
JP4233094B2 (en) Game machine
JP6362578B2 (en) Game machine
JP2015097614A (en) Rotary drum type game machine
JP2016093591A (en) Game machine
JP6118384B2 (en) Revolving machine
JP6785435B2 (en) Game machine
JP6375338B2 (en) Game machine
JP6064021B2 (en) Game machine
JP2007275250A (en) Game machine
JP2018086476A (en) Slot machine
JP2017099982A (en) Game machine
JP5432506B2 (en) Slot machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120208

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120224

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120305

R150 Certificate of patent or registration of utility model

Ref document number: 4945287

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150309

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees