JP5202702B2 - Authentication method for gaming machines and electronic devices - Google Patents

Authentication method for gaming machines and electronic devices Download PDF

Info

Publication number
JP5202702B2
JP5202702B2 JP2011165819A JP2011165819A JP5202702B2 JP 5202702 B2 JP5202702 B2 JP 5202702B2 JP 2011165819 A JP2011165819 A JP 2011165819A JP 2011165819 A JP2011165819 A JP 2011165819A JP 5202702 B2 JP5202702 B2 JP 5202702B2
Authority
JP
Japan
Prior art keywords
control command
unit
check value
output
control
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
JP2011165819A
Other languages
Japanese (ja)
Other versions
JP2013027567A (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.)
Kyoraku Industrial Co Ltd
Original Assignee
Kyoraku Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyoraku Industrial Co Ltd filed Critical Kyoraku Industrial Co Ltd
Priority to JP2011165819A priority Critical patent/JP5202702B2/en
Publication of JP2013027567A publication Critical patent/JP2013027567A/en
Application granted granted Critical
Publication of JP5202702B2 publication Critical patent/JP5202702B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Pinball Game Machines (AREA)

Description

本発明は、パチンコ遊技機、雀球遊技機、アレンジボール等の弾球遊技機、スロットマシン等の回胴式遊技機などの遊技機に関する。更に、本発明は、複数の制御部を備える電子機器における各制御部間のデータ伝送の認証方法に関する。   The present invention relates to a gaming machine such as a pachinko gaming machine, a sparrow ball gaming machine, a ball ball gaming machine such as an arrangement ball, and a revolving gaming machine such as a slot machine. Furthermore, the present invention relates to an authentication method for data transmission between each control unit in an electronic apparatus including a plurality of control units.

遊技機に対し行われる、メダルや遊技球など(以下、「遊技媒体」という)を遊技内容とは無関係に強制的に払い出させる不正行為のうち、遊技進行に伴う基本動作を制御する主制御部が搭載された主制御基板からの制御命令情報(以下、「制御コマンド」という)に基づき演出処理等を実行する周辺制御部が搭載された周辺制御基板に関するものとして、例えば以下に示すものがある。
(1)正規な主制御基板と不正な主制御基板との交換
(2)主制御基板に搭載されたCPUが実行する正規なプログラムが記憶されたROMと上記プログラムを改ざんした不正なプログラムが記憶されたROMとの交換
(3)主制御基板と周辺制御基板との間に不正な基板(なりすまし基板)を設け、かつ上記(2)のROMの交換
Main control that controls basic actions associated with the progress of a game, among illegal acts that are performed on a gaming machine and forcibly pays out medals, game balls, etc. (hereinafter referred to as “game media”) regardless of the game content. As for the peripheral control board on which the peripheral control unit that executes the rendering process and the like based on the control command information (hereinafter referred to as “control command”) from the main control board on which the unit is mounted, is there.
(1) Replacing an authorized main control board with an unauthorized main control board (2) A ROM storing a legitimate program executed by the CPU mounted on the main control board and an unauthorized program obtained by falsifying the above program are stored. (3) An illegal board (impersonated board) is provided between the main control board and the peripheral control board, and the ROM of (2) above is replaced.

このような不正行為を防止するため、従来の遊技機には、次のようなものがあった。例えば、特許文献1に記載の遊技機では、主制御基板は、制御コマンドを生成してサブ制御基板に送信する第1送信手段と、第1送信手段が所定期間内に送信した制御コマンドのチェックサムを状態監視コマンドとして所定のタイミングで送信する第2送信手段とを備えている。また、サブ制御基板が、所定期間内に受信した制御コマンドのチェックサムと、所定のタイミングで受信した状態監視コマンドとを比較することで、所定期間内に送信された制御コマンドの正当性を検証している。すなわち、特許文献1に記載の遊技機は、制御コマンドの正当性を検証するための状態監視コマンドを所定のタイミングで送信することで、上記不正行為の防止を図っている。   In order to prevent such illegal acts, the conventional gaming machines include the following. For example, in the gaming machine described in Patent Document 1, the main control board generates a control command and transmits it to the sub-control board, and checks the control command transmitted by the first transmission means within a predetermined period. Second transmission means for transmitting the thumb as a state monitoring command at a predetermined timing. In addition, the sub-control board verifies the validity of the control command transmitted within the predetermined period by comparing the checksum of the control command received within the predetermined period with the state monitoring command received at the predetermined timing. doing. That is, the gaming machine described in Patent Document 1 attempts to prevent the illegal act by transmitting a state monitoring command for verifying the validity of the control command at a predetermined timing.

特開2002−18095号公報JP 2002-18095 A

しかしながら、特許文献1に記載の遊技機では、通常の制御コマンドとは異なるデータ形式あるいはデータ量を有する状態監視コマンドを、所定のタイミングで単独で送信している。よって、不正行為を働こうとする者(以下、「不正者」という)が、状態監視コマンドの送信タイミングを容易に知り得て、窃取することができるというおそれがあった。また、特許文献1に記載の遊技機では、所定期間内に送信した制御コマンドのチェックサムを状態監視コマンドとしている。よって、状態監視コマンドの送信タイミングを知った不正者が、所定期間内の制御コマンドとそのチェックサムを取得して比較することで、状態監視コマンドの内容を容易に解析することができるというおそれがあった。   However, in the gaming machine described in Patent Document 1, a state monitoring command having a data format or data amount different from that of a normal control command is transmitted alone at a predetermined timing. Therefore, there is a fear that a person who intends to perform an illegal act (hereinafter referred to as “illegal person”) can easily know the timing of sending the state monitoring command and steal it. Further, in the gaming machine described in Patent Document 1, a checksum of a control command transmitted within a predetermined period is used as a state monitoring command. Therefore, there is a possibility that an unauthorized person who knows the transmission timing of the state monitoring command can easily analyze the contents of the state monitoring command by acquiring and comparing the control command and its checksum within a predetermined period. there were.

また、特許文献1に記載の遊技機では、セキュリティ機能の追加を実現するために、状態監視コマンドを送信するという通常の処理とは異なる処理をわざわざ追加しており、主制御基板の制御処理が複雑化している。そのため、特許文献1に記載の遊技機では、主制御基板のCPUが実行するプログラムのコードサイズが増大し、CPUの処理負荷が増大する。また、遊技機においては、公共性のある遊技ならではの規制により主制御基板のROMやRAMの容量が制限されており、遊技機メーカーには、限られたリソースを演出処理に係るプログラムにより多く割当てたいという要望がある。よって、遊技機にセキュリティ機能を追加することで、主制御基板のCPUの処理負荷やプログラムのコードサイズが増大する問題は看過できない。   In addition, in the gaming machine described in Patent Document 1, in order to realize the addition of the security function, a process different from the normal process of transmitting a state monitoring command is added. It is getting complicated. Therefore, in the gaming machine described in Patent Document 1, the code size of the program executed by the CPU of the main control board increases, and the processing load of the CPU increases. Also, in gaming machines, the ROM and RAM capacities of the main control board are limited due to regulations unique to public games, and more limited resources are allocated to game machine manufacturers for programs related to performance processing. There is a desire to want. Therefore, the problem that the processing load of the CPU of the main control board and the code size of the program increase by adding a security function to the gaming machine cannot be overlooked.

また、セキュリティ機能の追加をハードウェアで実現しようとする場合、処理負荷やコードサイズの増大は抑制できる。しかしながら、既存の主制御基板にハードウェアで新たに機能を追加する場合、当該ハードウェアに関連するCPUや周辺回路の構成も変更しなければならず、遊技機の開発コストや開発時間の増大を招き、遊技機メーカーにとって大きな負担となる。そのため、従来の技術では、実効性のあるセキュリティ機能を既存の遊技機に対し、比較的簡易に追加したいという遊技機メーカーの要望に応えることができない。   In addition, when adding security functions by hardware, it is possible to suppress an increase in processing load and code size. However, when a new function is added to the existing main control board by hardware, the configuration of the CPU and peripheral circuits related to the hardware must be changed, which increases the development cost and development time of the gaming machine. Invited, it will be a big burden for game machine manufacturers. For this reason, the conventional technology cannot meet the demands of gaming machine manufacturers who want to add effective security functions to existing gaming machines relatively easily.

本発明は、上記事情に鑑みてなされたものであり、従来にない簡易な手段により上記不正行為を防止してセキュリティ強度を向上させるとともに、処理負荷やコードサイズの増大を抑制しながら比較的簡易に追加することのできるセキュリティ機能を有する遊技機を提供することを目的とする。   The present invention has been made in view of the above circumstances, and is relatively simple while preventing the above-mentioned fraud by improving the security strength by suppressing the increase in processing load and code size. It is an object to provide a gaming machine having a security function that can be added to the game machine.

本発明は、上記事情に鑑みてなされたものであり、従来ない簡易な手段により上記不正行為を防止してセキュリティ強度を向上させることができ、かつ処理負荷やコードサイズの増大を抑制しながら汎用性の高いセキュリティ機能を備えた遊技機を提供することを目的とする。   The present invention has been made in view of the above circumstances, and can improve the security strength by preventing illegal acts by a simple means that has not been conventionally used, and can be used for general purposes while suppressing an increase in processing load and code size. An object of the present invention is to provide a gaming machine having a highly secure security function.

上記課題を解決するために本発明は、制御コマンドを出力する主制御部(主制御部110)と、前記制御コマンドに基づく処理を行う周辺制御部(周辺制御部300)と、前記主制御部と前記周辺制御部との間に設けられた中間制御部(中間制御部180)と、を含む遊技機(遊技機1)であって、前記主制御部は、所定の遊技情報を記憶する記憶領域を有する記憶部(メインROM110b)と、前記遊技情報に応じた所定の演算を行って前記制御コマンドを生成し、生成した制御コマンドを予め取り決められた出力制御方式で出力する演算処理部(メインCPU110a)と、前記演算処理部によって出力された制御コマンドに付加され、該制御コマンドの正当性を検査するための誤り検査値を、予め取り決められた複数の生成方式で生成可能であり、いずれかの生成方式で生成された誤り検査値を前記制御コマンドへ付加して出力する第1検査値生成部(検査値生成部500)と、前記誤り検査値が付加された制御コマンドを前記周辺制御部へ送信する送信部(送信部550)と、を備え、前記中間制御部は、前記第1検査値生成部によって生成された誤り検査値に対応する検証用の誤り検査値を生成する第2検査値生成部(検査値生成部620)と、前記送信部によって送信された誤り検査値と前記第2検査値生成部によって生成された誤り検査値とを比較して前記送信部によって送信された制御コマンドの正当性の検査を行い、該検査の結果情報を生成する検査部(検査部610)と、前記送信部によって送信された制御コマンドを前記周辺制御部へ中継送信すると共に、前記結果情報を前記周辺制御部へ送信する中継送信部(中継送信部640)と、を備え、前記周辺制御部は、前記中継送信部によって中継送信された制御コマンドに基づく処理を行うと共に、前記中継送信部によって送信された前記結果情報に応じた処理を行う処理部(周辺制御部300のCPU等)を備え、前記第1検査値生成部は、前記演算処理部によって出力された制御コマンドを入力し、入力した制御コマンドを予め指定されたタイミングで出力するバッファ手段(バッファ手段510)と、前記バッファ手段によって出力された制御コマンドを入力し、入力した制御コマンドへ付加する誤り検査値を生成する際の生成方式、又は入力した制御コマンドより後に前記演算処理部によって出力される制御コマンドへ付加する誤り検査値を生成する際の生成方式を、入力した制御コマンドより過去に前記演算処理部によって出力された一の制御コマンドを用いて誤り検査値を生成する第1生成方式と、前記過去に出力された複数の制御コマンドを用いて誤り検査値を生成する第2生成方式とのいずれの生成方式にするかを、予め定められたプロトコルに従って決定し、決定した該生成方式で生成される誤り検査値を前記付加する誤り検査値とすることを示す生成方式情報を、前記タイミングに応じて出力する決定手段(決定手段540)と、前記バッファ手段によって出力された制御コマンドと前記決定手段によって出力された生成方式情報とを入力し、入力した制御コマンドより過去に前記演算処理部によって出力された一又は複数の制御コマンドを用いて、入力した生成方式情報が示す生成方式で生成した誤り検査値を、前記付加する誤り検査値として前記タイミングに応じて出力する生成手段(生成手段520)と、前記バッファ手段によって出力された制御コマンドと前記生成手段によって出力された誤り検査値とを入力し、入力した該制御コマンドに、入力した該誤り検査値を付加して、該誤り検査値が付加された該制御コマンドを、前記演算処理部において予め取り決められた前記出力制御方式と同じ出力制御方式で、前記タイミングに応じて前記送信部へ出力する付加手段(付加手段530)と、を有することを特徴とする。   In order to solve the above problems, the present invention provides a main control unit (main control unit 110) that outputs a control command, a peripheral control unit (peripheral control unit 300) that performs processing based on the control command, and the main control unit. A game machine (game machine 1) including an intermediate control unit (intermediate control unit 180) provided between the peripheral control unit and the peripheral control unit, wherein the main control unit stores predetermined game information A storage unit (main ROM 110b) having an area, and an arithmetic processing unit (main ROM) that performs a predetermined calculation according to the game information to generate the control command, and outputs the generated control command in a predetermined output control method CPU 110a) and an error check value added to the control command output by the arithmetic processing unit for checking the validity of the control command are generated by a plurality of predetermined generation methods. A first check value generation unit (check value generation unit 500) that outputs an error check value generated by any of the generation methods by adding it to the control command, and a control to which the error check value is added A transmission unit (transmission unit 550) for transmitting a command to the peripheral control unit, wherein the intermediate control unit is an error check value for verification corresponding to the error check value generated by the first check value generation unit A second check value generation unit (check value generation unit 620) that generates the error check value transmitted by the transmission unit and the error check value generated by the second check value generation unit to compare the transmission The control command transmitted by the unit is inspected for validity, the inspection unit (inspection unit 610) for generating the result information of the inspection, and the control command transmitted by the transmission unit are relayed to the peripheral control unit With A relay transmission unit (relay transmission unit 640) that transmits the result information to the peripheral control unit, and the peripheral control unit performs processing based on a control command relayed by the relay transmission unit, and A processing unit (such as the CPU of the peripheral control unit 300) that performs processing according to the result information transmitted by the relay transmission unit, and the first inspection value generation unit outputs the control command output by the arithmetic processing unit. Buffer means (buffer means 510) for inputting and outputting the input control command at a predetermined timing, and inputting the control command output by the buffer means and generating an error check value to be added to the input control command Error check value to be added to the control command output by the arithmetic processing section after the input control command The first generation method for generating an error check value using one control command output by the arithmetic processing unit in the past from the input control command, and the plurality of the output methods used in the past The generation method of the second generation method for generating the error check value using the control command is determined according to a predetermined protocol, and the error check value generated by the determined generation method is A determination unit (determination unit 540) that outputs generation method information indicating an error check value to be added according to the timing, a control command output by the buffer unit, and a generation method output by the determination unit Information, and the input generation method using one or more control commands output by the arithmetic processing unit in the past from the input control command. An error check value generated by the generation method indicated by the information is output as the error check value to be added according to the timing (generation means 520), a control command output by the buffer means, and the generation means The output error check value is input, the input error check value is added to the input control command, and the control command to which the error check value is added is predetermined in the arithmetic processing unit. And adding means (adding means 530) for outputting to the transmission unit according to the timing in the same output control method as the output control method.

本発明によれば、セキュリティ機能として主制御部に対する認証機能を追加すべく、主制御部が備える誤り検査値付加機能をハードウェアで構成し、送信する制御コマンドに対して当該制御コマンドより過去に生成された制御コマンドの誤り検査値を付加して送信する。このような従来にない簡易な方法を適用することにより、制御コマンドとそれに付加された誤り検査値の関係を不正者が解析することを困難にし、簡易な方法で遊技機のセキュリティ強度を向上することができる。また、セキュリティ機能の追加に伴って増大する主制御部のCPUの処理負荷やコードサイズを最大限抑制することができる。そして、既存の遊技機に対し、比較的簡易にセキュリティ機能を追加することができる。   According to the present invention, in order to add an authentication function for the main control unit as a security function, the error check value adding function provided in the main control unit is configured by hardware, and the control command to be transmitted is earlier than the control command. An error check value of the generated control command is added and transmitted. By applying such an unprecedented simple method, it becomes difficult for an unauthorized person to analyze the relationship between the control command and the error check value added thereto, and the security strength of the gaming machine is improved by a simple method. be able to. Further, the processing load and code size of the CPU of the main control unit, which increase with the addition of the security function, can be suppressed to the maximum. And a security function can be added comparatively easily with respect to the existing game machine.

また、本発明によれば、主制御部に対する認証機能は、通常の遊技進行に係る処理を行う周辺制御部とは別個独立した中間制御部が備える。よって、認証機能の追加によって増大する周辺制御部のCPUの処理負荷やコードサイズを抑制することができる。そして、既存の遊技機に対し、比較的簡易にセキュリティ機能を追加することができる。   According to the present invention, the authentication function for the main control unit is provided in an intermediate control unit that is independent from the peripheral control unit that performs processing related to normal game progression. Therefore, it is possible to suppress the processing load and code size of the CPU of the peripheral control unit that increases due to the addition of the authentication function. And a security function can be added comparatively easily with respect to the existing game machine.

本発明の実施形態に係る遊技機の外観構成を示す正面図である。It is a front view which shows the external appearance structure of the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機のガラス枠を開放させた状態の外観構成を示す斜視図である。It is a perspective view which shows the external appearance structure of the state which open | released the glass frame of the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機の裏面側の外観構成を示す斜視図である。It is a perspective view which shows the external appearance structure of the back surface side of the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部の認証処理に関する構成を示すブロック図である。It is a block diagram which shows the structure regarding the authentication process of the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部のメインROMおよびブートROMのメモリマップを説明するための概略図である。It is the schematic for demonstrating the memory map of main ROM and boot ROM of the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部が出力する制御コマンドへの誤り検査値の付加手順を説明するための概略図である。It is the schematic for demonstrating the addition procedure of the error check value to the control command which the main control part which comprises the game machine which concerns on embodiment of this invention outputs. 本発明の実施形態に係る遊技機を構成する中間制御部の認証処理に関する構成を示すブロック図である。It is a block diagram which shows the structure regarding the authentication process of the intermediate | middle control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部から演出制御部へ送信される制御コマンドの種別を示す図である。It is a figure which shows the classification of the control command transmitted to the production | presentation control part from the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部によるメイン処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the main process by the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部による割込処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the interruption process by the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部による特図特電制御処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the special figure special electricity control process by the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部による特別図柄記憶判定処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the special symbol memory | storage determination process by the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部による起動時のブート処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the boot process at the time of starting by the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部によるコマンド送信処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the command transmission process by the main control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する中間制御部によるメイン処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the main process by the intermediate | middle control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する演出制御部によるメイン処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the main process by the production | presentation control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する演出制御部による割込処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the interruption process by the production | presentation control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する演出制御部によるコマンド解析処理1におけるフローチャートを示す図である。It is a figure which shows the flowchart in the command analysis process 1 by the presentation control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する演出制御部によるコマンド解析処理2におけるフローチャートを示す図である。It is a figure which shows the flowchart in the command analysis process 2 by the production | presentation control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する演出制御部による認証結果データ解析処理におけるフローチャートを示す図である。It is a figure which shows the flowchart in the authentication result data analysis process by the presentation control part which comprises the game machine which concerns on embodiment of this invention. 本発明の実施形態に係る遊技機を構成する主制御部の認証処理に関するハードウェアパラメータおよび判定回路の構成における他の実施例を示すブロック図である。It is a block diagram which shows the other Example in the structure of the hardware parameter regarding the authentication process of the main control part which comprises the game machine which concerns on embodiment of this invention, and a determination circuit.

以下、本発明を実施するための形態について、図面を参照しながら説明する。具体的には、本発明の実施形態に係る遊技機の1つであるパチンコ遊技機1(以下、「遊技機1」という)について説明する。   Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. Specifically, a pachinko gaming machine 1 (hereinafter referred to as “gaming machine 1”), which is one of the gaming machines according to the embodiment of the present invention, will be described.

[遊技機の構成]
以下に、本発明の一実施形態に係る遊技機1の構成について説明する。
図1は、本実施形態に係る遊技機1の外観構成を示す正面図である。図2は、本実施形態に係る遊技機1のガラス枠を開放させた状態の外観構成を示す斜視図である。図3は、本実施形態に係る遊技機1の裏面側の外観構成を示す斜視図である。
[Composition of gaming machine]
The configuration of the gaming machine 1 according to one embodiment of the present invention will be described below.
FIG. 1 is a front view showing an external configuration of the gaming machine 1 according to the present embodiment. FIG. 2 is a perspective view showing an external configuration of the gaming machine 1 according to the present embodiment in a state where the glass frame is opened. FIG. 3 is a perspective view showing an external configuration of the back side of the gaming machine 1 according to the present embodiment.

遊技機1は、遊技店の島設備に取り付けられる外枠60と、その外枠60と回動可能に支持されたガラス枠50とが備えられている(図1、図2参照)。また、外枠60には、遊技球200が流下する遊技領域6が形成された遊技盤2が設けられている。ガラス枠50には、回動操作されることにより遊技領域6に向けて遊技球を発射させる操作ハンドル3と、スピーカからなる音声出力装置32と、複数のランプを有する演出用照明装置34と、押圧操作により演出態様を変更させるための演出ボタン35とが設けられている。   The gaming machine 1 includes an outer frame 60 attached to an island facility of a game store, and a glass frame 50 that is rotatably supported by the outer frame 60 (see FIGS. 1 and 2). In addition, the outer frame 60 is provided with a game board 2 in which a game area 6 in which the game ball 200 flows down is formed. In the glass frame 50, an operation handle 3 for launching a game ball toward the game area 6 by being rotated, an audio output device 32 including a speaker, an effect lighting device 34 having a plurality of lamps, An effect button 35 for changing the effect mode by a pressing operation is provided.

更に、ガラス枠50には、複数の遊技球200を貯留する受け皿40が設けられており、この受け皿40は、操作ハンドル3の方向側に遊技球200が流下するように下りの傾斜を有している(図2参照)。この受け皿40の下りの傾斜の端部には、遊技球を受け入れる図示しない受入口が設けられており、この受入口に受け入れられた遊技球は、玉送りソレノイド4bが駆動することにより、ガラス枠50の裏面に設けられた玉送り開口部41へ1個ずつ送り出される。そして、玉送り開口部41へ送り出された遊技球は、打出部材4cの方向に向けて下り傾斜を有している発射レール42により、発射レール42の下り傾斜の端部に誘導される。発射レール42の下り傾斜の端部の上方には、遊技球を停留させるストッパー43が設けられており、玉送り開口部41から送り出された遊技球200は、発射レール42の下り傾斜の端部で1個の遊技球が停留されることになる(図2参照)。   Further, the glass frame 50 is provided with a tray 40 for storing a plurality of game balls 200, and the tray 40 has a downward slope so that the game balls 200 flow down toward the operation handle 3. (See FIG. 2). A receiving opening (not shown) for receiving a game ball is provided at the end of the downward slope of the tray 40, and the game ball received in the receiving opening is driven by the ball feed solenoid 4b, so that the glass frame One by one is sent to a ball feed opening 41 provided on the back surface of 50. Then, the game ball sent out to the ball feed opening 41 is guided to the end of the downward slope of the launch rail 42 by the launch rail 42 having a downward slope toward the launching member 4c. A stopper 43 for stopping the game ball is provided above the downwardly inclined end portion of the launch rail 42, and the game ball 200 sent out from the ball feed opening 41 is the downwardly inclined end portion of the launch rail 42. Thus, one game ball is stopped (see FIG. 2).

そして、遊技者が操作ハンドル3を回動させると、操作ハンドル3に直結している発射ボリューム3b(図4参照)も回動し、発射ボリューム3bにより遊技球の発射強度が調整され、調整された発射強度で発射用ソレノイド4a(図4参照)に直結された打出部材4cが回転する。この打出部材4cが回転することで、打出部材4cにより発射レール42の下り傾斜の端部に貯留されている遊技球200が打ち出され、遊技球が遊技領域6に発射されることとなる。   When the player rotates the operation handle 3, the launch volume 3b (see FIG. 4) directly connected to the operation handle 3 also rotates, and the launch volume of the game ball is adjusted and adjusted by the launch volume 3b. The launching member 4c directly connected to the firing solenoid 4a (see FIG. 4) rotates with the firing strength. By rotating the launch member 4 c, the game ball 200 stored at the end of the downward slope of the launch rail 42 is launched by the launch member 4 c, and the game ball is launched into the game area 6.

上記のようにして発射された遊技球は、発射レール42からレール5a、5b間を上昇して玉戻り防止片5cを超えると、遊技領域6に到達し、その後遊技領域6内を落下する。このとき、遊技領域6に設けられた複数の釘や風車によって、遊技球は予測不能に落下することとなる。   When the game ball fired as described above rises between the rails 5a and 5b from the launch rail 42 and exceeds the ball return prevention piece 5c, the game ball reaches the game area 6 and then falls in the game area 6. At this time, the game ball falls unpredictably by a plurality of nails and windmills provided in the game area 6.

また、上記遊技領域6には、複数の一般入賞口12が設けられている。これら各一般入賞口12には、一般入賞口検出スイッチ12a(図4参照)が設けられており、この一般入賞口検出スイッチ12aが遊技球の入賞を検出すると、所定の賞球(例えば10個の遊技球)が払い出される。   The game area 6 is provided with a plurality of general winning awards 12. Each of these general winning awards 12 is provided with a general winning opening detecting switch 12a (see FIG. 4). When this general winning opening detecting switch 12a detects the winning of a game ball, a predetermined winning ball (for example, 10) Game balls).

また、上記遊技領域6の中央下側の領域には、遊技球が入球可能な始動領域を構成する第1始動口14および第2始動口15と、遊技球が入球可能な第2大入賞口17とが設けられている。   Further, in the area below the center of the game area 6, there are a first start port 14 and a second start port 15 that constitute a start area into which game balls can enter, and a second large area in which game balls can enter. A winning opening 17 is provided.

この第2始動口15は、一対の可動片15bを有しており、これら一対の可動片15bが閉状態に維持される態様(以下、「第1の態様」という)と、一対の可動片15bが開状態となる態様(以下、「第2の態様」という)とに可動制御される。なお、第2始動口15が上記第1の態様に制御されているときには、当該第2始動口15の真上に位置する第2大入賞口17の入賞部材が障害物となって、遊技球の受入れを不可能としている。一方で、第2始動口15が上記第2の態様に制御されているときには、上記一対の可動片15bが受け皿として機能し、第2始動口15への遊技球の入賞が容易となる。つまり、第2始動口15は、第1の態様にあるときには遊技球の入賞機会がなく、第2の態様にあるときには遊技球の入賞機会が増すこととなる。   The second starting port 15 has a pair of movable pieces 15b, a mode in which the pair of movable pieces 15b is maintained in a closed state (hereinafter referred to as “first mode”), and a pair of movable pieces. The movement control is performed so that 15b is in an open state (hereinafter referred to as “second aspect”). When the second starting port 15 is controlled in the first mode, the winning member of the second large winning port 17 located immediately above the second starting port 15 becomes an obstacle, and the game ball Is impossible to accept. On the other hand, when the second start port 15 is controlled to the second mode, the pair of movable pieces 15b function as a tray, and it is easy to win a game ball to the second start port 15. That is, when the second start port 15 is in the first mode, there is no game ball winning opportunity, and when it is in the second mode, the game ball winning opportunity is increased.

ここで、第1始動口14には遊技球の入球を検出する第1始動口検出スイッチ14a(図4参照)が設けられ、第2始動口15には遊技球の入球を検出する第2始動口検出スイッチ15a(図4参照)が設けられている。そして、第1始動口検出スイッチ14aまたは第2始動口検出スイッチ15aが遊技球の入球を検出すると、特別図柄判定用乱数値等を取得し、後述する大当たり遊技を実行する権利獲得の抽選(以下、「大当たりの抽選」という)が行われる。また、第1始動口検出スイッチ14aまたは第2始動口検出スイッチ15aが遊技球の入球を検出した場合にも、所定の賞球(例えば3個の遊技球)が払い出される。   Here, the first start port 14 is provided with a first start port detection switch 14a (see FIG. 4) for detecting the entrance of a game ball, and the second start port 15 is a first for detecting the entrance of a game ball. 2 A start port detection switch 15a (see FIG. 4) is provided. When the first start port detection switch 14a or the second start port detection switch 15a detects the entry of a game ball, a special symbol determination random number value is acquired, and a right acquisition lottery (to be described later) Hereinafter, “Lottery for jackpot” is performed. Also, when the first start port detection switch 14a or the second start port detection switch 15a detects the entry of a game ball, a predetermined prize ball (for example, three game balls) is paid out.

また、第2大入賞口17は、遊技盤2に形成された開口部から構成されている。この第2大入賞口17の下部には、遊技盤面側からガラス板52側に突出可能な第2大入賞口開閉扉17bを有しており、この第2大入賞口開閉扉17bが遊技盤面側に突出する開放状態と、遊技盤面に埋没する閉鎖状態とに可動制御される。そして、第2大入賞口開閉扉17bが遊技盤面に突出していると、遊技球を第2大入賞口17内に導く受け皿として機能し、遊技球が第2大入賞口17に入球可能となる。この第2大入賞口17には第2大入賞口検出スイッチ17a(図4参照)が設けられており、この第2大入賞口検出スイッチ17aが遊技球の入球を検出すると、予め設定された賞球(例えば15個の遊技球)が払い出される。   In addition, the second grand prize winning port 17 is configured by an opening formed in the game board 2. Below the second grand prize opening 17, there is a second big prize opening / closing door 17b that can protrude from the game board surface side to the glass plate 52 side. It is controlled to move between an open state protruding to the side and a closed state buried in the game board surface. When the second grand prize opening opening / closing door 17b protrudes from the game board surface, it functions as a tray for guiding the game ball into the second big prize opening 17, and the game ball can enter the second big prize opening 17. Become. The second big prize opening 17 is provided with a second big prize opening detection switch 17a (see FIG. 4). When the second big prize opening detection switch 17a detects the entry of a game ball, it is set in advance. Award balls (for example, 15 game balls) are paid out.

更に、上記遊技領域6の右側の領域には、遊技球が通過可能な普通領域を構成する普通図柄ゲート13と、遊技球が入球可能な第1大入賞口16とが設けられている。
このため、操作ハンドル3を大きく回動させ、強い力で打ち出された遊技球でないと、普通図柄ゲート13と第1大入賞口16とには遊技球が、通過または入賞しないように構成されている。
Furthermore, in the area on the right side of the game area 6, there are provided a normal symbol gate 13 constituting a normal area through which game balls can pass and a first grand prize opening 16 through which game balls can enter.
For this reason, unless the game ball is a game ball that has been driven by a strong force by turning the operation handle 3 greatly, the normal design gate 13 and the first big winning opening 16 are configured so that the game ball will not pass or win. Yes.

この普通図柄ゲート13には、遊技球の通過を検出するゲート検出スイッチ13a(図4参照)が設けられており、このゲート検出スイッチ13aが遊技球の通過を検出すると、普通図柄判定用乱数値を取得し、後述する「普通図柄の抽選」が行われる。   The normal symbol gate 13 is provided with a gate detection switch 13a (see FIG. 4) for detecting the passage of the game ball. When the gate detection switch 13a detects the passage of the game ball, the normal symbol determination random number value. Is acquired, and a “normal symbol lottery” to be described later is performed.

第1大入賞口16は、通常は第1大入賞口開閉扉16bによって閉状態に維持されており、遊技球の入球を不可能としている。これに対して、後述する特別遊技が開始されると、第1大入賞口開閉扉16bが開放されるとともに、この第1大入賞口開閉扉16bが遊技球を第1大入賞口16内に導く受け皿として機能し、遊技球が第1大入賞口16に入球可能となる。第1大入賞口16には第1大入賞口検出スイッチ16a(図4参照)が設けられており、この第1大入賞口検出スイッチ16aが遊技球の入球を検出すると、予め設定された賞球(例えば15個の遊技球)が払い出される。   The first grand prize opening 16 is normally kept closed by the first big prize opening opening / closing door 16b, and it is impossible to enter a game ball. In contrast, when a special game, which will be described later, is started, the first grand prize opening opening / closing door 16b is opened, and the first big prize opening opening / closing door 16b puts the game ball in the first big winning opening 16; It functions as a receiving tray that guides the game ball and can enter the first grand prize opening 16. The first big prize opening 16 is provided with a first big prize opening detection switch 16a (see FIG. 4). When the first big prize opening detection switch 16a detects the entry of a game ball, it is set in advance. Prize balls (for example, 15 game balls) are paid out.

更には、遊技領域6の最下部であって遊技領域6の最下部の領域には、一般入賞口12、第1始動口14、第2始動口15、第1大入賞口16および第2大入賞口17のいずれにも入球しなかった遊技球を排出するためのアウト口11が設けられている。   Furthermore, in the lowermost area of the game area 6 and the lowermost area of the game area 6, the general winning opening 12, the first starting opening 14, the second starting opening 15, the first major winning opening 16, and the second large winning opening. An out port 11 is provided for discharging game balls that have not entered any of the winning ports 17.

また、遊技領域6の中央には、遊技球の流下に影響を与える飾り部材7が設けられている。この飾り部材7の略中央部分には、液晶表示装置31が設けられており、この液晶表示装置31の上方には、ベルトの形をした演出用駆動装置33が設けられている。
なお、本実施形態においては、液晶表示装置31を液晶表示器として用いているが、有機ELディスプレイを用いてもよいし、プロジェクター、円環状の構造物からなるリール、いわゆる7セグメントLED、ドットマトリクス等の表示装置等を用いてもよい。
In addition, a decoration member 7 that affects the flow of the game ball is provided in the center of the game area 6. A liquid crystal display device 31 is provided at a substantially central portion of the decorative member 7, and an effect driving device 33 in the form of a belt is provided above the liquid crystal display device 31.
In this embodiment, the liquid crystal display device 31 is used as a liquid crystal display. However, an organic EL display may be used, a projector, a reel made of an annular structure, a so-called 7-segment LED, a dot matrix. A display device or the like may be used.

この液晶表示装置31は、遊技が行われていない待機中に画像を表示したり、遊技の進行に応じた画像を表示したりする。なかでも、後述する大当たりの抽選結果を報知するための3個の演出図柄36が表示され、特定の演出図柄36の組合せ(例えば、777等)が停止表示されることにより、大当たりの抽選結果として大当たりが報知される。
より具体的には、第1始動口14または第2始動口15に遊技球が入球したときには、3個の演出図柄36をそれぞれスクロール表示するとともに、所定時間経過後に当該スクロールを停止させて、演出図柄36を停止表示するものである。また、この演出図柄36の変動表示中に、さまざまな画像やキャラクタ等を表示することによって、大当たりに当選するかもしれないという高い期待感を遊技者に与えるようにもしている。
The liquid crystal display device 31 displays an image during standby when no game is being performed, or displays an image according to the progress of the game. Among them, three effect symbols 36 for informing the jackpot lottery result, which will be described later, are displayed, and a combination of specific effect symbols 36 (for example, 777) is stopped and displayed as a jackpot lottery result. A jackpot is announced.
More specifically, when a game ball enters the first start port 14 or the second start port 15, the three effect symbols 36 are scroll-displayed, and the scroll is stopped after a predetermined time, The effect design 36 is stopped and displayed. Further, by displaying various images, characters, and the like during the variation display of the effect symbol 36, a high expectation that the player may win a big hit is given to the player.

上記演出用駆動装置33は、その動作態様によって遊技者に期待感を与えるものである。演出用駆動装置33は、例えば、ベルトが下方に移動したり、ベルト中央部の回転部材が回転したりする動作を行う。これら演出用駆動装置33の動作態様によって、遊技者にさまざまな期待感を与えるようにしている。   The effect driving device 33 gives a player a sense of expectation according to the operation mode. The effect driving device 33 performs, for example, an operation in which the belt moves downward or a rotating member at the center of the belt rotates. Various operational feelings are given to the player depending on the operation mode of the effect driving device 33.

更に、上記の各種の演出装置に加えて、音声出力装置32は、バックグラウンドミュージック、サウンドエフェクト等を出力し、サウンドによる演出を行い、演出用照明装置34は、各ランプの光の照射方向や発光色を変更して、照明による演出を行うようにしている。   Furthermore, in addition to the above-described various production devices, the audio output device 32 outputs background music, sound effects, and the like, and produces productions using sound. The production lighting device 34 includes the illumination direction of each lamp, The luminescent color is changed to produce lighting.

また、演出ボタン35は、例えば、上記液晶表示装置31に当該演出ボタン35を操作するようなメッセージが表示されたときのみ有効となる。演出ボタン35には、演出ボタン検出スイッチ35a(図4参照)が設けられており、この演出ボタン検出スイッチ35aが遊技者の操作を検出すると、この操作に応じてさらなる演出が実行される。   The effect button 35 is effective only when, for example, a message for operating the effect button 35 is displayed on the liquid crystal display device 31. The effect button 35 is provided with an effect button detection switch 35a (see FIG. 4). When the effect button detection switch 35a detects the player's operation, a further effect is executed in accordance with this operation.

遊技領域6の右下方には、第1特別図柄表示装置20、第2特別図柄表示装置21、普通図柄表示装置22、第1特別図柄保留表示器23、第2特別図柄保留表示器24、普通図柄保留表示器25が設けられている。   In the lower right of the game area 6, a first special symbol display device 20, a second special symbol display device 21, a normal symbol display device 22, a first special symbol hold indicator 23, a second special symbol hold indicator 24, a normal A symbol hold indicator 25 is provided.

上記第1特別図柄表示装置20は、第1始動口14に遊技球が入球したことを契機として行われた大当たりの抽選結果を報知するものであり、7セグメントのLEDで構成されている。つまり、大当たりの抽選結果に対応する特別図柄が複数設けられており、この第1特別図柄表示装置20に大当たりの抽選結果に対応する特別図柄を表示することによって、抽選結果を遊技者に報知するようにしている。例えば、大当たりに当選した場合には「7」が表示され、ハズレであった場合には「−」が表示される。このようにして表示される「7」や「−」が特別図柄となるが、この特別図柄はすぐに表示されるわけではなく、所定時間変動表示された後に、停止表示されるようにしている。   The first special symbol display device 20 is for notifying a lottery result obtained when a game ball enters the first start port 14, and is composed of 7-segment LEDs. That is, a plurality of special symbols corresponding to the jackpot lottery result are provided, and the lottery result is notified to the player by displaying the special symbol corresponding to the jackpot lottery result on the first special symbol display device 20. I am doing so. For example, “7” is displayed when the jackpot is won, and “−” is displayed when the player wins. “7” and “−” displayed in this way are special symbols, but these special symbols are not displayed immediately, but are displayed in a stopped state after being displayed for a predetermined time. .

ここで、「大当たりの抽選」とは、第1始動口14または第2始動口15に遊技球が入球したときに、特別図柄判定用乱数値を取得し、取得した特別図柄判定用乱数値が「大当たり」に対応する乱数値であるか、「小当たり」に対応する乱数値であるかの判定する処理をいう。この大当たりの抽選結果は即座に遊技者に報知されるわけではなく、第1特別図柄表示装置20において特別図柄が点滅等の変動表示を行い、所定の変動時間を経過したところで、大当たりの抽選結果に対応する特別図柄が停止表示して、遊技者に抽選結果が報知されるようにしている。なお、第2特別図柄表示装置21は、第2始動口15に遊技球が入球したことを契機として行われた大当たりの抽選結果を報知するためのもので、その表示態様は、上記第1特別図柄表示装置20における特別図柄の表示態様と同一である。   Here, the “successful lottery” means that when a game ball enters the first starting port 14 or the second starting port 15, a special symbol determining random number value is acquired, and the acquired special symbol determining random value is acquired. Is a random number value corresponding to “big hit” or a random number value corresponding to “small hit”. The jackpot lottery result is not immediately notified to the player, and the first special symbol display device 20 displays a variation such as blinking of the special symbol, and when the predetermined variation time has passed, the jackpot lottery result The special symbol corresponding to is stopped and displayed so that the player is notified of the lottery result. The second special symbol display device 21 is for notifying a lottery result of a jackpot that is performed when a game ball enters the second start port 15, and the display mode is the above-described first display mode. This is the same as the special symbol display mode in the special symbol display device 20.

また、本実施形態において「大当たり」というのは、第1始動口14または第2始動口15に遊技球が入球したことを条件として行われる大当たりの抽選において、大当たり遊技を実行する権利を獲得したことをいう。「大当たり遊技」においては、第1大入賞口16または第2大入賞口17が開放されるラウンド遊技を計15回行う。各ラウンド遊技における第1大入賞口16または第2大入賞口17の最大開放時間については予め定められた時間が設定されており、この間に第1大入賞口16または第2大入賞口17に所定個数の遊技球(例えば9個)が入球すると、1回のラウンド遊技が終了となる。つまり、「大当たり遊技」は、第1大入賞口16または第2大入賞口17に遊技球が入球するとともに、当該入球に応じた賞球を遊技者が獲得できる遊技である。   Further, in this embodiment, “big hit” means that a right to win a big hit game is obtained in a big win lottery performed on condition that a game ball has entered the first start port 14 or the second start port 15 Say what you did. In the “hit game”, a round game in which the first big prize opening 16 or the second big prize opening 17 is opened is performed 15 times in total. A predetermined time is set for the maximum opening time of the first grand prize port 16 or the second grand prize port 17 in each round game, and during this time, the first grand prize port 16 or the second grand prize port 17 is set. When a predetermined number of game balls (for example, nine) enter, one round game is completed. In other words, the “big hit game” is a game in which a game ball can enter the first grand prize winning opening 16 or the second big winning prize opening 17 and the player can acquire a winning ball according to the winning prize.

本実施形態では、「大当たりの抽選」においては、その当選確率により2つの遊技状態が設定されている。すなわち、当選確率が1/299.5に設定された「低確率遊技状態」と、当選確率が1/29.95に設定された「高確率遊技状態」である。また、「大当たり遊技」においても、複数種類の大当たり遊技が設定されている。例えば、「長当たり遊技」となれば、第1大入賞口16が、1ラウンド遊技ごとに、29.000秒間×1回開放(×15ラウンド)される。「短当たり遊技」となれば、第2大入賞口17が、1ラウンド遊技ごとに、0.052秒間×1回(×15ラウンド)開放される。「発展当たり遊技」となれば、第2大入賞口17が、最初の1ラウンド遊技では0.052秒間×3回開放され、2ラウンド目以降は、1ラウンド遊技ごとに29.000秒間×1回(×14ラウンド)開放される。
また、「小当たり」の場合は、当選確率が1/149.75の1つの遊技状態が設定されている。また、「小当たり遊技」となれば、ラウンド遊技ではないものの、第2大入賞口17が0.052秒間×15回開放される。なお、本実施形態では、「大当たり遊技」と「小当たり遊技」とを総称して「特別遊技」という。
In this embodiment, in the “hit lottery”, two gaming states are set according to the winning probability. That is, the “low probability gaming state” in which the winning probability is set to 1 / 299.5 and the “high probability gaming state” in which the winning probability is set to 1 / 29.95. Also, in the “jackpot game”, a plurality of types of jackpot games are set. For example, in the case of “game per long”, the first grand prize opening 16 is released once (× 15 rounds) for 29.000 seconds for each round game. If it is “short win game”, the second big prize opening 17 is opened for 0.052 seconds × 1 time (× 15 rounds) for each round game. In the case of “game per development”, the second grand prize opening 17 is opened for 0.052 seconds × 3 times in the first round game, and after the second round, 29.000 seconds × 1 for each round game. Times (× 14 rounds).
In the case of “small hit”, one gaming state with a winning probability of 1 / 149.75 is set. In addition, if it is a “small hit game”, although it is not a round game, the second big prize opening 17 is opened for 0.052 seconds × 15 times. In the present embodiment, “big hit game” and “small hit game” are collectively referred to as “special game”.

また、普通図柄表示装置22は、普通図柄ゲート13を遊技球が通過したことを契機として行われる普通図柄の抽選結果を報知するためのものである。詳しくは後述するが、この普通図柄の抽選によって当たりに当選すると普通図柄表示装置22が点灯し、その後、上記第2始動口15が所定時間、第2の態様に制御される。   The normal symbol display device 22 is for notifying the lottery result of the normal symbol that is performed when the game ball passes through the normal symbol gate 13. As will be described in detail later, when the winning symbol is won by the normal symbol lottery, the normal symbol display device 22 is turned on, and then the second start port 15 is controlled to the second mode for a predetermined time.

ここで、「普通図柄の抽選」とは、普通図柄ゲート13に遊技球が通過したときに、普通図柄判定用乱数値を取得し、取得した普通図柄判定用乱数値が「当たり」に対応する乱数値であるかどうかを判定する処理をいう。この普通図柄の抽選結果についても、普通図柄ゲート13を遊技球が通過して即座に抽選結果が報知されるわけではなく、普通図柄表示装置22において普通図柄が点滅等の変動表示を行い、所定の変動時間を経過したところで、普通図柄の抽選結果に対応する普通図柄が停止表示して、遊技者に抽選結果が報知されるようにしている。   Here, “normal symbol lottery” means that when a game ball passes through the normal symbol gate 13, the normal symbol determination random number value is acquired, and the acquired normal symbol determination random value corresponds to “winning”. A process for determining whether or not the value is a random value. The lottery result of the normal symbol is not always notified immediately after the game ball passes through the normal symbol gate 13, but the normal symbol display device 22 displays a variation such as blinking of the normal symbol. When the fluctuation time elapses, the normal symbol corresponding to the lottery result of the normal symbol is stopped and displayed so that the player is notified of the lottery result.

更に、特別図柄の変動表示中や後述する特別遊技中等、第1始動口14または第2始動口15に遊技球が入球して、即座に大当たりの抽選が行えない場合には、一定の条件のもとで、大当たりの抽選の権利が保留される。より詳細には、第1始動口14に遊技球が入球したときに取得された特別図柄判定用乱数値を第1保留として記憶し、第2始動口15に遊技球が入球したときに取得された特別図柄判定用乱数値を第2保留として記憶する。
これら両保留は、それぞれ上限保留個数を4個に設定し、その保留個数は、それぞれ第1特別図柄保留表示器23と第2特別図柄保留表示器24とに表示される。なお、第1保留が1つの場合には、第1特別図柄保留表示器23の左側のLEDが点灯し、第1保留が2つの場合には、第1特別図柄保留表示器23の2つのLEDが点灯する。また、第1保留が3つの場合には、第1特別図柄保留表示器23の左側のLEDが点滅するとともに右側のLEDが点灯し、第1保留が4つの場合には、第1特別図柄保留表示器23の2つのLEDが点滅する。また、第2特別図柄保留表示器24においても、上記と同様に第2保留の保留個数が表示される。
そして、普通図柄の上限保留個数も4個に設定されており、その保留個数が、上記第1特別図柄保留表示器23および第2特別図柄保留表示器24と同様の態様によって、普通図柄保留表示器25において表示される。
Furthermore, if a game ball enters the first start port 14 or the second start port 15 during special symbol fluctuation display or a special game to be described later, and if the big hit lottery cannot be performed immediately, a certain condition The right to win a jackpot will be withheld. More specifically, the random number value for special symbol determination acquired when the game ball enters the first start port 14 is stored as the first hold, and when the game ball enters the second start port 15 The acquired special symbol determination random number value is stored as the second hold.
For both of these holds, the upper limit hold number is set to 4, and the hold number is displayed on the first special symbol hold indicator 23 and the second special symbol hold indicator 24, respectively. When there is one first hold, the LED on the left side of the first special symbol hold indicator 23 lights up, and when there are two first holds, two LEDs on the first special symbol hold indicator 23 Lights up. In addition, when there are three first holds, the LED on the left side of the first special symbol hold indicator 23 blinks and the right LED is lit, and when there are four first holds, the first special symbol hold. Two LEDs on the display 23 blink. The second special symbol hold indicator 24 also displays the number of second hold on hold in the same manner as described above.
The upper limit reserved number of normal symbols is also set to four, and the reserved number of normal symbols is displayed in the same manner as the first special symbol hold indicator 23 and the second special symbol hold indicator 24. Displayed on the instrument 25.

ガラス枠50は、遊技盤2の前方(遊技者側)において遊技領域6を視認可能に覆うガラス板52を支持している。なお、ガラス板52は、ガラス枠50に対して着脱可能に固定されている。   The glass frame 50 supports a glass plate 52 that covers the game area 6 so as to be visible in front of the game board 2 (player side). The glass plate 52 is detachably fixed to the glass frame 50.

また、ガラス枠50は、左右方向の一端側(たとえば遊技機1に正対して左側)においてヒンジ機構部51を介して外枠60に連結されており、ヒンジ機構部51を支点として左右方向の他端側(たとえば遊技機1に正対して右側)を外枠60から開放させる方向に回動可能とされている。ガラス枠50は、ガラス板52とともに遊技盤2を覆い、ヒンジ機構部51を支点として扉のように回動することによって、遊技盤2を含む外枠60の内側部分を開放することができる。ガラス枠50の他端側には、ガラス枠50の他端側を外枠60に固定するロック機構が設けられている。ロック機構による固定は、専用の鍵によって解除することが可能とされている。また、ガラス枠50には、ガラス枠50が外枠60から開放されているか否かを検出する扉開放スイッチ133(図4参照)も設けられている。   The glass frame 50 is connected to the outer frame 60 via the hinge mechanism 51 on one end side in the left-right direction (for example, the left side facing the gaming machine 1). The other end side (for example, the right side facing the gaming machine 1) can be rotated in a direction to release from the outer frame 60. The glass frame 50 covers the game board 2 together with the glass plate 52, and can be opened like a door with the hinge mechanism 51 as a fulcrum to open the inner part of the outer frame 60 including the game board 2. On the other end side of the glass frame 50, a lock mechanism for fixing the other end side of the glass frame 50 to the outer frame 60 is provided. The fixing by the lock mechanism can be released by a dedicated key. The glass frame 50 is also provided with a door opening switch 133 (see FIG. 4) for detecting whether or not the glass frame 50 is opened from the outer frame 60.

遊技機1の裏面には、主制御部110が搭載された主制御基板、中間制御部180が搭載された中間制御基板、演出制御部120が搭載された演出制御基板、払出制御部130が搭載された払出制御基板、電源部170が搭載された電源基板、遊技情報出力端子板30などが設けられている。また、電源部170に遊技機1に電力を給電するための電源プラグ171や、図示しない電源スイッチが設けられている。   On the back side of the gaming machine 1, a main control board on which the main control unit 110 is mounted, an intermediate control board on which the intermediate control unit 180 is mounted, an effect control board on which the effect control unit 120 is mounted, and a payout control unit 130 are mounted. The payout control board, the power supply board on which the power supply unit 170 is mounted, the game information output terminal board 30 and the like are provided. Further, the power supply unit 170 is provided with a power plug 171 for supplying power to the gaming machine 1 and a power switch (not shown).

[遊技機の内部構成]
以下、本発明の実施形態に係る遊技機1の遊技進行に係る処理を制御する制御手段について説明する。
図4は、本実施形態に係る遊技機1の内部構成を示すブロック図である。
[Internal configuration of gaming machine]
Hereinafter, control means for controlling processing related to game progress of the gaming machine 1 according to the embodiment of the present invention will be described.
FIG. 4 is a block diagram showing an internal configuration of the gaming machine 1 according to the present embodiment.

主制御部110は、遊技の基本動作を制御する主制御手段であり、第1始動口検出スイッチ14a等の各種検出信号を入力して、第1特別図柄表示装置20や第1大入賞口開閉ソレノイド16c等を駆動させて遊技を制御するものである。   The main control unit 110 is a main control means for controlling the basic operation of the game, and receives various detection signals from the first start port detection switch 14a, etc., and opens and closes the first special symbol display device 20 and the first grand prize opening. The game is controlled by driving the solenoid 16c and the like.

この主制御部110は、メインCPU110a、メインROM110b、メインRAM110c、ブートROM110dから少なくとも構成されるワンチップマイコン110mと、検査値生成部500と、送信部550と、主制御用の入力ポートと出力ポート(図示せず)とを少なくとも備えている。   The main control unit 110 includes a one-chip microcomputer 110m including at least a main CPU 110a, a main ROM 110b, a main RAM 110c, and a boot ROM 110d, a test value generation unit 500, a transmission unit 550, an input port and an output port for main control. (Not shown).

この主制御用の入力ポートには、払出制御部130、一般入賞口12に遊技球が入球したことを検知する一般入賞口検出スイッチ12a、普通図柄ゲート13に遊技球が入球したことを検知するゲート検出スイッチ13a、第1始動口14に遊技球が入球したことを検知する第1始動口検出スイッチ14a、第2始動口15に遊技球が入球したことを検知する第2始動口検出スイッチ15a、第1大入賞口16に遊技球が入球したことを検知する第1大入賞口検出スイッチ16a、第2大入賞口17に遊技球が入球したことを検知する第2大入賞口検出スイッチ17aが接続されている。この主制御用の入力ポートによって、各種信号が主制御部110に入力される。   The main control input port includes a payout control unit 130, a general winning port detecting switch 12a for detecting that a gaming ball has entered the general winning port 12, and a game ball having been inserted into the normal symbol gate 13. Gate detection switch 13a to detect, first start port detection switch 14a to detect that a game ball has entered the first start port 14, and second start to detect that a game ball has entered the second start port 15 The mouth detection switch 15a, the first grand prize opening detection switch 16a that detects that a game ball has entered the first grand prize opening 16, and the second that detects that a game ball has entered the second grand prize opening 17 A big prize opening detection switch 17a is connected. Various signals are input to the main control unit 110 through the input port for main control.

また、主制御用の出力ポートには、払出制御部130、第2始動口15の一対の可動片15bを開閉動作させる始動口開閉ソレノイド15c、第1大入賞口開閉扉16bを動作させる第1大入賞口開閉ソレノイド16c、第2大入賞口開閉扉17bを動作させる第2大入賞口開閉ソレノイド17c、特別図柄を表示する第1特別図柄表示装置20と第2特別図柄表示装置21、普通図柄を表示する普通図柄表示装置22、特別図柄の保留球数を表示する第1特別図柄保留表示器23と第2特別図柄保留表示器24、普通図柄の保留球数を表示する普通図柄保留表示器25、外部情報信号を出力する遊技情報出力端子板30が接続されている。この主制御用の出力ポートによって、各種信号が出力される。   The main control output port includes a payout control unit 130, a start opening / closing solenoid 15c for opening / closing the pair of movable pieces 15b of the second start opening 15, and a first large winning opening opening / closing door 16b. A special winning opening / closing solenoid 16c, a second large winning opening / closing solenoid 17c for operating the second winning opening / closing door 17b, a first special symbol display device 20 and a second special symbol display device 21 for displaying special symbols, and a normal symbol. A normal symbol display device 22 for displaying a symbol, a first special symbol hold indicator 23 and a second special symbol hold indicator 24 for displaying the number of reserved balls for a special symbol, and a normal symbol hold indicator for displaying the number of reserved balls for a normal symbol 25. A game information output terminal board 30 for outputting an external information signal is connected. Various signals are output from the main control output port.

主制御部110のメインCPU110aは、各検出スイッチや内部機能として組み込まれている図示しないタイマ等からの入力信号に基づいて、メインROM110bに記憶されたプログラムを読み出して演算処理を行うとともに、演算処理の結果に応じて、主制御部110を構成する各構成部に対する制御指示(以下、「制御信号」という)や主制御部110以外の他の制御部に対する制御コマンドを出力したりする。   The main CPU 110a of the main control unit 110 reads out a program stored in the main ROM 110b based on an input signal from each detection switch or a timer (not shown) incorporated as an internal function, and performs arithmetic processing. Depending on the result, a control instruction (hereinafter referred to as “control signal”) for each component constituting the main control unit 110 and a control command for another control unit other than the main control unit 110 are output.

主制御部110のメインROM110bには、遊技進行に係る処理の内容や手順を記述した遊技処理用プログラムや、各種の遊技の決定に必要な固定データ、テーブルが予め記憶されている。
メインROM110bに記憶されたテーブルとして一例を挙げれば、大当たり抽選に参照される大当たり判定テーブル、普通図柄の抽選に参照される当たり判定テーブル、特別図柄の停止図柄を決定する図柄決定テーブル、大当たり終了後の遊技状態を決定するための大当たり遊技終了時設定データテーブル、大入賞口開閉扉の開閉条件を決定する特別電動役物作動態様決定テーブル、大入賞口開放態様テーブル、特別図柄の変動パターンを決定する変動パターン決定テーブルなどがある。
The main ROM 110b of the main control unit 110 stores in advance a game processing program that describes the content and procedure of processing related to game progress, and fixed data and tables necessary for determining various games.
As an example of a table stored in the main ROM 110b, a jackpot determination table referred to in the jackpot lottery, a hit determination table referred to in the normal symbol lottery, a symbol determination table for determining the stop symbol of the special symbol, after the jackpot ends End of jackpot game setting data table for determining the gaming state of the game, special electric accessory operating mode determination table for determining the opening / closing conditions of the special winning opening opening door, determining the opening pattern table of the special winning opening, and the variation pattern of the special symbol There is a variation pattern determination table.

また、メインROM110bには、検査値生成部500を介して送信部550から制御コマンドを送信する処理の内容や手順を記述した認証処理用プログラムや、認証処理用プログラムを実行する際に使用される固定データなどが予め記憶されている。また、メインROM110bには、電源投入時などの遊技機1のリセット時に行われる主制御部110のブート処理中に、ワンチップマイコン110mの内蔵回路や周辺回路等に対して設定される初期値(いわゆるハードウェアパラメータ)が予め記憶されている。また、メインROM110bには、遊技機1固有の情報である固有情報などが予め記憶されている。   Further, the main ROM 110b is used when executing an authentication processing program describing the content and procedure of processing for transmitting a control command from the transmission unit 550 via the inspection value generation unit 500, and an authentication processing program. Fixed data and the like are stored in advance. The main ROM 110b also stores initial values set for the built-in circuit and peripheral circuits of the one-chip microcomputer 110m during the boot process of the main control unit 110 performed when the gaming machine 1 is reset such as when the power is turned on. So-called hardware parameters) are stored in advance. In addition, unique information that is unique to the gaming machine 1 is stored in the main ROM 110b in advance.

主制御部110のブートROM110dには、ワンチップマイコン110mの内蔵回路や周辺回路等の初期化および初期値の設定処理(以下、「初期値設定処理」という)を含む、メインCPU110aが実行するブート処理の内容や手順を記述したブート処理用プログラムや、ブート処理用プログラムの実行の際に使用される固定データが記憶されている。このブート処理用プログラムは、メインCPU110aの起動直後に立ち上るように設定されている。   The boot ROM 110d of the main control unit 110 includes a boot executed by the main CPU 110a, including initialization of internal circuits and peripheral circuits of the one-chip microcomputer 110m and initial value setting processing (hereinafter referred to as “initial value setting processing”). A boot processing program describing the contents and procedure of processing, and fixed data used when executing the boot processing program are stored. This boot processing program is set to start immediately after the main CPU 110a is activated.

主制御部110のメインRAM110cは、メインCPU110aの演算処理時におけるデータのワークエリアとして機能し、複数の記憶領域を有している。
メインRAM110cが有する記憶領域として一例を挙げれば、普通図柄保留数(G)記憶領域、普通図柄保留記憶領域、普通図柄データ記憶領域、第1特別図柄保留数(U1)記憶領域、第2特別図柄保留数(U2)記憶領域、第1特別図柄乱数値記憶領域、第2特別図柄乱数値記憶領域、ラウンド遊技回数(R)記憶領域、開放回数(K)記憶領域、大入賞口入球数(C)記憶領域、遊技状態記憶領域(高確率遊技フラグ記憶領域等)、高確率遊技回数(X)カウンタ、遊技状態バッファ、停止図柄データ記憶領域、送信データ用記憶領域、特別図柄時間カウンタ、特別遊技タイマカウンタなど各種のタイマカウンタなどがある。
The main RAM 110c of the main control unit 110 functions as a data work area during the arithmetic processing of the main CPU 110a, and has a plurality of storage areas.
As an example of the storage area that the main RAM 110c has, a normal symbol holding number (G) storage area, a normal symbol holding storage area, a normal symbol data storage area, a first special symbol holding number (U1) storage area, a second special symbol Reservation count (U2) storage area, first special symbol random value storage area, second special symbol random value storage area, round game number (R) storage area, number of open times (K) storage area, number of big winning entrances ( C) Storage area, game state storage area (high probability game flag storage area, etc.), high probability game count (X) counter, game state buffer, stop symbol data storage region, transmission data storage region, special symbol time counter, special There are various timer counters such as game timer counters.

主制御部110の検査値生成部500は、メインCPU110aと送信部550との間に設けられている。検査値生成部500は、主制御部110が制御コマンドを送信する際に、制御コマンドの正当性を検査して主制御部110の正当性を認証するための誤り検査値を生成し、制御コマンドに付加する機能(以下、「誤り検査値付加機能」という)を有している。具体的には、検査値生成部500は、メインCPU110aが送信部550にて制御コマンドを送信する処理(以下、「コマンド送信処理」という)を行う際に、メインCPU110aから制御コマンドを受け取る。そして、検査値生成部500は、受け取った制御コマンドの誤り検査値を生成する処理(以下、「検査値生成処理という」)を行う。そして、検査値生成部500は、生成した誤り検査値を制御コマンドに付加する処理(以下、「検査値付加処理」という)を行った後、誤り検査値付きの制御コマンドを送信部550へ出力する。   The inspection value generation unit 500 of the main control unit 110 is provided between the main CPU 110a and the transmission unit 550. When the main control unit 110 transmits a control command, the check value generation unit 500 checks the validity of the control command and generates an error check value for authenticating the validity of the main control unit 110. Has a function (hereinafter referred to as “error check value addition function”). Specifically, the inspection value generation unit 500 receives a control command from the main CPU 110a when the main CPU 110a performs a process of transmitting a control command by the transmission unit 550 (hereinafter referred to as “command transmission process”). Then, the check value generation unit 500 performs a process of generating an error check value of the received control command (hereinafter referred to as “check value generation process”). Then, check value generation unit 500 performs processing for adding the generated error check value to the control command (hereinafter referred to as “check value addition processing”), and then outputs the control command with the error check value to transmission unit 550. To do.

主制御部110の送信部550は、上記主制御用の出力ポートの中でも、特に、主制御部110に対する認証機能を担うよう予め定められた制御部(後述する中間制御部180)への制御コマンドの出力に用いられる。具体的には、送信部550は、検査値生成部500に後続して設けられており、検査値生成部500から出力された誤り検査値付きの制御コマンドを中間制御部180へ送信する。   The transmission unit 550 of the main control unit 110 is a control command to a control unit (intermediate control unit 180 to be described later) that is determined in advance to perform an authentication function for the main control unit 110 among the output ports for main control. Used for output. Specifically, the transmission unit 550 is provided subsequent to the check value generation unit 500, and transmits a control command with an error check value output from the check value generation unit 500 to the intermediate control unit 180.

遊技情報出力端子板30は、主制御部110において生成された外部情報信号を遊技店のホールコンピュータ等に出力するための基板である。遊技情報出力端子板30は、主制御部110と配線接続され、外部情報を遊技店のホールコンピュータ等と接続をするためのコネクタが設けられている。   The game information output terminal board 30 is a board for outputting an external information signal generated by the main control unit 110 to a hall computer or the like of a game store. The game information output terminal board 30 is connected to the main controller 110 by wiring, and is provided with a connector for connecting external information to a hall computer or the like of a game store.

電源部170は、コンデンサからなるバックアップ電源を備えており、遊技機1に電源電圧を供給するとともに、遊技機1に供給する電源電圧を監視し、電源電圧が所定値以下となったときに、電断検知信号を主制御部110へ出力する。より具体的には、電源電圧が、設定値以下を示すために電断検知信号がローレベルとなり一定時間経過すると、リセット信号がローレベルとなり、メインCPU110aは動作を停止する処理を行う。その後、電源電圧が、設定値以上を示すために電断検知信号がハイレベルとなり一定時間経過すると、リセット信号がハイレベルとなり、メインCPU110aは動作を開始する処理を行う。バックアップ電源はコンデンサに限らず、例えば、電池でもよく、コンデンサと電池とを併用して用いてもよい。   The power supply unit 170 includes a backup power source composed of a capacitor, supplies a power supply voltage to the gaming machine 1, and monitors a power supply voltage supplied to the gaming machine 1, and when the power supply voltage becomes a predetermined value or less, An electric interruption detection signal is output to the main control unit 110. More specifically, when the power interruption detection signal is at a low level and a certain time has elapsed since the power supply voltage is equal to or lower than a set value, the reset signal is at a low level and the main CPU 110a performs a process of stopping the operation. Thereafter, when the power interruption detection signal becomes a high level because the power supply voltage is equal to or higher than the set value and a predetermined time elapses, the reset signal becomes a high level, and the main CPU 110a performs a process of starting an operation. The backup power source is not limited to a capacitor, and may be a battery, for example, or a capacitor and a battery may be used in combination.

中間制御部180は、主に主制御部110に対する認証機能を実現するための制御手段であり、CPU180a、ROM180b、RAM180cを備えている。中間制御部180は、主制御部110と、主制御部110が本来の遊技処理に係る制御コマンドを送信する対象となる制御部(演出制御部120や払出制御部130等)との間に設けられている。   The intermediate control unit 180 is a control means for mainly realizing an authentication function for the main control unit 110, and includes a CPU 180a, a ROM 180b, and a RAM 180c. The intermediate control unit 180 is provided between the main control unit 110 and a control unit (the effect control unit 120, the payout control unit 130, etc.) to which the main control unit 110 transmits a control command related to the original game process. It has been.

例えば、図4に示すように、中間制御部180が主制御部110と演出制御部120との間に設けられている場合、中間制御部180は、主制御部110から中間制御部180への一方向に通信可能となるように接続され、中間制御部180から演出制御部120への一方向に通信可能となるように接続されている。また、図示しないが、中間制御部180が主制御部110と払出制御部130との間に設けられている場合、中間制御部180は、主制御部110との間で双方向に通信可能となるように接続され、払出制御部130との間で双方向に通信可能となるように接続されている。よって、中間制御部180が介在する場合、演出制御部120や払出制御部130等は、主制御部110から直接制御コマンドを送信されず、中間制御部180を介して送信されることとなる。   For example, as shown in FIG. 4, when the intermediate control unit 180 is provided between the main control unit 110 and the effect control unit 120, the intermediate control unit 180 is transferred from the main control unit 110 to the intermediate control unit 180. They are connected so as to be communicable in one direction, and are connected so as to be communicable in one direction from the intermediate control unit 180 to the effect control unit 120. Although not shown, when the intermediate control unit 180 is provided between the main control unit 110 and the payout control unit 130, the intermediate control unit 180 can communicate with the main control unit 110 in both directions. And are connected so as to be able to communicate bidirectionally with the payout control unit 130. Therefore, when the intermediate control unit 180 is interposed, the effect control unit 120, the payout control unit 130, and the like are not transmitted directly from the main control unit 110, but are transmitted via the intermediate control unit 180.

CPU180aは、主制御部110から送信された制御コマンド、または、内部機能として組み込まれている図示しないタイマからの入力信号に基づいて、ROM180bに記憶されたプログラムを読み出して演算処理を行う。そして、CPU180aは、当該処理に基づいて、対応するデータを後続する演出制御部120や払出制御部130へ送信する。RAM180cは、CPU180aの演算処理時におけるデータのワークエリアとして機能する。   The CPU 180a reads out a program stored in the ROM 180b based on a control command transmitted from the main control unit 110 or an input signal from a timer (not shown) incorporated as an internal function, and performs arithmetic processing. Then, CPU 180a transmits the corresponding data to subsequent effect control unit 120 and payout control unit 130 based on the processing. The RAM 180c functions as a data work area during the arithmetic processing of the CPU 180a.

例えば、中間制御部180のCPU180aは、主制御部110から送信された制御コマンドを受信すると、当該制御コマンドの正当性を検査して主制御部110の正当性を認証する誤り検査処理を行う。そして、CPU180aは、当該処理にて得られた認証結果の情報(以下、「認証結果データ」という)を後続する演出制御部120や払出制御部130等へ送信し、認証結果データに基づく処理を実行させる。また、CPU180aは、受信した制御コマンドの具体的な処理内容および受信順序を維持したまま、当該制御コマンドを後続する演出制御部120や払出制御部130等へ送信する中継送信処理を行う。   For example, when the CPU 180a of the intermediate control unit 180 receives a control command transmitted from the main control unit 110, the CPU 180a performs error check processing for checking the validity of the control command and authenticating the validity of the main control unit 110. Then, the CPU 180a transmits the authentication result information (hereinafter referred to as “authentication result data”) obtained by the processing to the subsequent effect control unit 120, the payout control unit 130, and the like, and performs processing based on the authentication result data. Let it run. In addition, the CPU 180a performs a relay transmission process of transmitting the control command to the subsequent effect control unit 120, the payout control unit 130, or the like while maintaining the specific processing content and the reception order of the received control command.

また、ROM180bには、CPU180aにて行われる受信した制御コマンドへの誤り検査処理を含む認証処理の内容や手順を記述した認証処理用プログラムや、認証処理用プログラムの実行の際に使用される固定データ、および主制御部110のメインROM110bに記憶された固有情報に対応する情報などが予め記憶されている。
このように、中間制御部180は、主制御部110に対する認証機能と、受信した制御コマンドを後続する演出制御部120や払出制御部130等へ中継送信する機能と、誤り検査処理にて得られた認証結果データを後続する演出制御部120や払出制御部130等へ送信する機能とを少なくとも有している。なお、これら認証処理に関する構成については後述する。
Further, the ROM 180b has an authentication processing program describing the contents and procedure of authentication processing including error checking processing for the received control command performed by the CPU 180a, and a fixed used for executing the authentication processing program. Data and information corresponding to the unique information stored in the main ROM 110b of the main control unit 110 are stored in advance.
As described above, the intermediate control unit 180 is obtained by the error checking process, the authentication function for the main control unit 110, the function of relaying the received control command to the subsequent effect control unit 120, the payout control unit 130, and the like. At least a function of transmitting the authentication result data to the subsequent effect control unit 120, payout control unit 130, and the like. In addition, the structure regarding these authentication processes is mentioned later.

演出制御部120は、主に遊技中や待機中等の各演出を制御する。この演出制御部120は、サブCPU120a、サブROM120b、サブRAM120cを備えており、主制御部110から演出制御部120への一方向に通信可能となるように設けられている。なお、図4に示すように、中間制御部180が主制御部110と演出制御部120との間に設けられている場合、演出制御部120は、中間制御部180を介して主制御部110から演出制御部120への一方向に通信可能となる。   The effect control unit 120 mainly controls each effect such as during a game or standby. The effect control unit 120 includes a sub CPU 120a, a sub ROM 120b, and a sub RAM 120c, and is provided so as to be able to communicate in one direction from the main control unit 110 to the effect control unit 120. As shown in FIG. 4, when the intermediate control unit 180 is provided between the main control unit 110 and the effect control unit 120, the effect control unit 120 is connected to the main control unit 110 via the intermediate control unit 180. To the direction control unit 120 in one direction.

サブCPU120aは、主制御部110から送信された制御コマンド、または、上記演出ボタン検出スイッチ35a、タイマからの入力信号に基づいて、サブROM120bに記憶されたプログラムを読み出して演算処理を行うとともに、当該処理に基づいて、対応するデータをランプ制御部140または画像制御部150に送信する。サブRAM120cは、サブCPU120aの演算処理時におけるデータのワークエリアとして機能する。   The sub CPU 120a reads out the program stored in the sub ROM 120b based on the control command transmitted from the main control unit 110 or the input signal from the effect button detection switch 35a and the timer, performs arithmetic processing, and Based on the processing, the corresponding data is transmitted to the lamp control unit 140 or the image control unit 150. The sub RAM 120c functions as a data work area during the arithmetic processing of the sub CPU 120a.

例えば、演出制御部120におけるサブCPU120aは、主制御部110から送信された制御コマンドの1つである特別図柄の変動態様を示す変動パターン指定コマンドを受信すると、受信した変動パターン指定コマンドの内容を解析して、液晶表示装置31、音声出力装置32、演出用駆動装置33、演出用照明装置34に所定の演出を実行させるためのデータを生成し、かかるデータを画像制御部150やランプ制御部140へ送信する。   For example, when the sub CPU 120a in the effect control unit 120 receives a variation pattern designation command indicating a variation pattern of a special symbol, which is one of the control commands transmitted from the main control unit 110, the contents of the received variation pattern designation command are displayed. Analysis is performed to generate data for causing the liquid crystal display device 31, the audio output device 32, the effect driving device 33, and the effect illumination device 34 to execute a predetermined effect, and the data is used for the image control unit 150 and the lamp control unit. 140.

演出制御部120のサブROM120bには、演出制御用のプログラムや各種の遊技の決定に必要なデータ、テーブルが記憶されている。
サブROM120bに記憶されたテーブルとして一例を挙げれば、主制御部から受信した変動パターン指定コマンドに基づいて演出パターンを決定するための演出パターン決定テーブル、停止表示する演出図柄36の組み合わせを決定するための演出図柄決定テーブルなどがある。
The sub ROM 120b of the effect control unit 120 stores a program for effect control, data necessary for determining various games, and a table.
As an example of the table stored in the sub-ROM 120b, to determine a combination of an effect pattern determination table for determining an effect pattern based on a variation pattern designation command received from the main control unit and an effect symbol 36 to be stopped and displayed. There is a production design determination table.

演出制御部120のサブRAM120cは、サブCPU120aの演算処理時におけるデータのワークエリアとして機能し、複数の記憶領域を有している。
サブRAM120cが有する記憶領域として一例を挙げれば、遊技状態記憶領域、演出モード記憶領域、演出パターン記憶領域、演出図柄記憶領域などがある。
The sub RAM 120c of the effect control unit 120 functions as a data work area during the arithmetic processing of the sub CPU 120a, and has a plurality of storage areas.
As an example of the storage area that the sub-RAM 120c has, there are a game state storage area, an effect mode storage area, an effect pattern storage area, an effect symbol storage area, and the like.

払出制御部130は、遊技球の払い出し制御を行う。この払出制御部130は、図示しない払出CPU、払出ROM、払出RAMから構成されるワンチップマイコンを備えており、主制御部110との間で双方向に通信可能となるように設けられている。なお、図示しないが、中間制御部180が主制御部110と払出制御部130との間に設けられている場合、払出制御部130は、中間制御部180を介して主制御部110との間で双方向に通信可能となる。   The payout control unit 130 controls payout of game balls. The payout control unit 130 includes a one-chip microcomputer including a payout CPU, a payout ROM, and a payout RAM (not shown), and is provided so as to be capable of bidirectional communication with the main control unit 110. . Although not shown, when the intermediate control unit 180 is provided between the main control unit 110 and the payout control unit 130, the payout control unit 130 communicates with the main control unit 110 via the intermediate control unit 180. It becomes possible to communicate in both directions.

払出CPUは、遊技球が払い出されたか否かを検知する払出球計数スイッチ132、扉開放スイッチ133、タイマからの入力信号に基づいて、払出ROMに記憶されたプログラムを読み出して演算処理を行うとともに、当該処理に基づいて、対応するデータを主制御部110に送信する。   The payout CPU reads out a program stored in the payout ROM based on input signals from the payout ball count switch 132, the door opening switch 133, and the timer that detect whether or not the game ball has been paid out, and performs arithmetic processing. At the same time, the corresponding data is transmitted to the main control unit 110 based on the processing.

また、払出制御部130の出力側には、遊技球の貯留部から所定数の遊技球を払い出すための払出装置の払出モータ131が接続されている。払出CPUは、主制御部110から送信された制御コマンドの1つである払出個数指定コマンドに基づいて、払出ROMから所定のプログラムを読み出して演算処理を行うとともに、払出装置の払出モータ131を制御して所定の遊技球を払い出す。このとき、払出RAMは、払出CPUの演算処理時におけるデータのワークエリアとして機能する。   Further, a payout motor 131 of a payout device for paying out a predetermined number of game balls from the game ball storage unit is connected to the output side of the payout control unit 130. The payout CPU reads out a predetermined program from the payout ROM based on a payout number designation command that is one of the control commands transmitted from the main control unit 110, performs arithmetic processing, and controls the payout motor 131 of the payout device. Then, a predetermined game ball is paid out. At this time, the payout RAM functions as a data work area at the time of calculation processing of the payout CPU.

ランプ制御部140は、遊技盤2に設けられた演出用照明装置34を点灯制御したり、光の照射方向を変更するためのモータに対する駆動制御をしたりする。また、演出用駆動装置33を動作させるソレノイドやモータ等の駆動源を通電制御する。このランプ制御部140は、演出制御部120に接続されており、演出制御部120から送信された各種のコマンドに基づいて、上記の各制御を行うこととなる。   The lamp control unit 140 controls lighting of the effect lighting device 34 provided on the game board 2 and controls driving of the motor for changing the light irradiation direction. In addition, energization control is performed on a drive source such as a solenoid or a motor that operates the effect driving device 33. The lamp control unit 140 is connected to the effect control unit 120, and performs the above-described controls based on various commands transmitted from the effect control unit 120.

画像制御部150は、液晶表示装置31の画像表示制御を行うためのホストCPU、ホストCPUのワークエリアとして機能する一時的な記憶領域を有するホストRAM、ホストCPUの制御処理のプログラム等が記憶されたホストROM、画像データが記憶されたCGROM、画像データを描画するフレームバッファを有するVRAM、画像プロセッサとなるVDP(Video Display Processor)と、音の制御を行う音制御回路とを備えている。   The image control unit 150 stores a host CPU for performing image display control of the liquid crystal display device 31, a host RAM having a temporary storage area functioning as a work area of the host CPU, a control processing program for the host CPU, and the like. A host ROM, a CGROM storing image data, a VRAM having a frame buffer for drawing image data, a VDP (Video Display Processor) serving as an image processor, and a sound control circuit for controlling sound.

ホストCPUは、演出制御部120から受信した演出パターン指定コマンドに基づいて、VDPにCGROMに記憶されている画像データを液晶表示装置31に表示させる指示を行う。
VDPは、ホストCPUからの指示に基づいて、CGROMに記憶された画像データをVRAMのフレームバッファに描画する。次に、VRAMにある表示用のフレームバッファに記憶された画像データに基づいて映像信号(RGB信号等)を生成し、生成した映像信号を液晶表示装置に出力する。
Based on the effect pattern designation command received from the effect control unit 120, the host CPU instructs the liquid crystal display device 31 to display the image data stored in the CGROM in the VDP.
The VDP draws image data stored in the CGROM in the frame buffer of the VRAM based on an instruction from the host CPU. Next, a video signal (RGB signal or the like) is generated based on the image data stored in the display frame buffer in the VRAM, and the generated video signal is output to the liquid crystal display device.

音制御回路には、音声データが多数記憶されている音声ROMが備えられており、音制御回路が、演出制御部120から送信されたコマンドに基づいて所定のプログラムを読み出すとともに、音声出力装置32における音声出力制御をする。   The sound control circuit includes an audio ROM that stores a large number of audio data. The sound control circuit reads a predetermined program based on a command transmitted from the effect control unit 120 and also outputs the audio output device 32. Audio output control at.

発射制御部160は、遊技球の発射制御を行う。この発射制御部160は、入力側にタッチセンサ3aおよび発射ボリューム3bが接続されており、出力側に発射用ソレノイド4aおよび玉送りソレノイド4bを接続している。発射制御部160は、タッチセンサ3aからのタッチ信号を入力するとともに、発射ボリューム3bから供給された電圧に基づいて、発射用ソレノイド4aや玉送りソレノイド4bを通電させる制御を行う。   The launch control unit 160 performs launch control of the game ball. In the firing control unit 160, the touch sensor 3a and the firing volume 3b are connected to the input side, and the firing solenoid 4a and the ball feeding solenoid 4b are connected to the output side. The firing control unit 160 inputs a touch signal from the touch sensor 3a and performs control to energize the firing solenoid 4a and the ball feed solenoid 4b based on the voltage supplied from the firing volume 3b.

タッチセンサ3aは、操作ハンドル3の内部に設けられ、遊技者が操作ハンドル3に触れたことによる静電容量の変化を利用した静電容量型の近接スイッチから構成される。タッチセンサ3aは、遊技者が操作ハンドル3に触れたことを検知すると、発射制御部160(図4参照)に発射用ソレノイド4aの通電を許可するタッチ信号を出力する。発射制御部160は、大前提としてタッチセンサ3aからタッチ信号の入力がなければ、遊技球200を遊技領域6に発射させないように構成されている。   The touch sensor 3a is provided in the inside of the operation handle 3, and is comprised from the electrostatic capacitance type proximity switch using the change of the electrostatic capacitance by the player touching the operation handle 3. When the touch sensor 3a detects that the player has touched the operation handle 3, the touch sensor 3a outputs a touch signal that permits energization of the firing solenoid 4a to the firing control unit 160 (see FIG. 4). The firing control unit 160 is configured so that the game ball 200 is not fired into the game area 6 unless a touch signal is input from the touch sensor 3a.

発射ボリューム3bは、操作ハンドル3が回動する回動部に直結して設けられ、可変抵抗器から構成される。発射ボリューム3bは、その発射ボリューム3bに印加された定電圧(例えば5V)を可変抵抗器により分圧して、分圧した電圧を発射制御部160に供給する(発射制御部160に供給する電圧を可変させる)。発射制御部160は、発射ボリューム3bにより分圧された電圧に基づいて、発射用ソレノイド4aを通電して、発射用ソレノイド4aに直結された打出部材4cを回転させることで、遊技球200を遊技領域6に発射させる。   The firing volume 3b is provided directly connected to a rotating portion around which the operation handle 3 rotates, and is composed of a variable resistor. The firing volume 3b divides a constant voltage (for example, 5V) applied to the firing volume 3b by a variable resistor, and supplies the divided voltage to the firing control unit 160 (the voltage to be supplied to the firing control unit 160). Variable). The launch controller 160 energizes the launch solenoid 4a based on the voltage divided by the launch volume 3b, and rotates the launch member 4c directly connected to the launch solenoid 4a, thereby playing the game ball 200 in the game. Fire into area 6.

発射用ソレノイド4aは、ロータリーソレノイドから構成され、発射用ソレノイド4aには打出部材4cが直結されており、発射用ソレノイド4aが回転することで、打出部材4cを回転させる。   The launching solenoid 4a is composed of a rotary solenoid, and a launching member 4c is directly connected to the launching solenoid 4a, and the launching member 4c is rotated by rotating the launching solenoid 4a.

ここで、発射用ソレノイド4aの回転速度は、発射制御部160に設けられた水晶発振器の出力周期に基づく周波数から、約99.9(回/分)に設定されている。これにより、1分間における発射遊技数は、発射ソレノイドが1回転する毎に1個発射されるため、約99.9(個/分)となる。すなわち、1個の遊技球は約0.6秒毎に発射されることになる。   Here, the rotational speed of the firing solenoid 4a is set to about 99.9 (times / minute) based on the frequency based on the output period of the crystal oscillator provided in the firing control unit 160. As a result, the number of games played per minute is about 99.9 (pieces / minute) because one shot is fired every time the firing solenoid rotates. That is, one game ball is fired about every 0.6 seconds.

玉送りソレノイド4bは、直進ソレノイドから構成され、受け皿40にある遊技球を、発射用ソレノイド4aに直結された打出部材4cに向けて1個ずつ送り出す。   The ball feed solenoid 4b is composed of a linear solenoid, and sends out the game balls in the tray 40 one by one toward the launch member 4c directly connected to the launch solenoid 4a.

ここで、上記構成の演出制御部120、払出制御部130、ランプ制御部140、画像制御部150、および発射制御部160など、主制御部110からの制御コマンドに基づいて、若しくは当該制御コマンドに基づいて生成されるコマンドに従って遊技機1の制御処理を行う制御部であって、中間制御部180以外の制御部を総称して「周辺制御部300」という。また、演出制御部120が搭載された演出制御基板や払出制御部130が搭載された払出制御基板など、周辺制御部300の各制御部が搭載された各制御基板を総称して「周辺制御基板」という。なお、中間制御部180、ランプ制御部140、および画像制御部150は、演出制御部120と同一の基板上に搭載することもできる。また、払出制御部130および発射制御部160は、主制御部110と同一の基板上に搭載することもできる。   Here, based on the control command from the main control unit 110 such as the effect control unit 120, the payout control unit 130, the lamp control unit 140, the image control unit 150, and the launch control unit 160 having the above-described configuration, or based on the control command. A control unit that performs control processing of the gaming machine 1 according to a command generated based on the command, and a control unit other than the intermediate control unit 180 is collectively referred to as a “peripheral control unit 300”. In addition, each control board on which each control unit of the peripheral control unit 300 is mounted, such as an effect control board on which the effect control unit 120 is mounted and a payout control board on which the payout control unit 130 is mounted, is collectively referred to as “peripheral control board” " The intermediate control unit 180, the lamp control unit 140, and the image control unit 150 can be mounted on the same substrate as the effect control unit 120. Further, the payout control unit 130 and the firing control unit 160 can be mounted on the same substrate as the main control unit 110.

[遊技機の認証処理に関する内部構成]
以下、上記構成の遊技機1が不正行為防止のために有するセキュリティ機能を実現する制御手段について説明する。
本実施形態に係る遊技機1のセキュリティ機能は、中間制御部180が主制御部110から送信された制御コマンドの正当性を検査し主制御部110の認証を行うことによって実現される。そして、中間制御部180で得られた認証結果は、周辺制御部300へ送信され、周辺制御部300にて受信した認証結果に応じた処理が行われる。そのために主制御部110、中間制御部180、および周辺制御部300が実行する処理を、通常の遊技進行に係る処理とは区別する意味で「認証処理」という。なお、本実施形態では、中間制御部180は、主制御部110と演出制御部120との間に設けられているとともに、中間制御部180で得られた認証結果は、周辺制御部300のうち演出制御部120へ送信され、演出制御部120が認証結果に応じた処理を行うこととして説明する。
[Internal configuration related to authentication processing of gaming machines]
Hereinafter, control means for realizing the security function that the gaming machine 1 having the above configuration has for preventing fraud will be described.
The security function of the gaming machine 1 according to the present embodiment is realized by the intermediate control unit 180 checking the validity of the control command transmitted from the main control unit 110 and authenticating the main control unit 110. The authentication result obtained by the intermediate control unit 180 is transmitted to the peripheral control unit 300, and processing according to the authentication result received by the peripheral control unit 300 is performed. For this purpose, the processing executed by the main control unit 110, the intermediate control unit 180, and the peripheral control unit 300 is referred to as “authentication processing” in the sense of distinguishing from processing related to normal game progress. In the present embodiment, the intermediate control unit 180 is provided between the main control unit 110 and the effect control unit 120, and the authentication result obtained by the intermediate control unit 180 is included in the peripheral control unit 300. It demonstrates that it is transmitted to the production | presentation control part 120, and the production | generation control part 120 performs the process according to an authentication result.

具体的には、主制御部110は、今回のコマンド送信処理において、制御コマンドを生成して中間制御部180へ送信する際、当該制御コマンドより前(過去)に生成された制御コマンドを用いて誤り検査値を生成し、生成した誤り検査値を今回送信する制御コマンドに付加して送信する。一方、中間制御部180は、今回受信した制御コマンドに付加された誤り検査値と、当該制御コマンドより前(過去)に受信した制御コマンドを用いて生成した誤り検査値とを照合する。そして、両者が一致すると、今回受信した制御コマンドの正当性が認証され、主制御部110の認証に成功したと判断される。中間制御部180は、得られた主制御部110に対する認証結果を、演出制御部120へ送信する。演出制御部120は、中間制御部180から送信された認証結果を確認し、認証結果に応じた処理を行う。   Specifically, when the main control unit 110 generates a control command and transmits it to the intermediate control unit 180 in this command transmission process, the main control unit 110 uses the control command generated before (past) the control command. An error check value is generated, and the generated error check value is added to the control command to be transmitted this time and transmitted. On the other hand, intermediate control unit 180 collates the error check value added to the control command received this time with the error check value generated using the control command received before (in the past) the control command. If the two match, the validity of the control command received this time is authenticated, and it is determined that the main control unit 110 has been successfully authenticated. Intermediate control unit 180 transmits the obtained authentication result for main control unit 110 to effect control unit 120. The effect control unit 120 confirms the authentication result transmitted from the intermediate control unit 180 and performs processing according to the authentication result.

なお、主制御部110が今回のコマンド送信処理において生成した制御コマンドより前(過去)に生成した制御コマンドは、主制御部110の所定の記憶領域(後述する生成手段520の格納回路522)に格納されている。同様に、中間制御部180が今回のコマンド送信処理において受信した制御コマンドより前(過去)に受信した制御コマンドは、演出制御部120の所定の記憶領域(後述する格納部622)に格納されている。   The control command generated before (in the past) by the main control unit 110 in the current command transmission process is stored in a predetermined storage area of the main control unit 110 (a storage circuit 522 of the generation unit 520 described later). Stored. Similarly, the control command received by the intermediate control unit 180 before (in the past) the control command received in the current command transmission process is stored in a predetermined storage area (a storage unit 622 described later) of the effect control unit 120. Yes.

本実施形態では、今回のコマンド送信処理において生成された制御コマンドを制御コマンド(P)とし、当該制御コマンド(P)よりN個前(N;正の整数)に生成された制御コマンドを制御コマンド(P−N)とする。Pの値(P;正の整数)は、電源投入直後などの遊技機1のリセット時などにおいて、主制御部110や中間制御部180が初期化され、上記所定の記憶領域に格納しておいた過去の制御コマンドがクリアされた直後から、現在までに何個の制御コマンドが生成されたのかを示す値である(以下、Pを「生成個数」という)。   In the present embodiment, the control command generated in the current command transmission process is the control command (P), and the control command generated N (N: positive integer) before the control command (P) is the control command. (PN). The value of P (P; a positive integer) is stored in the predetermined storage area when the main control unit 110 and the intermediate control unit 180 are initialized at the time of resetting the gaming machine 1 such as immediately after the power is turned on. This is a value indicating how many control commands have been generated from immediately after the previous control command was cleared (hereinafter, P is referred to as “number of generations”).

すなわち、本実施形態では、制御コマンド(1)は、上記所定の記憶領域に格納された制御コマンドがクリアされた直後に最初に生成された制御コマンドを意味し、制御コマンド(P)は、上記所定の記憶領域に格納された制御コマンドがクリアされてからP番目に生成された制御コマンドを意味する。なお、生成個数のPの値は、公知のカウンタなどを用いて計数すればよい。本実施形態では、メインRAM110cに生成個数記憶領域(P)を設けておき、メインCPU110aがコマンド送信処理の際に生成個数記憶領域(P)の値に1を加算して更新する。   That is, in the present embodiment, the control command (1) means a control command that is first generated immediately after the control command stored in the predetermined storage area is cleared, and the control command (P) It means the P-th generated control command after the control command stored in the predetermined storage area is cleared. In addition, what is necessary is just to count the value of P of a production | generation number using a well-known counter etc. In the present embodiment, a generated number storage area (P) is provided in the main RAM 110c, and the main CPU 110a updates the value of the generated number storage area (P) by adding 1 during command transmission processing.

そして、本実施形態では、今回のコマンド送信処理において生成された制御コマンド(P)に対して、これよりN個前に生成された制御コマンド(P−N)を用いて生成された誤り検査値(P−N)を付加し、誤り検査値(P−N)が付加された制御コマンド(P)を中間制御部180へ送信する。Nの値は、今回のコマンド送信処理において出力された制御コマンドに対して、何個前に生成された制御コマンドの誤り検査値を付加するのかということを示した値である(以下、Nを「遡及数」という)。   In the present embodiment, an error check value generated using a control command (PN) generated N times before the control command (P) generated in the current command transmission process. The control command (P) to which (PN) is added and the error check value (PN) is added is transmitted to the intermediate control unit 180. The value of N is a value indicating how many error check values of the previously generated control command are added to the control command output in the current command transmission process (hereinafter, N is "Retrospective number").

遡及数のNの値の取り得る範囲は、上記所定の記憶領域である後述の格納回路522(および中間制御部180の後述する格納部622)の記憶容量によって制限されるものの、基本的には任意である。Nの値が大きければ、不正者にとっては、制御コマンドとそれに付加された誤り検査値との関係性を解析することがより困難となり、不正行為をより一層防止することができる。   The possible range of the retroactive number N is limited by the storage capacity of a storage circuit 522 (and a storage unit 622, which will be described later) of the intermediate control unit 180, which is the predetermined storage area. Is optional. If the value of N is large, it becomes more difficult for an unauthorized person to analyze the relationship between a control command and an error check value added to the control command, and illegal acts can be further prevented.

なお、主制御部110が、制御コマンド(P)を生成する度に、中間制御部180へ送信するならば、遡及数のNの値は、今回送信する制御コマンドに対して、何個前に送信された制御コマンドの誤り検査値を付加するのかということを取り決めておいた数であると考えることができ、本発明には、このような概念も含まれる。   If the main control unit 110 generates a control command (P) and transmits it to the intermediate control unit 180, the retroactive number N is set to what number before the control command transmitted this time. It can be considered that the number is determined as to whether an error check value of the transmitted control command is added, and such a concept is also included in the present invention.

また、本実施形態では、制御コマンド(P)に付加する誤り検査値(P−N)を生成するための方式(以下、「生成方式」)として、複数の生成方式が予め用意されている。具体的には、本実施形態の生成方式は、制御コマンド(P)に付加する誤り検査値(P−N)を生成する際に用いる制御コマンドを、制御コマンド(P−N)のみとする生成方式(以下、「単独生成方式」という)と、制御コマンド(P−N)以前に生成された制御コマンドをも含めた複数の制御コマンドとする生成方式(以下、「累積生成方式」という)である。なお、本実施形態では、単独生成方式で生成された誤り検査値(P−N)を単独検査値(P−N)ともいい、累積生成方式で生成された誤り検査値(P−N)を累積検査値(P−N)ともいう。   In the present embodiment, a plurality of generation methods are prepared in advance as a method for generating an error check value (PN) added to the control command (P) (hereinafter referred to as “generation method”). Specifically, the generation method of the present embodiment is a generation in which only the control command (PN) is the control command used when generating the error check value (PN) added to the control command (P). A method (hereinafter referred to as “single generation method”) and a generation method (hereinafter referred to as “cumulative generation method”) including a plurality of control commands including control commands generated before the control command (PN). is there. In the present embodiment, the error check value (PN) generated by the single generation method is also referred to as a single check value (PN), and the error check value (PN) generated by the cumulative generation method is used. Also called cumulative inspection value (PN).

また、制御コマンド(P)に付加する誤り検査値(P−N)を累積生成方式で生成する場合、上記複数の制御コマンドとして、単独生成方式で用いられる制御コマンド(P−N)以前に生成された制御コマンドの中から、所定の選択方法によって選択された複数個の制御コマンドを用いる。所定の選択方法は、予め中間制御部180との間で取り決めてあれば基本的に任意である。本実施形態では、所定の選択方法として、単独生成方式で用いられる制御コマンド(P−N)以前に生成された制御コマンドのうち、制御コマンド(P−N)を含めて順番に遡り、制御コマンド(P−N)、制御コマンド(P−N−1)、制御コマンド(P−N−2)、・・・、制御コマンド(P−N−Q)の(Q+1)個(Q;正の整数)を選択するものとする。そして、誤り検査値(P−N)を累積生成方式で生成する場合には、選択された制御コマンド(P−N)〜(P−N−Q)を累積させて誤り検査値(P−N)を生成する。Qの値は、単独生成方式で用いられる制御コマンド(P−N)に対して、何個の制御コマンドまで遡って累積させるかを示す値である(以下、Qを「累積数」という)。   Further, when the error check value (PN) added to the control command (P) is generated by the cumulative generation method, it is generated before the control command (PN) used in the single generation method as the plurality of control commands. A plurality of control commands selected by a predetermined selection method from the selected control commands are used. The predetermined selection method is basically arbitrary as long as it is agreed with the intermediate control unit 180 in advance. In the present embodiment, as a predetermined selection method, the control commands generated before the control command (PN) used in the single generation method are traced back in order including the control command (PN). (PN), control command (PN-1), control command (PN-2), ..., (Q + 1) (Q: positive integer) of control commands (PNQ) ) Shall be selected. When the error check value (PN) is generated by the cumulative generation method, the selected control commands (PN) to (PNQ) are accumulated to check the error check value (PN). ) Is generated. The value of Q is a value indicating how many control commands are accumulated retroactively with respect to a control command (PN) used in the single generation method (hereinafter, Q is referred to as “cumulative number”).

また、本実施形態では、累積生成方式として、累積数の違いに応じて分類される複数種類の方式が用意されている。累積数の値自体の大きさや、累積数を設定する個数は、予め中間制御部180との間で取り決めてあれば基本的に任意である。例えば、本実施形態では、Q=1とQ=2の2種類の累積数が設定されているものとする。このとき、Q=1では、単独生成方式で誤り検査値生成に用いられる制御コマンド(P−N)と、この制御コマンド(P−N)より1個遡った制御コマンド(P−N−1)との2個の制御コマンドを用いて累積検査値(P−N)が生成される。Q=2では、単独生成方式で誤り検査値生成に用いられる制御コマンド(P−N)と、この制御コマンド(P−N)より2個まで遡った制御コマンド(P−N−1)および制御コマンド(P−N−2)との3個の制御コマンドを用いて累積検査値(P−N)が生成される。なお、設定された累積数のQの値が最も大きい値を、「Qmax」といい、本実施形態ではQmax=2である。   In the present embodiment, as the cumulative generation method, a plurality of types of methods classified according to the difference in the cumulative number are prepared. The size of the value of the cumulative number itself and the number for which the cumulative number is set are basically arbitrary as long as they are agreed with the intermediate control unit 180 in advance. For example, in this embodiment, it is assumed that two types of cumulative numbers of Q = 1 and Q = 2 are set. At this time, when Q = 1, a control command (PN) used for error check value generation by a single generation method and a control command (PN-1) that is one step back from this control command (PN) The cumulative inspection value (PN) is generated using the two control commands. In Q = 2, a control command (PN) used for error check value generation by a single generation method, a control command (PN-1) and control that are traced back to two from this control command (PN) A cumulative inspection value (PN) is generated using three control commands with the command (PN-2). A value having the largest Q value of the set cumulative number is referred to as “Qmax”, and in this embodiment, Qmax = 2.

なお、本実施形態では、累積検査値(P−N)を生成するために用いられる制御コマンドのうち、単独検査値(P−N)を生成するために用いられる制御コマンド(P−N)以外の制御コマンド(Q=2の場合は、制御コマンド(P−N−1)および制御コマンド(P−N−2))は、上記所定の記憶領域である格納回路522とは別の記憶領域(後述する生成手段520の生成回路521のQmax個の記憶回路)に記憶されているものとする。   In the present embodiment, among the control commands used for generating the cumulative inspection value (PN), other than the control command (PN) used for generating the single inspection value (PN). The control command (in the case of Q = 2, the control command (PN-1) and the control command (PN-2)) are stored in a storage area different from the storage circuit 522 which is the predetermined storage area ( It is assumed that the data is stored in Qmax storage circuits of the generation circuit 521 of the generation unit 520 described later.

このように、本実施形態では、制御コマンド(P)に付加する誤り検査値(P−N)を生成するための生成方式として、単独生成方式と、累積数がQ=1である累積検査値方式と、累積数がQ=2である累積検査値方式の3つの生成方式が予め用意されている。そして、主制御部110は、単独生成方式では、制御コマンド(P−N)を用いて生成された単独検査値(P−N)を、制御コマンド(P)に付加する誤り検査値(P−N)とする。一方、主制御部110は、累積数がQ=1である累積生成方式では、制御コマンド(P−N)および制御コマンド(P−N−1)を用いて生成された累積検査値(P−N)を、制御コマンド(P)に付加する誤り検査値(P−N)とする。また、主制御部110は、累積数がQ=2である累積生成方式では、制御コマンド(P−N)、制御コマンド(P−N−1)、および制御コマンド(P−N−2)を用いて生成された累積検査値(P−N)を、制御コマンド(P)に付加する誤り検査値(P−N)とする。   As described above, in this embodiment, as a generation method for generating the error check value (PN) added to the control command (P), the single generation method and the cumulative check value in which the cumulative number is Q = 1. Three generation methods, that is, a method and a cumulative inspection value method in which the cumulative number is Q = 2, are prepared in advance. Then, in the single generation method, the main control unit 110 adds an error check value (P−N) that adds the single check value (PN) generated using the control command (PN) to the control command (P). N). On the other hand, in the cumulative generation method in which the cumulative number is Q = 1, the main control unit 110 uses the cumulative test value (P−N) generated using the control command (PN) and the control command (PN−1). N) is an error check value (PN) added to the control command (P). Further, in the cumulative generation method in which the cumulative number is Q = 2, the main control unit 110 sends a control command (PN), a control command (PN-1), and a control command (PN-2). The accumulated check value (PN) generated using the error is set as an error check value (PN) added to the control command (P).

図5は、本実施形態に係る主制御部110の認証処理に関する内部構成を示す機能ブロック図である。図6は、本実施形態に係る(a)メインROM110bおよび(b)ブートROM110dのメモリマップを説明するための概略図である。図7は、本実施形態に係る制御コマンドへの誤り検査値の付加手順を説明するための概略図である。また、図6では、本発明の特徴的な領域以外は省略している。また、「xxxFH」などのアドレス表記は、各領域の区分を示すために便宜上設けたものであるとともに、各領域同士の位置関係においても、図6に示した位置関係に限定されるものではない。   FIG. 5 is a functional block diagram showing an internal configuration related to authentication processing of the main control unit 110 according to the present embodiment. FIG. 6 is a schematic diagram for explaining a memory map of (a) main ROM 110b and (b) boot ROM 110d according to the present embodiment. FIG. 7 is a schematic diagram for explaining a procedure for adding an error check value to a control command according to the present embodiment. In FIG. 6, areas other than the characteristic area of the present invention are omitted. The address notation such as “xxxFH” is provided for convenience in order to indicate the division of each region, and the positional relationship between the regions is not limited to the positional relationship shown in FIG. .

主制御部110は、上記のようにメインCPU110a、メインROM110b、およびブートROM110dに加え、メインCPU110aからの制御指示に基づき、誤り検査値の生成処理および付加処理を行う検査値生成部500と、中間制御部180への制御コマンドの送信処理を行う送信部550とを少なくとも備えている。また、これら主制御部110の各構成部は、各々が出力する各種データや信号を送受できるようバス接続されている(図示せず)。   In addition to the main CPU 110a, the main ROM 110b, and the boot ROM 110d as described above, the main control unit 110 includes a test value generation unit 500 that performs error check value generation processing and addition processing based on control instructions from the main CPU 110a, And a transmission unit 550 that performs processing for transmitting a control command to the control unit 180. Each component of the main control unit 110 is connected by a bus (not shown) so that various data and signals output from the main control unit 110 can be transmitted and received.

バスは、アドレスバス、データバス、および制御バスの機能を少なくとも備え、主制御部110の各構成部から出力された制御信号に基づきバス上を通るデータの割り当てを行い、データの衝突が生じないように制御している。なお、図5においては、便宜上、バスという形では明示せず、主制御部110の各構成部を結ぶ信号線として表し、その中でも特徴的なものだけを示している。また、主制御部110の各構成部には、クロックパルス発生回路(図示せず)により出力された所定のクロック信号がそれぞれ入力されている。   The bus has at least the functions of an address bus, a data bus, and a control bus, assigns data passing on the bus based on control signals output from each component of the main control unit 110, and does not cause data collision So that it is controlled. In FIG. 5, for convenience, it is not shown in the form of a bus, but is represented as a signal line that connects each component of the main control unit 110, and only the characteristic ones are shown. In addition, a predetermined clock signal output from a clock pulse generation circuit (not shown) is input to each component of the main control unit 110.

メインCPU110aは、上記のように遊技進行に係る処理を実行する他、遊技機1での認証処理を実行する。メインCPU110aは、メインROM110bに記憶された認証処理用プログラムや各種固定データを用いて各種演算処理を実行する。また、メインCPU110aは、ブートROM110dに記憶されたブート処理用プログラムやメインROM110bに記憶された各種初期値を用いて各種演算処理を実行する。そして、メインCPU110aは、これらの演算処理の結果に応じて制御信号や制御コマンドを出力する。   The main CPU 110a executes processing related to game progress as described above, and also executes authentication processing in the gaming machine 1. The main CPU 110a executes various arithmetic processes using an authentication processing program and various fixed data stored in the main ROM 110b. Further, the main CPU 110a executes various arithmetic processes using a boot processing program stored in the boot ROM 110d and various initial values stored in the main ROM 110b. Then, the main CPU 110a outputs a control signal and a control command according to the result of these arithmetic processes.

例えば、メインCPU110aは、認証処理用プログラムに基づいて、中間制御部180へ送信するべき制御コマンドのコマンド送信処理を行う際には、検査値生成部500へ当該制御コマンドを書き込むための制御信号(以下、「書き込み信号」という)を出力し、当該制御コマンドを、検査値生成部500を介して送信部550にて送信させる。   For example, when the main CPU 110a performs command transmission processing of a control command to be transmitted to the intermediate control unit 180 based on the authentication processing program, the main CPU 110a writes a control signal ( (Hereinafter referred to as “write signal”), and the control command is transmitted by the transmitter 550 via the test value generator 500.

また、メインCPU110aは、ブート処理用プログラムに基づいて、ブート処理中の初期値設定処理を行う際には、メインROM110bに記憶された各種初期値を読み出すための制御信号(以下、「読み出し信号」という)を出力して各種初期値を取得し、取得した各種初期値のそれぞれに対応した構成回路へ出力して各種初期値を設定する処理を行う。   Further, the main CPU 110a, when performing initial value setting processing during boot processing based on the boot processing program, reads control signals (hereinafter referred to as “read signals”) for reading various initial values stored in the main ROM 110b. To obtain various initial values, and outputs the obtained initial values to the configuration circuit corresponding to each of the obtained initial values to perform various initial value settings.

また、メインCPU110aは、主制御部110の初期化処理時に、後述する固有情報を検査値生成部500へ設定する必要があるときは、メインROM110bに記憶された固有情報を読み出すための読み出し信号を出力して固有情報を取得し、取得した固有情報を検査値生成部500へ設定する処理を行う。   When the main CPU 110a needs to set unique information (described later) in the test value generation unit 500 during the initialization process of the main control unit 110, the main CPU 110a outputs a read signal for reading the unique information stored in the main ROM 110b. A process of outputting and acquiring the unique information and setting the acquired unique information in the inspection value generation unit 500 is performed.

メインROM110bには、上記のような遊技処理用プログラムやデータの他、メインCPU110aが遊技機1にて認証処理を実行するための認証処理用プログラムが予め記憶されている(図6(a)の「xxy0H」〜「xxzFH」の領域)。また、メインROM110bには、主制御部110が初期化された後に初めて出力する制御コマンドに付加する誤り検査値として使用する、遊技機1の固有情報が記憶されている(図6(a)の「xyz0H」〜「xzxFH」の領域)。また、メインROM110bは、メインCPU110aからの読み出し信号に応じて、認証処理用プログラムコードや固有情報などを出力する。   In addition to the game processing program and data as described above, the main ROM 110b stores in advance an authentication processing program for the main CPU 110a to execute the authentication processing in the gaming machine 1 (FIG. 6A). (Region of “xxx0H” to “xxxzFH”). The main ROM 110b stores unique information of the gaming machine 1 used as an error check value added to a control command that is output for the first time after the main control unit 110 is initialized (in FIG. 6A). “Xyz0H” to “xzzFH”). Further, the main ROM 110b outputs an authentication processing program code, unique information, and the like in response to a read signal from the main CPU 110a.

固有情報は、主制御部110が保持する遊技機1固有の情報であれば特に限定されない。固有情報は、図6(a)では、メインROM110bの固定データが記憶された領域の中の特定のアドレス(図6(a)の「xyz0H」〜「xzxFH」の領域)のデータ(例えば、制御コマンドデータ)となっているが、例えば、メインROM110bのプログラムコードが記憶された領域(図6(a)の「0000H」〜「xxzFH」の領域)の中の特定のアドレスにおけるチェックサム値や、メインCPU110aに固有に付与されている識別番号(ID)や、メーカーコード・機種コード等の製品情報などを用いることができる。また、固有情報は、予め中間制御部180との間で取り決められた誤り検査値のダミーデータなど用いることができる。これらのデータに四則演算や論理演算等を施した値でもよい。なお、固有情報は、メインROM110bとは別個の記憶手段(メモリセルやROMなど)に記憶されていてもよい。   The unique information is not particularly limited as long as it is unique to the gaming machine 1 held by the main control unit 110. In FIG. 6A, the unique information is data (for example, control) in a specific address (area “xyz0H” to “xzzFH” in FIG. 6A) in the area where the fixed data of the main ROM 110b is stored. Command data), for example, a checksum value at a specific address in an area (the area from “0000H” to “xxxFH” in FIG. 6A) in which the program code of the main ROM 110b is stored, An identification number (ID) uniquely assigned to the main CPU 110a, product information such as a manufacturer code and a model code, and the like can be used. In addition, the unique information can be dummy data of an error check value that is negotiated with the intermediate control unit 180 in advance. These data may be values obtained by performing four arithmetic operations or logical operations. The unique information may be stored in storage means (memory cell, ROM, etc.) separate from the main ROM 110b.

主制御部110にて生成される誤り検査値は、上記所定の記憶領域である後述の格納回路522に格納しておいた過去の制御コマンドを用いて生成される。しかしながら、遊技機1のリセット時のように主制御部110が初期化されたときには、格納回路522に格納しておいた過去の制御コマンドがクリアされるため、これを用いて誤り検査値を生成することができない。そこで、本実施形態では、格納回路522に格納しておいた過去の制御コマンドがクリアされた場合に、格納回路522への初期設定値として、メインROM110bに予め格納された固有情報を用いる。   The error check value generated by the main control unit 110 is generated using a past control command stored in a storage circuit 522 described later, which is the predetermined storage area. However, when the main control unit 110 is initialized, such as when the gaming machine 1 is reset, the past control command stored in the storage circuit 522 is cleared, and this is used to generate an error check value. Can not do it. Therefore, in the present embodiment, when the past control command stored in the storage circuit 522 is cleared, unique information stored in advance in the main ROM 110b is used as an initial setting value for the storage circuit 522.

また、本実施形態では、累積検査値は、上記記憶領域である後述の生成回路521の記憶回路に記憶しておいた過去の制御コマンドを用いて生成される。しかしながら、遊技機1のリセット時のように主制御部110が初期化されたときには、格納回路522と同様に、生成回路521の記憶回路に記憶しておいた過去の制御コマンドがクリアされるため、これを用いて累積検査値を生成することができない。そこで、本実施形態では、生成回路521の記憶回路に記憶しておいた過去の制御コマンドがクリアされた場合に、生成回路521の記憶回路への初期設定値として、メインROM110bに予め格納された固有情報を用いる。   In the present embodiment, the cumulative inspection value is generated by using a past control command stored in a storage circuit of a generation circuit 521, which will be described later, which is the storage area. However, when the main control unit 110 is initialized as when the gaming machine 1 is reset, the past control commands stored in the storage circuit of the generation circuit 521 are cleared as in the storage circuit 522. This cannot be used to generate a cumulative inspection value. Therefore, in the present embodiment, when a past control command stored in the storage circuit of the generation circuit 521 is cleared, the initial setting value to the storage circuit of the generation circuit 521 is stored in advance in the main ROM 110b. Use unique information.

本実施形態では、格納回路522用の固有情報としてN個の固有情報を用意すると共に、生成回路521の記憶回路用の固有情報としてQmax個の固有情報を用意する。そして、主制御部110の初期化により両記憶領域の制御コマンドがクリアされた場合には、メインCPU110aが、メインRAM110cの生成個数記憶領域(P)の値を参照して、格納回路522および生成回路521の記憶回路へ固有情報を設定する必要があるか否かを判断する。そして、生成個数記憶領域(P)の値がP=1の場合は、メインCPU110aが、両記憶領域に固有情報を初期設定値として設定するものとする。なお、格納回路522に用いられる固有情報と生成回路521の記憶回路に用いられる固有情報とは同じでも異なってもよい。なお、本実施形態では、制御コマンドを用いずに固有情報のみを用いて生成された誤り検査値を、「初期検査値」ともいう。   In this embodiment, N pieces of unique information are prepared as the unique information for the storage circuit 522, and Qmax pieces of unique information are prepared as the unique information for the storage circuit of the generation circuit 521. When the control command for both storage areas is cleared by initialization of the main control unit 110, the main CPU 110a refers to the value of the generated number storage area (P) of the main RAM 110c, and generates the storage circuit 522 and the generation circuit. It is determined whether it is necessary to set unique information in the memory circuit of the circuit 521. When the value of the generated number storage area (P) is P = 1, the main CPU 110a sets unique information as an initial setting value in both storage areas. Note that the unique information used for the storage circuit 522 and the unique information used for the memory circuit of the generation circuit 521 may be the same or different. In the present embodiment, an error check value generated using only unique information without using a control command is also referred to as an “initial check value”.

メインROM110bには、上記のようにワンチップマイコン110mの内蔵回路や周辺回路等の初期値(いわゆるハードウェアパラメータ)の一つであって、検査値生成部500に設定されるハードウェアパラメータ(以下、「HWパラメータ」という)が予め記憶されている(図6(a)の「yyy0H」〜「yyzFH」の領域)。HWパラメータは、検査値生成部500が有する複数の誤り検査値を生成および付加する機能(誤り検査値付加機能)のうち、どの誤り検査値付加機能を採用するのかを選択するための選択情報である。誤り検査値付加機能およびその選択情報は、予め主制御部110と中間制御部180との間で取り決めておく。   The main ROM 110b has one of the initial values (so-called hardware parameters) of the built-in circuit and peripheral circuits of the one-chip microcomputer 110m as described above, and is a hardware parameter (hereinafter referred to as a “test value generation unit 500”). , “HW parameter”) is stored in advance (regions “yyy0H” to “yyzFH” in FIG. 6A). The HW parameter is selection information for selecting which error check value addition function is to be adopted from among the functions (error check value addition function) for generating and adding a plurality of error check values that the check value generation unit 500 has. is there. The error check value addition function and its selection information are determined in advance between the main control unit 110 and the intermediate control unit 180.

本実施形態では、検査値生成部500には、複数の誤り検査値付加機能の具体的な実施態様として、上記のように複数の生成方式が予め用意されている。本実施形態では、ブート処理中の初期値設定処理の際に、検査値生成部500に対して予め用意された複数の生成方式のうちの特定の生成方式が設定される。HWパラメータは、この特定の生成方式としてどの生成方式を採用するのかを選択する為の選択情報である。   In the present embodiment, in the check value generation unit 500, a plurality of generation methods are prepared in advance as a specific embodiment of a plurality of error check value addition functions as described above. In the present embodiment, during the initial value setting process during the boot process, a specific generation method among a plurality of generation methods prepared in advance for the inspection value generation unit 500 is set. The HW parameter is selection information for selecting which generation method is adopted as the specific generation method.

例えば、複数の生成方式のそれぞれと対応付けられた複数のHWパラメータを用意し、検査値生成部500には、生成方式とHWパラメータの対応関係が分かるデータテーブルを予め設けておく。そして、ブート処理中の初期値設定処理の際、メインCPU110aが検査値生成部500へ特定のHWパラメータを設定すると、検査値生成部500は、設定されたHWパラメータを確認し、当該HWパラメータに対応した生成方式を検査値生成処理のデフォルトの生成方式として用いる。   For example, a plurality of HW parameters associated with each of a plurality of generation methods are prepared, and the test value generation unit 500 is previously provided with a data table in which the correspondence between the generation methods and the HW parameters is known. When the main CPU 110a sets a specific HW parameter in the test value generation unit 500 during the initial value setting process during the boot process, the test value generation unit 500 confirms the set HW parameter and sets the HW parameter. The corresponding generation method is used as the default generation method for the inspection value generation process.

本実施形態では、メインCPU110aが行う設定処理であって、ブート処理中の初期値設定処理でも、特に、検査値生成部500へ特定のHWパラメータを設定する処理を「HWパラメータ設定処理」という。また、本実施形態では、検査値生成部500が行う設定処理であって、検査値生成処理の際に用いる生成方式を決定し、決定した生成方式で検査値生成処理が実行されるように、検査値生成部500自身を構成する後述の生成手段520に対する設定処理を「生成方式設定処理」という。なお、生成方式および生成方式設定処理の詳細については後述する。   In the present embodiment, in the setting process performed by the main CPU 110a and the initial value setting process during the boot process, the process of setting a specific HW parameter in the test value generation unit 500 is particularly referred to as “HW parameter setting process”. Further, in the present embodiment, the setting process performed by the inspection value generation unit 500 is determined such that the generation method used in the inspection value generation process is determined, and the inspection value generation process is executed with the determined generation method. A setting process for a generation unit 520 described later that constitutes the inspection value generation unit 500 itself is referred to as a “generation method setting process”. Details of the generation method and the generation method setting process will be described later.

また、上記初期値およびHWパラメータを記憶する領域は、図6ではメインROM110b内の領域であるが、本発明はこれに限定されず、メインROM110bとは別個のメモリセルに記憶したり、ブートROM110d内に記憶したりするように構成することもできる。すなわち、本発明では、上記初期値およびHWパラメータの記憶領域と、遊技処理用プログラムや固定データ等の記憶領域とは、同一の記憶手段(メモリセルやROMなど)に搭載されていてもよいし、異なる記憶手段に搭載されていてもよい。   The area for storing the initial value and the HW parameter is the area in the main ROM 110b in FIG. 6, but the present invention is not limited to this, and the area is stored in a memory cell separate from the main ROM 110b or the boot ROM 110d. It can also be configured to be stored in. That is, in the present invention, the storage area for the initial value and the HW parameter and the storage area for the game processing program, fixed data, etc. may be mounted on the same storage means (memory cell, ROM, etc.). It may be mounted on different storage means.

ブートROM110dには、ブート処理用プログラムやブート処理用プログラムの実行の際に使用される固定データが予め記憶されている(図6(b)の「zxx0H」〜「zyzFH」の領域)。ブート処理用プログラムは、メインCPU110aの起動直後にブートROM110dからブート処理専用RAM(図示せず)へ読み込まれ、メインCPU110aにて実行が開始されるように予め設定されており、メインCPU110a自身の自己診断処理や、メインCPU110aを搭載するワンチップマイコン110mの内蔵回路や検査値生成部500を含む周辺回路等の初期化および初期値の設定処理(すなわち初期値設定処理)を制御するものである。なお、本実施形態では、ブート処理後に実行される遊技処理用プログラムなど、ブート処理用プログラム以外のプログラムを「ユーザープログラム」という。   The boot ROM 110d stores a boot processing program and fixed data used when executing the boot processing program in advance (regions “zxx0H” to “zyzFH” in FIG. 6B). The boot processing program is set in advance to be read from the boot ROM 110d into a boot processing dedicated RAM (not shown) immediately after the main CPU 110a is started, and to be executed by the main CPU 110a. It controls diagnosis processing, initialization of a built-in circuit of the one-chip microcomputer 110m on which the main CPU 110a is mounted, peripheral circuits including the test value generation unit 500, and initial value setting processing (that is, initial value setting processing). In the present embodiment, a program other than the boot processing program such as a game processing program executed after the boot processing is referred to as a “user program”.

ブート処理用プログラムは、CPUメーカーが開発・実装するプログラムであり、これらが記憶されたブートROM110dに対するアクセスは、遊技機1の出荷後、ブート処理時のメインCPU110aからのアクセスにのみ制限されている。一方、ユーザープログラムは、遊技機メーカーが開発・実装するプログラムであり、これらが記憶されたメインROM110bに対するアクセスは、遊技処理が実行されるたびにメインCPU110aからアクセスされる。   The boot processing program is a program developed and implemented by a CPU manufacturer, and access to the boot ROM 110d in which these programs are stored is limited to access from the main CPU 110a during boot processing after the gaming machine 1 is shipped. . On the other hand, the user program is a program developed and implemented by a gaming machine manufacturer, and access to the main ROM 110b in which these are stored is accessed from the main CPU 110a every time a game process is executed.

しかしながら、メインROM110bの記憶領域でも、ワンチップマイコン110mの内蔵回路や検査値生成部500を含む周辺回路等の初期値(HWパラメータを含む)が記憶された領域など、ユーザープログラムや固定データ等(固有情報を含む)が記憶された領域以外の記憶領域(例えば、図6(a)の「yxx0H」〜「yyzFH」の領域)は、ブート処理用プログラムの中でのみ定義された領域であり、遊技処理に係るユーザープログラム上では全く現れることが無い領域とされている。つまり、ブート処理が終了した後は、上記領域(図6(a)の「yxx0H」〜「yyzFH」の領域)は、ユーザープログラムからはアクセスできないように実質的な制限がかけられた領域とされている。   However, even in the storage area of the main ROM 110b, user programs, fixed data, etc. (such as areas in which initial values (including HW parameters) such as built-in circuits of the one-chip microcomputer 110m and peripheral circuits including the test value generation unit 500 are stored) A storage area other than the area in which the unique information is stored (for example, an area from “xxx0H” to “yyzFH” in FIG. 6A) is an area defined only in the boot processing program, It is an area that does not appear at all on the user program related to game processing. That is, after the boot process is completed, the above-mentioned area ("xxx0H" to "yyzFH" in FIG. 6A) is an area that is substantially restricted so that it cannot be accessed from the user program. ing.

しかしながら、不正なアクセスを試みられた場合を考慮して、以下に示す更なる制限をかけることで、ブート処理時にのみ得られるHWパラメータの秘匿性をより向上させることができる。   However, in consideration of the case where unauthorized access is attempted, the following additional restrictions can be applied to further improve the confidentiality of the HW parameters obtained only during the boot process.

ブートROM110dおよびメインROM110bへのアクセス制限は、例えば、主制御部110に実行アドレス監視手段(図示せず)を設けておき、ブート処理終了後に実行アドレス監視手段を作動させ、ユーザープログラムが所定のアドレス(例えば、図6(a)の「0000H」〜「xzyFH」の領域)を超えた領域へアクセスしようとした場合には、メインCPU110aへリセット信号を出力してメインCPU110aを動作停止状態にすればよい。また、リセット信号を出力しないまでも、異常を検知した旨を示す報知信号を出力するようにしてもよい。   To restrict access to the boot ROM 110d and the main ROM 110b, for example, an execution address monitoring unit (not shown) is provided in the main control unit 110, and the execution address monitoring unit is activated after the boot process is completed. If an attempt is made to access an area exceeding (for example, the area from “0000H” to “xzyFH” in FIG. 6A), a reset signal is output to the main CPU 110a to stop the operation of the main CPU 110a. Good. Further, a notification signal indicating that an abnormality has been detected may be output before the reset signal is output.

また、HWパラメータのメインROM110bへの実装においては複数の方法が考えられる。例えば、検査値生成部500に予め用意された複数の生成方式のそれぞれと対応する複数のHWパラメータを予め用意し、メインROM110bに実装する。そして、HWパラメータ設定処理の中で、どのHWパラメータを採用するかを選択するためのプログラムをブートROM110dに実装しておき、ブート処理のたびにどの生成方式を用いるのかを任意に選択できるように構成することができる。このように実装すると、ブート処理のたびに生成方式が変更され、誤り検査値付加機能の秘匿性を向上させることができ、遊技機1のセキュリティ強度を向上させることができる。   A plurality of methods are conceivable for mounting the HW parameters in the main ROM 110b. For example, a plurality of HW parameters corresponding to each of a plurality of generation methods prepared in advance in the inspection value generation unit 500 are prepared in advance and mounted in the main ROM 110b. A program for selecting which HW parameter to use in the HW parameter setting process is installed in the boot ROM 110d so that the generation method to be used can be arbitrarily selected for each boot process. Can be configured. If implemented in this way, the generation method is changed every time the boot process is performed, the confidentiality of the error check value adding function can be improved, and the security strength of the gaming machine 1 can be improved.

一方、検査値生成部500に備えられた生成方式およびHWパラメータについては予め複数用意するものの、特定のHWパラメータのみをメインROM110bに実装し、これに対応する特定の生成方式のみが採用されるように構成することもできる。このように実装すると、ブート処理でのHWパラメータの選択処理に伴うプログラムを新たに設ける必要がなく、プログラムのコードサイズを増大させることがない。また、このように実装すると、遊技機メーカーが特定の生成方式だけを採用したい場合であっても、遊技機メーカーが行うプログラム実装過程において、所望の生成方式に対応したHWパラメータのみをメインROM110bに実装すればよく、遊技機メーカーの用途や嗜好に柔軟に対応することができる。   On the other hand, although a plurality of generation methods and HW parameters provided in the inspection value generation unit 500 are prepared in advance, only specific HW parameters are mounted on the main ROM 110b, and only a specific generation method corresponding to this is adopted. It can also be configured. When implemented in this way, it is not necessary to newly provide a program associated with the HW parameter selection process in the boot process, and the code size of the program is not increased. In addition, when implemented in this way, even if the gaming machine manufacturer wants to adopt only a specific generation method, only the HW parameter corresponding to the desired generation method is stored in the main ROM 110b in the program implementation process performed by the gaming machine manufacturer. What is necessary is just to mount, and it can respond flexibly to the use and preference of the gaming machine manufacturer.

なお、この場合であっても、HWパラメータは、主制御部110のブート処理時の初期値設定時以外ではアクセスされない記憶領域に記憶されているため、外部から生成方式の内容を知ることができない。そのため、不正者が、遊技機1で採用された誤り検査値の生成方式を解析することは困難であり、遊技機1が有する誤り検査値付加機能の秘匿性は確保される。また、遊技機1の開発段階中で設計・検証作業などに使用するHWパラメータと、その後に実際に実装されるHWパラメータとを変えることによって、最終的にどのHWパラメータが実装されたのかを知り得る者が限定され、誤り検査値付加機能の秘匿性は更に向上する。本実施形態では、特定の生成方式に対応する特定のHWパラメータのみがメインROM110bに実装されていることとして説明する。   Even in this case, since the HW parameter is stored in a storage area that is not accessed except when the initial value is set during the boot process of the main control unit 110, the contents of the generation method cannot be known from the outside. . Therefore, it is difficult for an unauthorized person to analyze the error check value generation method employed in the gaming machine 1, and the confidentiality of the error check value addition function of the gaming machine 1 is ensured. In addition, by changing the HW parameters used for design / verification work during the development stage of the gaming machine 1 and the HW parameters that are actually mounted thereafter, it is possible to know which HW parameters are finally mounted. The person who obtains it is limited, and the confidentiality of the error check value adding function is further improved. In the present embodiment, it will be described that only a specific HW parameter corresponding to a specific generation method is mounted on the main ROM 110b.

検査値生成部500は、メインCPU110aと送信部550との間に設けられている。そして、メインCPU110aと検査値生成部500との接続、および検査値生成部500と送信部550との接続は、上記のようにバス接続されており、それぞれの接続に使用されるバスは同一規格のバスとなっている。すなわち、検査値生成部500のメインCPU110a側の入力インターフェースと、送信部550の検査値生成部500側の入力インターフェースにおいて、各インターフェース間でのデータ送受を制御する方式(以下、「入出力制御形式」という)は、それぞれ、メインCPU110aの検査値生成部500側の出力インターフェースに設定された入出力制御方式に対応した方式となっている。なお、バス規格は、公知の規格を用いればよい。   The inspection value generation unit 500 is provided between the main CPU 110a and the transmission unit 550. The connection between the main CPU 110a and the inspection value generation unit 500 and the connection between the inspection value generation unit 500 and the transmission unit 550 are bus-connected as described above, and the buses used for each connection are the same standard. It has become a bus. That is, a method (hereinafter referred to as “input / output control format”) for controlling data transmission / reception between each of the input interface on the main CPU 110a side of the inspection value generation unit 500 and the input interface on the inspection value generation unit 500 side of the transmission unit 550. “)” Is a method corresponding to the input / output control method set in the output interface on the inspection value generation unit 500 side of the main CPU 110a. As the bus standard, a known standard may be used.

本実施形態では、メインCPU110aの検査値生成部500側の出力インターフェースの入出力制御方式を、「CPUインターフェース方式」という。そして、このCPUインターフェース方式は、上記のバス規格に基づいて定められた公知の入出力制御方式を用いればよく、検査値生成部500を追加する前のメインCPU110aと送信部550の間のバス規格に基づいて定められた入出力制御方式でよい。検査値生成部500の送信部550側の出力インターフェースも、CPUインターフェース方式で構成されている。   In the present embodiment, the input / output control method of the output interface on the inspection value generation unit 500 side of the main CPU 110a is referred to as “CPU interface method”. The CPU interface method may use a known input / output control method determined based on the above bus standard, and the bus standard between the main CPU 110a and the transmission unit 550 before the test value generation unit 500 is added. The input / output control method determined based on The output interface on the transmission unit 550 side of the inspection value generation unit 500 is also configured by the CPU interface method.

本実施形態のCPUインターフェース方式を具体的に説明する。例えば、メインCPU110aが制御コマンドを検査値生成部500へ出力する際、メインCPU110aは、データバスに制御コマンド、アドレスバスに検査値生成部500の所定の記憶領域を指定するアドレスデータ、制御バスに書き込み信号を出力する。このアドレスデータは、デコーダを介してチップセレクト信号へ変換され、検査値生成部500へ入力される。検査値生成部500は、チップセレクト信号および書き込み信号がアクティブとなると(本実施形態では制御信号がアクティブとなることを「制御信号が入力される」という)、データバス上の制御コマンドを取り込む。このような入出力制御方式で、制御コマンドがメインCPU110aから検査値生成部500へ出力される。メインCPU110aがHWパラメータを検査値生成部500へ出力する際も同様である。   The CPU interface system of this embodiment will be specifically described. For example, when the main CPU 110a outputs a control command to the test value generation unit 500, the main CPU 110a uses the control command as the data bus, the address data specifying the predetermined storage area of the test value generation unit 500 as the address bus, and the control bus. Outputs a write signal. This address data is converted into a chip select signal via a decoder and input to the inspection value generation unit 500. When the chip select signal and the write signal become active (in this embodiment, when the control signal becomes active, “the control signal is input”), the inspection value generation unit 500 takes in the control command on the data bus. With such an input / output control method, a control command is output from the main CPU 110 a to the inspection value generation unit 500. The same applies when the main CPU 110a outputs the HW parameter to the inspection value generation unit 500.

また、検査値生成部500が制御コマンドを送信部550へ出力する際も、検査値生成部500は、データバスに制御コマンド、アドレスバスに送信部550の所定の記憶領域を指定するアドレスデータ、制御バスに書き込み信号を出力する。そして、送信部550は、当該アドレスデータのチップセレクト信号および書き込み信号が入力されると、データバス上の制御コマンドを取り込み、制御コマンドが検査値生成部500から送信部550へ転送される。検査値生成部500が誤り検査値を送信部550へ出力する際も同様である。   Also, when the test value generation unit 500 outputs a control command to the transmission unit 550, the test value generation unit 500 also includes address data that specifies a control command for the data bus and a predetermined storage area of the transmission unit 550 for the address bus, A write signal is output to the control bus. Then, when the chip select signal and the write signal of the address data are input, the transmission unit 550 takes in the control command on the data bus, and the control command is transferred from the test value generation unit 500 to the transmission unit 550. The same applies when the inspection value generation unit 500 outputs the error inspection value to the transmission unit 550.

なお、本実施形態では、出力されたアドレスデータは、チップセレクト信号へ変換された後、指定された主制御部110内の構成部へ入力されるものとし、アドレスデータからチップセレクト信号への変換については説明を省略する。   In the present embodiment, the output address data is converted to a chip select signal and then input to a designated component in the main control unit 110. Conversion from address data to a chip select signal Description of is omitted.

また、本実施形態では、バスは、制御コマンドまたは誤り検査値のいずれか小さい方のデータ長以上のビット幅を有するバスを設けておけばよい。例えば、制御コマンドは2バイト、誤り検査値は1バイトのデータであるとすると、データバスのビット幅は、少なくとも1バイト以上とすればよい。この場合、メインCPU110aおよび検査値生成部500は、まず、2バイト長の制御コマンドの上位1バイトをデータバスへ出力し、続いて、下位1バイトをデータバスへ出力する。続いて、検査値生成部500は、1バイトの誤り検査値をデータバスへ出力する。   In this embodiment, a bus having a bit width equal to or greater than the data length of the smaller one of the control command and the error check value may be provided. For example, if the control command is 2-byte data and the error check value is 1-byte data, the bit width of the data bus may be at least 1 byte. In this case, the main CPU 110a and the test value generation unit 500 first output the upper 1 byte of the 2-byte control command to the data bus, and then output the lower 1 byte to the data bus. Subsequently, the check value generation unit 500 outputs a 1-byte error check value to the data bus.

検査値生成部500は、メインCPU110aから出力された制御コマンドに対して誤り検査値を付加して送信部550へ出力する機能を果たし、生成方式設定処理、検査値生成処理、および検査値付加処理など、遊技機1のセキュリティ機能実現に係る主制御部110の処理全般を実行する回路である。具体的には、検査値生成部500は、バッファ手段510と、決定手段540と、生成手段520と、付加手段530とを少なくとも備えている。そして、検査値生成部500の各手段は、ワイヤードロジック制御方式で回路構成されている。   The inspection value generation unit 500 performs a function of adding an error inspection value to the control command output from the main CPU 110a and outputting the control command to the transmission unit 550. The generation method setting process, the inspection value generation process, and the inspection value addition process These are circuits that execute the overall processing of the main control unit 110 related to realizing the security function of the gaming machine 1. Specifically, the inspection value generation unit 500 includes at least a buffer unit 510, a determination unit 540, a generation unit 520, and an addition unit 530. Each means of the inspection value generation unit 500 is configured by a wired logic control system.

本実施形態では、検査値生成部500内の各手段同士および各手段内の各回路同士でのデータ送受は、主制御部110のクロックパルス発生回路から出力されたクロック信号に同期して行われる。そのため、本実施形態では、検査値生成部500内の各手段や各回路の入出力制御方式を、「同期インターフェース方式」という。同期インターフェース方式では、出力するデータの接続先に対してイネーブル信号等を出力すれば、接続先は当該イネーブル信号およびクロック信号等の入力に基づいて、当該出力データを取り込む。よって、同期インターフェース方式は、バスを介して送出されるアドレスデータ(チップセレクト信号)および書き込み信号を必要とするCPUインターフェース方式とは異なる。   In the present embodiment, data transmission / reception between each means in the test value generation unit 500 and between each circuit in each means is performed in synchronization with the clock signal output from the clock pulse generation circuit of the main control unit 110. . For this reason, in this embodiment, the input / output control method of each means and each circuit in the test value generation unit 500 is referred to as a “synchronous interface method”. In the synchronous interface method, when an enable signal or the like is output to a connection destination of data to be output, the connection destination takes in the output data based on inputs of the enable signal and a clock signal. Therefore, the synchronous interface method is different from the CPU interface method that requires address data (chip select signal) and a write signal transmitted via the bus.

バッファ手段510は、ブート処理後のコマンド送信処理において、メインCPU110aから出力された制御コマンドや固有情報を入力し、一時的に保持する回路である。そして、バッファ手段510は、保持した制御コマンドを後続する決定手段540、生成手段520、および付加手段530へ出力する回路である。固有情報が入力された場合は、生成手段520へのみ出力する。すなわち、バッファ手段510は、メインCPU110aが中間制御部180へ送信する制御コマンドを一時的に保持し、メインCPU110aのコマンド送信処理の実行タイミングと、後続する決定手段540の生成方式設定処理、生成手段520の検査値生成処理、および付加手段530の検査値付加処理の各実行タイミングとを調整する役割を担っている。   The buffer unit 510 is a circuit that inputs and temporarily holds a control command or unique information output from the main CPU 110a in command transmission processing after boot processing. The buffer unit 510 is a circuit that outputs the held control command to the subsequent determination unit 540, generation unit 520, and addition unit 530. When the unique information is input, it is output only to the generation means 520. That is, the buffer unit 510 temporarily holds a control command transmitted from the main CPU 110 a to the intermediate control unit 180, the execution timing of the command transmission process of the main CPU 110 a, the generation method setting process and the generation unit of the subsequent determination unit 540. It plays a role of adjusting each execution timing of the inspection value generation process 520 and the inspection value addition process of the adding means 530.

バッファ手段510の入力側は、メインCPU110aとの間で、上記のようにCPUインターフェース方式に対応する入出力制御方式でデータ送受が制御されている。一方、バッファ手段510の出力側は、後続する決定手段540、生成手段520、および付加手段530との間で、同期インターフェース方式でデータ送受が制御されている。すなわち、バッファ手段510は、自身の入力側と出力側とで異なる入出力制御方式を有し、メインCPU110aのCPUインターフェース方式と検査値生成部500内の同期インターフェース方式とを整合する役割を担っている。   Data transmission / reception is controlled between the input side of the buffer means 510 and the main CPU 110a by the input / output control method corresponding to the CPU interface method as described above. On the other hand, on the output side of the buffer unit 510, data transmission / reception is controlled by the synchronous interface method with the subsequent determination unit 540, generation unit 520, and addition unit 530. That is, the buffer unit 510 has different input / output control methods on its input side and output side, and plays a role of matching the CPU interface method of the main CPU 110a with the synchronous interface method in the test value generation unit 500. Yes.

そして、バッファ手段510は、データバッファ511と制御回路512とを少なくとも備えている。データバッファ511は、メインCPU110aから出力された制御コマンドや固有情報を、データバスを介して取り込んで保持する回路である。制御回路512は、メインCPU110aから出力された制御信号の入力に基づいて、データバッファ511の動作を制御する回路である。   The buffer unit 510 includes at least a data buffer 511 and a control circuit 512. The data buffer 511 is a circuit that captures and holds control commands and unique information output from the main CPU 110a via a data bus. The control circuit 512 is a circuit that controls the operation of the data buffer 511 based on the input of a control signal output from the main CPU 110a.

具体的には、制御回路512は、メインCPU110aから出力された制御コマンドや固有情報をバッファ手段510のデータバッファ511へ書き込むための書き込み信号と、バッファ手段510を指定するアドレスデータとが入力されると、データバス上の制御コマンドや固有情報をデータバッファ511が取り込むよう作動させるためのイネーブル信号(以下、「作動許可信号」という)を出力する。データバッファ511は、当該作動許可信号の入力に基づいて、データバス上の制御コマンドや固有情報を取り込む。   Specifically, the control circuit 512 receives a write signal for writing a control command or unique information output from the main CPU 110 a into the data buffer 511 of the buffer unit 510 and address data designating the buffer unit 510. Then, an enable signal (hereinafter referred to as “operation permission signal”) for operating the data buffer 511 to take in a control command and specific information on the data bus is output. The data buffer 511 takes in a control command and unique information on the data bus based on the input of the operation permission signal.

また、制御回路512は、データバッファ511が取り込んだ制御コマンドや固有情報を決定手段540や生成手段520や付加手段530へ出力するよう作動させるための作動許可信号を出力する。データバッファ511は、当該作動許可信号の入力に基づいて、取り込んだ制御コマンドを決定手段540、生成手段520、および付加手段530へ出力すると共に、取り込んだ固有情報を生成手段520へ出力する。   In addition, the control circuit 512 outputs an operation permission signal for causing the control command and the unique information taken in by the data buffer 511 to be output to the determination unit 540, the generation unit 520, and the addition unit 530. Based on the input of the operation permission signal, the data buffer 511 outputs the captured control command to the determination unit 540, the generation unit 520, and the addition unit 530, and outputs the captured unique information to the generation unit 520.

そして、制御回路512は、データバッファ511から出力された制御コマンドが、決定手段540、生成手段520、および付加手段530で入力可能となるよう、決定手段540の判定回路541、生成手段520の制御回路523、および付加手段530の制御回路532に対して、作動許可信号を出力する。なお、制御回路512が、上記各作動許可信号を出力するタイミングは、検査値生成部500内の各手段の動作時間等を考慮しながら、各手段がメインCPU110aからの制御信号およびクロック信号の入力に同期して正常に動作できるようなタイミングとなるように予め設定されている。   The control circuit 512 controls the determination circuit 541 of the determination unit 540 and the generation unit 520 so that the control command output from the data buffer 511 can be input by the determination unit 540, the generation unit 520, and the addition unit 530. An operation permission signal is output to the circuit 523 and the control circuit 532 of the adding means 530. Note that the timing at which the control circuit 512 outputs each operation permission signal is determined by each unit to input the control signal and the clock signal from the main CPU 110a while taking into account the operation time of each unit in the test value generation unit 500. The timing is set in advance so that it can operate normally in synchronization with the timing.

また、制御回路512は、データバッファ511から出力された固有情報が、生成手段520で入力可能となるように、生成手段520の制御回路523に対して作動許可信号を出力する。なお、図5では、データバッファ511から生成手段520へ出力されるデータ線には、制御コマンドのみが記載されているが、固有情報においても、当該データ線を経由してデータバッファ511から生成手段520へ出力される。   Further, the control circuit 512 outputs an operation permission signal to the control circuit 523 of the generation unit 520 so that the unique information output from the data buffer 511 can be input by the generation unit 520. In FIG. 5, only the control command is described in the data line output from the data buffer 511 to the generation unit 520, but the unique information also includes the generation unit from the data buffer 511 via the data line. Is output to 520.

決定手段540は、バッファ手段510から出力された制御コマンドに付加するべき誤り検査値を生成する際の生成方式を決定し、決定した生成方式を用いて生成された誤り検査値が出力されるように(すなわち検査値生成処理が行われるように)、生成手段520への設定を行う回路である。すなわち、決定手段540は、検査値生成部500の生成方式設定処理を実行する役割を担っている。   The determination unit 540 determines a generation method for generating an error check value to be added to the control command output from the buffer unit 510, and outputs an error check value generated using the determined generation method. (I.e., so that the test value generation process is performed) is a circuit for setting the generation unit 520. That is, the determination unit 540 plays a role of executing the generation method setting process of the inspection value generation unit 500.

具体的には、決定手段540は、ブート処理中のHWパラメータ設定処理において、メインCPU110aから設定されたHWパラメータに基づいてデフォルトの生成方式を決定し、決定した生成方式に応じて生成手段520の設定を行う。また、決定手段540は、ブート処理後のコマンド送信処理において、バッファ手段510から出力された制御コマンドを入力し、入力した制御コマンドに基づいて、当該制御コマンドへ付加する誤り検査値を生成する際の生成方式、または当該制御コマンドより後に出力される制御コマンドへ付加する誤り検査値を生成する際の生成方式を決定する。このとき、決定手段540は、入力した制御コマンドによっては、予め定められた生成方式の変更規則(以下、「変更プロトコル」という)に従って、現在決定されている生成方式を新たな生成方式へ変更する。そして、決定手段540は、決定した生成方式に応じて生成手段520の設定を行う。   Specifically, the determination unit 540 determines a default generation method based on the HW parameter set from the main CPU 110a in the HW parameter setting process during the boot process, and the generation unit 520 determines the generation method according to the determined generation method. Set up. Further, in the command transmission process after the boot process, the determination unit 540 receives the control command output from the buffer unit 510 and generates an error check value to be added to the control command based on the input control command. Or a generation method for generating an error check value to be added to a control command output after the control command. At this time, the determination unit 540 changes the currently determined generation method to a new generation method according to a predetermined generation method change rule (hereinafter referred to as “change protocol”) depending on the input control command. . Then, the determination unit 540 sets the generation unit 520 according to the determined generation method.

より具体的には、決定手段540は、判定回路541と決定回路542とを少なくとも備えている。判定回路541は、バッファ手段510から出力された制御コマンドを入力し、入力した制御コマンドが、現在の生成方式を変更するとして予め定められた条件(以下、「変更条件」という)を満たす制御コマンドであるか否かの判定処理を実行し、判定結果を決定回路542へ通知する回路である。   More specifically, the determination unit 540 includes at least a determination circuit 541 and a determination circuit 542. The determination circuit 541 receives the control command output from the buffer unit 510, and the input control command satisfies a condition (hereinafter referred to as “change condition”) that is predetermined as a change in the current generation method. It is a circuit that executes a determination process of whether or not, and notifies the determination circuit 542 of the determination result.

判定回路541の入力側は、バッファ手段510のデータバッファ511とデータ線で接続され、バッファ手段510の制御回路512と制御線で接続されている。また、判定回路541の出力側は、決定手段540内の決定回路542と制御線で接続されている。判定回路541には、変更条件を予め記憶させておく変更条件記憶器(図示せず)と、入力した制御コマンドと変更条件とを比較する比較器(図示せず)とが備えられている。そして、判定回路541は、バッファ手段510の制御回路512から出力された作動許可信号の入力に基づいて、バッファ手段510のデータバッファ511から出力された制御コマンドを比較器に入力し、変更条件記憶器にて予め記憶しておいた変更条件と比較する。続いて、判定回路541は、入力した制御コマンドが変更条件を満たす制御コマンドであるか否かの判定結果を通知するための制御信号(以下、「判定結果信号」という)を出力する。   The input side of the determination circuit 541 is connected to the data buffer 511 of the buffer means 510 via a data line, and is connected to the control circuit 512 of the buffer means 510 via a control line. The output side of the determination circuit 541 is connected to the determination circuit 542 in the determination means 540 through a control line. The determination circuit 541 includes a change condition storage (not shown) that stores the change condition in advance, and a comparator (not shown) that compares the input control command with the change condition. Then, the determination circuit 541 inputs the control command output from the data buffer 511 of the buffer unit 510 to the comparator based on the input of the operation permission signal output from the control circuit 512 of the buffer unit 510, and stores the change condition. Compare with the change condition stored in advance. Subsequently, the determination circuit 541 outputs a control signal (hereinafter referred to as “determination result signal”) for notifying the determination result of whether or not the input control command is a control command satisfying the change condition.

変更条件は、予め中間制御部180との間で取り決めておけば基本的に任意である。例えば、本実施形態では、バッファ手段510から出力された制御コマンドの入力回数(すなわち制御コマンドの生成個数P)が所定個数であるか否か、バッファ手段510から出力された制御コマンドの種別が、予め定めた所定の制御コマンドの種別に該当するか否か、等の種々の条件を設定することができる。   The change condition is basically arbitrary if it is agreed with the intermediate control unit 180 in advance. For example, in the present embodiment, whether or not the number of control commands input from the buffer unit 510 (that is, the number of generated control commands P) is a predetermined number, the type of the control command output from the buffer unit 510 is: It is possible to set various conditions such as whether or not a predetermined control command type is met.

なお、本実施形態では、バッファ手段510から出力された制御コマンドの種別が、予め定めた所定の制御コマンドの種別に該当するか否かを変更条件として設定するものとして説明する。なお、所定の制御コマンドの種別としては、一つの種別でも複数の種別でもよく、種別自体も任意である。   In the present embodiment, description will be made assuming that whether or not the type of the control command output from the buffer unit 510 corresponds to a predetermined type of control command is set as a change condition. Note that the type of the predetermined control command may be one type or a plurality of types, and the type itself is arbitrary.

変更条件記憶器は、レジスタなどで構成しておき、所定の制御コマンドのビットパターンを記憶しておく。比較器は、変更条件記憶器と同等以上のビット数を比較可能なイコールコンパレータやマグニチュードコンパレータなどで構成しておくとともに、データバッファ511とデータ線で接続しておく。また、比較器は、決定回路542と制御線で接続しておく。そして、比較器は、制御回路512から出力された作動許可信号の入力に基づいて、データバッファ511から出力された制御コマンドを入力する。   The change condition storage unit is configured by a register or the like, and stores a bit pattern of a predetermined control command. The comparator is composed of an equal comparator or a magnitude comparator that can compare the number of bits equal to or greater than that of the change condition storage device, and is connected to the data buffer 511 through a data line. The comparator is connected to the determination circuit 542 through a control line. Then, the comparator inputs the control command output from the data buffer 511 based on the input of the operation permission signal output from the control circuit 512.

そして、比較器は、入力した制御コマンドと変更条件とを比較し、両者が一致すれば、バッファ手段510から出力された制御コマンドが変更条件を満たす制御コマンドであることを示す判定結果信号を決定回路542へ出力する。一方、比較器は、両者が一致しなければ、バッファ手段510から出力された制御コマンドが変更条件を満たす制御コマンドでないことを示す判定結果信号を決定回路542へ出力する。   The comparator compares the input control command with the change condition, and if they match, determines a determination result signal indicating that the control command output from the buffer means 510 is a control command satisfying the change condition. Output to the circuit 542. On the other hand, if the two do not match, the comparator outputs a determination result signal indicating that the control command output from the buffer means 510 is not a control command satisfying the change condition to the determination circuit 542.

一方、決定回路542は、メインCPU110aから設定されたHWパラメータや判定回路541の判定結果に応じて生成方式を決定し、決定した生成方式によって、生成手段520が検査値生成処理を実行するように、生成手段520への設定を行う回路である。   On the other hand, the determination circuit 542 determines the generation method according to the HW parameter set from the main CPU 110a and the determination result of the determination circuit 541, and the generation unit 520 executes the test value generation process according to the determined generation method. , A circuit for setting the generation means 520.

決定回路542の入力側は、バスを介してメインCPU110aと接続され、メインCPU110aとの間では、CPUインターフェース方式に対応する入出力制御方式でデータ送受が制御されている。そして、決定回路542は、HWパラメータ設定処理の際に、メインCPU110aから出力されたHWパラメータをデータバス上から取り込む。また、決定回路542の入力側は、判定回路541と制御線で接続され、判定回路541との間では、同期インターフェース方式に対応する入出力制御方式でデータ送受が制御されている。そして、決定回路542は、判定回路541から出力された判定結果信号を入力する。   The input side of the decision circuit 542 is connected to the main CPU 110a via a bus, and data transmission / reception is controlled with the main CPU 110a by an input / output control method corresponding to the CPU interface method. Then, the decision circuit 542 takes in the HW parameter output from the main CPU 110a from the data bus during the HW parameter setting process. Further, the input side of the decision circuit 542 is connected to the determination circuit 541 through a control line, and data transmission / reception is controlled between the determination circuit 541 and the input / output control method corresponding to the synchronous interface method. Then, the determination circuit 542 receives the determination result signal output from the determination circuit 541.

また、決定回路542の出力側は、生成手段520と制御線で接続され、生成手段520との間でも、同期インターフェース方式でデータ送受が制御されている。そして、決定回路542は、メインCPU110aから出力されたHWパラメータや判定回路541から出力された判定結果信号に応じて生成方式を決定し、決定した生成方式を生成手段520へ設定するための制御信号を出力する。   Further, the output side of the decision circuit 542 is connected to the generation unit 520 through a control line, and data transmission / reception is also controlled between the generation unit 520 and the generation unit 520 using a synchronous interface method. Then, the determination circuit 542 determines a generation method according to the HW parameter output from the main CPU 110 a and the determination result signal output from the determination circuit 541, and a control signal for setting the determined generation method to the generation unit 520. Is output.

具体的には、決定回路542には、HWパラメータと生成方式の対応関係が分かるデータテーブルが予め設けられており、決定回路542は、取り込んだHWパラメータによって生成方式を決定することができる。そして、決定回路542には、決定した生成方式を示す情報である生成方式情報を生成する。生成方式情報は、予め用意された複数の生成方式をそれぞれ識別できるような識別番号等の値とすればよい。また、決定回路542には、生成方式情報を記憶する生成方式情報記憶領域(S)が設けられている。そして、決定回路542は、HWパラメータ設定処理において、メインCPU110aから設定されたHWパラメータに対応する生成方式を示す生成方式情報を、デフォルトの値として生成方式情報記憶領域(S)に記憶する。   Specifically, the determination circuit 542 is preliminarily provided with a data table in which the correspondence between the HW parameter and the generation method is known, and the determination circuit 542 can determine the generation method based on the captured HW parameter. Then, the determination circuit 542 generates generation method information that is information indicating the determined generation method. The generation method information may be a value such as an identification number that can identify a plurality of generation methods prepared in advance. The determination circuit 542 is provided with a generation method information storage area (S) for storing generation method information. In the HW parameter setting process, the determination circuit 542 stores generation method information indicating the generation method corresponding to the HW parameter set from the main CPU 110a as a default value in the generation method information storage area (S).

なお、本実施形態では、生成方式の具体的な態様は、生成手段520の後述する生成回路521に設けられた複数の演算回路(図5では、演算回路A〜D)で表されている。そして、決定回路542には、生成方式情報と、生成回路521を担う複数の演算回路との対応関係が分かるデータテーブルが設けられている。   In the present embodiment, a specific aspect of the generation method is represented by a plurality of arithmetic circuits (arithmetic circuits A to D in FIG. 5) provided in a generation circuit 521 described later of the generation unit 520. The determination circuit 542 is provided with a data table that shows the correspondence between generation method information and a plurality of arithmetic circuits that bear the generation circuit 521.

そして、決定回路542は、ブート処理中の生成方式設定処理の際に、生成方式情報記憶領域(S)に記憶された値に基づいて、生成回路521を担う複数の演算回路(図5では、演算回路A〜C)のうちのどの演算回路にて生成された誤り検査値を、生成回路521から付加手段530へ出力するべきかを決定する。そして、決定回路542は、当該演算回路にて、すなわち、生成方式情報記憶領域(S)に記憶された値が示す特定の生成方式にて生成された誤り検査値を付加手段530へ出力させるための制御信号(以下、「生成方式制御信号」という)を、生成手段520の制御回路523へ出力する。   Then, the determination circuit 542 performs a plurality of arithmetic circuits (in FIG. 5) that bear the generation circuit 521 based on the value stored in the generation method information storage area (S) during the generation method setting process during the boot process. It is determined which of the arithmetic circuits A to C) the error check value generated by the generation circuit 521 should be output to the adding means 530. Then, the determination circuit 542 causes the error check value generated by the specific generation method indicated by the value stored in the generation method information storage area (S) to be output to the adding unit 530. The control signal (hereinafter referred to as “generation method control signal”) is output to the control circuit 523 of the generation unit 520.

なお、生成方式情報記憶領域(S)には、後述するように生成方式が変更された場合には、変更後の生成方式を示す生成方式情報のSの値(以下、変更後の生成方式情報の値を「S’」とする)が記憶されることになる。決定回路542は、今回のコマンド送信処理にて生成方式を変更した場合、変更後の生成方式を示す生成方式情報を記憶した生成方式情報記憶領域(S)の値を確認することで、以降のコマンド送信処理で生成手段520が付加手段530へ出力するべき誤り検査値を生成する際の生成方式を把握することができる。   In the generation method information storage area (S), when the generation method is changed as described later, the value of S of the generation method information indicating the changed generation method (hereinafter referred to as the changed generation method information). Is stored as “S ′”). If the generation method is changed in the current command transmission process, the determination circuit 542 confirms the value of the generation method information storage area (S) that stores the generation method information indicating the generation method after the change. It is possible to grasp the generation method when the generation unit 520 generates an error check value to be output to the addition unit 530 in the command transmission process.

また、決定回路542には、メインRAM110cと同様に、現在までの制御コマンドの生成個数の値を記憶しておく生成個数記憶領域(P)が設けられている。そして、決定回路542は、判定回路541から判定結果信号が出力されたことを検知したときに生成個数記憶領域(P)の値に1を加算して更新する。これによって、決定回路542は、当該判定結果信号の出力に対応するバッファ手段510から出力された制御コマンドが、主制御部110が初期化されて格納回路522に格納しておいた制御コマンドがクリアされてからP番目に生成された制御コマンド(P)であることを把握することができる。   Further, the determination circuit 542 is provided with a generation number storage area (P) for storing the value of the number of generations of control commands up to the present, similarly to the main RAM 110c. When the determination circuit 542 detects that the determination result signal is output from the determination circuit 541, the determination circuit 542 adds 1 to the value of the generated number storage area (P) and updates it. As a result, the determination circuit 542 clears the control command output from the buffer unit 510 corresponding to the output of the determination result signal, and the control command stored in the storage circuit 522 after the main control unit 110 is initialized. It can be grasped that the control command (P) is generated in the P-th time since the generation.

なお、メインRAM110cに設けられた生成個数記憶領域(P)の値と決定回路542に設けられた生成個数記憶領域(P)の値とは同一の値となり、バッファ手段510から出力された制御コマンド(P)は、メインCPU110aから現に出力された制御コマンド(P)と同一である。   It should be noted that the value of the generated number storage area (P) provided in the main RAM 110 c and the value of the generated number storage area (P) provided in the determination circuit 542 are the same value, and the control command output from the buffer means 510. (P) is the same as the control command (P) actually output from the main CPU 110a.

本実施形態では、上記のように、メインCPU110aが、生成手段520の格納回路522および生成回路521の記憶回路へ固有情報を設定する必要があるか否かを判断するが、決定回路542が判断してもよい。例えば、決定回路542は、HWパラメータを設定されたことに伴い、バッファ手段510へその旨を通知する。そして、バッファ手段510は、メインCPU110aに対して固有情報を出力するように要求するための制御信号を出力して、メインROM110bに格納された固有情報を出力させることとしてもよい。   In the present embodiment, as described above, the main CPU 110a determines whether it is necessary to set unique information in the storage circuit 522 of the generation unit 520 and the storage circuit of the generation circuit 521, but the determination circuit 542 determines May be. For example, when the HW parameter is set, the determination circuit 542 notifies the buffer unit 510 to that effect. Then, the buffer unit 510 may output a control signal for requesting the main CPU 110a to output the unique information and output the unique information stored in the main ROM 110b.

また、決定回路542は、ブート処理後の生成方式設定処理の際に、予め中間制御部180との間で取り決められた生成方式の変更プロトコルに従って、生成方式を変更する。具体的には、決定回路542は、判定回路541から出力された判定結果信号を確認し、バッファ手段510から出力された制御コマンドが変更条件を満たす制御コマンドであるか否かを把握する。そして、決定回路542は、バッファ手段510から出力された制御コマンドが変更条件を満たす制御コマンドであれば、予め定めた変更タイミングで、所定の変更方式に従って生成方式情報記憶領域(S)の値を変更する。すなわち、上記変更プロトコルとは、生成方式を変更するべきか否かを判定するための変更条件と、生成方式の変更タイミングの設定方法と、生成方式の変更方式とから少なくとも構成される。   Further, the determination circuit 542 changes the generation method according to the generation method change protocol negotiated with the intermediate control unit 180 in advance in the generation method setting process after the boot process. Specifically, the determination circuit 542 confirms the determination result signal output from the determination circuit 541 and grasps whether or not the control command output from the buffer unit 510 is a control command that satisfies the change condition. If the control command output from the buffer means 510 is a control command that satisfies the change condition, the determination circuit 542 sets the value of the generation method information storage area (S) according to a predetermined change method at a predetermined change timing. change. That is, the change protocol includes at least a change condition for determining whether or not the generation method should be changed, a generation method change timing setting method, and a generation method change method.

変更条件は、上記のように、本実施形態では、バッファ手段510から出力された制御コマンドの種別が、所定の制御コマンドの種別に該当するか否かである。   As described above, the change condition is whether or not the type of the control command output from the buffer unit 510 corresponds to the type of the predetermined control command in the present embodiment.

生成方式の変更方式は、予め中間制御部180との間で取り決めておけば基本的に任意である。本実施形態では、単独生成方式と、累積数がQ=1である累積検査値方式と、累積数がQ=2である累積検査値方式との3つが用意されているとした。このとき、例えば、変更方式として、変更条件を満たす制御コマンドが出力されるごとに、単独生成方式→累積数がQ=1である累積検査値方式→累積数がQ=2である累積検査値方式へと順番に変更していくと取り決めることが考えられる。また、予め用意した乱数生成回路を作動させ、得られた乱数値に対応して生成方式を選択したりすることができる。但し、乱数生成回路を用いる場合は、得られた乱数値を中間制御部180へ通知する必要がある。本実施形態で取り決められた変更方式は、単独生成方式→累積数がQ=1である累積検査値方式→累積数がQ=2である累積検査値方式へと順番に変更するものとする。   The generation method changing method is basically arbitrary as long as it is agreed with the intermediate control unit 180 in advance. In the present embodiment, there are prepared three methods: a single generation method, a cumulative test value method with a cumulative number Q = 1, and a cumulative test value method with a cumulative number Q = 2. At this time, for example, each time a control command that satisfies the change condition is output as the change method, the single generation method → the cumulative check value method with the cumulative number Q = 1 → the cumulative check value with the cumulative number Q = 2 It is conceivable to negotiate if the method is changed in order. Further, it is possible to operate a random number generation circuit prepared in advance and select a generation method corresponding to the obtained random number value. However, when using a random number generation circuit, it is necessary to notify the intermediate control unit 180 of the obtained random number value. The change method negotiated in the present embodiment is changed in order from the single generation method → the cumulative inspection value method in which the cumulative number is Q = 1 → the cumulative inspection value method in which the cumulative number is Q = 2.

また、生成方式の変更タイミングの設定方法は、予め中間制御部180との間で取り決めてあれば基本的に任意であるが、本実施形態では、次のように変更タイミングを設定するものとする。すなわち、決定回路542は、バッファ手段510から出力された制御コマンド(P)が所定の制御コマンドである場合は、生成個数がMo個(Mo;非負の整数)経過した時点(すなわち、生成個数がP+Moの時)に、上記変更方式に従って生成方式情報記憶領域(S)の値をS’へ更新する。その結果、当該時点に出力された制御コマンド(P+Mo)に対して付加する誤り検査値を生成する際の生成方式には、生成方式情報記憶領域(S)に記憶された変更後の生成方式を示すS’の値が反映される。そして、制御コマンド(P+Mo)に対し、このS’の値に対応した生成方式を用いて生成された誤り検査値(P+Mo−N)が付加する誤り検査値となる。本実施形態では、Moは、予め中間制御部180との間で取り決めてある固定値である。   In addition, the generation method change timing setting method is basically arbitrary as long as it is determined in advance with the intermediate control unit 180, but in this embodiment, the change timing is set as follows. . In other words, when the control command (P) output from the buffer means 510 is a predetermined control command, the decision circuit 542 determines when the generation number Mo (Mo; non-negative integer) has elapsed (that is, the generation number is At the time of P + Mo), the value of the generation method information storage area (S) is updated to S ′ according to the change method. As a result, the generation method at the time of generating the error check value to be added to the control command (P + Mo) output at the time is the changed generation method stored in the generation method information storage area (S). The value of S ′ shown is reflected. Then, an error check value (P + Mo−N) generated using a generation method corresponding to the value of S ′ is added to the control command (P + Mo). In the present embodiment, Mo is a fixed value determined in advance with the intermediate control unit 180.

なお、決定回路542には、生成方式情報の変更タイミング時の生成個数の値を示す変更タイミング情報Miを記憶する変更タイミング情報記憶領域(Mi)を設けておく。決定回路542は、バッファ手段510から出力された制御コマンド(P)が変更条件を満たす制御コマンドである場合に、当該制御コマンド(P)の生成個数に、予め取り決められたMoの値を加えた値(P+Mo)を、変更タイミング情報Mi(=P+Mo)として、変更タイミング情報記憶領域(Mi)に記憶する。すなわち、変更タイミング情報記憶領域(Mi)に記憶された値は、変更条件を満たす制御コマンドが出力されてからMo個後に出力された制御コマンドの生成個数のPの値と等しくなる。   The determination circuit 542 is provided with a change timing information storage area (Mi) for storing change timing information Mi indicating the value of the number of generations at the time of changing the generation method information. When the control command (P) output from the buffer means 510 is a control command that satisfies the change condition, the determination circuit 542 adds a predetermined value of Mo to the number of generated control commands (P). The value (P + Mo) is stored in the change timing information storage area (Mi) as change timing information Mi (= P + Mo). That is, the value stored in the change timing information storage area (Mi) is equal to the value P of the number of generated control commands output Mo after the output of the control command satisfying the change condition.

よって、決定回路542は、現在の制御コマンドの生成個数、すなわち、生成個数記憶領域(P)の値と、変更タイミング情報記憶領域(Mi)の値とを比較することで、現在は変更タイミングであるか否かを把握することができる。決定回路542には、生成個数記憶領域(P)の値と変更タイミング情報記憶領域(Mi)の値とを比較するための比較回路(図示せず)を設けておく。なお、決定回路542は、生成個数記憶領域(P)の値と変更タイミング情報記憶領域(Mi)の値とが一致して変更タイミングが到来し、生成方式を変更した後(生成方式情報記憶領域(S)の値を変更した後)は、変更タイミング情報記憶領域(Mi)をクリアする。   Therefore, the decision circuit 542 compares the current number of generated control commands, that is, the value of the generated number storage area (P) with the value of the change timing information storage area (Mi), so that the present time is not changed. Whether or not there is can be grasped. The determination circuit 542 is provided with a comparison circuit (not shown) for comparing the value of the generated number storage area (P) and the value of the change timing information storage area (Mi). Note that the decision circuit 542 changes the generation method after the value of the generated number storage area (P) and the value of the change timing information storage area (Mi) coincide with each other and changes the generation method (generation method information storage area). After changing the value of (S), the change timing information storage area (Mi) is cleared.

本実施形態では、バッファ手段510から出力された制御コマンドが変更条件を満たす制御コマンドであると判明した時点から、実際に生成方式を変更する時点までの間に、更に変更条件を満たす制御コマンドが出力される可能性がある。そこで、本実施形態では、複数の変更タイミング情報記憶領域(Mi)を設けておく。iは、複数の変更タイミング情報記憶領域(Mi)のそれぞれに対する識別番号である。   In the present embodiment, there is a control command that satisfies the change condition between the time when it is determined that the control command output from the buffer unit 510 is a control command that satisfies the change condition and the time when the generation method is actually changed. It may be output. Therefore, in this embodiment, a plurality of change timing information storage areas (Mi) are provided. i is an identification number for each of the plurality of change timing information storage areas (Mi).

決定回路542は、変更条件を満たす制御コマンドが出力されるごとに、それぞれの変更タイミング情報Miを変更タイミング情報記憶領域(Mi)へ記憶しておく。変更タイミング情報記憶領域(Mi)は、生成方式を変更した後(生成方式情報記憶領域(S)の値を変更した後)はクリアされる。よって、変更タイミング情報Miは、生成方式の変更タイミングが到来した時点から、更に変更条件を満たす誤り検査値が出力された個数分だけ記憶されることとなり、決定回路542は、最大でもMo+1個分の変更タイミング情報記憶領域(Mi)を確保しておけば足りる。このように取り決めておくと、iの値の取り得る範囲は、1≦i≦Mo+1となる。なお、本実施形態では、複数の変更タイミング情報Miの値の中で、最も小さい変更タイミング情報Miの値を「Mmin」という。   The decision circuit 542 stores each change timing information Mi in the change timing information storage area (Mi) every time a control command satisfying the change condition is output. The change timing information storage area (Mi) is cleared after the generation method is changed (after the value of the generation method information storage area (S) is changed). Therefore, the change timing information Mi is stored as many as the number of error check values that satisfy the change condition from the time when the generation method change timing arrives, and the decision circuit 542 has a maximum of Mo + 1. It is sufficient to secure the change timing information storage area (Mi). If determined in this way, the possible range of the value of i is 1 ≦ i ≦ Mo + 1. In the present embodiment, the smallest value of the change timing information Mi among the plurality of change timing information Mi values is referred to as “Mmin”.

このようにして、決定回路542は、メインCPU110aから設定されたHWパラメータや判定回路541の判定結果に応じて、検査値生成処理で用いられる生成方式を決定する。そして、決定回路542は、上記生成方式制御信号を生成手段520の制御回路523へ出力することで、決定した生成方式に応じて生成手段520の設定を行うことができ、決定した生成方式を用いて生成手段520にて検査値生成処理が実行されることとなる。   In this way, the determination circuit 542 determines the generation method used in the test value generation process according to the HW parameter set from the main CPU 110a and the determination result of the determination circuit 541. Then, the determination circuit 542 can set the generation unit 520 according to the determined generation method by outputting the generation method control signal to the control circuit 523 of the generation unit 520, and uses the determined generation method. Thus, the inspection value generation processing is executed by the generation means 520.

生成手段520は、バッファ手段510から出力された制御コマンドを用いて誤り検査値を生成し、生成した誤り検査値を、決定手段540からの生成方式制御信号に基づいて、後続する付加手段530へ出力する回路である。すなわち、生成手段520は、検査値生成処理を実行する役割を担っている。そして、生成手段520は、生成回路521と、格納回路522と、制御回路523と、入力選択回路524とを少なくとも備えている。生成回路521は、バッファ手段510から過去に出力された制御コマンドに演算処理を施して誤り検査値を生成する回路である。格納回路522は、バッファ手段510から出力された制御コマンドを格納する回路である。制御回路523は、バッファ手段510から出力された作動許可信号の入力に基づいて、生成回路521および格納回路522の動作を制御する回路である。また、制御回路523は、決定手段540から出力された生成方式制御信号の入力に基づいて、生成回路521から付加手段530へ出力する誤り検査値を制御する回路である。入力選択回路524は、生成回路521と付加手段530との接続を選択的に切り替える回路である。   The generation unit 520 generates an error check value using the control command output from the buffer unit 510, and sends the generated error check value to the subsequent addition unit 530 based on the generation method control signal from the determination unit 540. It is a circuit to output. In other words, the generation unit 520 plays a role of executing the inspection value generation process. The generation unit 520 includes at least a generation circuit 521, a storage circuit 522, a control circuit 523, and an input selection circuit 524. The generation circuit 521 is a circuit that generates an error check value by performing arithmetic processing on a control command output in the past from the buffer unit 510. The storage circuit 522 is a circuit that stores the control command output from the buffer unit 510. The control circuit 523 is a circuit that controls operations of the generation circuit 521 and the storage circuit 522 based on the input of the operation permission signal output from the buffer unit 510. The control circuit 523 is a circuit that controls the error check value output from the generation circuit 521 to the addition unit 530 based on the input of the generation method control signal output from the determination unit 540. The input selection circuit 524 is a circuit that selectively switches the connection between the generation circuit 521 and the adding unit 530.

格納回路522は、バッファ手段510から出力された制御コマンドを格納しておく回路である。格納回路522は、少なくとも遡及数のNの値に対応するN段の格納回路で構成されている。そして、格納回路522を担う各格納回路は、パイプライン構成となるように各々が接続されており、遡及数のNの値に対応するN段のシフトレジスタ(FIFOメモリ)の機能を少なくとも有している。   The storage circuit 522 is a circuit for storing the control command output from the buffer unit 510. The storage circuit 522 is composed of N stages of storage circuits corresponding to at least the retroactive N value. Each storage circuit that bears the storage circuit 522 is connected so as to have a pipeline configuration, and has at least a function of an N-stage shift register (FIFO memory) corresponding to the value of N in the retroactive number. ing.

そして、格納回路522は、バッファ手段510がメインCPU110aから受け取って、決定手段540、生成手段520、および付加手段530に出力した制御コマンド(P)よりも過去にメインCPU110aによって生成された制御コマンドを格納することができる。具体的には、格納回路522は、バッファ手段510から出力された制御コマンド(P)より過去に生成された制御コマンド(P−1)〜制御コマンド(P−N)のN個の制御コマンドを格納することができる。本実施形態では、格納回路522を担う各格納回路のうち、初段の格納回路を格納回路(P−1)とし、最終段の格納回路を格納回路(P−N)とする。そして、格納回路522を担う各格納回路を、それぞれ格納回路(P−1)〜格納回路(P−N)とする。   The storage circuit 522 receives control commands generated by the main CPU 110a in the past from the control command (P) received by the buffer unit 510 from the main CPU 110a and output to the determining unit 540, the generating unit 520, and the adding unit 530. Can be stored. Specifically, the storage circuit 522 receives N control commands from the control command (P-1) to the control command (PN) generated in the past from the control command (P) output from the buffer means 510. Can be stored. In the present embodiment, among the storage circuits that bear the storage circuit 522, the storage circuit (P-1) is the first storage circuit, and the storage circuit (PN) is the final storage circuit. Each storage circuit that bears the storage circuit 522 is referred to as a storage circuit (P-1) to a storage circuit (PN).

格納回路522の初段の格納回路(P−1)の入力側は、バッファ手段510のデータバッファ511とデータ線で接続されている。また、各格納回路(P−1)〜(P−N)は、制御回路523とそれぞれ制御線で接続されている。そして、制御回路523は、バッファ手段510の制御回路512から出力された作動許可信号の入力に基づいて、各格納回路(P−1)〜(P−N)に格納されたデータを順次シフトさせるための制御信号(以下、「シフト処理信号」という)を出力する。格納回路522の最終段の格納回路(P−N)の出力側は、生成回路521とデータ線で接続されている。   The input side of the first stage storage circuit (P-1) of the storage circuit 522 is connected to the data buffer 511 of the buffer means 510 by a data line. The storage circuits (P-1) to (PN) are connected to the control circuit 523 through control lines. The control circuit 523 sequentially shifts the data stored in the storage circuits (P-1) to (PN) based on the input of the operation permission signal output from the control circuit 512 of the buffer means 510. Control signal (hereinafter referred to as “shift processing signal”) for output. The output side of the storage circuit (PN) at the final stage of the storage circuit 522 is connected to the generation circuit 521 through a data line.

各格納回路(P−1)〜(P−N)は、シフト処理信号が制御回路523から入力されると、各々が格納する制御コマンドを次段の格納回路へ順次シフトさせると共に、前段の格納回路からシフトされた制御コマンドを格納する。このとき、初段の格納回路(P−1)は、シフト処理信号の入力に伴ってバッファ手段510のデータバッファ511から出力された制御コマンド(P)を新たに取り込んで格納する。また、最終段の格納回路(P−N)は、自身が格納する制御コマンド(P−N)をシフト処理信号の入力に伴ってシフトさせ、後続する生成回路521へ出力する。   When the shift processing signal is input from the control circuit 523, each of the storage circuits (P-1) to (P-N) sequentially shifts the control commands stored therein to the storage circuit of the next stage and stores the previous stage. Stores control commands shifted from the circuit. At this time, the first stage storage circuit (P-1) newly takes in and stores the control command (P) output from the data buffer 511 of the buffer means 510 in response to the input of the shift processing signal. Further, the storage circuit (PN) in the final stage shifts the control command (PN) stored therein in accordance with the input of the shift processing signal, and outputs it to the subsequent generation circuit 521.

生成回路521は、格納回路522から出力された制御コマンドに対し、予め設定された複数の生成方式で誤り検査値を生成し、生成した誤り検査値を後続する入力選択回路524へ出力する回路である。生成回路521は、単独生成方式および累積生成方式の具体的な態様として、図5に示すように、複数の演算回路(演算回路A〜D)と複数の記憶回路(記憶回路α、β)とを備えている。   The generation circuit 521 is a circuit that generates an error check value with a plurality of preset generation methods in response to the control command output from the storage circuit 522, and outputs the generated error check value to the subsequent input selection circuit 524. is there. As specific modes of the single generation method and the cumulative generation method, the generation circuit 521 includes a plurality of arithmetic circuits (arithmetic circuits A to D) and a plurality of memory circuits (memory circuits α and β), as shown in FIG. It has.

具体的には、生成回路521は、単独生成方式の具体的態様として、演算回路Aを備えている。また、生成回路521は、累積数がQ=1である累積検査値方式の具体的態様として、演算回路Bおよび記憶回路αを備えている。また、生成回路521は、累積数がQ=2である累積検査値方式の具体的態様として、演算回路C、Dおよび記憶回路α、βを備えている。なお、演算回路B〜Dは、図5に示すように、2値入力の演算回路であって、それぞれに入力1および入力2が設けられている。   Specifically, the generation circuit 521 includes an arithmetic circuit A as a specific mode of the single generation method. Further, the generation circuit 521 includes an arithmetic circuit B and a storage circuit α as a specific aspect of the cumulative test value method in which the cumulative number is Q = 1. Further, the generation circuit 521 includes arithmetic circuits C and D and storage circuits α and β as a specific aspect of the cumulative test value method in which the cumulative number is Q = 2. The arithmetic circuits B to D are binary input arithmetic circuits as shown in FIG. 5, and are provided with an input 1 and an input 2, respectively.

記憶回路α、βは、累積数に応じた複数種類の累積生成方式にて累積検査値(P−N)を生成するために用いられる制御コマンドを記憶する回路である。なお、記憶回路は、Qmaxの値に応じた個数分だけ設けられており、本実施形態では、Qmax=2であるため、記憶回路αと記憶回路βの2つの記憶回路が設けられている。   The storage circuits α and β are circuits that store control commands used to generate a cumulative inspection value (PN) using a plurality of types of cumulative generation methods according to the cumulative number. Note that as many memory circuits as the number corresponding to the value of Qmax are provided, and in this embodiment, since Qmax = 2, two memory circuits, a memory circuit α and a memory circuit β, are provided.

また、記憶回路α、βは、格納回路522と同様に、パイプライン構成となるように各々が接続されているとともに、それぞれ制御回路523と制御線で接続されている。そして、制御回路523は、格納回路522と同様に、バッファ手段510の制御回路512から出力された作動許可信号の入力に基づいて、記憶回路α、βへそれぞれシフト処理信号を出力する。記憶回路α、βは、格納回路522と同様に、シフト処理信号が制御回路523から入力されると、各々が記憶する制御コマンドを順次シフトさせる。   Similarly to the storage circuit 522, the storage circuits α and β are connected to each other so as to have a pipeline configuration, and are also connected to the control circuit 523 through control lines. Then, similarly to the storage circuit 522, the control circuit 523 outputs shift processing signals to the storage circuits α and β based on the input of the operation permission signal output from the control circuit 512 of the buffer means 510. Similar to the storage circuit 522, the storage circuits α and β sequentially shift the control commands stored therein when the shift processing signal is input from the control circuit 523.

記憶回路αの入力側は、格納回路522の最終段の格納回路(P−N)とデータ線で接続され、記憶回路αの出力側は、演算回路Bの入力2および演算回路Dの入力1とそれぞれデータ線で接続されている。そして、記憶回路αは、シフト処理信号が制御回路523から入力されると、前回のコマンド送信処理において記憶しておいた、当該制御コマンド(P−N)より1個前の制御コマンド(P−N−1)をシフトさせ、後続する記憶回路β、演算回路Bの入力2、および演算回路Dの入力1へ出力する。これとともに、記憶回路αは、格納回路522の最終段の格納回路(P−N)から出力された制御コマンド(P−N)を取り込んで記憶する。   The input side of the storage circuit α is connected to the final storage circuit (PN) of the storage circuit 522 by a data line, and the output side of the storage circuit α is input 2 of the arithmetic circuit B and input 1 of the arithmetic circuit D. Are connected by data lines. When the shift processing signal is input from the control circuit 523, the storage circuit α stores the control command (P−N) one previous to the control command (PN) stored in the previous command transmission process. N-1) is shifted and output to the subsequent memory circuit β, the input 2 of the arithmetic circuit B, and the input 1 of the arithmetic circuit D. At the same time, the storage circuit α captures and stores the control command (PN) output from the final stage storage circuit (PN) of the storage circuit 522.

記憶回路βの入力側は、記憶回路αとデータ線で接続され、記憶回路βの出力側は、演算回路Dの入力2とデータ線で接続されている。そして、記憶回路βは、シフト処理信号が制御回路523から入力されると、前回のコマンド送信処理において記憶しておいた、当該制御コマンド(P−N)より2個前の制御コマンド(P−N−2)をシフトさせ、後続する演算回路Dの入力2へ出力する。これとともに、記憶回路βは、記憶回路αから出力された制御コマンド(P−N−1)を取り込んで記憶する。   The input side of the storage circuit β is connected to the storage circuit α via a data line, and the output side of the storage circuit β is connected to the input 2 of the arithmetic circuit D via a data line. When the shift process signal is input from the control circuit 523, the storage circuit β stores the control command (P−N) that is stored two times before the control command (PN) stored in the previous command transmission process. N-2) is shifted and output to the input 2 of the subsequent arithmetic circuit D. At the same time, the memory circuit β captures and stores the control command (PN-1) output from the memory circuit α.

演算回路Aの入力側は、格納回路522の最終段の格納回路(P−N)とデータ線で接続され、演算回路Aの出力側は、入力選択回路524とデータ線で接続されている。演算回路Aは、制御回路523の格納回路522へのシフト処理信号に伴って出力された制御コマンド(P−N)を入力する。そして、演算回路Aは、入力した制御コマンド(P−N)に対し、予め組み込まれた演算方式によって演算処理を施し、単独検査値(P−N)を生成する。そして、演算回路Aは、生成した単独検査値(P−N)を、後続する入力選択回路524へ出力する。   The input side of the arithmetic circuit A is connected to the final stage storage circuit (PN) of the storage circuit 522 by a data line, and the output side of the arithmetic circuit A is connected to the input selection circuit 524 by a data line. The arithmetic circuit A inputs the control command (PN) output in accordance with the shift processing signal to the storage circuit 522 of the control circuit 523. Then, the arithmetic circuit A performs arithmetic processing on the input control command (PN) by a pre-installed arithmetic method, and generates a single inspection value (PN). Then, the arithmetic circuit A outputs the generated single inspection value (PN) to the subsequent input selection circuit 524.

演算回路Bは、入力1と入力2を有する2値入力演算回路であって、入力1は、格納回路522の最終段の格納回路(P−N)とデータ線で接続され、入力2は、記憶回路αとデータ線で接続されている。また、演算回路Bの出力側は、入力選択回路524とデータ線で接続されている。演算回路Bは、制御回路523の格納回路522へのシフト処理信号に伴って出力された制御コマンド(P−N)を入力1に入力する。また、演算回路Bは、制御回路523の記憶回路αへのシフト処理信号に伴って出力された制御コマンド(P−N−1)を入力2に入力する。そして、演算回路Bは、入力した制御コマンド(P−N)および制御コマンド(P−N−1)に対し、予め組み込まれた演算方式によって演算処理を施し、累積数がQ=1である累積検査値(P−N)を生成する。そして、演算回路Bは、生成した累積検査値(P−N)を、後続する入力選択回路524へ出力する。   The arithmetic circuit B is a binary input arithmetic circuit having an input 1 and an input 2. The input 1 is connected to the final stage storage circuit (PN) of the storage circuit 522 by a data line, and the input 2 is It is connected to the memory circuit α by a data line. The output side of the arithmetic circuit B is connected to the input selection circuit 524 through a data line. The arithmetic circuit B inputs to the input 1 a control command (PN) output in accordance with the shift processing signal to the storage circuit 522 of the control circuit 523. Further, the arithmetic circuit B inputs the control command (PN-1) output along with the shift processing signal to the storage circuit α of the control circuit 523 to the input 2. Then, the arithmetic circuit B performs arithmetic processing on the input control command (PN) and control command (PN-1) by an arithmetic method incorporated in advance, and the cumulative number is Q = 1. A test value (PN) is generated. Then, the arithmetic circuit B outputs the generated cumulative inspection value (PN) to the subsequent input selection circuit 524.

演算回路Dも同様に、入力1は、記憶回路αとデータ線で接続され、入力2は、記憶回路βとデータ線で接続されている。また、演算回路Dの出力側は、演算回路Cの入力2とデータ線で接続されている。演算回路Dは、制御回路523の記憶回路αへのシフト処理信号に伴って出力された制御コマンド(P−N−1)を入力1に入力する。また、演算回路Dは、制御回路523の記憶回路βへのシフト処理信号に伴って出力された制御コマンド(P−N−2)を入力2に入力する。そして、演算回路Dは、入力した制御コマンド(P−N−1)および制御コマンド(P−N−2)に対し、予め組み込まれた演算方式によって演算処理を施し、演算結果を、後続する演算回路Cの入力2へ出力する。   Similarly, in the arithmetic circuit D, the input 1 is connected to the storage circuit α via a data line, and the input 2 is connected to the storage circuit β via a data line. The output side of the arithmetic circuit D is connected to the input 2 of the arithmetic circuit C by a data line. The arithmetic circuit D inputs to the input 1 a control command (PN-1) output in accordance with the shift processing signal to the storage circuit α of the control circuit 523. Further, the arithmetic circuit D inputs the control command (PN-2) output in accordance with the shift processing signal to the storage circuit β of the control circuit 523 to the input 2. Then, the arithmetic circuit D performs arithmetic processing on the input control command (PN-1) and control command (PN-2) by a pre-installed arithmetic method, and the arithmetic result is converted into a subsequent arithmetic operation. Output to input 2 of circuit C.

演算回路Cも同様に、入力1は、格納回路522の最終段の格納回路(P−N)とデータ線で接続され、入力2は、演算回路Dとデータ線で接続されている。また、演算回路Cの出力側は、入力選択回路524とデータ線で接続されている。演算回路Cは、制御回路523の格納回路522へのシフト処理信号に伴って出力された制御コマンド(P−N)を入力1に入力する。また、演算回路Cは、制御回路523の記憶回路α、βへのシフト処理信号に伴って出力された演算回路Dの演算結果を入力2に入力する。そして、演算回路Cは、入力した制御コマンド(P−N−1)および演算回路Dの演算結果に対し、予め組み込まれた演算方式によって演算処理を施し、累積数がQ=2である累積検査値(P−N)を生成する。そして、演算回路Cは、生成した累積検査値(P−N)を、後続する入力選択回路524へ出力する。   Similarly, in the arithmetic circuit C, the input 1 is connected to the final stage storage circuit (PN) of the storage circuit 522 by a data line, and the input 2 is connected to the arithmetic circuit D by a data line. The output side of the arithmetic circuit C is connected to the input selection circuit 524 through a data line. The arithmetic circuit C inputs to the input 1 the control command (PN) output in accordance with the shift processing signal to the storage circuit 522 of the control circuit 523. Further, the arithmetic circuit C inputs to the input 2 the arithmetic result of the arithmetic circuit D output in accordance with the shift processing signal to the storage circuits α and β of the control circuit 523. Then, the arithmetic circuit C performs arithmetic processing on the input control command (PN-1) and the arithmetic result of the arithmetic circuit D by a pre-installed arithmetic method, and the cumulative number is Q = 2. A value (PN) is generated. Then, the arithmetic circuit C outputs the generated cumulative inspection value (PN) to the subsequent input selection circuit 524.

演算回路A〜Dに組み込まれた演算方式は、予め中間制御部180との間で取り決めてあれば、特に限定されず、各種の四則演算や論理演算を組み合わせた公知の方式を用いることができる。なお、生成回路521は、バッファ手段510が出力した制御コマンドをそのまま入力し、演算するように構成することもできるし、バッファ手段510が出力した制御コマンドの一部だけを入力し、演算するように構成することもできる。例えば、制御コマンドは後述するように1バイトの「MODE」の情報と1バイトの「DATA」の情報とから構成されているが、出力された制御コマンドの「MODE」の情報のみを入力し、演算するように構成することができる。   Arithmetic methods incorporated in the arithmetic circuits A to D are not particularly limited as long as they are determined in advance with the intermediate control unit 180, and known methods combining various four arithmetic operations and logical operations can be used. . The generation circuit 521 can be configured to input and calculate the control command output from the buffer unit 510 as it is, or to input and calculate only a part of the control command output from the buffer unit 510. It can also be configured. For example, the control command is composed of 1-byte “MODE” information and 1-byte “DATA” information as will be described later, but only the “MODE” information of the output control command is input. It can be configured to operate.

また、演算回路A〜Dに組み込まれた演算方式は、それぞれの演算回路において、互いに異なる演算方式を採用することが可能である。この場合、例えば遊技機メーカーごとに所望する演算方式が異なれば、生成回路521の回路形成過程にて所望の演算方式に対応する演算回路をそれぞれ形成しておくこともできる。   The calculation methods incorporated in the calculation circuits A to D can employ different calculation methods in each calculation circuit. In this case, for example, if a desired arithmetic method is different for each gaming machine manufacturer, arithmetic circuits corresponding to the desired arithmetic method can be formed in the circuit formation process of the generation circuit 521, respectively.

一方、演算回路A〜Dに組み込まれた演算方式を、それぞれの演算回路において、互いに同じ演算方式とすることも可能である。この場合、特に、2値入力の演算回路である演算回路B〜Dでは、一つの演算回路を設計した後は、その回路データを他の演算回路に流用することが可能であり、回路設計やその検証作業に係る開発工数や開発難易度を抑制することができる。また、この場合、演算回路Aと演算回路B〜Dのいずれかの演算回路との2つの比較的簡易な演算回路を設計するだけで、生成回路521では、演算回路B〜Dを多段に組み合わせて2つ以上の生成方式(本実施形態では、単独成方式および2種類の累積生成方式の3つの生成方式)を容易に実現可能である。すなわち、複数の生成方式が設けられたことで制御コマンドと誤り検査値との対応関係が解析困難となりセキュリティ強度が向上するという効果を、設けられた生成方式の数よりも少数の演算回路を設計するだけで得ることができる。このため、本実施形態では、少ない開発コストで大きな不正防止効果を得ることができる。   On the other hand, the calculation methods incorporated in the calculation circuits A to D can be the same calculation method in each calculation circuit. In this case, in particular, in the arithmetic circuits B to D, which are binary input arithmetic circuits, after designing one arithmetic circuit, the circuit data can be diverted to other arithmetic circuits. Development man-hours and development difficulty levels related to the verification work can be suppressed. In this case, the generation circuit 521 combines the arithmetic circuits B to D in multiple stages only by designing two relatively simple arithmetic circuits, that is, the arithmetic circuit A and any one of the arithmetic circuits B to D. Thus, it is possible to easily realize two or more generation methods (in this embodiment, three generation methods, that is, a single generation method and two types of cumulative generation methods). In other words, designing multiple arithmetic circuits with fewer generation methods than the number of provided generation methods has the effect that it is difficult to analyze the correspondence between control commands and error check values due to the provision of multiple generation methods. Just do it. For this reason, in this embodiment, the big fraud prevention effect can be acquired with little development cost.

入力選択回路524は、マルチプレクサ等で構成されており、生成回路521と付加手段530との間の接続を選択的に切り替える機能を有する回路である。具体的には、入力選択回路524の入力側は、生成回路521を担う複数の演算回路(図5では、演算回路A〜C)とデータ線でそれぞれ接続され、制御回路523と制御線で接続されている。また、入力選択回路524の出力側は、付加手段530の入力選択回路531とデータ線で接続されている。入力選択回路524は、デフォルトは単独生成方式で生成された単独検査値を出力する演算回路Aとの接続が有効となるように予め設定されており、演算回路Aから出力された単独検査値(P−N)を取り込み、付加手段530の入力選択回路531へ出力する。   The input selection circuit 524 is configured by a multiplexer or the like, and is a circuit having a function of selectively switching the connection between the generation circuit 521 and the adding unit 530. Specifically, the input side of the input selection circuit 524 is connected to a plurality of arithmetic circuits (the arithmetic circuits A to C in FIG. 5) that bear the generation circuit 521 through data lines, and is connected to the control circuit 523 through control lines. Has been. The output side of the input selection circuit 524 is connected to the input selection circuit 531 of the adding means 530 through a data line. The input selection circuit 524 is preset so that the connection with the arithmetic circuit A that outputs the single test value generated by the single generation method is valid by default, and the single test value ( P−N) is captured and output to the input selection circuit 531 of the adding means 530.

制御回路523は、生成方式設定処理にて決定手段540の決定回路542から出力された生成方式制御信号の入力に基づき、入力選択回路524の演算回路A〜Cのいずれかの演算回路との接続を有効とするための制御信号(以下、「入力選択信号」という)を入力選択回路524へ出力する。この入力選択信号は、生成方式制御信号が示す特定の生成方式で生成された誤り検査値のみが入力されるように、当該生成方式に対応する演算回路との接続のみを有効とするための信号である。入力選択回路524は、例えば、制御回路523から、演算回路Bとの接続を有効とする入力選択信号が入力されると、演算回路Bとの接続のみを有効とするように切り替える。そして、入力選択回路524は、演算回路Bから出力された累積数がQ=1の累積検査値(P−N)を取り込み、付加手段530の入力選択回路531へ出力する。   The control circuit 523 is connected to one of the arithmetic circuits A to C of the input selection circuit 524 based on the input of the generation method control signal output from the determination circuit 542 of the determination unit 540 in the generation method setting process. A control signal (hereinafter referred to as an “input selection signal”) for enabling the signal is output to the input selection circuit 524. This input selection signal is a signal for validating only the connection with the arithmetic circuit corresponding to the generation method so that only the error check value generated by the specific generation method indicated by the generation method control signal is input. It is. For example, when an input selection signal for enabling connection with the arithmetic circuit B is input from the control circuit 523, the input selection circuit 524 switches so that only the connection with the arithmetic circuit B is enabled. Then, the input selection circuit 524 takes in the cumulative inspection value (PN) with the cumulative number Q = 1 output from the arithmetic circuit B, and outputs it to the input selection circuit 531 of the adding means 530.

このようにして、生成回路521は、バッファ手段510から出力された制御コマンド(P)に対して付加する誤り検査値(P−N)を、複数の生成方式で生成可能である。そして、生成回路521は、生成方式制御信号に応じた入力選択信号が入力選択回路524へ入力されることで、決定手段540にて決定された生成方式を用いて生成された誤り検査値(P−N)のみを、付加手段530へ出力することができる。よって、生成手段520から付加手段530へ出力される誤り検査値(P−N)は、バッファ手段510から出力された制御コマンド(P)よりN個前の制御コマンド(P−N)を用いて生成される誤り検査値(P−N)であって、HWパラメータや変更プロトコルに従って決定された生成方式にて生成される誤り検査値(P−N)となる。   In this way, the generation circuit 521 can generate the error check value (PN) to be added to the control command (P) output from the buffer unit 510 by a plurality of generation methods. The generation circuit 521 receives an error check value (P) generated by using the generation method determined by the determination unit 540 when an input selection signal corresponding to the generation method control signal is input to the input selection circuit 524. -N) can be output to the adding means 530. Therefore, the error check value (PN) output from the generating unit 520 to the adding unit 530 is obtained by using the control command (PN) N times before the control command (P) output from the buffer unit 510. This is an error check value (PN) that is generated, and is an error check value (PN) that is generated by a generation method determined according to the HW parameter or the change protocol.

付加手段530は、バッファ手段510から出力された制御コマンドに対し、生成手段520から出力された誤り検査値を付加して、送信部550へ出力する回路である。すなわち、付加手段530は、検査値付加処理を実行する役割を担っている。また、付加手段530の入力側は、バッファ手段510および生成手段520との間で、同期インターフェース方式でデータ送受が制御されている。一方、付加手段530の出力側は、後続する送信部550との間で、上記のようにCPUインターフェース方式に対応する入出力制御方式でデータ送受が制御されている。すなわち、付加手段530は、自身の入力側と出力側とで異なる入出力制御方式を有し、検査値生成部500内の同期インターフェース方式と送信部550のCPUインターフェース方式に対応する入出力制御方式とを整合する役割を担っている。   The adding unit 530 is a circuit that adds the error check value output from the generating unit 520 to the control command output from the buffer unit 510 and outputs the error check value to the transmitting unit 550. That is, the adding unit 530 plays a role of executing the inspection value adding process. On the input side of the adding means 530, data transmission / reception is controlled between the buffer means 510 and the generating means 520 by a synchronous interface method. On the other hand, data transmission / reception is controlled between the output side of the adding unit 530 and the subsequent transmission unit 550 by the input / output control method corresponding to the CPU interface method as described above. That is, the adding unit 530 has different input / output control methods on its input side and output side, and an input / output control method corresponding to the synchronous interface method in the test value generation unit 500 and the CPU interface method of the transmission unit 550. It plays a role to align.

そして、付加手段530は、マルチプレクサ等で構成された入力選択回路531と、制御回路532とを少なくとも備えている。入力選択回路531は、予め定められた遡及数と整合するように、バッファ手段510から出力された制御コマンドと、生成手段520から出力された誤り検査値とを選択的に取り込むような接続切替機能を有する回路である。制御回路532は、バッファ手段510から出力された作動許可信号の入力に基づいて、入力選択回路531の動作を制御する回路である。   The adding unit 530 includes at least an input selection circuit 531 constituted by a multiplexer or the like, and a control circuit 532. The input selection circuit 531 is a connection switching function that selectively takes in the control command output from the buffer unit 510 and the error check value output from the generation unit 520 so as to match a predetermined retroactive number. It is a circuit which has. The control circuit 532 is a circuit that controls the operation of the input selection circuit 531 based on the input of the operation permission signal output from the buffer means 510.

具体的には、入力選択回路531の入力側は、バッファ手段510のデータバッファ511とデータ線で接続され、生成手段520の入力選択回路524とデータ線で接続されている。また、入力選択回路531の入力側は、制御回路532と制御線で接続されている。入力選択回路531は、デフォルトは、データバッファ511との接続を有効となるように予め設定されており、データバッファ511から出力された制御コマンドを取り込む。そして、制御回路532は、バッファ手段510の制御回路512から出力された作動許可信号に基づき、所定時間遅延して、入力選択回路531の生成手段520との接続を有効とするための制御信号(以下、「入力選択信号」という)を入力選択回路531へ出力する。入力選択回路531は、制御回路532から当該入力選択信号が入力されると、生成手段520の入力選択回路524から出力された誤り検査値を取り込む。   Specifically, the input side of the input selection circuit 531 is connected to the data buffer 511 of the buffer means 510 by a data line, and is connected to the input selection circuit 524 of the generation means 520 by a data line. The input side of the input selection circuit 531 is connected to the control circuit 532 through a control line. The input selection circuit 531 is set in advance so that the connection with the data buffer 511 is valid, and takes in the control command output from the data buffer 511. Then, the control circuit 532 delays a predetermined time based on the operation permission signal output from the control circuit 512 of the buffer means 510, and makes a control signal (valid for connection with the generation means 520 of the input selection circuit 531). (Hereinafter referred to as “input selection signal”) is output to the input selection circuit 531. When the input selection signal is input from the control circuit 532, the input selection circuit 531 takes in the error check value output from the input selection circuit 524 of the generation unit 520.

そして、入力選択回路531は、送信部550と接続されたデータバスへ取り込んだ制御コマンドおよび誤り検査値を出力する。また、制御回路532は、送信部550と接続されたアドレスバスに送信部550の所定の記憶領域を指定するアドレスデータ、制御バスに書き込み信号を出力する。このとき、制御回路532が、上記書き込み信号を出力するタイミングは、バッファ手段510の制御回路512から出力された作動許可信号の入力に基づいて、生成手段520および送信部550の動作時間等を考慮しながら、予め定められた遡及数に応じた誤り検査値が付加されるようなタイミングとなるように予め設定されている。   Then, the input selection circuit 531 outputs the control command and the error check value taken into the data bus connected to the transmission unit 550. In addition, the control circuit 532 outputs address data for designating a predetermined storage area of the transmission unit 550 to an address bus connected to the transmission unit 550 and a write signal to the control bus. At this time, the timing at which the control circuit 532 outputs the write signal is based on the operation time of the generation unit 520 and the transmission unit 550 based on the input of the operation permission signal output from the control circuit 512 of the buffer unit 510. However, the timing is set in advance so that an error check value corresponding to a predetermined retroactive number is added.

送信部550は、検査値生成部500から出力された制御コマンドと誤り検査値を中間制御部180へ送信する機能を果たし、送信バッファ551と、送信回路552とを少なくとも備えている。   The transmission unit 550 functions to transmit the control command and error check value output from the check value generation unit 500 to the intermediate control unit 180, and includes at least a transmission buffer 551 and a transmission circuit 552.

送信バッファ551は、中間制御部180へ送信するデータを一時的に保持するためのバッファ回路である。具体的には、送信バッファ551は、検査値生成部500から出力された制御コマンドを送信バッファ551へ書き込むための書き込み信号と、送信バッファ551を指定するアドレスデータとが入力されると、当該制御コマンドをバスを介して取り込む。また、送信バッファ551は、検査値生成部500から出力された上記制御コマンドに付加するべき誤り検査値を送信バッファ551へ書き込むための書き込み信号と、送信バッファ551を指定するアドレスデータとが入力されると、当該誤り検査値をバスを介して取り込む。そして、送信バッファ551は、取り込んだ制御コマンドおよび誤り検査値を送信回路552へ直ちに受け渡す。   The transmission buffer 551 is a buffer circuit for temporarily holding data to be transmitted to the intermediate control unit 180. Specifically, when a write signal for writing the control command output from the test value generation unit 500 to the transmission buffer 551 and address data specifying the transmission buffer 551 are input to the transmission buffer 551, the control is performed. Capture commands via the bus. The transmission buffer 551 receives a write signal for writing the error check value to be added to the control command output from the check value generation unit 500 to the transmission buffer 551 and address data designating the transmission buffer 551. Then, the error check value is taken in via the bus. Then, the transmission buffer 551 immediately transfers the fetched control command and error check value to the transmission circuit 552.

送信回路552は、中間制御部180へ送信するデータを、主制御部110と中間制御部180との間のデータ伝送形式(シリアル伝送形式やパラレル伝送形式)に対応したデータ形式へ変換する機能などを備えている。そして、送信回路552は、送信バッファ551から受け渡されたデータに上記変換処理等を施して送信データとし、中間制御部180へ直ちに送信する。   The transmission circuit 552 has a function of converting data to be transmitted to the intermediate control unit 180 into a data format corresponding to a data transmission format (serial transmission format or parallel transmission format) between the main control unit 110 and the intermediate control unit 180. It has. Then, the transmission circuit 552 performs the above-described conversion processing on the data transferred from the transmission buffer 551 to obtain transmission data, and immediately transmits it to the intermediate control unit 180.

上述のような主制御部110の認証処理に関する構成によって、主制御部110から中間制御部180へ送信される制御コマンドには、以下に例示するような手順で誤り検査値が付加されていく。以下、誤り検査値の付加手順について、図7を用いて説明する。図7では、格納しておいた制御コマンドがクリアされてから11番目に出力された制御コマンド(制御コマンド(1)〜制御コマンド(11))までの例を示す。   With the configuration related to the authentication process of the main control unit 110 as described above, an error check value is added to the control command transmitted from the main control unit 110 to the intermediate control unit 180 in the procedure illustrated below. Hereinafter, the procedure for adding the error check value will be described with reference to FIG. FIG. 7 shows an example of control commands (control command (1) to control command (11)) output eleventh after the stored control command is cleared.

なお、図7では、単独生成方式を「方式a」、累積数がQ=1である累積生成方式を「方式b」、累積数がQ=2である累積生成方式を「方式c」と表記する。また、図7では、制御コマンド(P)を用いて方式a(単独生成方式)で生成された誤り検査値を「単独検査値(Pa)」、制御コマンド(P)を用いて方式b(累積数がQ=1である累積生成方式)で生成された誤り検査値を「累積検査値(Pb)」、制御コマンド(P)を用いて方式c(累積数がQ=2である累積生成方式)で生成された誤り検査値を「累積検査値(Pc)」と表記する。   In FIG. 7, the single generation method is expressed as “method a”, the cumulative generation method with the cumulative number Q = 1 as “method b”, and the cumulative generation method with the cumulative number Q = 2 as “method c”. To do. In FIG. 7, the error check value generated by the method a (single generation method) using the control command (P) is “single check value (Pa)”, and the method b (cumulative) is used by using the control command (P). The error check value generated with the number Q = 1 is “accumulated check value (Pb)” and the control command (P) is used for the method c (cumulative number Q = 2). The error check value generated in (1) is expressed as “cumulative check value (Pc)”.

また、図7では、デフォルトの生成方式を方式a(単独生成方式)とする。すなわち、生成方式情報記憶領域(S)には方式a(単独生成方式)に相当する生成方式情報の値が記憶されているが、図7では便宜上、S=aと表記している。そして、生成方式の変更方式は、方式a(単独生成方式)→方式b(累積数がQ=1である累積生成方式)→方式c(累積数がQ=2である累積生成方式)とする。そして、遡及数をN=2、変更タイミングの指標となるMoの値をMo=4とする。   In FIG. 7, the default generation method is assumed to be method a (single generation method). That is, although the value of the generation method information corresponding to the method a (single generation method) is stored in the generation method information storage area (S), it is expressed as S = a for convenience in FIG. Then, the method of changing the generation method is as follows: method a (single generation method) → method b (cumulative generation method with cumulative number Q = 1) → method c (cumulative generation method with cumulative number Q = 2). . Then, the retroactive number is N = 2, and the value of Mo that is an index of change timing is Mo = 4.

まず、メインCPU110aは、コマンド送信処理を実行するタイミングとなると、メインRAM110cの生成個数記憶領域(P)の値を「P=1」に更新して、メインROM110bに格納された固有情報を読み出す。そして、メインCPU110aは、読み出した固有情報を、格納回路522の格納回路(P−1)〜(P−N)および生成回路521の記憶回路α、βに対し、初期設定値として設定する。   First, when it is time to execute the command transmission process, the main CPU 110a updates the value of the generated number storage area (P) of the main RAM 110c to “P = 1” and reads the unique information stored in the main ROM 110b. Then, the main CPU 110a sets the read unique information as initial setting values for the storage circuits (P-1) to (PN) of the storage circuit 522 and the storage circuits α and β of the generation circuit 521.

図7では、N=2であり、格納回路522は、2つの格納回路(P−1)および格納回路(P−2)を有し、また、Qmax=2であり、生成回路521は、2つの記憶回路α、βを有している。メインCPU110aは、合計4つの固有情報を読み出し、初期設定値として、これらに設定する。そして、P≦Nの場合、すなわち、格納回路522に格納されていた制御コマンドがクリアされてからN番目以前に生成された制御コマンドを送信する場合、当該制御コマンド(P)に対して付加される誤り検査値(P−N)は、単独生成方式であれば、制御コマンド(P−N)を用いて生成される単独検査値(P−N)の代りに、固有情報を用いて生成される初期検査値となる。図7では、P≦2の場合、単独生成方式であれば、制御コマンド(1)および制御コマンド(2)に対して、初期検査値がそれぞれ付加される。なお、初期検査値は、制御コマンドに付加される順番に、それぞれ初期検査値(1)〜初期検査値(N)と表記する。   In FIG. 7, N = 2, the storage circuit 522 has two storage circuits (P-1) and (P-2), and Qmax = 2, and the generation circuit 521 has 2 It has two memory circuits α and β. The main CPU 110a reads a total of four pieces of unique information and sets them as initial setting values. When P ≦ N, that is, when a control command generated before the Nth time is cleared after the control command stored in the storage circuit 522 is cleared, it is added to the control command (P). If the error check value (PN) is a single generation method, the error check value (PN) is generated using unique information instead of the single check value (PN) generated using the control command (PN). This is the initial inspection value. In FIG. 7, in the case of P ≦ 2, the initial inspection value is added to the control command (1) and the control command (2), respectively, in the case of the single generation method. The initial inspection values are expressed as initial inspection value (1) to initial inspection value (N) in the order of addition to the control command.

続いて、メインCPU110aは、制御コマンド(1)をバッファ手段510へ出力する。バッファ手段510は、メインCPU110aから出力された制御コマンド(1)を決定手段540、生成手段520、および付加手段530へ出力する。決定手段540は、生成方式設定処理を行う。具体的には、判定回路541は、バッファ手段510から出力された制御コマンド(1)、すなわち、メインCPU110aが出力した制御コマンド(1)を入力して、制御コマンド(1)が所定の制御コマンドか否かを判定し、判定結果信号を決定回路542へ出力する。以下、図7の説明において同様とする。   Subsequently, the main CPU 110 a outputs the control command (1) to the buffer means 510. The buffer unit 510 outputs the control command (1) output from the main CPU 110a to the determination unit 540, the generation unit 520, and the addition unit 530. The determination unit 540 performs a generation method setting process. Specifically, the determination circuit 541 inputs the control command (1) output from the buffer unit 510, that is, the control command (1) output from the main CPU 110a, and the control command (1) is a predetermined control command. And a determination result signal is output to the determination circuit 542. The same applies to the description of FIG.

決定回路542は、判定結果信号を入力すると、生成個数記憶領域(P)の値を「P=1」に更新して、当該制御コマンド(1)が生成個数の値がいくつの制御コマンドであるかを把握する(以下、図7の説明において同様とする)。そして、決定回路542は、判定結果信号を確認し、当該制御コマンド(1)が変更条件を満たす制御コマンドであるかを確認する(以下、図7の説明において同様とする)。図7では、制御コマンド(1)は、変更条件を満たす制御コマンドではないとする。このとき、変更タイミング情報記憶領域(Mi)はクリアされたままであり、変更タイミング情報Miを設定する必要はない。また、生成方式情報記憶領域(S)の値も、デフォルトの「a」のままであり、方式a(単独生成方式)で生成された誤り検査値を付加する。また、P≦2であり、制御コマンド(1)に付加する誤り検査値は、初期検査値(1)となる。制御コマンド(2)が出力されたときも同様であり、制御コマンド(2)に付加する誤り検査値は、初期検査値(2)となる。   When the determination circuit 542 receives the determination result signal, the determination circuit 542 updates the value of the generated number storage area (P) to “P = 1”, and the control command (1) is a control command having a value of the generated number. (Hereinafter the same in the description of FIG. 7). Then, the determination circuit 542 confirms the determination result signal, and confirms whether the control command (1) is a control command that satisfies the change condition (hereinafter, the same applies in the description of FIG. 7). In FIG. 7, it is assumed that the control command (1) is not a control command that satisfies the change condition. At this time, the change timing information storage area (Mi) remains cleared, and there is no need to set the change timing information Mi. Also, the value of the generation method information storage area (S) remains the default “a”, and an error check value generated by the method a (single generation method) is added. Further, P ≦ 2, and the error check value added to the control command (1) is the initial check value (1). The same applies when the control command (2) is output, and the error check value added to the control command (2) is the initial check value (2).

続いて、メインCPU110aから制御コマンド(3)が出力されたときを説明する。図7では、制御コマンド(3)は変更条件を満たす制御コマンドではないので決定手段540は、変更タイミング情報Miを設定しない。また、生成方式情報記憶領域(S)の値も、デフォルトの「a」のままであり、方式a(単独生成方式)で生成された誤り検査値を付加する。更に、生成個数記憶領域(P)の値(P=3)が遡及数記憶領域(N)の値(N=2)より大きい(P>N)。よって、制御コマンド(3)に付加する誤り検査値は、方式a(単独生成方式)で生成された誤り検査値(P−N)、すなわち、単独検査値(1a)となる(以下、図7の説明において同様とする)。   Next, a case where the control command (3) is output from the main CPU 110a will be described. In FIG. 7, since the control command (3) is not a control command that satisfies the change condition, the determination unit 540 does not set the change timing information Mi. Also, the value of the generation method information storage area (S) remains the default “a”, and an error check value generated by the method a (single generation method) is added. Further, the value (P = 3) of the generated number storage area (P) is larger than the value (N = 2) of the retrospective number storage area (N) (P> N). Therefore, the error check value added to the control command (3) is the error check value (PN) generated by the method a (single generation method), that is, the single check value (1a) (hereinafter, FIG. 7). The same shall apply in the explanation of

続いて、メインCPU110aから制御コマンド(4)が出力されたときを説明する。図7では、制御コマンド(4)は変更条件を満たす制御コマンドであるので、決定手段540は、変更タイミング情報MiをM1として設定する。変更タイミング情報M1は、上述のように、M1=P+Mo=4+4=8であり、決定手段540は、変更タイミング情報記憶領域(M1)にM1=8の値を記憶する。これをもって、決定手段540は、生成個数記憶領域(P)の値がP=8になったタイミングで、生成方式情報記憶領域(S)の値を変更しなければならないことが分かる。また、決定手段540は、変更タイミング情報記憶領域(Mi)の値(M1=8)と生成個数記憶領域(P)の値(P=4)とを比較する(以下、図7の説明において同様とする)。図7では、変更タイミング情報記憶領域(M1)の値と生成個数記憶領域(P)の値が一致しないため、現在は変更タイミングではなく、生成方式情報記憶領域(S)の値(S=a)は維持され、方式a(単独生成方式)で生成された誤り検査値を付加する。よって、制御コマンド(4)に付加する誤り検査値は、方式a(単独生成方式)で生成された誤り検査値(P−N)、すなわち、単独検査値(2a)となる。制御コマンド(5)が出力されたときも同様であり、制御コマンド(5)に付加する誤り検査値は、単独検査値(3a)となる。   Next, a case where the control command (4) is output from the main CPU 110a will be described. In FIG. 7, since the control command (4) is a control command that satisfies the change condition, the determination unit 540 sets the change timing information Mi as M1. As described above, the change timing information M1 is M1 = P + Mo = 4 + 4 = 8, and the determination unit 540 stores the value of M1 = 8 in the change timing information storage area (M1). Accordingly, it is understood that the determination unit 540 has to change the value of the generation method information storage area (S) at the timing when the value of the generation number storage area (P) becomes P = 8. Further, the determination means 540 compares the value (M1 = 8) of the change timing information storage area (Mi) with the value (P = 4) of the generated number storage area (P) (hereinafter the same in the description of FIG. 7). And). In FIG. 7, since the value of the change timing information storage area (M1) does not match the value of the generation number storage area (P), the value of the generation method information storage area (S) is not the current change timing (S = a ) Is maintained, and the error check value generated by the method a (single generation method) is added. Therefore, the error check value added to the control command (4) is the error check value (PN) generated by the method a (single generation method), that is, the single check value (2a). The same applies when the control command (5) is output, and the error check value added to the control command (5) is the single check value (3a).

続いて、メインCPU110aから制御コマンド(6)が出力されたときを説明する。図7では、制御コマンド(6)は変更条件を満たす制御コマンドであるので、決定手段540は、変更タイミング情報MiをM2として設定する。変更タイミング情報M2は、上述のように、M2=P+Mo=6+4=10であり、決定手段540は、変更タイミング情報記憶領域(M2)にM2=10の値を記憶する。これをもって、変更タイミング情報記憶領域(Mi)には、M1=8とM2=10の2つの変更タイミング情報が設定されることになる。そして、決定手段540は、変更タイミング情報記憶領域(Mi)の中で最小値Mminをもった変更タイミング情報記憶領域(M1)の値(M1=8)と、生成個数記憶領域(P)の値(P=6)とを比較する。変更タイミング情報記憶領域(M1)の値と生成個数記憶領域(P)の値が一致しないため、現在は変更タイミングではなく、生成方式情報記憶領域(S)の値(S=a)は維持され、方式a(単独生成方式)で生成された誤り検査値を付加する。よって、制御コマンド(6)に付加する誤り検査値は、方式a(単独生成方式)で生成された誤り検査値(P−N)、すなわち、単独検査値(4a)となる。制御コマンド(7)が出力されたときも同様であり、制御コマンド(7)に付加する誤り検査値は、単独検査値(5a)となる。   Next, the case where the control command (6) is output from the main CPU 110a will be described. In FIG. 7, since the control command (6) is a control command that satisfies the change condition, the determination unit 540 sets the change timing information Mi as M2. As described above, the change timing information M2 is M2 = P + Mo = 6 + 4 = 10, and the determination unit 540 stores the value of M2 = 10 in the change timing information storage area (M2). With this, two change timing information of M1 = 8 and M2 = 10 are set in the change timing information storage area (Mi). Then, the determination unit 540 determines the value (M1 = 8) of the change timing information storage area (M1) having the minimum value Mmin in the change timing information storage area (Mi) and the value of the generated number storage area (P). Compare (P = 6). Since the value of the change timing information storage area (M1) does not match the value of the generated number storage area (P), the value (S = a) of the generation method information storage area (S) is maintained at the present time, not the change timing. The error check value generated by the method a (single generation method) is added. Therefore, the error check value added to the control command (6) is the error check value (PN) generated by the method a (single generation method), that is, the single check value (4a). The same applies when the control command (7) is output, and the error check value added to the control command (7) is the single check value (5a).

続いて、メインCPU110aから制御コマンド(8)が出力されたときを説明する。図7では、制御コマンド(8)は変更条件を満たす制御コマンドではないので、決定手段540は、変更タイミング情報Miを新たに設定しない。また、変更タイミング情報記憶領域(Mi)の中で最小値Mminをもった変更タイミング情報記憶領域(M1)の値(M1=8)が生成個数記憶領域(P)の値(P=8)と一致するため、現在は変更タイミングである。決定手段540は、生成方式情報記憶領域(S)の値(S=a)を予め取り決められた変更方式に従って変更する。図7では、方式a(単独生成方式)→方式b(累積数がQ=1である累積生成方式)に変更されたとし、決定手段540は、方式b(累積数がQ=1である累積生成方式)に対応する生成方式情報を生成する。そして、決定手段540は、変更後の生成方式情報の値のS’=bを、生成方式情報記憶領域(S)へ記憶する。   Next, the case where the control command (8) is output from the main CPU 110a will be described. In FIG. 7, since the control command (8) is not a control command that satisfies the change condition, the determination unit 540 does not newly set the change timing information Mi. Also, the value (M1 = 8) of the change timing information storage area (M1) having the minimum value Mmin in the change timing information storage area (Mi) is the value (P = 8) of the generated number storage area (P). Since it matches, the current timing is the change timing. The determination unit 540 changes the value (S = a) of the generation method information storage area (S) according to a predetermined change method. In FIG. 7, it is assumed that the mode is changed from method a (single generation method) to method b (accumulation generation method where the cumulative number is Q = 1), and the determination unit 540 determines that the method b (accumulation number is Q = 1). Generation method information corresponding to (generation method) is generated. Then, the determining unit 540 stores S ′ = b, which is the value of the changed generation method information, in the generation method information storage area (S).

そして、決定手段540は、生成方式情報記憶領域(S)の値(変更後のS’=b)に基づいて、方式b(累積数がQ=1である累積生成方式)で生成された誤り検査値が付加されるように、生成手段520の制御回路523へ生成方式制御信号を出力する。生成手段520の制御回路523は、当該生成方式制御信号に基づき、入力選択回路524と生成回路521の演算回路Bとの接続を有効に作動させるための入力選択信号を出力して、方式b(累積数がQ=1である累積生成方式)で生成された誤り検査値が付加手段530へ出力されるように設定する(以下、図7の説明において同様とする)。これにより、制御コマンド(8)に付加する誤り検査値は、方式b(累積数がQ=1である累積生成方式)で生成された誤り検査値(P−N)、すなわち、累積検査値(6b)となる。また、決定手段540は、最小値Mminをもった変更タイミング情報記憶領域(M1)の値(M1=8)をクリアする。   Then, the determination unit 540 generates an error generated by the method b (accumulated generation method with the cumulative number Q = 1) based on the value (S ′ = b after the change) of the generation method information storage area (S). A generation method control signal is output to the control circuit 523 of the generation unit 520 so that the inspection value is added. Based on the generation method control signal, the control circuit 523 of the generation unit 520 outputs an input selection signal for effectively activating the connection between the input selection circuit 524 and the arithmetic circuit B of the generation circuit 521, and the method b ( It is set so that the error check value generated by the cumulative generation method in which the cumulative number is Q = 1 is output to the adding means 530 (hereinafter the same as in the description of FIG. 7). Thereby, the error check value added to the control command (8) is the error check value (PN) generated by the method b (accumulation generation method with the cumulative number Q = 1), that is, the cumulative check value ( 6b). Further, the determination unit 540 clears the value (M1 = 8) of the change timing information storage area (M1) having the minimum value Mmin.

以後、上記と同様な処理を行い、決定手段540にて生成方式情報記憶領域(S)の値を変更しながら、バッファ手段510から出力された制御コマンドへ付加するべき誤り検査値を生成する際の生成方式が決定され、決定された生成方式で生成された誤り検査値が付加手段530にて当該制御コマンドへ付加される。そして、誤り検査値付きの制御コマンドが送信部550にて中間制御部180へ送信されることとなる。   Thereafter, the same processing as described above is performed, and the error checking value to be added to the control command output from the buffer means 510 is generated while changing the value of the generation method information storage area (S) by the determining means 540. The generation method is determined, and the error check value generated by the determined generation method is added to the control command by the adding means 530. Then, a control command with an error check value is transmitted to the intermediate control unit 180 by the transmission unit 550.

その後、主制御部110を構成する送信部550から送信された制御コマンド(P)は、中間制御部180を構成する受信部600にて受信される。
図8に、本実施形態に係る中間制御部180の認証処理に関する機能ブロックを示す。
中間制御部180は、認証処理に関する機能として、受信部600と、検査部610と、検査値生成部620と、付加部630と、中継送信部640と、を少なくとも有している。更に、検査値生成部620は、誤り検査値を生成する生成部621と、受信した制御コマンドを格納する格納部622と、生成部621で用いる生成方式を決定する決定部623との機能を少なくとも有している。
Thereafter, the control command (P) transmitted from the transmission unit 550 constituting the main control unit 110 is received by the reception unit 600 constituting the intermediate control unit 180.
FIG. 8 shows functional blocks related to authentication processing of the intermediate control unit 180 according to the present embodiment.
The intermediate control unit 180 includes at least a reception unit 600, an inspection unit 610, an inspection value generation unit 620, an addition unit 630, and a relay transmission unit 640 as functions related to authentication processing. Further, the check value generation unit 620 includes at least functions of a generation unit 621 that generates an error check value, a storage unit 622 that stores the received control command, and a determination unit 623 that determines a generation method used by the generation unit 621. Have.

受信部600は、主制御部110からの送信データに上記変換処理に対応する処理等を施して制御コマンド(P)とし、自身の受信バッファに記憶する機能を有するものである。また、受信部600は、制御コマンド(P)の受信割込要求があった旨を示す信号を出力したり、制御コマンド(P)の受信が完了したことを示すフラグを立てたりして、CPU180aが、主制御部110から送信された制御コマンド(P)の受信が完了したことを検知できるようにする機能を有するものである。   The receiving unit 600 has a function of performing a process corresponding to the conversion process on the transmission data from the main control unit 110 to generate a control command (P) and storing it in its own reception buffer. In addition, the receiving unit 600 outputs a signal indicating that a control command (P) reception interrupt request has been made, or sets a flag indicating that the reception of the control command (P) is completed, so that the CPU 180a. However, it has a function that makes it possible to detect that the reception of the control command (P) transmitted from the main control unit 110 has been completed.

また、受信部600は、受信した誤り検査値付きの制御コマンド(P)から、付加された誤り検査値(P−N)を抽出して検査部610へ出力するとともに、誤り検査値(P−N)を抽出後の制御コマンド(P)を検査値生成部620へ出力する機能を有するものである。なお、受信部600の機能を実現する具体的な手段は、図4に示すCPU180aの一部、ROM180bの一部、RAM180cの一部、およびコマンド受信用入力ポート(図示せず)等から構成することができる。   The receiving unit 600 extracts the error check value (PN) added from the received control command (P) with the error check value and outputs the error check value (PN) to the check unit 610. N) has a function of outputting the control command (P) after extraction to the inspection value generation unit 620. Note that specific means for realizing the function of the receiving unit 600 includes a part of the CPU 180a, a part of the ROM 180b, a part of the RAM 180c, and a command receiving input port (not shown) shown in FIG. be able to.

検査値生成部620は、受信部600から出力された制御コマンド(P)を格納部622にて格納する機能を有するものである。また、検査値生成部620は、過去に格納部622にて格納しておいた制御コマンド(P−N)を用いて、決定部623にて決定した生成方式で、生成部621にて誤り検査値(P−N)を生成する機能を有するものである。この機能で生成された誤り検査値は、受信した制御コマンド(P)の正当性を検証するために用いられる。また、検査値生成部620は、生成部621で生成した誤り検査値(P−N)を、検査部610へ出力する機能を有するものである。また、検査値生成部620は、予め主制御部110との間で取り決められた複数の生成方式の中から生成部621へ設定するべき特定の生成方式を決定部623にて決定する機能を有するものである。   The inspection value generation unit 620 has a function of storing the control command (P) output from the reception unit 600 in the storage unit 622. In addition, the check value generation unit 620 uses the control command (PN) stored in the storage unit 622 in the past to generate an error check in the generation unit 621 using the generation method determined by the determination unit 623. It has a function of generating a value (PN). The error check value generated by this function is used to verify the validity of the received control command (P). The check value generation unit 620 has a function of outputting the error check value (PN) generated by the generation unit 621 to the check unit 610. In addition, the inspection value generation unit 620 has a function of determining a specific generation method to be set in the generation unit 621 from among a plurality of generation methods previously determined with the main control unit 110 by the determination unit 623. Is.

検査値生成部620が有する、過去に格納しておいた制御コマンドを用いて誤り検査値を生成し検査部610へ出力するとともに、今回受信した制御コマンドで生成方式を決定する機能(以下、「誤り検査値出力機能」という)は、主制御部110が有する誤り検査値付加機能と同様のものである。また、検査値生成部620は、主制御部110と同様に、誤り検査値出力機能を予め複数有しており、その具体的な実施態様として、主制御部110と同様の生成方式が予め複数用意されている。そして、誤り検査値出力機能に対する選択情報も、主制御部110のHWパラメータと同様のものである。そして、これら中間制御部180の誤り検査値出力機能およびその選択情報は、予め主制御部110と中間制御部180との間で取り決められている。   The check value generation unit 620 has a function of generating an error check value using a control command stored in the past and outputting the error check value to the check unit 610 and determining a generation method using the control command received this time (hereinafter, “ The error check value output function ”is the same as the error check value addition function of the main control unit 110. Further, like the main control unit 110, the check value generation unit 620 has a plurality of error check value output functions in advance. As a specific embodiment thereof, a plurality of generation methods similar to those of the main control unit 110 are provided in advance. It is prepared. The selection information for the error check value output function is also the same as the HW parameter of the main control unit 110. The error check value output function and the selection information thereof of the intermediate control unit 180 are determined in advance between the main control unit 110 and the intermediate control unit 180.

とりわけ、決定部623が、受信部600から出力された制御コマンド(P)に基づいて生成方式を変更する機能においても、主制御部110の決定手段540が有する生成方式を変更する機能と同様のものである。すなわち、決定部623は、制御コマンドが所定の制御コマンドであるか否かを判定する機能(主制御部110の判定回路541に相当)、判定結果に応じて生成方式を決定し、決定した生成方式を生成部621へ設定する機能(主制御部110の決定回路542に相当)を有している。そして、決定部623の機能を実現するために、RAM180cには、主制御部110の変更条件記憶器に相当する記憶領域や、主制御部110の生成個数記憶領域(P)に相当する受信個数記憶領域(P)が設けられている。生成方式情報記憶領域(S)、変更タイミング情報記憶領域(Mi)も同様である。   In particular, the function of the determination unit 623 changing the generation method based on the control command (P) output from the reception unit 600 is the same as the function of changing the generation method of the determination unit 540 of the main control unit 110. Is. That is, the determination unit 623 determines a function (determining whether or not the control command is a predetermined control command) (corresponding to the determination circuit 541 of the main control unit 110), and determines a generation method according to the determination result. It has a function (corresponding to the determination circuit 542 of the main control unit 110) for setting the method in the generation unit 621. In order to realize the function of the determination unit 623, the RAM 180c includes a storage area corresponding to the change condition storage unit of the main control unit 110 and a reception number corresponding to the generated number storage area (P) of the main control unit 110. A storage area (P) is provided. The same applies to the generation method information storage area (S) and the change timing information storage area (Mi).

また、格納部622が、受信部600から出力された制御コマンド(P)を格納するとともに、過去に格納しておいた制御コマンド(P−N)、制御コマンド(P−N−1)、および制御コマンド(P−N−2)を生成部621へ適宜出力する機能も、主制御部110の格納回路522および生成回路521が有する機能と同様のものである。また、主制御部110または中間制御部180が初期化され、格納部622に格納しておいた過去の制御コマンドがクリアされた場合には、CPU180aがROM180bから固有情報を読み出し、初期設定値として格納部622へ設定する格納する機能も、主制御部110と同様である。   In addition, the storage unit 622 stores the control command (P) output from the receiving unit 600, and the control command (PN), control command (PN-1), and The function of appropriately outputting the control command (PN-2) to the generation unit 621 is the same as the function of the storage circuit 522 and the generation circuit 521 of the main control unit 110. When the main control unit 110 or the intermediate control unit 180 is initialized and the past control command stored in the storage unit 622 is cleared, the CPU 180a reads out the unique information from the ROM 180b and sets it as an initial setting value. The function to be set in the storage unit 622 is the same as that of the main control unit 110.

また、生成部621が、複数の生成方式(単独生成方式、累積数がQ=1である累積生成方式、および累積数がQ=2である累積生成方式)を有するとともに、決定部623の生成方式制御によって特定の生成方式を設定し、格納部622から出力された制御コマンド(P−N)、制御コマンド(P−N−1)、および制御コマンド(P−N−2)を用いて、設定された生成方式で誤り検査値(P−N)(単独検査値(P−N)、累積数がQ=1である累積検査値(P−N)、または累積数がQ=2である累積検査値(P−N)のいずれか)を生成し、検査部610へ出力する機能も、主制御部110の生成手段520が有する機能と同様のものである。   In addition, the generation unit 621 has a plurality of generation methods (single generation method, cumulative generation method with a cumulative number of Q = 1, and cumulative generation method with a cumulative number of Q = 2), and generation of the determination unit 623. A specific generation method is set by the method control, and the control command (PN), control command (PN-1), and control command (PN-2) output from the storage unit 622 are used. Error check value (PN) (single check value (PN), cumulative check value (PN) with cumulative number Q = 1, or cumulative number Q = 2 with set generation method The function of generating a cumulative test value (any of PN) and outputting it to the test unit 610 is the same as the function of the generation unit 520 of the main control unit 110.

なお、決定部623、生成部621、および格納部622の機能を実現する具体的な手段は、図4に示すCPU180aの一部、ROM180bの一部、RAM180cの一部等から構成することができる。   Note that specific means for realizing the functions of the determination unit 623, the generation unit 621, and the storage unit 622 can be configured from a part of the CPU 180a, a part of the ROM 180b, a part of the RAM 180c, and the like shown in FIG. .

検査部610は、受信部600から出力された誤り検査値と、検査値生成部620の生成部621から出力された誤り検査値とを照合する誤り検査処理を行う機能を有するものである。誤り検査処理では、受信部600から出力された誤り検査値と、生成部621から出力された誤り検査値とを比較し、両者が共に同じ生成方式で生成された誤り検査値(P−N)であり、両者が一致する場合は、検査結果は正常であると判断され、両者が一致しない場合は、検査結果は正常でないと判断される。   The inspection unit 610 has a function of performing an error inspection process for collating the error check value output from the reception unit 600 with the error check value output from the generation unit 621 of the check value generation unit 620. In the error check process, the error check value output from the reception unit 600 is compared with the error check value output from the generation unit 621, and both are error check values (PN) generated by the same generation method. If the two match, the test result is determined to be normal, and if the two do not match, the test result is determined not to be normal.

検査結果が正常と判断された場合、検査部610は、今回受信した誤り検査値(P−N)が付加された制御コマンド(P)、および今回の誤り検査値(P−N)の生成元である制御コマンド(P−N)等の正当性を認証し、主制御部110の正当性を認証することができたと判断する。そして、検査部610は、認証成功を示す認証結果データを生成し、付加部630へ出力する。一方、検査結果が正常と判断されなかった場合は、検査部610は、不正行為や通信エラーなどが発生したため主制御部110の正当性を認証することができなかったと判断する。そして、検査部610は、認証不成功を示す認証結果データを生成し、付加部630へ出力する。なお、認証結果データのデータ形式は、特に限定されないが、受信した制御コマンドに付加された誤り検査値と同一のデータ長を有するデータ形式としておけばよい。また、検査部610の機能を実現する具体的な手段は、図4に示すCPU180aの一部、ROM180bの一部、RAM180cの一部等から構成することができる。   When the inspection result is determined to be normal, the inspection unit 610 generates the control command (P) to which the currently received error check value (PN) is added and the current error check value (PN) generation source. It is determined that the validity of the control command (PN) or the like is authenticated and the validity of the main control unit 110 can be authenticated. Then, the inspection unit 610 generates authentication result data indicating successful authentication and outputs the generated authentication result data to the adding unit 630. On the other hand, when the inspection result is not determined to be normal, the inspection unit 610 determines that the legitimacy of the main control unit 110 could not be authenticated due to an illegal act or a communication error. Then, the inspection unit 610 generates authentication result data indicating unsuccessful authentication and outputs it to the adding unit 630. The data format of the authentication result data is not particularly limited, but may be a data format having the same data length as the error check value added to the received control command. Further, specific means for realizing the function of the inspection unit 610 can be configured from a part of the CPU 180a, a part of the ROM 180b, a part of the RAM 180c, and the like shown in FIG.

付加部630は、受信部600から出力された、誤り検査値(P−N)抽出後の制御コマンド(P)に、検査部610から出力された認証結果データを付加し、認証結果データ付きの制御コマンド(P)を生成する機能を有するものである。また、付加部630は、生成した認証結果データ付きの制御コマンド(P)を中継送信部640へ出力する機能を有するものである。なお、付加部630の機能を実現する具体的な手段は、図4に示すCPU180aの一部、ROM180bの一部、およびRAM180cの一部等から構成することができる。   The adding unit 630 adds the authentication result data output from the checking unit 610 to the control command (P) extracted from the error check value (PN) output from the receiving unit 600, and includes the authentication result data. It has a function of generating a control command (P). The adding unit 630 has a function of outputting the generated control command (P) with authentication result data to the relay transmitting unit 640. Note that specific means for realizing the function of the adding unit 630 can be configured from a part of the CPU 180a, a part of the ROM 180b, a part of the RAM 180c, and the like shown in FIG.

中継送信部640は、付加部630から出力された認証結果データ付きの制御コマンド(P)を演出制御部120へ送信する機能を有するものである。中継送信部640が演出制御部120へ送信する認証結果データ付きの制御コマンド(P)は、受信部600にて受信した制御コマンド(P)と同一内容の演出処理を示すものである。すなわち、受信部600にて受信した制御コマンド(P)は、その具体的な処理内容および受信順序が維持された状態で中継送信部640へ出力され、中継送信部640にて演出制御部120へ送信されることとなる。なお、中継送信部640の機能を実現する具体的な手段は、図4に示すCPU180aの一部、ROM180bの一部、RAM180cの一部、およびコマンド送信用出力ポート(図示せず)等から構成することができる。   The relay transmission unit 640 has a function of transmitting the control command (P) with authentication result data output from the adding unit 630 to the effect control unit 120. The control command (P) with authentication result data transmitted from the relay transmission unit 640 to the effect control unit 120 indicates an effect process having the same content as the control command (P) received by the receiving unit 600. That is, the control command (P) received by the receiving unit 600 is output to the relay transmission unit 640 in a state where the specific processing content and the reception order are maintained, and the relay transmission unit 640 sends the control command (P) to the effect control unit 120. Will be sent. Specific means for realizing the function of the relay transmission unit 640 includes a part of the CPU 180a, a part of the ROM 180b, a part of the RAM 180c, a command transmission output port (not shown), and the like shown in FIG. can do.

中間制御部180は、生成した認証結果データを演出制御部120へ送信する際に、受信した制御コマンドに付加して演出制御部120へ送信する。すなわち、認証結果データは、認証結果データ単体では送信されず、他の送信データである制御コマンドと一体的に演出制御部120へ送信されることとなる。認証結果データと誤り検査値とを同一のデータ長を有するデータ形式としておけば、主制御部110から中間制御部180へ送信される送信データと、中間制御部180から演出制御部120へ送信される送信データとは同一のデータ長を有するデータ形式とすることができる。このようにすることで、不正者が、中間制御部180と演出制御部120の間の送信データを窃取して、認証結果データの演出制御部120への送信タイミングを不正に解析することが困難となり、遊技機1のセキュリティ強度を向上させることができる。   When transmitting the generated authentication result data to the effect control unit 120, the intermediate control unit 180 adds the received authentication result data to the effect control unit 120 and adds it to the received control command. That is, the authentication result data is not transmitted by the authentication result data alone, but is transmitted to the effect control unit 120 integrally with the control command which is other transmission data. If the authentication result data and the error check value are in a data format having the same data length, transmission data transmitted from the main control unit 110 to the intermediate control unit 180 and transmission from the intermediate control unit 180 to the effect control unit 120 are transmitted. The transmission data may have a data format having the same data length. By doing so, it is difficult for an unauthorized person to steal transmission data between the intermediate control unit 180 and the effect control unit 120 and to illegally analyze the transmission timing of the authentication result data to the effect control unit 120. Thus, the security strength of the gaming machine 1 can be improved.

[制御コマンドの説明]
以下、本発明の実施形態に係る遊技機1の主制御部110から演出制御部120に対して送信される制御コマンドの種別について説明する。
図9は、本実施形態に係る遊技機1を構成する主制御部110から演出制御部120へ送信される制御コマンドの種別を示す図である。なお、図9に示された制御コマンドは一例であり、本発明に係る制御コマンドはこれに限定されるものではない。
[Explanation of control commands]
Hereinafter, the types of control commands transmitted from the main control unit 110 to the effect control unit 120 of the gaming machine 1 according to the embodiment of the present invention will be described.
FIG. 9 is a diagram showing the types of control commands transmitted from the main control unit 110 to the effect control unit 120 constituting the gaming machine 1 according to the present embodiment. The control command shown in FIG. 9 is an example, and the control command according to the present invention is not limited to this.

主制御部110から中間制御部180を介して演出制御部120へ送信される制御コマンドは、1コマンドが2バイトのデータで構成されており、制御コマンドの分類を識別するための1バイトの「MODE」の情報と、各制御コマンドの詳細な制御内容を示す1バイトの「DATA」の情報とから構成されている。「MODE」の情報と「DATA」の情報は、上記のようにメインROM110bに予め記憶されている。   The control command transmitted from the main control unit 110 to the effect control unit 120 via the intermediate control unit 180 is composed of 1-byte data, and a 1-byte “ID” for identifying the control command classification. “MODE” information and 1-byte “DATA” information indicating the detailed control contents of each control command. The “MODE” information and the “DATA” information are stored in advance in the main ROM 110b as described above.

主制御部110では、制御コマンドの送信タイミングとなると、メインROM110bから読み出された「MODE」の情報と「DATA」の情報とによって制御コマンドが構成された後、メインRAM110cの送信データ用記憶領域にセットされる。送信データ用記憶領域にセットされた制御コマンドは、主制御部110のコマンド送信処理により、誤り検査値が付加され、誤り検査値付きの制御コマンドとして中間制御部180に送信され、中間制御部180の中継送信処理により、演出制御部120に送信されることになる。以下の説明において、それぞれの制御コマンドは、このようにして主制御部110から中間制御部180を介して演出制御部120に送信されるものとし、それぞれの制御コマンドがメインRAM110cの送信データ用記憶領域にセットされた後の処理については説明を省略する。また、以下の説明において、「制御コマンドを送信する」との表現には、制御コマンドに誤り検査値を付加して送信することが含まれ、「演出制御部120に送信する」との表現には、中間制御部180を介して演出制御部120に送信することが含まれるものとする。   In the main control unit 110, when it is the transmission timing of the control command, the control command is composed of the “MODE” information and the “DATA” information read from the main ROM 110b, and then the transmission data storage area of the main RAM 110c. Set to An error check value is added to the control command set in the transmission data storage area by the command transmission processing of the main control unit 110, and is transmitted to the intermediate control unit 180 as a control command with an error check value. Is transmitted to the effect control unit 120 by the relay transmission process. In the following description, it is assumed that each control command is transmitted from the main control unit 110 to the effect control unit 120 via the intermediate control unit 180 in this way, and each control command is stored in the main RAM 110c for transmission data. The description of the processing after being set in the area is omitted. Further, in the following description, the expression “transmit a control command” includes transmitting the control command with an error check value, and the expression “transmitting to the effect control unit 120”. Includes transmission to the effect control unit 120 via the intermediate control unit 180.

「演出図柄指定コマンド」は、停止表示される特別図柄の種別を示すものであり、「MODE」の情報が「E0H」で設定され、特別図柄の種別に合わせて「DATA」の情報が設定されている。なお、特別図柄の種別が結果的に大当たりの種別や遊技状態を決定するものであるから、演出図柄指定コマンドは、大当たりの種別や、遊技状態を示すものともいえる。
この演出図柄指定コマンドは、各種の特別図柄が決定され、特別図柄の変動表示が開始されるときに、決定された特別図柄に対応する演出図柄指定コマンドが演出制御部120に送信される。具体的には、大当たりの抽選結果を判定し特別図柄各種の特別図柄が決定され特別図柄の変動表示が開始されるときに、決定された特別図柄に対応する演出図柄指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
なお、演出図柄指定コマンド等と関連する大当たりの抽選に関する処理については後述する。
The “designation designating command” indicates the type of the special symbol that is stopped and displayed. The “MODE” information is set as “E0H”, and the “DATA” information is set according to the special symbol type. ing. Since the special symbol type eventually determines the jackpot type and gaming state, the effect symbol designation command can also be said to indicate the jackpot type and gaming state.
In the effect symbol designation command, when various special symbols are determined and the variation display of the special symbol is started, an effect symbol designation command corresponding to the determined special symbol is transmitted to the effect control unit 120. Specifically, when the lottery result of the jackpot is determined, various special symbols are determined, and the variation display of the special symbols is started, an effect designating command corresponding to the determined special symbol is transmitted to the main RAM 110c. Set in the data storage area.
The process related to the jackpot lottery related to the production symbol designation command will be described later.

ここで、演出図柄指定コマンドのうち、「DATA」の情報が「00H」で設定される「ハズレ演出図柄指定コマンド」は、抽選結果がハズレの場合に、ハズレの結果を停止表示させるための制御コマンドである。すなわち、ハズレ演出図柄指定コマンド、抽選結果がハズレの場合に、主制御部110から演出制御部120に必ず送信される制御コマンドである。以下、ハズレ演出図柄指定コマンドを、ハズレの際の処理を実行させるコマンドとして、「ハズレコマンド」ともいう。   Here, among the effect designating commands, the “losing effect designating command” set with “DATA” information being “00H” is a control for stopping and displaying the result of the losing when the lottery result is losing. It is a command. That is, it is a control command that is surely transmitted from the main control unit 110 to the effect control unit 120 when the lose design symbol designation command is a loss. Hereinafter, the lose effect designating command is also referred to as a “lose command” as a command for executing a process in case of loss.

「第1特別図柄記憶指定コマンド」は、第1特別図柄保留数(U1)記憶領域に記憶されている保留記憶数を示すものであり、「MODE」の情報が「E1H」で設定され、保留記憶数に合わせて「DATA」の情報が設定されている。
この第1特別図柄記憶指定コマンドは、第1特別図柄保留数(U1)記憶領域に記憶されている保留記憶数が切り替わるときに、保留記憶数に対応する第1特別図柄記憶指定コマンドが演出制御部120に送信される。具体的には、第1始動口14への入球や大当たりの抽選結果の判定に際し第1特別図柄保留数(U1)記憶領域に記憶されている値が増減したときに、増減後の保留記憶数に対応する第1特別図柄記憶指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
The “first special symbol memory designation command” indicates the number of reserved memories stored in the first special symbol reservation number (U1) storage area, and the information of “MODE” is set to “E1H”, “DATA” information is set according to the number of memories.
This first special symbol memory designation command is effect-controlled by the first special symbol memory designation command corresponding to the number of reserved memories when the number of reserved memories stored in the first special symbol reservation number (U1) storage area is switched. Is transmitted to the unit 120. Specifically, when the value stored in the first special symbol hold number (U1) storage area is increased or decreased when determining the result of entering the first start port 14 or the big win lottery result, the reserved memory after the increase or decrease is stored. The first special symbol storage designation command corresponding to the number is set in the transmission data storage area of the main RAM 110c.

「第2特別図柄記憶指定コマンド」は、第2特別図柄保留数(U2)記憶領域に記憶されている保留記憶数を示すものであり、「MODE」の情報が「E2H」で設定され、保留記憶数に合わせて「DATA」の情報が設定されている。
この第2特別図柄記憶指定コマンドは、第2特別図柄保留数(U2)記憶領域に記憶されている保留記憶数が切り替わるときに、保留記憶数に対応する第2特別図柄記憶指定コマンドが演出制御部120に送信される。具体的には、第2始動口15への入球や大当たりの抽選結果の判定に際し第2特別図柄保留数(U2)記憶領域に記憶されている値が増減したときに、増減後の保留記憶数に対応する第2特別図柄記憶指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
なお、本実施形態では、「第1特別図柄記憶指定コマンド」と「第2特別図柄記憶指定コマンド」とをまとめて「特別図柄記憶指定コマンド」ともいう。
The “second special symbol memory designation command” indicates the number of reserved memories stored in the second special symbol reservation number (U2) storage area, and the information of “MODE” is set to “E2H”, “DATA” information is set according to the number of memories.
This second special symbol memory designation command is directed by the second special symbol memory designation command corresponding to the number of reserved memories when the number of reserved memories stored in the second special symbol reservation number (U2) storage area is switched. Is transmitted to the unit 120. Specifically, when the value stored in the second special symbol holding number (U2) storage area is increased or decreased in determining the result of entering the second starting port 15 or the jackpot lottery result, the holding storage after the increase / decrease is performed. The second special symbol storage designation command corresponding to the number is set in the transmission data storage area of the main RAM 110c.
In the present embodiment, the “first special symbol memory designation command” and the “second special symbol memory designation command” are collectively referred to as “special symbol memory designation command”.

「図柄確定コマンド」は、特別図柄が停止表示されていることを示すものであり、「MODE」の情報が「E3H」で設定され、「DATA」の情報が「00H」に設定されている。
この図柄確定コマンドは、特別図柄が停止表示されているときに演出制御部120に送信される。具体的には、大当たりの抽選結果を判定し特別図柄の変動時間が経過した後に、特別図柄を第1特別図柄表示装置20または第2特別図柄表示装置21に停止表示させるときに、図柄確定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
The “symbol confirmation command” indicates that the special symbol is stopped and displayed, and “MODE” information is set to “E3H” and “DATA” information is set to “00H”.
This symbol confirmation command is transmitted to the effect control unit 120 when the special symbol is stopped and displayed. Specifically, after determining the jackpot lottery result and the special symbol change time has elapsed, when the special symbol is stopped and displayed on the first special symbol display device 20 or the second special symbol display device 21, the symbol confirmation command Is set in the transmission data storage area of the main RAM 110c.

「電源投入時指定コマンド」は、遊技機1の電源が投入されたことを示すものであり、「MODE」の情報が「E4H」で設定され、「DATA」の情報が「00H」に設定されている。
この電源投入時指定コマンドは、遊技機1の電源が投入されたときに演出制御部120に送信される。遊技機1の電源が投入され主制御部110の初期化処理が行われる際に、電源遮断時(以下、「電断時」という)に生成したメインRAM110cのバックアップ情報が有効でない場合は、メインRAM110cの作業領域がクリアされ、新たに作業領域の設定が行われる。その後、電源投入時指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
なお、電源投入時指定コマンド等と関連する初期化処理については後述する。
The “power-on designation command” indicates that the gaming machine 1 is powered on, the “MODE” information is set to “E4H”, and the “DATA” information is set to “00H”. ing.
The power-on designation command is transmitted to the effect control unit 120 when the gaming machine 1 is powered on. When the gaming machine 1 is powered on and the initialization process of the main control unit 110 is performed, if the backup information of the main RAM 110c generated when the power is turned off (hereinafter referred to as “power interruption”) is not valid, The work area in the RAM 110c is cleared and a new work area is set. Thereafter, a power-on designation command is set in the transmission data storage area of the main RAM 110c.
The initialization process related to the power-on designation command and the like will be described later.

「RAMクリア指定コマンド」は、メインRAM110cに記憶された情報がクリアされたことを示すものであり、「MODE」の情報が「E4H」で設定され、「DATA」の情報が「01H」に設定されている。
遊技機1の裏側には図示しないRAMクリアボタンが設けられており、RAMクリアボタンを押下しながら遊技機1の電源を投入すると、主制御部110にシステムリセットが発生し初期化処理が行われる。そして、メインRAM110cの作業領域がクリアされ新たに作業領域の設定が行われ電源投入時指定コマンドを送信した後に、RAMクリア指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
The “RAM clear designation command” indicates that the information stored in the main RAM 110c has been cleared. The “MODE” information is set to “E4H” and the “DATA” information is set to “01H”. Has been.
A RAM clear button (not shown) is provided on the back side of the gaming machine 1. When the gaming machine 1 is turned on while pressing the RAM clear button, a system reset occurs in the main control unit 110 and initialization processing is performed. . After the work area of the main RAM 110c is cleared and a new work area is set and a power-on designation command is transmitted, the RAM clear designation command is set in the transmission data storage area of the main RAM 110c.

「電源復旧指定コマンド」は、遊技機1の電源が投入されて、正常に復旧したことを示すものであり、「MODE」の情報が「E4H」で設定され、電断時の遊技状態別に合わせて「DATA」の情報が設定されている。
この電源復旧指定コマンドは、遊技機1の電源が投入されて、正常に復旧したときに演出制御部120に送信される。具体的には、遊技機1の電源が投入され初期化処理が行われる際に、電断時に生成したメインRAM110cのバックアップ情報が有効である場合は、バックアップ情報が示す遊技状態に応じた電源復旧指定コマンドを生成し、生成した電源復旧指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
The “power recovery designation command” indicates that the gaming machine 1 has been powered on and has been restored normally. The “MODE” information is set to “E4H” and is matched according to the gaming state at the time of power interruption. "DATA" information is set.
This power supply restoration designation command is transmitted to the effect control unit 120 when the gaming machine 1 is turned on and normally restored. Specifically, when the gaming machine 1 is turned on and the initialization process is performed, if the backup information of the main RAM 110c generated at the time of power interruption is valid, the power is restored according to the gaming state indicated by the backup information. A designated command is generated, and the generated power supply restoration designation command is set in the transmission data storage area of the main RAM 110c.

なお、電源投入時に、電源投入時指定コマンド、RAMクリア指定コマンド、電源復旧指定コマンドのいずれか少なくとも1つが主制御部110から演出制御部120へ送信される。すなわち、「MODE」の情報が「E4H」で設定される上記の制御コマンド群は、電源投入時の処理を実行させるコマンドである。以下、「MODE」の情報が「E4H」で設定される上記の制御コマンド群を、「電源投入コマンド」ともいう。   When the power is turned on, at least one of a power-on designation command, a RAM clear designation command, and a power restoration designation command is transmitted from the main control unit 110 to the effect control unit 120. That is, the above-described control command group in which “MODE” information is set to “E4H” is a command for executing a process at power-on. Hereinafter, the control command group in which the “MODE” information is set to “E4H” is also referred to as “power-on command”.

「デモ指定コマンド」は、第1特別図柄表示装置20または第2特別図柄表示装置21が作動していないことを示すものであり、「MODE」の情報が「E5H」で設定され、「DATA」の情報が「00H」に設定されている。
このデモ指定コマンドは、第1特別図柄表示装置20または第2特別図柄表示装置21の特別図柄の保留記憶がなく、遊技者による操作がない非遊技状態が所定の時間経過したときに、演出制御部120に送信される。具体的には、大当たりの抽選、特別電動役物、遊技状態の制御を行うに際し、第1特別図柄保留数(U1)記憶領域または第2特別図柄保留数(U2)記憶領域のいずれの記憶領域にも1以上のデータがセットされていない状態が所定の時間継続したときに、デモ指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
The “demonstration designation command” indicates that the first special symbol display device 20 or the second special symbol display device 21 is not operating, the information of “MODE” is set to “E5H”, and “DATA” Is set to “00H”.
This demonstration designation command is used for effect control when there is no special symbol hold storage in the first special symbol display device 20 or the second special symbol display device 21 and a non-game state in which there is no operation by the player has elapsed for a predetermined time. Is transmitted to the unit 120. Specifically, when the jackpot lottery, the special electric accessory, and the gaming state are controlled, either the first special symbol hold number (U1) storage area or the second special symbol hold number (U2) storage area In addition, when a state in which one or more data is not set continues for a predetermined time, the demo designation command is set in the transmission data storage area of the main RAM 110c.

なお、デモ指定コマンドは、第1特別図柄表示装置20または第2特別図柄表示装置21の特別図柄の保留記憶がないとき直ちに送信するようにしてもよい。この場合、演出制御部120は、デモ指定コマンドを受信した後、他の制御コマンドを所定時間受信しなかった場合、すなわち非遊技状態が所定時間経過した場合にデモ演出を実行する。   The demonstration designation command may be sent immediately when there is no special symbol holding storage of the first special symbol display device 20 or the second special symbol display device 21. In this case, after receiving the demonstration designation command, the effect control unit 120 executes the demonstration effect when no other control command is received for a predetermined time, that is, when the non-game state has elapsed for a predetermined time.

「第1特別図柄用変動パターン指定コマンド」は、第1特別図柄表示装置20における特別図柄の変動時間(変動態様)を示すものであり、「MODE」の情報が「E6H」で設定され、各種の変動パターンに合わせて「DATA」の情報が設定されている。
この第1特別図柄用変動パターン指定コマンドは、第1特別図柄表示装置20の特別図柄の変動表示が開始されるときに、決定された特別図柄の変動パターンに対応する第1特別図柄用変動パターン指定コマンドが演出制御部120に送信される。具体的には、大当たりの抽選結果を判定し特別図柄の変動パターンが決定され特別図柄の変動表示が開始されるときに、決定された特別図柄の変動パターンに対応する第1特別図柄用変動パターン指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
The “variable pattern designation command for the first special symbol” indicates the variation time (variation mode) of the special symbol in the first special symbol display device 20, the information of “MODE” is set as “E6H”, and various “DATA” information is set in accordance with the fluctuation pattern.
The first special symbol variation pattern designation command is a first special symbol variation pattern corresponding to the variation pattern of the special symbol determined when the special symbol variation display of the first special symbol display device 20 is started. A designation command is transmitted to the effect control unit 120. Specifically, the variation pattern for the first special symbol corresponding to the determined variation pattern of the special symbol when the variation pattern of the special symbol is determined and the variation display of the special symbol is started by judging the lottery result of the jackpot The designated command is set in the transmission data storage area of the main RAM 110c.

「第2特別図柄用変動パターン指定コマンド」は、第2特別図柄表示装置21における特別図柄の変動時間(変動態様)を示すものであり、「MODE」の情報が「E7H」で設定され、各種の変動パターンに合わせて「DATA」の情報が設定されている。
この第2特別図柄用変動パターン指定コマンドは、第2特別図柄表示装置21の特別図柄の変動表示が開始されるときに、決定された特別図柄の変動パターンに対応する第2特別図柄用変動パターン指定コマンドが演出制御部120に送信される。具体的には、大当たりの抽選結果を判定し特別図柄の変動パターンが決定され特別図柄の変動表示が開始されるときに、決定された特別図柄の変動パターンに対応する第2特別図柄用変動パターン指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
なお、本実施形態では、「第1特別図柄用変動パターン指定コマンド」と「第2特別図柄用変動パターン指定コマンド」とをまとめて、「変動パターン指定コマンド」という。
The “variable pattern designation command for the second special symbol” indicates the variation time (variation mode) of the special symbol in the second special symbol display device 21, and the information of “MODE” is set to “E7H”. “DATA” information is set in accordance with the fluctuation pattern.
The second special symbol variation pattern designation command is a second special symbol variation pattern corresponding to the variation pattern of the special symbol determined when the special symbol variation display of the second special symbol display device 21 is started. A designation command is transmitted to the effect control unit 120. Specifically, the variation pattern for the second special symbol corresponding to the determined variation pattern of the special symbol when the variation pattern of the special symbol is determined and the variation display of the special symbol is started by judging the lottery lottery result The designated command is set in the transmission data storage area of the main RAM 110c.
In the present embodiment, the “first special symbol variation pattern designation command” and the “second special symbol variation pattern designation command” are collectively referred to as a “variation pattern designation command”.

ここで、変動パターン指定コマンドのうち、「DATA」の情報が「01H」、「02H」、「03H」、「04H」、「05H」で設定される制御コマンド群は、リーチ演出を実行させる制御コマンドである。以下、「MODE」の情報が「E6H」で設定され、かつ「DATA」の情報が「01H」〜「05H」で設定される制御コマンド群を、「リーチコマンド」ともいう。   Here, among the variation pattern designation commands, the control command group in which the information of “DATA” is set to “01H”, “02H”, “03H”, “04H”, “05H” is a control for executing the reach effect. It is a command. Hereinafter, the control command group in which the “MODE” information is set to “E6H” and the “DATA” information is set to “01H” to “05H” is also referred to as “reach command”.

「大入賞口開放指定コマンド」は、各種大当たりの種別に合わせた大当たりのラウンド数を示すものであり、「MODE」の情報が「EAH」で設定され、大当たりのラウンド数に合わせて「DATA」の情報が設定されている。
この大入賞口開放指定コマンドは、大当たりラウンドが開始されるときに、開始されたラウンド数に対応する大入賞口開放指定コマンドが演出制御部120に送信される。具体的には、大当たり遊技処理において第1大入賞口開閉扉16b(または第2大入賞口開閉扉17b)を開放させるときに、開放させるときのラウンド数に対応する大入賞口開放指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
なお、「MODE」の情報が「EAH」で設定されるコマンド群は、大当たり中の各ラウンドに対応する処理を実行させるコマンドである。以下、「MODE」の情報が「EAH」で設定されるコマンド群を、「大当たりコマンド」ともいう。
The “big prize opening opening designation command” indicates the number of rounds of jackpots according to various types of jackpots, and “MODE” information is set as “EAH”, and “DATA” is set according to the number of rounds of jackpots. Information is set.
With regard to the special winning opening opening designation command, when the big hit round is started, the big winning opening opening designation command corresponding to the started round number is transmitted to the effect control unit 120. Specifically, when the first big prize opening opening / closing door 16b (or the second big prize opening opening / closing door 17b) is opened in the big hit game process, the big winning opening opening designation command corresponding to the number of rounds to be opened is It is set in the transmission data storage area of the main RAM 110c.
Note that the command group in which the information of “MODE” is set to “EAH” is a command for executing processing corresponding to each round of jackpot. Hereinafter, a command group in which “MODE” information is set to “EAH” is also referred to as a “hit command”.

「オープニング指定コマンド」は、各種の大当たりが開始することを示すものであり、「MODE」の情報が「EBH」で設定され、大当たりの種別に合わせて「DATA」の情報が設定されている。
このオープニング指定コマンドは、各種の大当たりが開始するときに、大当たりの種別に対応するオープニング指定コマンドが演出制御部120に送信される。具体的には、大当たり遊技処理の開始のときに、大当たりの種別に対応するオープニング指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
なお、「MODE」の情報が「EBH」で設定されるコマンド群は、大当たり状態の処理を開始させるコマンドである。以下、「MODE」の情報が「EBH」で設定されるコマンド群を、「大当たり開始コマンド」ともいう。
The “opening designation command” indicates that various jackpots start, “MODE” information is set as “EBH”, and “DATA” information is set according to the jackpot type.
As for this opening designation command, when various jackpots start, an opening designation command corresponding to the type of jackpot is transmitted to the effect control unit 120. Specifically, at the start of the jackpot game process, an opening designation command corresponding to the jackpot type is set in the transmission data storage area of the main RAM 110c.
Note that the command group in which the information of “MODE” is set to “EBH” is a command for starting the big hit state processing. Hereinafter, a command group in which “MODE” information is set to “EBH” is also referred to as a “big hit start command”.

「エンディング指定コマンド」は、各種の大当たりが終了したことを示すものであり、「MODE」の情報が「ECH」で設定され、大当たりの種別に合わせて「DATA」の情報が設定されている。
このエンディング指定コマンドは、各種の大当たりが終了するときに、大当たりの種別に対応するエンディング指定コマンドが演出制御部120に送信される。具体的には、大当たり遊技終了処理の開始のときに、大当たりの種別に対応するエンディング指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
なお、「MODE」の情報が「ECH」で設定されるコマンド群は、大当たり状態の処理を終了させるコマンドである。以下、「MODE」の情報が「ECH」で設定されるコマンド群を、「大当たり終了コマンド」ともいう。
The “ending designation command” indicates that various types of jackpots have ended, “MODE” information is set as “ECH”, and “DATA” information is set according to the jackpot type.
As for this ending designation command, when various jackpots are finished, an ending designation command corresponding to the jackpot type is transmitted to the effect control unit 120. Specifically, at the start of the jackpot game end process, an ending designation command corresponding to the jackpot type is set in the transmission data storage area of the main RAM 110c.
Note that the command group in which the “MODE” information is set to “ECH” is a command for ending the jackpot state process. Hereinafter, a command group in which “MODE” information is set to “ECH” is also referred to as a “hit end command”.

「遊技状態指定コマンド」は、遊技状態の内容を示すものであり、「MODE」の情報が「EDH」で設定され、遊技状態の内容に合わせて「DATA」の情報が設定されている。
この遊技状態指定コマンドは、特別図柄の変動開始時および変動終了時に遊技状態指定コマンドが演出制御部120に送信される。具体的には、特別図柄の変動開始時および変動終了時などによって、遊技状態記憶領域や高確率遊技回数カウンタなどの現在の遊技状態を示すデータを記憶した各種記憶領域の値が変化したときに、現在の遊技状態に対応する遊技状態指定コマンドがメインRAM110cの送信データ用記憶領域にセットされる。
The “gaming state designation command” indicates the contents of the gaming state, the information of “MODE” is set as “EDH”, and the information of “DATA” is set according to the contents of the gaming state.
As for the gaming state designation command, the gaming state designation command is transmitted to the effect control unit 120 at the start and end of the variation of the special symbol. Specifically, when the value of various storage areas storing data indicating the current gaming state, such as the gaming state storage area and the high probability game number counter, changes due to the start and end of the change of the special symbol A gaming state designation command corresponding to the current gaming state is set in the transmission data storage area of the main RAM 110c.

[主制御部の制御処理]
以下、本発明の実施形態に係る遊技機1の主制御部110の制御処理について説明する。まず、主制御部110のメイン処理について説明する。
図10は、本実施形態に係る主制御部110によるメイン処理を示すフローチャートである。
[Control processing of main control unit]
Hereinafter, the control process of the main control unit 110 of the gaming machine 1 according to the embodiment of the present invention will be described. First, main processing of the main control unit 110 will be described.
FIG. 10 is a flowchart showing main processing by the main control unit 110 according to the present embodiment.

遊技機1に電源が投入され、電源部170により電源が供給されると、主制御部110にシステムリセットが発生し、メインCPU110aは、初期化処理(図10のステップS1〜ステップS17までの処理)および乱数値更新処理(図10のステップS20およびステップS30の処理)を行う。   When the gaming machine 1 is powered on and powered by the power supply unit 170, a system reset occurs in the main control unit 110, and the main CPU 110a performs initialization processing (processing from step S1 to step S17 in FIG. 10). ) And random number value update processing (step S20 and step S30 in FIG. 10).

ステップS1において、メインCPU110aは、主制御部110の初期化処理の前提としてブート処理を行う。このブート処理において、メインCPU110aは、自身の自己診断処理や、内蔵回路や周辺回路等の初期化および初期値の設定を行う。なお、ブート処理の詳細については後述する。
ステップS2において、メインCPU110aは、メインRAM110cへのアクセスを許可に設定する。
ステップS3において、メインCPU110aは、RAMクリアスイッチがオンとなっているか判定し、RAMクリアスイッチがオンと判定された場合、RAMクリアを行うためステップS10に処理を移す。一方、RAMクリアスイッチがオンと判定されなかった場合には、ステップS4に処理を移す。
In step S1, the main CPU 110a performs a boot process as a premise of the initialization process of the main control unit 110. In this boot process, the main CPU 110a performs its own self-diagnosis process, initialization of built-in circuits and peripheral circuits, and setting of initial values. Details of the boot process will be described later.
In step S2, the main CPU 110a sets permission to access the main RAM 110c.
In step S3, the main CPU 110a determines whether or not the RAM clear switch is on. If it is determined that the RAM clear switch is on, the main CPU 110a moves the process to step S10 to perform RAM clear. On the other hand, if the RAM clear switch is not determined to be on, the process proceeds to step S4.

ステップS4において、メインCPU110aは、電源投入時のメインRAM110cの所定の記憶領域におけるチェックサムを生成する。
ステップS5において、メインCPU110aは、生成したチェックサムと、電断時に生成したメインRAM110cの所定の記憶領域におけるチェックサムとを比較する。ここで、一致していれば正常と判定し、ステップS6に処理を移し、一致していなければエラーと判定し、ステップS10に処理を移す。
In step S4, the main CPU 110a generates a checksum in a predetermined storage area of the main RAM 110c when the power is turned on.
In step S5, the main CPU 110a compares the generated checksum with the checksum in the predetermined storage area of the main RAM 110c generated at the time of power interruption. If they match, it is determined to be normal, and the process proceeds to step S6. If they do not match, it is determined to be an error, and the process proceeds to step S10.

ステップS6において、メインCPU110aは、演出制御部120をはじめとした周辺制御部300や中間制御部180との間で、起動後の動作の開始タイミングを調整する。具体的には、周辺制御部300や中間制御部180がすべて起動し安定状態となってから演出処理等をほぼ同じタイミングで開始できるように、一定時間だけ待機する。
ステップS7において、メインCPU110aは、電断からの復旧に際して初期値を必要とするメインRAM110cの作業領域に初期値を設定し、バックアップが有効である場合のRAMの設定処理を行う。
In step S <b> 6, the main CPU 110 a adjusts the start timing of the operation after activation with the peripheral control unit 300 including the effect control unit 120 and the intermediate control unit 180. Specifically, after all the peripheral control unit 300 and the intermediate control unit 180 are activated and become in a stable state, the system waits for a certain period of time so that the rendering process and the like can be started at substantially the same timing.
In step S7, the main CPU 110a sets an initial value in the work area of the main RAM 110c that requires an initial value upon recovery from power interruption, and performs a RAM setting process when backup is valid.

ステップS8において、メインCPU110aは、電断時の遊技状態に復旧すべく、電断時に生成したメインRAM110cのバックアップ情報を読み込む。具体的には、バックアップされているメインRAM110cの遊技状態記憶領域から遊技状態の情報を読み込む。
ステップS9において、メインCPU110aは、読み込んだ遊技状態の情報に基づいて電源復旧指定コマンドを決定し、決定した電源復旧指定コマンドをメインRAM110cの送信データ用記憶領域にセットする。
In step S8, the main CPU 110a reads the backup information of the main RAM 110c generated at the time of power interruption in order to restore the gaming state at the time of power interruption. Specifically, the game state information is read from the game state storage area of the main RAM 110c that is backed up.
In step S9, the main CPU 110a determines a power restoration designation command based on the read gaming state information, and sets the decided power restoration designation command in the transmission data storage area of the main RAM 110c.

ステップS10において、メインCPU110aは、上記ステップS6と同様に周辺制御部300や中間制御部180との間でのタイミング調整を行う。
ステップS11において、メインCPU110aは、メインRAM110cの使用領域をクリアする。
ステップS12において、メインCPU110aは、各種乱数値の初期値の設定をはじめとする、遊技機1の初期化に際して初期値を必要とするメインRAM110cの作業領域に初期値を設定し、バックアップが有効でない場合のメインRAM110cの設定処理を行う。
In step S10, the main CPU 110a performs timing adjustment with the peripheral control unit 300 and the intermediate control unit 180 in the same manner as in step S6.
In step S11, the main CPU 110a clears the used area of the main RAM 110c.
In step S12, the main CPU 110a sets initial values in the work area of the main RAM 110c that requires initial values when initializing the gaming machine 1, including setting initial values of various random numbers, and backup is not valid. In this case, the main RAM 110c is set.

ステップS13において、メインCPU110aは、電源投入時指定コマンドを生成し、生成した電源投入時指定コマンドをメインRAM110cの送信データ用記憶領域にセットする。
ステップS14において、メインCPU110aは、送信データ用記憶領域にセットされている制御コマンドを中間制御部180に送信するコマンド送信処理を行う。すなわち、電源投入時指定コマンドを中間制御部180に送信する。なお、ステップS14およびステップS16のコマンド送信処理は、生成方式設定処理、検査値生成処理、および検査値付加処理を伴う。更に、ステップS14およびステップS16のコマンド送信処理は、固有情報を格納回路522および生成回路521の記憶回路へ初期設定値として設定する処理を伴う。コマンド送信処理の詳細については後述する。
In step S13, the main CPU 110a generates a power-on designation command, and sets the generated power-on designation command in the transmission data storage area of the main RAM 110c.
In step S14, the main CPU 110a performs a command transmission process for transmitting the control command set in the transmission data storage area to the intermediate control unit 180. That is, a power-on designation command is transmitted to the intermediate control unit 180. Note that the command transmission processing in step S14 and step S16 involves generation method setting processing, inspection value generation processing, and inspection value addition processing. Further, the command transmission processing in step S14 and step S16 involves processing for setting unique information as an initial setting value in the storage circuit 522 and the storage circuit of the generation circuit 521. Details of the command transmission process will be described later.

ステップS15において、メインCPU110aは、RAMクリア指定コマンドを生成し、生成したRAMクリア指定コマンドをメインRAM110cの送信データ用記憶領域にセットする。
ステップS16において、メインCPU110aは、メインRAM110cの送信データ用記憶領域にセットされている制御コマンドを中間制御部180に送信するコマンド送信処理を行う。すなわち、電源復旧指定コマンドまたはRAMクリア指定コマンドのいずれかの制御コマンドを中間制御部180に送信する。
ステップS17において、メインCPU110aは、割込許可の設定をするとともに、タイマ割込プログラムの実行周期(α、例えば4ミリ秒)を設定する。
In step S15, the main CPU 110a generates a RAM clear designation command, and sets the generated RAM clear designation command in the transmission data storage area of the main RAM 110c.
In step S16, the main CPU 110a performs a command transmission process for transmitting a control command set in the transmission data storage area of the main RAM 110c to the intermediate control unit 180. That is, the control command of either the power supply restoration designation command or the RAM clear designation command is transmitted to the intermediate control unit 180.
In step S <b> 17, the main CPU 110 a sets the interrupt permission and sets the execution period (α, for example, 4 milliseconds) of the timer interrupt program.

なお、ステップS14およびステップS16のコマンド送信処理は、ステップS17での割込許可後に行われるタイマ割込処理の中で行ってもよい。このとき、各制御コマンドの送信順番が前後しないよう予め取り決めておく。   Note that the command transmission processing in step S14 and step S16 may be performed in the timer interrupt processing performed after interrupt permission in step S17. At this time, it is determined in advance that the transmission order of each control command is not changed.

ステップS20において、メインCPU110aは、特別図柄の変動態様(変動時間)を決定するためのリーチ判定用乱数値および特図変動用乱数値を更新する演出用乱数値更新処理を行う。
ステップS30において、メインCPU110aは、特別図柄判定用初期乱数値、大当たり図柄用初期乱数値、小当たり図柄用初期値乱数値、普通図柄判定用初期乱数値を更新する初期乱数値更新処理を行う。その後、所定の割込処理が行われるまで、ステップS20とステップS30との処理を繰り返し行う。
In step S20, the main CPU 110a performs an effect random number update process for updating the reach determination random number value and the special figure variation random value for determining the variation mode (variation time) of the special symbol.
In step S30, the main CPU 110a performs an initial random number value updating process for updating the special symbol determining initial random number value, the big hit symbol initial random number value, the small hit symbol initial random number value, and the normal symbol determining initial random number value. Thereafter, the processes in steps S20 and S30 are repeated until a predetermined interrupt process is performed.

次に、主制御部110の割込処理について説明する。
図11は、本実施形態に係る主制御部110による割込処理を示すフローチャートである。
メインCPU110aは、主制御部110に設けられたクロックパルス発生回路から出力されるクロック信号に基づいて、所定の周期(α)ごとに、主制御部110のタイマ割込処理を実行する。
Next, interrupt processing of the main control unit 110 will be described.
FIG. 11 is a flowchart showing interrupt processing by the main control unit 110 according to the present embodiment.
The main CPU 110a executes timer interrupt processing of the main control unit 110 at predetermined intervals (α) based on a clock signal output from a clock pulse generation circuit provided in the main control unit 110.

まず、ステップS100において、メインCPU110aは、メインCPU110aのレジスタに記憶されている情報をスタック領域に退避させる。   First, in step S100, the main CPU 110a saves the information stored in the register of the main CPU 110a to the stack area.

ステップS110において、メインCPU110aは、特別図柄時間カウンタの更新処理、特別電動役物の開放時間等などの特別遊技タイマカウンタの更新処理、普通図柄時間カウンタの更新処理、普電開放時間カウンタの更新処理等の各種タイマカウンタを更新する時間制御処理を行う。具体的には、特別図柄時間カウンタ、特別遊技タイマカウンタ、普通図柄時間カウンタ、普電開放時間カウンタから1を減算する処理を行う。   In step S110, the main CPU 110a updates the special symbol time counter, updates the special game timer counter such as the opening time of the special electric accessory, updates the normal symbol time counter, and updates the normal power release time counter. A time control process for updating various timer counters is performed. Specifically, a process of subtracting 1 from a special symbol time counter, a special game timer counter, a normal symbol time counter, and a general electricity open time counter is performed.

ステップS120において、メインCPU110aは、特別図柄判定用乱数値、大当たり図柄用乱数値、小当たり図柄用乱数値、普通図柄判定用乱数値の乱数更新処理を行う。
具体的には、それぞれの乱数値および乱数カウンタに1を加算して更新する。なお、加算した乱数カウンタが乱数範囲の最大値を超えた場合(乱数カウンタが1周した場合)には、乱数カウンタを0に戻し、その時の初期乱数値からそれぞれの乱数値を新たに更新する。
In step S120, the main CPU 110a performs a random number update process for the special symbol determination random number value, the big hit symbol random number value, the small hit symbol random number value, and the normal symbol determination random number value.
Specifically, 1 is added to each random number value and random number counter to be updated. When the added random number counter exceeds the maximum value in the random number range (when the random number counter makes one revolution), the random number counter is returned to 0, and each random number value is newly updated from the initial random number value at that time. .

ステップS130において、メインCPU110aは、ステップS30と同様に、特別図柄判定用初期乱数値、大当たり図柄用初期乱数値、小当たり図柄用初期値乱数値、普通図柄判定用初期乱数値を更新する初期乱数値更新処理を行う。   In step S130, as in step S30, the main CPU 110a updates the initial random number value for special symbol determination, the initial random number value for jackpot symbol, the initial random number value for small bonus symbol, and the initial random number value for normal symbol determination. Perform numerical value update processing.

ステップS200において、メインCPU110aは、入力制御処理を行う。この処理において、メインCPU110aは、一般入賞口検出スイッチ12a、第1大入賞口検出スイッチ16a、第2大入賞口検出スイッチ17a、第1始動口検出スイッチ14a、第2始動口検出スイッチ15a、ゲート検出スイッチ13aの各スイッチに入力があったか否か判定する入力処理を行う。   In step S200, the main CPU 110a performs input control processing. In this process, the main CPU 110a includes a general winning opening detection switch 12a, a first large winning opening detection switch 16a, a second large winning opening detection switch 17a, a first starting opening detection switch 14a, a second starting opening detection switch 15a, a gate. An input process for determining whether or not there is an input to each switch of the detection switch 13a is performed.

具体的には、一般入賞口検出スイッチ12a、第1大入賞口検出スイッチ16a、第2大入賞口検出スイッチ17a、第1始動口検出スイッチ14a、第2始動口検出スイッチ15aからの各種検出信号を入力した場合には、ぞれぞれの入賞口毎に設けられた賞球のために用いる賞球カウンタに所定のデータを加算して更新する。   Specifically, various detection signals from the general winning opening detecting switch 12a, the first big winning opening detecting switch 16a, the second large winning opening detecting switch 17a, the first starting opening detecting switch 14a, and the second starting opening detecting switch 15a. Is inputted, predetermined data is added to the prize ball counter used for the prize ball provided for each prize opening and updated.

更に、第1始動口検出スイッチ14aから検出信号を入力した場合には、第1特別図柄保留数(U1)記憶領域にセットされているデータが4未満であれば、第1特別図柄保留数(U1)記憶領域に1を加算し、特別図柄判定用乱数値、大当たり図柄用乱数値、小当たり図柄用乱数値、リーチ判定用乱数値および特図変動用乱数値を取得して、取得した各種乱数値を第1特別図柄乱数値記憶領域にある所定の記憶部(第0記憶部〜第4記憶部)に記憶する。   Further, when a detection signal is input from the first start port detection switch 14a, if the data set in the first special symbol hold number (U1) storage area is less than 4, the first special symbol hold number ( U1) Add 1 to the storage area to obtain special symbol determination random number value, jackpot symbol random number value, small hit symbol random number value, reach determination random value, and special symbol variation random value The random number value is stored in a predetermined storage unit (0th storage unit to 4th storage unit) in the first special symbol random value storage area.

同様に、第2始動口検出スイッチ15aから検出信号を入力した場合には、第2特別図柄保留数(U2)記憶領域にセットされているデータが4未満であれば、第2特別図柄保留数(U2)記憶領域に1を加算し、特別図柄判定用乱数値、大当たり図柄用乱数値、小当たり図柄用乱数値、リーチ判定用乱数値および特図変動用乱数値を取得して、取得した各種乱数値を第2特別図柄乱数値記憶領域にある所定の記憶部(第0記憶部〜第4記憶部)に記憶する。   Similarly, when a detection signal is input from the second start port detection switch 15a, if the data set in the second special symbol hold number (U2) storage area is less than 4, the second special symbol hold number (U2) 1 is added to the storage area, and a special symbol determination random number value, a big hit symbol random number value, a small hit symbol random number value, a reach determination random number value, and a special symbol variation random value are acquired. Various random numbers are stored in a predetermined storage unit (0th storage unit to 4th storage unit) in the second special symbol random number value storage area.

また、ゲート検出スイッチ13aから検出信号を入力した場合には、普通図柄保留数(G)記憶領域にセットされているデータが4未満であれば、普通図柄保留数(G)記憶領域に1を加算し、普通図柄判定用乱数値を取得して、取得した普通図柄判定用乱数値を普通図柄保留記憶領域にある所定の記憶部(第0記憶部〜第4記憶部)に記憶する。   When a detection signal is input from the gate detection switch 13a, if the data set in the normal symbol hold number (G) storage area is less than 4, the normal symbol hold number (G) storage area is set to 1. It adds, acquires the random number value for normal symbol determination, and memorize | stores the acquired random number value for normal symbol determination in the predetermined memory | storage part (0th memory | storage part-4th memory | storage part) in a normal symbol holding | maintenance storage area.

更に、第1大入賞口検出スイッチ16aまたは第2大入賞口検出スイッチ17aからの検出信号を入力した場合には、第1大入賞口16または第2大入賞口17に入賞した遊技球を計数するための大入賞口入球数(C)記憶領域に1を加算して更新する。   Further, when a detection signal from the first grand prize opening detection switch 16a or the second big prize opening detection switch 17a is inputted, the number of game balls won in the first big prize opening 16 or the second big prize opening 17 is counted. 1 is added to the number of entries (C) storage area for the big winning opening to update.

ステップS300において、メインCPU110aは、上記ステップS200での入力制御処理に基づいて、大当たりの抽選、特別電動役物、遊技状態の制御を行うための特別図柄・特別電動役物制御処理(以下、「特図特電制御処理」という)を行う。特図特電制御処理の詳細については、図12を用いて後述する。   In step S300, the main CPU 110a, based on the input control process in step S200, performs a special symbol / special electric accessory control process (hereinafter referred to as “a special jackpot lottery, a special electric accessory, and a gaming state control”). Special figure special electricity control process ”). Details of the special figure special electric control process will be described later with reference to FIG.

ステップS400において、メインCPU110aは、普通図柄の抽選、普通電動役物の制御を行うための普通図柄・普通電動役物制御処理(以下、「普図普電制御処理」という)を行う。
具体的には、まず普通図柄保留数(G)記憶領域に1以上のデータがセットされているか否かを判定し、普通図柄保留数(G)記憶領域に1以上のデータがセットされていなければ、今回の普図普電制御処理を終了する。
In step S400, the main CPU 110a performs a normal symbol / ordinary electric accessory control process (hereinafter referred to as a “general-purpose electric power control process”) for performing the normal symbol lottery and the control of the ordinary electric accessory.
Specifically, it is first determined whether or not 1 or more data is set in the normal symbol hold count (G) storage area, and 1 or more data must be set in the normal symbol hold count (G) storage area. If this is the case, the current ordinary power transmission control process is terminated.

普通図柄保留数(G)記憶領域に1以上のデータがセットされていれば、普通図柄保留数(G)記憶領域に記憶されている値から1を減算した後、普通図柄保留記憶領域にある第1記憶部〜第4記憶部に記憶された普通図柄判定用乱数値を1つ前の記憶部にシフトさせる。このとき、既に第0記憶部に書き込まれていた普通図柄判定用乱数値は上書きされて消去されることとなる。
そして、当たり判定テーブルを参照し、普通図柄保留記憶領域の第0記憶部に記憶された普通図柄判定用乱数値が「当たり」に対応する乱数値であるかどうかの判定する処理を行う。その後、普通図柄表示装置22において普通図柄の変動表示を行って、普通図柄の変動時間が経過すると普通図柄の抽選の結果に対応する普通図柄の停止表示を行う。そして、参照した普通図柄判定用乱数値が「当たり」のものであれば、始動口開閉ソレノイド15cを駆動させ、第2始動口15を所定の開放時間、第2の態様に制御する。
If 1 or more data is set in the normal symbol holding number (G) storage area, after subtracting 1 from the value stored in the normal symbol holding number (G) storage area, it is in the normal symbol holding storage area The normal symbol determination random numbers stored in the first storage unit to the fourth storage unit are shifted to the previous storage unit. At this time, the normal symbol determination random number value already written in the 0th storage unit is overwritten and erased.
Then, referring to the hit determination table, a process is performed to determine whether or not the normal symbol determination random number value stored in the 0th storage unit of the normal symbol hold storage area is a random value corresponding to “win”. Thereafter, the normal symbol display device 22 displays the fluctuation of the normal symbol. When the fluctuation time of the normal symbol elapses, the normal symbol corresponding to the result of the normal symbol lottery is stopped and displayed. If the random number for normal symbol determination referred to is “winning”, the start opening / closing solenoid 15c is driven to control the second start opening 15 to the second mode for a predetermined opening time.

ステップS500において、メインCPU110aは、払出制御処理を行う。この払出制御処理において、メインCPU110aは、ぞれぞれの賞球カウンタを参照し、各種入賞口に対応する払出個数指定コマンドを生成して、生成した払出個数指定コマンドを払出制御部130に送信する。   In step S500, the main CPU 110a performs a payout control process. In this payout control process, the main CPU 110 a refers to each prize ball counter, generates payout number designation commands corresponding to various winning ports, and transmits the generated payout number designation commands to the payout control unit 130. To do.

ステップS600において、メインCPU110aは、外部情報データ、始動口開閉ソレノイドデータ、第1大入賞口開閉ソレノイドデータ、第2大入賞口開閉ソレノイドデータ、特別図柄表示装置データ、普通図柄表示装置データ、記憶数指定コマンドのデータ作成処理を行う。   In step S600, the main CPU 110a, external information data, start opening / closing solenoid data, first big prize opening opening / closing solenoid data, second big prize opening opening / closing solenoid data, special symbol display device data, normal symbol display device data, number of stored Performs data creation for the specified command.

ステップS700において、メインCPU110aは、出力制御処理を行う。この処理において、ステップS600で作成した外部情報データ、始動口開閉ソレノイドデータ、第1大入賞口開閉ソレノイドデータ、第2大入賞口開閉ソレノイドデータの信号を出力させるポート出力処理を行う。
また、第1特別図柄表示装置20、第2特別図柄表示装置21および普通図柄表示装置22の各LEDを点灯させるために、上記S600で作成した特別図柄表示装置データと普通図柄表示装置データとを出力する表示装置出力処理を行う。
In step S700, the main CPU 110a performs output control processing. In this process, port output processing is performed for outputting signals of the external information data, the start opening / closing solenoid data, the first big prize opening / closing solenoid data, and the second big prize opening / closing solenoid data created in step S600.
Further, the special symbol display device data and the normal symbol display device data created in S600 are used to turn on the LEDs of the first special symbol display device 20, the second special symbol display device 21 and the normal symbol display device 22. Display device output processing is performed.

ステップS710において、メインCPU110aは、メインRAM110cの送信データ用記憶領域にセットされている制御コマンドを中間制御部180へ送信するコマンド送信処理を行う。なお、ステップS710のコマンド送信処理においても、上記と同様に、生成方式設定処理、検査値生成処理、および検査値付加処理を伴うが、詳細については後述する。   In step S710, the main CPU 110a performs a command transmission process of transmitting a control command set in the transmission data storage area of the main RAM 110c to the intermediate control unit 180. Note that the command transmission processing in step S710 also involves generation method setting processing, inspection value generation processing, and inspection value addition processing, as described above, but will be described in detail later.

ステップS800において、メインCPU110aは、ステップS100で退避した情報をメインCPU110aのレジスタに復帰させる。   In step S800, the main CPU 110a restores the information saved in step S100 to the register of the main CPU 110a.

次に、主制御部110の特図特電制御処理を説明する。
図12は、本実施形態に係る主制御部110による特図特電制御処理を示すフローチャートである。
Next, the special figure special electric control process of the main control unit 110 will be described.
FIG. 12 is a flowchart showing a special figure special power control process by the main control unit 110 according to the present embodiment.

ステップS301において、メインCPU110aは、特図特電処理データの値を読み込む。この「特図特電処理データ」は、特図特電制御処理の各サブルーチンが記憶された記憶領域のアドレスにそれぞれ割り当てられた値であり、特図特電処理データを参照することで、どのサブルーチンを処理するかを識別することができる。そして、特図特電処理データは、後述するように特図特電制御処理の各サブルーチンの中で必要に応じてセットされていき、その遊技において必要なサブルーチンが適宜処理されていくことになる。   In step S301, the main CPU 110a reads the value of the special figure special electricity processing data. This “Special Figure Special Electric Processing Data” is a value assigned to the address of the storage area in which each subroutine of the special figure special electric control process is stored, and which subroutine is processed by referring to the special figure special electric processing data. You can identify what to do. The special figure special electricity processing data is set as necessary in each subroutine of the special figure special electricity control processing as will be described later, and the subroutine necessary for the game is appropriately processed.

ステップS302において、メインCPU110aは、読み込んだ特図特電処理データから分岐アドレスを参照し、特図特電処理データ=0であれば特別図柄記憶判定処理(ステップS310)に処理を移し、特図特電処理データ=1であれば特別図柄変動処理(ステップS320)に処理を移し、特図特電処理データ=2であれば特別図柄停止処理(ステップS330)に処理を移し、特図特電処理データ=3であれば大当たり遊技処理(ステップS340)に処理を移し、特図特電処理データ=4であれば大当たり遊技終了処理(ステップS350)に処理を移し、特図特電処理データ=5であれば小当たり遊技処理(ステップS360)に処理を移す。   In step S302, the main CPU 110a refers to the branch address from the read special figure special processing data, and if special figure special electric treatment data = 0, the main CPU 110a moves the processing to the special symbol storage determination process (step S310). If data = 1, the process moves to the special symbol variation process (step S320), and if the special figure special electricity process data = 2, the process moves to the special symbol stop process (step S330), and the special figure special electricity process data = 3. If there is, the process is transferred to the jackpot game process (step S340). If the special figure special electric processing data = 4, the process is transferred to the jackpot game end process (step S350). The processing is moved to processing (step S360).

ステップS310の特別図柄記憶判定処理においては、メインCPU110aは、大当たり判定処理、停止表示する特別図柄の決定をする特別図柄決定処理、特別図柄の変動時間を決定する変動時間決定処理等を行う。ここで、図13を用いて、特別図柄記憶判定処理の具体的な内容を説明する。   In the special symbol memory determination process in step S310, the main CPU 110a performs a jackpot determination process, a special symbol determination process for determining a special symbol to be stopped and displayed, a variation time determination process for determining a variation time of the special symbol, and the like. Here, the specific content of the special symbol memory determination process will be described with reference to FIG.

図13は、本実施形態に係る主制御部110による特別図柄記憶判定処理におけるフローチャートである。   FIG. 13 is a flowchart in the special symbol memory determination process by the main control unit 110 according to the present embodiment.

ステップS311において、メインCPU110aは、第1特別図柄保留数(U1)記憶領域または第2特別図柄保留数(U2)記憶領域に1以上のデータがセットされているか否かを判定する。
そして、第1特別図柄保留数(U1)記憶領域または第2特別図柄保留数(U2)記憶領域のいずれの記憶領域にも1以上のデータがセットされていなければ、特図特電処理データ=0を保持したまま、今回の特別図柄変動処理を終了する。
一方、第1特別図柄保留数(U1)記憶領域または第2特別図柄保留数(U2)記憶領域に1以上のデータがセットされていれば、ステップS312に処理を移す。
In step S311, the main CPU 110a determines whether one or more data is set in the first special symbol hold count (U1) storage area or the second special symbol hold count (U2) storage area.
If one or more data is not set in any storage area of the first special symbol hold count (U1) storage area or the second special symbol hold count (U2) storage area, the special figure special electricity processing data = 0. The special symbol variation process of this time is terminated while holding.
On the other hand, if one or more data is set in the first special symbol hold count (U1) storage area or the second special symbol hold count (U2) storage area, the process proceeds to step S312.

ステップS312において、メインCPU110aは、大当たり判定処理を行う。
具体的には、第2特別図柄保留数(U2)記憶領域に1以上のデータがセットされている場合には、第2特別図柄保留数(U2)記憶領域に記憶されている値から1を減算した後、第2特別図柄乱数値記憶領域にある第1記憶部〜第4記憶部に記憶された各種乱数値を1つ前の記憶部にシフトさせる。このとき、既に第0記憶部に書き込まれていた各種乱数値は上書きされて消去されることとなる。そして、大当たり判定テーブルを参照して、第2特別図柄乱数値記憶領域の第0記憶部に記憶された特別図柄判定用乱数値が「大当たり」に対応する乱数値であるか、「小当たり」に対応する乱数値であるかの判定を行う。
In step S312, the main CPU 110a performs a jackpot determination process.
Specifically, when one or more data is set in the second special symbol hold count (U2) storage area, 1 is calculated from the value stored in the second special symbol hold count (U2) storage area. After the subtraction, the various random numbers stored in the first to fourth storage units in the second special symbol random number storage area are shifted to the previous storage unit. At this time, various random values already written in the 0th storage unit are overwritten and deleted. Then, referring to the jackpot determination table, whether the special symbol determination random number value stored in the 0th storage unit of the second special symbol random value storage area is a random value corresponding to “big hit” or “small hit” It is determined whether it is a random value corresponding to.

また、第2特別図柄保留数(U2)記憶領域に1以上のデータがセットされておらず、第1特別図柄保留数(U1)記憶領域に1以上のデータがセットされている場合には、第1特別図柄保留数(U1)記憶領域に記憶されている値から1を減算した後、第1特別図柄乱数値記憶領域にある第1記憶部〜第4記憶部に記憶された各種乱数値を1つ前の記憶部にシフトさせる。このときにも、既に第0記憶部に書き込まれていた各種乱数値は上書きされて消去されることとなる。そして、大当たり判定テーブルを参照して、第1特別図柄乱数値記憶領域の第0記憶部に記憶された特別図柄判定用乱数値が「大当たり」に対応する乱数値であるか、「小当たり」に対応する乱数値であるかの判定を行う。   In addition, when one or more data is not set in the second special symbol hold number (U2) storage area and one or more data is set in the first special symbol hold number (U1) storage area, Various random numbers stored in the first to fourth storage units in the first special symbol random number storage area after subtracting 1 from the value stored in the first special symbol hold number (U1) storage area Is shifted to the previous storage unit. Also at this time, various random numbers already written in the 0th storage unit are overwritten and deleted. Then, referring to the jackpot determination table, whether the special symbol determination random number value stored in the 0th storage unit of the first special symbol random number storage area is a random value corresponding to “big hit” or “small hit” It is determined whether it is a random value corresponding to.

本実施形態では、第1特別図柄乱数値記憶領域よりも第2特別図柄乱数値記憶領域に記憶された乱数値が優先してシフト(消化)されることになる。しかしながら、始動口に入賞した順序で、第1特別図柄記憶領域または第2特別図柄記憶領域をシフトさせてもよいし、第1特別図柄記憶領域を第2特別図柄記憶領域よりも優先させてシフトさせてもよい。   In the present embodiment, the random number value stored in the second special symbol random value storage area is shifted (digested) with priority over the first special symbol random value storage area. However, the first special symbol storage area or the second special symbol storage area may be shifted in the order of winning in the starting opening, and the first special symbol storage area is given priority over the second special symbol storage area. You may let them.

ステップS313において、メインCPU110aは、停止表示する特別図柄の種類を決定するための特別図柄決定処理を行う。
この特別図柄決定処理では、上記大当たり判定処理(ステップS312)において「大当たり」と判定された場合には、図柄決定テーブルを参照して、第1特別図柄乱数値記憶領域の第0記憶部に記憶された大当たり図柄用乱数値に基づいて大当たり図柄(特別図柄1〜特別図柄6)を決定する。また、上記大当たり判定処理(ステップS312)において「小当たり」と判定された場合には、図柄決定テーブルを参照して、第1特別図柄乱数値記憶領域の第0記憶部に記憶された小当たり図柄用乱数値に基づいて小当たり図柄(特別図柄A、特別図柄B)を決定する。また、上記大当たり判定処理(ステップS312)において「ハズレ」と判定された場合には、図柄決定テーブルを参照して、ハズレ図柄(特別図柄0)を決定する。
そして、決定した特別図柄に対応する停止図柄データを停止図柄データ記憶領域に記憶する。
In step S313, the main CPU 110a performs a special symbol determination process for determining the type of special symbol to be stopped and displayed.
In this special symbol determination process, when it is determined as “big hit” in the jackpot determination process (step S312), the symbol determination table is referred to and stored in the 0th storage unit of the first special symbol random value storage area. The jackpot symbol (special symbol 1 to special symbol 6) is determined based on the random number value for the jackpot symbol. In addition, when it is determined as “small hit” in the jackpot determination process (step S312), the small hit stored in the 0th storage unit of the first special symbol random value storage area with reference to the symbol determination table Based on the symbol random number value, the small hit symbol (special symbol A, special symbol B) is determined. Further, when it is determined as “losing” in the jackpot determination process (step S312), the symbol determining table (special symbol 0) is determined with reference to the symbol determining table.
Then, stop symbol data corresponding to the determined special symbol is stored in the stop symbol data storage area.

ステップS314において、メインCPU110aは、特別図柄の変動時間決定処理を行う。
具体的には、変動パターン決定テーブルを参照して、第1特別図柄乱数値記憶領域の第0記憶部に記憶されたリーチ判定用乱数値および特図変動用乱数値に基づいて、特別図柄の変動パターンを決定する。その後、決定した特別図柄の変動パターンに対応する特別図柄の変動時間を決定する。そして、決定した特別図柄の変動時間に対応するカウンタを特別図柄時間カウンタにセットする処理を行う。
In step S314, the main CPU 110a performs special symbol variation time determination processing.
Specifically, referring to the variation pattern determination table, based on the reach determination random value and the special diagram variation random value stored in the 0th storage unit of the first special symbol random value storage area, the special symbol Determine the variation pattern. Thereafter, the variation time of the special symbol corresponding to the determined variation pattern of the special symbol is determined. Then, a process of setting a counter corresponding to the determined variation time of the special symbol in the special symbol time counter is performed.

ステップS315において、メインCPU110aは、第1特別図柄表示装置20または第2特別図柄表示装置21に特別図柄の変動表示(LEDの点滅)を行わせるための変動表示データを所定の処理領域にセットする。これにより、所定の処理領域に変動表示データがセットされていると、上記ステップS600でLEDの点灯または消灯のデータが適宜作成され、作成されたデータがステップS700において出力されることで、第1特別図柄表示装置20または第2特別図柄表示装置21の変動表示が行われる。
更に、メインCPU110aは、特別図柄の変動表示が開始されるときに、上記ステップS314で決定された特別図柄の変動パターンに対応する特別図柄の変動パターン指定コマンド(第1特別図柄用変動パターン指定コマンドまたは第2特別図柄用変動パターン指定コマンド)をメインRAM110cの送信データ用記憶領域にセットする。
In step S315, the main CPU 110a sets, in a predetermined processing area, variation display data for causing the first special symbol display device 20 or the second special symbol display device 21 to perform special symbol variation display (LED blinking). . As a result, when the variable display data is set in the predetermined processing area, the LED lighting / extinguishing data is appropriately created in step S600, and the created data is output in step S700. Variation display of the special symbol display device 20 or the second special symbol display device 21 is performed.
Further, the main CPU 110a, when the special symbol variation display is started, the special symbol variation pattern designation command (the first special symbol variation pattern designation command) corresponding to the special symbol variation pattern determined in step S314. Alternatively, the second special symbol variation pattern designation command) is set in the transmission data storage area of the main RAM 110c.

ステップS316において、メインCPU110aは、特図特電処理データ=0から特図特電処理データ=1にセットして、特別図柄変動処理のサブルーチンに移す準備を行い、特別図柄記憶判定処理を終了する。   In step S316, the main CPU 110a sets the special symbol special electricity processing data = 0 to the special symbol special electric treatment data = 1, prepares to move to the special symbol variation processing subroutine, and ends the special symbol memory determination processing.

再び、図12に示す特図特電制御処理について説明を戻すことにする。
ステップS320の特別図柄変動処理においては、メインCPU110aは、特別図柄の変動時間が経過したか否かを判定する処理を行う。
具体的には、ステップS314で決定された特別図柄の変動時間が経過したか(特別図柄時間カウンタ=0)否かを判定し、特別図柄の変動時間が経過していないと判定した場合には、特図特電処理データ=1を保持したまま、今回の特別図柄変動処理を終了する。なお、上記ステップS314でセットされた特別図柄の変動時間のカウンタは、上記ステップS110において減算処理されていく。
Again, the description of the special figure special electric control process shown in FIG. 12 will be returned.
In the special symbol variation process of step S320, the main CPU 110a performs a process of determining whether or not the special symbol variation time has elapsed.
Specifically, it is determined whether or not the variation time of the special symbol determined in step S314 has elapsed (special symbol time counter = 0), and if it is determined that the variation time of the special symbol has not elapsed The special symbol variation process is terminated while the special symbol special electricity processing data = 1 is held. Note that the special symbol variation time counter set in step S314 is subtracted in step S110.

特別図柄の変動時間が経過したと判定すれば、上記ステップS313で決定された特別図柄を第1特別図柄表示装置20または第2特別図柄表示装置21に停止表示させる。これにより、第1特別図柄表示装置20または第2特別図柄表示装置21に特別図柄が停止表示され、遊技者に大当たりの判定結果が報知されることとなる。
また、高確率遊技回数(X)>0のときには高確率遊技回数(X)カウンタから1を減算して更新し、高確率遊技回数(X)=0となれば、高確率遊技フラグをクリアする。
最後に、特図特電処理データ=1から特図特電処理データ=2にセットして、特別図柄停止処理のサブルーチンに移す準備を行い、特別図柄変動処理を終了する。
If it is determined that the variation time of the special symbol has elapsed, the special symbol determined in step S313 is stopped and displayed on the first special symbol display device 20 or the second special symbol display device 21. Thereby, the special symbol is stopped and displayed on the first special symbol display device 20 or the second special symbol display device 21, and the player is notified of the jackpot determination result.
When the number of high probability games (X)> 0, 1 is subtracted from the high probability game number (X) counter and updated. When the number of high probability games (X) = 0, the high probability game flag is cleared. .
Finally, the special symbol special power processing data = 1 is set to the special symbol special power processing data = 2, preparation is made to move to a special symbol stop processing subroutine, and the special symbol variation processing is terminated.

ステップS330の特別図柄停止処理においては、メインCPU110aは、停止表示された特別図柄が「大当たり図柄」であるか、「小当たり図柄」であるか、「ハズレ図柄」であるかを判定する処理を行う。
そして、大当たり図柄と判定された場合には、遊技状態記憶領域に記憶されているデータを参照し、現在の遊技状態を示すデータを遊技状態バッファにセットする。その後に、遊技状態記憶領域(高確率遊技フラグ記憶領域等)に記憶されているデータ(高確率遊技フラグ)、高確率遊技回数(X)カウンタをクリアする。更に、特図特電処理データ=2から特図特電処理データ=3にセットして、大当たり遊技処理のサブルーチンに移す準備を行い、特別図柄停止処理を終了する。
In the special symbol stop process in step S330, the main CPU 110a performs a process of determining whether the special symbol that is stopped and displayed is a “big hit symbol”, a “small bonus symbol”, or a “losing symbol”. Do.
When it is determined that the game is a jackpot symbol, the data stored in the gaming state storage area is referred to and data indicating the current gaming state is set in the gaming state buffer. Thereafter, the data (high probability game flag) and high probability game count (X) counter stored in the game state storage area (high probability game flag storage area or the like) are cleared. Furthermore, the special figure special power processing data = 2 is set to the special figure special electric processing data = 3, preparation is made to move to the jackpot game processing subroutine, and the special symbol stop processing is ended.

また、小当たり図柄と判定された場合には、遊技状態記憶領域に記憶されているデータはクリアせずに、特図特電処理データ=2から特図特電処理データ=5にセットして、小当たり遊技処理のサブルーチンに移す準備を行い、特別図柄停止処理を終了する。
一方、ハズレ図柄と判定された場合には、特図特電処理データ=2から特図特電処理データ=0にセットして、特別図柄記憶判定処理のサブルーチンに移す準備を行い、特別図柄停止処理を終了する。
In addition, when it is determined that the small winning symbol, the data stored in the game state storage area is not cleared, and the special figure special electric processing data = 2 to the special figure special electric treatment data = 5 is set. The special symbol stop process is completed by making preparations for transferring to a winning game process subroutine.
On the other hand, if it is determined that the symbol is a lost symbol, the special symbol special electric processing data = 2 is set to special special electric symbol processing data = 0, and the special symbol memory determination processing subroutine is prepared for the special symbol stop processing. finish.

ステップS340の大当たり遊技処理においては、メインCPU110aは、上記長当たりまたは短当たりのいずれの大当たりを実行させるかを決定し、決定した大当たりを制御する処理を行う。
具体的には、まず、特別電動役物作動態様決定テーブルを参照し、上記ステップS313で決定された大当たり図柄の種類(停止図柄データ)に基づいて、大当たりの開放態様を決定する。
In the jackpot game process of step S340, the main CPU 110a determines which jackpot of the long hit or short hit is executed, and performs a process of controlling the determined jackpot.
Specifically, first, with reference to the special electric accessory operating mode determination table, the jackpot release mode is determined based on the type of jackpot symbol (stop symbol data) determined in step S313.

次に、決定した大当たりの開放態様を実行させるために、大入賞口開放態様テーブルを参照し、大当たりの種類に応じた開放時間を特別遊技タイマカウンタにセットするとともに、第1大入賞口開閉ソレノイド16c(または第2大入賞口開閉ソレノイド17c)の駆動データを出力して第1大入賞口開閉扉16b(または第2大入賞口開閉扉17b)を開放させる。このとき、ラウンド遊技回数(R)記憶領域に1を加算する。
この開放中に規定個数の遊技球が入球するか、大入賞口の開放時間が経過すると(大入賞口入球数(C)=9または特別遊技タイマカウンタ=0である)と、第1大入賞口開閉ソレノイド16c(または第2大入賞口開閉ソレノイド17c)の駆動データの出力を停止して第1大入賞口開閉扉16b(または第2大入賞口開閉扉17b)を閉鎖させる。これにより、1回のラウンド遊技が終了する。このラウンド遊技の制御を繰り返し15回行う。
Next, in order to execute the determined jackpot opening mode, the bonus game opening mode table is referred to, the opening time corresponding to the type of jackpot is set in the special game timer counter, and the first jackpot opening / closing solenoid The drive data of 16c (or the second big prize opening / closing solenoid 17c) is output to open the first big prize opening / closing door 16b (or the second big prize opening / closing door 17b). At this time, 1 is added to the round game count (R) storage area.
When a predetermined number of game balls enter during the opening or when the opening time of the big prize opening has elapsed (the number of the big prize opening (C) = 9 or the special game timer counter = 0), The output of the drive data of the big prize opening / closing solenoid 16c (or the second big prize opening / closing solenoid 17c) is stopped, and the first big prize opening / closing door 16b (or the second big prize opening / closing door 17b) is closed. Thereby, one round game is completed. This round game control is repeated 15 times.

15回のラウンド遊技が終了すると(ラウンド遊技回数(R)=15)、ラウンド遊技回数(R)記憶領域および大入賞口入球数(C)記憶領域に記憶されているデータをクリアするとともに、特図特電処理データ=3から特図特電処理データ=4にセットして、大当たり遊技終了処理のサブルーチンに移す準備を行い、大当たり遊技処理を終了する。   When the 15 round games are completed (round game count (R) = 15), the data stored in the round game count (R) storage area and the number of winning prize entrance (C) storage areas are cleared, The special figure special electric processing data = 3 is set to the special figure special electric treatment data = 4, preparation is made to move to the big hit game end processing subroutine, and the big hit game processing is ended.

ステップS350の大当たり遊技終了処理においては、メインCPU110aは、高確率遊技状態または低確率遊技状態のいずれかの確率遊技状態を決定する処理を行う。
具体的には、大当たり遊技終了時設定データテーブルを参照し、遊技状態バッファに記憶されているデータと上記ステップS313で決定された大当たり図柄の種類(停止図柄データ)とに基づいて、高確率遊技フラグの設定、高確率遊技回数(X)の設定を行う。例えば、特別図柄1であれば、高確率遊技フラグ記憶領域に高確率遊技フラグをセットし、高確率遊技回数(X)カウンタに10000回をセットする。
その後、特図特電処理データ=4から特図特電処理データ=0にセットして、特別図柄記憶判定処理のサブルーチンに移す準備を行い、大当たり遊技終了処理を終了する。
In the jackpot game end process of step S350, the main CPU 110a performs a process of determining a probability game state of either a high probability game state or a low probability game state.
Specifically, with reference to the jackpot game end setting data table, based on the data stored in the game state buffer and the type of jackpot symbol (stop symbol data) determined in step S313, the high probability game Set a flag and set the number of high probability games (X). For example, in the case of the special symbol 1, the high probability game flag is set in the high probability game flag storage area, and the high probability game number (X) counter is set to 10,000 times.
After that, the special symbol special power processing data = 4 is set to the special symbol special power processing data = 0, preparation is made to move to a special symbol memory determination processing subroutine, and the jackpot game end processing is terminated.

ステップS360の小当たり遊技処理においては、メインCPU110aは、まず、特別電動役物作動態様決定テーブルを参照し、上記ステップS313で決定された小当たり図柄の種類(停止図柄データ)に基づいて、小当たりの開放態様を決定する。
次に、決定した小当たりの開放態様を実行させるために、大入賞口開放態様テーブルを参照し、小当たりの開放時間を特別遊技タイマカウンタにセットするとともに、第2大入賞口開閉ソレノイド17cの駆動データを出力して第2大入賞口開閉扉17bを開放させる。このとき、開放回数(K)記憶領域に1を加算する。
小当たりの開放時間が経過する(特別遊技タイマカウンタ=0)と、第2大入賞口開閉ソレノイド17cの駆動データの出力を停止して第2大入賞口開閉扉17bを閉鎖させる。この第2大入賞口開閉扉17bの開閉制御を繰り返し15回行う。
In the small hit game process of step S360, the main CPU 110a first refers to the special electric accessory operation mode determination table, and based on the type of small hit symbol (stop symbol data) determined in step S313 above, Determine the opening mode.
Next, in order to execute the determined small winning opening mode, the large winning opening opening mode table is referred to, and the small winning opening time is set in the special game timer counter, and the second large winning port opening / closing solenoid 17c is set. The drive data is output to open the second big prize opening / closing door 17b. At this time, 1 is added to the number-of-releases (K) storage area.
When the small hit opening time elapses (special game timer counter = 0), the output of the drive data of the second big prize opening / closing solenoid 17c is stopped and the second big prize opening opening / closing door 17b is closed. The opening / closing control of the second big prize opening opening / closing door 17b is repeated 15 times.

そして、第2大入賞口開閉扉17bの開閉制御が15回行われるか、第2大入賞口17に規定個数の遊技球が入球する(開放回数(K)=15または大入賞口入球数(C)=9である)と、小当たり遊技を終了させるため、第2大入賞口開閉ソレノイド17cの駆動データの出力を停止させ、開放回数(K)記憶領域および大入賞口入球数(C)記憶領域に記憶されているデータをクリアするとともに、特図特電処理データ=5から特図特電処理データ=0にセットして、特別図柄記憶判定処理のサブルーチンに移す準備を行い、小当たり遊技処理を終了する。   Then, the opening / closing control of the second grand prize opening / closing door 17b is performed 15 times, or a predetermined number of game balls enter the second big prize opening 17 (the number of times of opening (K) = 15 or the grand prize opening entrance) Number (C) = 9), in order to end the small hit game, the output of the drive data of the second large winning opening / closing solenoid 17c is stopped, the number of times of opening (K) storage area and the number of winning winning holes (C) Clear the data stored in the storage area, set special figure special electricity processing data = 5 to special figure special electricity treatment data = 0, and prepare to move to a special symbol memory judgment processing subroutine. The winning game process is terminated.

[主制御部の認証処理に関する制御処理]
以下、本発明の実施形態に係る遊技機1の主制御部110の認証処理に関する制御処理について説明する。まず、主制御部110のブート処理について説明する。
遊技機1に電源が投入されると、主制御部110にシステムリセットが発生し、メインCPU110aは、ブートROM110dに予め記憶されたブート処理用プログラムに基づいて、主制御部110のブート処理を行う。
図14は、本実施形態に係る主制御部110によるブート処理を示すフローチャートである。
[Control processing related to authentication processing of the main control unit]
Hereinafter, the control process regarding the authentication process of the main control unit 110 of the gaming machine 1 according to the embodiment of the present invention will be described. First, the boot process of the main control unit 110 will be described.
When the gaming machine 1 is powered on, a system reset occurs in the main control unit 110, and the main CPU 110a performs a boot process of the main control unit 110 based on a boot processing program stored in advance in the boot ROM 110d. .
FIG. 14 is a flowchart showing a boot process by the main control unit 110 according to the present embodiment.

ステップS51において、メインCPU110aは、内部状態を割込禁止に設定する。
ステップS52において、メインCPU110aは、自身の初期化後、メインCPU110a自身が正常に作動可能かどうかを確認する自己診断処理を行う。自己診断処理の結果、正常に作動可能であればステップS53に処理を移し、正常に作動可能でなければ、その後の処理を行わない。
In step S51, the main CPU 110a sets the internal state to interrupt prohibition.
In step S52, the main CPU 110a performs a self-diagnosis process for checking whether or not the main CPU 110a itself can operate normally after initialization. As a result of the self-diagnosis process, if the normal operation is possible, the process proceeds to step S53, and if the normal diagnosis is not possible, the subsequent processing is not performed.

ステップS53において、メインCPU110aは、内蔵回路等への初期値設定処理を行う。具体的には、メインCPU110aは、スタックポインタにスタックポイント指定アドレスを設定し、内蔵レジスタの初期化を行うとともに、ワンチップマイコン110mの内蔵回路や周辺回路等の初期化、入出力ポートの初期化を行う。そして、メインCPU110aは、初期値を必要とするこれらの内蔵回路等へ各種の初期値を設定する。このとき、メインCPU110aは、検査値生成部500の各構成部に対しても同様の処理を施して、検査値生成部500に対する初期値設定処理を行う。   In step S53, the main CPU 110a performs an initial value setting process for a built-in circuit or the like. Specifically, the main CPU 110a sets the stack point designation address in the stack pointer, initializes the internal register, initializes the internal circuit and peripheral circuits of the one-chip microcomputer 110m, and initializes the input / output ports. I do. Then, the main CPU 110a sets various initial values to these built-in circuits that require initial values. At this time, the main CPU 110a performs the same process on each component of the inspection value generation unit 500 to perform an initial value setting process on the inspection value generation unit 500.

ステップS54において、メインCPU110aは、検査値生成部500に対してHWパラメータ設定処理を行う。具体的には、メインCPU110aは、検査値生成部500に対するHWパラメータを読み出すための読み出し信号をメインROM110bへ出力する。そして、メインCPU110aは、当該読み出し信号によりメインROM110bから出力されたHWパラメータを、バスを介して取り込む。   In step S54, the main CPU 110a performs HW parameter setting processing on the inspection value generation unit 500. Specifically, the main CPU 110a outputs a read signal for reading the HW parameter for the inspection value generation unit 500 to the main ROM 110b. Then, the main CPU 110a takes in the HW parameters output from the main ROM 110b by the read signal via the bus.

続いて、メインCPU110aは、取り込んだHWパラメータを検査値生成部500の決定手段540へ書き込むための書き込み信号を出力する。そして、メインCPU110aは、当該書き込み信号によりメインCPU110aから出力されたHWパラメータを、バスを介して決定手段540の決定回路542へセットする。なお、ステップS54のHWパラメータ設定処理は、メインCPU110aが行う初期値設定処理の中でも、検査値生成部500にHWパラメータを設定する処理を特筆したものであるため、初期値設定処理の一環として、ステップS53の中で行うように構成することも可能である。   Subsequently, the main CPU 110a outputs a write signal for writing the fetched HW parameter to the determination unit 540 of the inspection value generation unit 500. Then, the main CPU 110a sets the HW parameter output from the main CPU 110a by the write signal to the determination circuit 542 of the determination unit 540 via the bus. Note that the HW parameter setting process in step S54 is a special feature of the process of setting the HW parameter in the test value generation unit 500 among the initial value setting processes performed by the main CPU 110a. Therefore, as part of the initial value setting process, It is also possible to configure so as to be performed in step S53.

ステップS55において、検査値生成部500は、生成方式設定処理を行う。具体的には、決定手段540の決定回路542は、セットされたHWパラメータが、予め用意された複数の生成方式のうち、どの生成方式に対応した値であるかを確認する。そして、決定回路542は、セットされたHWパラメータに対応する生成方式を示す生成方式情報のSの値を、デフォルトの値として生成方式情報記憶領域(S)にセットする。そして、決定回路542は、生成方式情報記憶領域(S)にセットされた値に基づいて、生成手段520の生成回路521を担う複数の演算回路のうちの特定の演算回路で生成された誤り検査値が出力されるように、生成手段520の制御回路523へ生成方式制御信号を出力する。生成手段520の制御回路523は、当該生成方式制御信号に対応する入力選択信号を入力選択回路524へ出力する。   In step S55, the inspection value generation unit 500 performs generation method setting processing. Specifically, the determination circuit 542 of the determination unit 540 checks which generation method corresponds to the set HW parameter among a plurality of generation methods prepared in advance. Then, the determination circuit 542 sets the S value of the generation method information indicating the generation method corresponding to the set HW parameter as a default value in the generation method information storage area (S). Then, the determination circuit 542 checks the error generated by a specific arithmetic circuit among a plurality of arithmetic circuits serving as the generation circuit 521 of the generation unit 520 based on the value set in the generation method information storage area (S). The generation method control signal is output to the control circuit 523 of the generation unit 520 so that the value is output. The control circuit 523 of the generation unit 520 outputs an input selection signal corresponding to the generation method control signal to the input selection circuit 524.

これによって、生成手段520は、検査値生成処理の際に、生成方式情報記憶領域(S)に記憶された生成方式情報に対応した生成回路521によって生成された誤り検査値を付加手段530へ出力することができ、付加手段530は、検査値付加処理の際に、当該生成方式で生成された誤り検査値をバッファ手段510から出力された制御コマンドに付加することができる。本処理を終了すると、ブート処理が終了する。   Thus, the generation unit 520 outputs the error check value generated by the generation circuit 521 corresponding to the generation method information stored in the generation method information storage area (S) to the addition unit 530 during the check value generation process. The adding unit 530 can add the error check value generated by the generation method to the control command output from the buffer unit 510 during the check value adding process. When this process ends, the boot process ends.

次に、生成方式設定処理、検査値生成処理、および検査値付加処理を含む主制御部110のコマンド送信処理について説明する。
図15は、本実施形態に係る主制御部110におけるコマンド送信処理を示すフローチャートである。なお、図15の各ステップにおいて、中括弧{}内の表記は、検査値生成部500の決定回路542に設けられた、生成個数記憶領域(P)、変更タイミング情報記憶領域(Mi)、および生成方式情報記憶領域(S)への処理を概説するためのものである。
Next, command transmission processing of the main control unit 110 including generation method setting processing, inspection value generation processing, and inspection value addition processing will be described.
FIG. 15 is a flowchart showing command transmission processing in the main control unit 110 according to the present embodiment. In each step of FIG. 15, the notation in curly braces {} indicates the generated number storage area (P), change timing information storage area (Mi), and This is to outline the processing for the generation method information storage area (S).

主制御部110のブート処理を含む初期化処理を行った後、コマンド送信処理の実行タイミングとなると、メインCPU110aは、メインRAM110cの送信データ用記憶領域にセットされた制御コマンド(P)を、検査値生成部500を介して送信部550へ出力し、中間制御部180へ送信させる。   After the initialization process including the boot process of the main control unit 110, when the execution timing of the command transmission process is reached, the main CPU 110a checks the control command (P) set in the transmission data storage area of the main RAM 110c. The data is output to the transmission unit 550 via the value generation unit 500 and transmitted to the intermediate control unit 180.

ステップS71において、メインCPU110aは、メインRAM110cの生成個数記憶領域(P)の値を1加算して更新する。
ステップS72において、メインCPU110aは、送信データ用記憶領域にセットされた制御コマンド(P)が制御コマンド(1)に該当するか否かを判定する。具体的には、メインCPU110aは、生成個数記憶領域(P)の値を参照し、P=1であるか否かを判定する。P=1であれば、ステップS73に処理を移し、P=1でなければ、ステップS75に処理を移す。
In step S71, the main CPU 110a adds 1 to the value of the generated number storage area (P) of the main RAM 110c and updates it.
In step S72, the main CPU 110a determines whether or not the control command (P) set in the transmission data storage area corresponds to the control command (1). Specifically, the main CPU 110a refers to the value of the generated number storage area (P) and determines whether P = 1. If P = 1, the process proceeds to step S73, and if P = 1, the process proceeds to step S75.

ステップS73において、メインCPU110aは、メインROM110bに記憶されている固有情報を読み出す。そして、メインCPU110aは、読み出した固有情報を検査値生成部500へ出力する。
ステップS74において、検査値生成部500は、メインCPU110aから出力された固有情報を、生成手段520の格納回路522を担う各格納回路(P−1)〜(P−N)に格納し、初期設定値として設定する。また、検査値生成部500は、メインCPU110aから出力された固有情報を、生成手段520の生成回路521を担う記憶回路α、βに記憶し、初期設定値として設定する。具体的には、検査値生成部500のバッファ手段510は、メインCPU110aからバスを介して固有情報をデータバッファ511へ取り込み、生成手段520へ出力する。生成手段520は、データバッファ511から出力された固有情報を、格納回路522を担う各格納回路(P−1)〜(P−N)へ格納するとともに、生成回路521を担う記憶回路α、βへ記憶する。
In step S73, the main CPU 110a reads the unique information stored in the main ROM 110b. Then, the main CPU 110a outputs the read unique information to the inspection value generation unit 500.
In step S74, the test value generation unit 500 stores the unique information output from the main CPU 110a in each of the storage circuits (P-1) to (PN) serving as the storage circuit 522 of the generation unit 520, and performs initial setting. Set as a value. Further, the test value generation unit 500 stores the unique information output from the main CPU 110a in the storage circuits α and β serving as the generation circuit 521 of the generation unit 520 and sets it as an initial setting value. Specifically, the buffer unit 510 of the inspection value generation unit 500 takes in the unique information from the main CPU 110a via the bus to the data buffer 511 and outputs it to the generation unit 520. The generation unit 520 stores the unique information output from the data buffer 511 in each of the storage circuits (P-1) to (PN) serving as the storage circuit 522, and the storage circuits α and β serving as the generation circuit 521. Remember me.

ステップS75において、メインCPU110aは、送信データ用記憶領域にセットされた制御コマンド(P)を検査値生成部500のバッファ手段510へ書き込む。具体的には、メインCPU110aは、バッファ手段510へ制御コマンド(P)を書き込むための書き込み信号およびアドレスデータを出力するとともに、送信データ用記憶領域にセットされた制御コマンド(P)をデータバスへ出力する。バッファ手段510の制御回路512は、メインCPU110aから出力された書き込み信号の入力に基づいて、バッファ手段510のデータバッファ511へ作動許可信号を出力する。データバッファ511は、制御回路512から出力された作動許可信号の入力に基づいて、データバス上の制御コマンド(P)を取り込む。   In step S75, the main CPU 110a writes the control command (P) set in the transmission data storage area to the buffer means 510 of the inspection value generation unit 500. Specifically, the main CPU 110a outputs a write signal and address data for writing the control command (P) to the buffer means 510, and sends the control command (P) set in the transmission data storage area to the data bus. Output. The control circuit 512 of the buffer unit 510 outputs an operation permission signal to the data buffer 511 of the buffer unit 510 based on the input of the write signal output from the main CPU 110a. The data buffer 511 takes in the control command (P) on the data bus based on the input of the operation permission signal output from the control circuit 512.

ステップS76において、バッファ手段510は、取り込んだ制御コマンド(P)を、決定手段540、生成手段520、および付加手段530へ出力する。具体的には、バッファ手段510の制御回路512は、メインCPU110aから出力された書き込み信号の入力から所定時間遅延して、データバッファ511へ作動許可信号を出力する。データバッファ511は、当該作動許可信号の入力に基づいて、取り込んだ制御コマンド(P)を決定手段540、生成手段520、および付加手段530へ出力する。続いて、制御回路512は、データバッファ511から出力された制御コマンドが、決定手段540、生成手段520、および付加手段530で入力可能となるよう、これらの手段に対して作動許可信号を出力する。   In step S76, the buffer unit 510 outputs the fetched control command (P) to the determination unit 540, the generation unit 520, and the addition unit 530. Specifically, the control circuit 512 of the buffer unit 510 outputs an operation permission signal to the data buffer 511 with a predetermined time delay from the input of the write signal output from the main CPU 110a. The data buffer 511 outputs the fetched control command (P) to the determination unit 540, the generation unit 520, and the addition unit 530 based on the input of the operation permission signal. Subsequently, the control circuit 512 outputs an operation permission signal to these means so that the control command output from the data buffer 511 can be input by the determining means 540, the generating means 520, and the adding means 530. .

ステップS77において、決定手段540は、バッファ手段510から出力された作動許可信号の入力に基づいて、制御コマンド(P)を取り込み、当該制御コマンド(P)が、予め取り決められた変更条件を満たす制御コマンドであるか否かを判定する。具体的には、決定手段540の判定回路541は、当該制御コマンド(P)の種別が、所定の制御コマンドの種別であるか否かを判定する。判定回路541は、当該制御コマンド(P)が、所定の制御コマンドであれば、バッファ手段510から出力された制御コマンドが変更条件を満たす制御コマンドであることを示す判定結果信号を決定回路542へ出力し、ステップS78に処理を移す。一方、判定回路541は、当該制御コマンド(P)が、所定の制御コマンドでなければ、バッファ手段510から出力された制御コマンドが変更条件を満たす制御コマンドでないことを示す判定結果信号を決定回路542へ出力し、ステップS78に処理を移す。   In step S77, the determining means 540 takes in the control command (P) based on the input of the operation permission signal output from the buffer means 510, and the control command (P) is a control that satisfies the predetermined change condition. Determine if it is a command. Specifically, the determination circuit 541 of the determination unit 540 determines whether or not the type of the control command (P) is a predetermined control command type. If the control command (P) is a predetermined control command, the determination circuit 541 sends a determination result signal indicating that the control command output from the buffer means 510 is a control command that satisfies the change condition to the determination circuit 542. Output, and the process proceeds to step S78. On the other hand, if the control command (P) is not a predetermined control command, the determination circuit 541 determines a determination result signal indicating that the control command output from the buffer unit 510 is not a control command that satisfies the change condition. The process proceeds to step S78.

ステップS78において、決定回路542は、判定回路541から出力された判定結果信号の入力に応じて、決定回路542に設けられた生成個数記憶領域(P)の値を1加算して更新する。これにより、決定回路542は、バッファ手段510から出力された制御コマンド(P)の生成個数Pを把握することができる。
ステップS79において、決定回路542は、判定回路541から出力された判定結果信号が、バッファ手段510から出力された制御コマンド(P)が、変更条件を満たす制御コマンドであることを示す判定結果信号であるか否かを確認する。決定回路542は、判定結果信号の内容が、当該制御コマンド(P)が変更条件を満たす制御コマンドであることを示していれば、ステップS80に処理を移す。一方、決定回路542は、判定結果信号の内容が、当該制御コマンド(P)が変更条件を満たす制御コマンドでないことを示していれば、ステップS81に処理を移す。
In step S78, the determination circuit 542 updates the value of the generated number storage area (P) provided in the determination circuit 542 by adding 1 in accordance with the input of the determination result signal output from the determination circuit 541. Thereby, the determination circuit 542 can grasp the number P of generated control commands (P) output from the buffer unit 510.
In step S79, the determination circuit 542 is a determination result signal indicating that the determination result signal output from the determination circuit 541 is that the control command (P) output from the buffer unit 510 satisfies the change condition. Check if it exists. If the content of the determination result signal indicates that the control command (P) is a control command that satisfies the change condition, the determination circuit 542 moves the process to step S80. On the other hand, if the content of the determination result signal indicates that the control command (P) is not a control command that satisfies the change condition, the determination circuit 542 moves the process to step S81.

ステップS80において、決定回路542は、バッファ手段510から変更条件を満たす制御コマンドが出力されると、生成方式を変更するタイミング、すなわち、生成方式情報記憶領域(S)に記憶されたSの値を変更するタイミングを設定する。具体的には、決定回路542は、変更タイミング情報Miを設定するべく、自身の変更タイミング情報記憶領域(Mi)に対して、現在の生成個数記憶領域(P)の値に予め取り決められたMoの値を加算した値(P+Mo)を記憶する。
ステップS81において、決定回路542は、現在が生成方式を変更するタイミングであるか否かを判定する。具体的には、決定回路542は、変更タイミング情報記憶領域(Mi)の最小値Mminと現在の生成個数記憶領域(P)の値とを比較する。そして、決定回路542は、両者が一致していれば、現在は変更タイミングであると判定し、ステップS82に処理を移し、両者が一致していなければ、現在は変更タイミングでないと判定し、ステップS84に処理を移す。
In step S80, when a control command that satisfies the change condition is output from the buffer unit 510, the determination circuit 542 determines the timing of changing the generation method, that is, the value of S stored in the generation method information storage area (S). Set the timing to change. Specifically, the decision circuit 542 sets Mo in advance to the value of the current generated number storage area (P) with respect to its own change timing information storage area (Mi) in order to set the change timing information Mi. A value obtained by adding the values (P + Mo) is stored.
In step S81, the determination circuit 542 determines whether it is time to change the generation method. Specifically, the determination circuit 542 compares the minimum value Mmin of the change timing information storage area (Mi) with the value of the current generated number storage area (P). If the two match, the determination circuit 542 determines that the current timing is the change timing, moves to step S82, and if both do not match, the determination circuit 542 determines that the current timing is not the change timing. The processing is moved to S84.

ステップS82において、決定回路542は、生成方式を変更するべく、生成方式情報記憶領域(S)に記憶されたSの値を変更する。具体的には、Sの値を予め取り決められた変更方式に従って変更し、変更後のSの値であるS’を生成方式情報記憶領域(S)へ記憶する。そして、決定回路542は、変更後の生成方式を生成手段520へ設定するべく、変更後の生成方式情報記憶領域(S)の値に基づく生成方式制御信号を、生成手段520の制御回路523へ出力する。
ステップS83において、生成手段520の制御回路523は、決定回路542から出力された生成方式制御信号に基づいて、生成手段520の生成回路521を担う複数の演算回路のうちの特定の演算回路と生成手段520の入力選択回路524との接続のみを有効とする入力選択信号を、入力選択回路524へ出力する。入力選択回路524は、当該入力選択信号に基づいて、特定の演算回路との接続の設定を行う。生成手段520は、入力選択回路524へ当該入力選択信号が入力されることで、変更後の生成方式に応じた当該特定の演算回路で生成された誤り検査値を、付加手段530へ出力することができる。
In step S82, the determination circuit 542 changes the value of S stored in the generation method information storage area (S) in order to change the generation method. Specifically, the value of S is changed according to a predetermined change method, and S ′, which is the changed value of S, is stored in the generation method information storage area (S). Then, the determination circuit 542 sends a generation method control signal based on the value of the changed generation method information storage area (S) to the control circuit 523 of the generation unit 520 in order to set the changed generation method in the generation unit 520. Output.
In step S <b> 83, the control circuit 523 of the generation unit 520 generates a specific operation circuit and a generation among a plurality of operation circuits that bear the generation circuit 521 of the generation unit 520 based on the generation method control signal output from the determination circuit 542. An input selection signal that enables only the connection of the means 520 with the input selection circuit 524 is output to the input selection circuit 524. The input selection circuit 524 sets connection with a specific arithmetic circuit based on the input selection signal. The generation unit 520 outputs the error check value generated by the specific arithmetic circuit according to the changed generation method to the addition unit 530 when the input selection signal is input to the input selection circuit 524. Can do.

ステップS84において、生成手段520は、バッファ手段510から出力された作動許可信号の入力に基づいて、制御コマンド(P)を取り込んで格納するとともに、過去に格納しておいた制御コマンド(P−N)を生成回路521へ出力する。具体的には、生成手段520の制御回路523は、バッファ手段510の制御回路512から出力された作動許可信号の入力に基づいて、格納回路522へシフト処理信号を出力する。格納回路522は、制御回路523から出力されたシフト処理信号の入力に基づいて、各格納回路(P−1)〜(P−N)のうち、最終段の格納回路(P−N)から、当該格納回路に格納しておいた制御コマンド(P−N)を、生成回路521へ出力する。これとともに、格納回路522は、格納回路(P−1)〜(P−N)に格納された各制御コマンドを次段へ順次シフトするとともに、バッファ手段510のデータバッファ511から出力された制御コマンド(P)を初段の格納回路(P−1)に新たに取り込んで格納する。   In step S84, the generation unit 520 captures and stores the control command (P) based on the input of the operation permission signal output from the buffer unit 510, and also stores the control command (PN) stored in the past. Is output to the generation circuit 521. Specifically, the control circuit 523 of the generation unit 520 outputs a shift processing signal to the storage circuit 522 based on the input of the operation permission signal output from the control circuit 512 of the buffer unit 510. Based on the input of the shift processing signal output from the control circuit 523, the storage circuit 522, from among the storage circuits (P-1) to (PN), from the storage circuit (PN) at the final stage, The control command (PN) stored in the storage circuit is output to the generation circuit 521. At the same time, the storage circuit 522 sequentially shifts the control commands stored in the storage circuits (P-1) to (PN) to the next stage and outputs the control commands output from the data buffer 511 of the buffer means 510. (P) is newly taken in and stored in the first stage storage circuit (P-1).

また、制御回路523は、バッファ手段510の制御回路512から出力された作動許可信号の入力に基づいて、生成回路521の記憶回路α、βへシフト処理信号を出力する。生成回路521の記憶回路αは、制御回路523から出力されたシフト処理信号の入力に基づいて、当該記憶回路αに記憶しておいた制御コマンド(P−N−1)を、記憶回路βおよび演算回路B、Dへ出力する。これとともに、記憶回路αは、格納回路(P−N)から出力された制御コマンド(P−N)を取り込む。生成回路521の記憶回路βは、制御回路523から出力されたシフト処理信号の入力に基づいて、当該記憶回路βに記憶しておいた制御コマンド(P−N−2)を、演算回路Dへ出力する。これとともに、記憶回路βは、記憶回路αから出力された制御コマンド(P−N−1)を取り込む。   Further, the control circuit 523 outputs a shift processing signal to the storage circuits α, β of the generation circuit 521 based on the input of the operation permission signal output from the control circuit 512 of the buffer means 510. Based on the input of the shift processing signal output from the control circuit 523, the storage circuit α of the generation circuit 521 receives the control command (PN-1) stored in the storage circuit α from the storage circuit β and Output to arithmetic circuits B and D. At the same time, the memory circuit α takes in the control command (PN) output from the storage circuit (PN). Based on the input of the shift processing signal output from the control circuit 523, the storage circuit β of the generation circuit 521 sends the control command (PN-2) stored in the storage circuit β to the arithmetic circuit D. Output. At the same time, the memory circuit β captures the control command (PN-1) output from the memory circuit α.

ステップS85において、生成回路521は、格納回路522から出力された制御コマンド(P−N)等を用いて誤り検査値(P−N)を生成し、付加手段530へ出力する。具体的には、生成回路521の演算回路Aは、格納回路522の格納回路(P−N)から出力された制御コマンド(P−N)を取り込んで単独検査値(P−N)を生成し、入力選択回路524へ出力する。また、生成回路521の演算回路Bは、格納回路(P−N)から出力された制御コマンド(P−N)と、記憶回路αから出力された制御コマンド(P−N−1)とを取り込んで、累積数がQ=1である累積検査値(P−N)を生成し、入力選択回路524へ出力する。また、生成回路521の演算回路Dは、記憶回路αから出力された制御コマンド(P−N−1)と、記憶回路βから出力された制御コマンド(P−N−2)とを取り込んで、演算処理を施し、演算結果を演算回路Cへ出力する。また、生成回路521の演算回路Cは、格納回路(P−N)から出力された制御コマンド(P−N)と、演算回路Dから出力された演算結果とを取り込んで、累積数がQ=2である累積検査値(P−N)を生成し、入力選択回路524へ出力する。   In step S <b> 85, the generation circuit 521 generates an error check value (PN) using the control command (PN) output from the storage circuit 522 and outputs it to the adding unit 530. Specifically, the arithmetic circuit A of the generation circuit 521 takes in the control command (PN) output from the storage circuit (PN) of the storage circuit 522 and generates a single inspection value (PN). And output to the input selection circuit 524. The arithmetic circuit B of the generation circuit 521 takes in the control command (PN) output from the storage circuit (PN) and the control command (PN-1) output from the storage circuit α. Thus, a cumulative inspection value (PN) having a cumulative number Q = 1 is generated and output to the input selection circuit 524. Further, the arithmetic circuit D of the generation circuit 521 takes in the control command (PN-1) output from the storage circuit α and the control command (PN-2) output from the storage circuit β, Arithmetic processing is performed, and the calculation result is output to the arithmetic circuit C. The arithmetic circuit C of the generation circuit 521 takes in the control command (PN) output from the storage circuit (PN) and the arithmetic result output from the arithmetic circuit D, and the cumulative number is Q = 2 is generated, and is output to the input selection circuit 524.

入力選択回路524は、制御回路523から出力された入力選択信号に基づいて、演算回路A〜Cのいずれかとの接続のみを有効に作動させている。よって、生成回路521は、入力選択回路524との接続が有効に作動された特定の演算回路から出力された誤り検査値のみを、誤り検査値(P−N)として付加手段530へ出力する。   Based on the input selection signal output from the control circuit 523, the input selection circuit 524 effectively activates only the connection with any of the arithmetic circuits A to C. Therefore, the generation circuit 521 outputs only the error check value output from the specific arithmetic circuit whose connection with the input selection circuit 524 is effectively operated to the adding unit 530 as the error check value (PN).

ステップS86において、付加手段530は、バッファ手段510から出力された作動許可信号の入力に基づいて、制御コマンド(P)および誤り検査値(P−N)を取り込む。そして、付加手段530は、取り込んだ制御コマンド(P)および誤り検査値(P−N)を送信部550へ書き込む。具体的には、付加手段530の入力選択回路531は、バッファ手段510のデータバッファ511から出力された制御コマンド(P)を取り込み、取り込んだ制御コマンド(P)をデータバスへ出力する。また、付加手段530の制御回路532は、バッファ手段510の制御回路512から出力された作動許可信号の入力に基づいて、送信部550の送信バッファ551へ制御コマンド(P)を書き込むための書き込み信号およびアドレスデータを出力する。   In step S86, the adding means 530 takes in the control command (P) and the error check value (PN) based on the input of the operation permission signal output from the buffer means 510. Then, the adding unit 530 writes the fetched control command (P) and error check value (PN) to the transmission unit 550. Specifically, the input selection circuit 531 of the adding unit 530 receives the control command (P) output from the data buffer 511 of the buffer unit 510 and outputs the acquired control command (P) to the data bus. Further, the control circuit 532 of the adding unit 530 writes a control signal (P) to the transmission buffer 551 of the transmission unit 550 based on the input of the operation permission signal output from the control circuit 512 of the buffer unit 510. And output address data.

また、制御回路532は、当該書き込み信号の出力から所定時間遅延して、入力選択回路531へ入力選択信号を出力する。入力選択回路531は、制御回路532から出力された入力選択信号の入力に基づいて、接続元をデータバッファ511から生成手段520の入力選択回路524へ切り替える。そして、入力選択回路531は、生成手段520の生成回路521から入力選択回路524を介して出力された誤り検査値(P−N)を取り込み、取り込んだ誤り検査値(P−N)をデータバスへ出力する。また、制御回路532は、入力選択信号を出力して入力選択回路531から誤り検査値(P−N)がデータバス上へ出力されると、送信バッファ551へ誤り検査値(P−N)を書き込むための書き込み信号およびアドレスデータを直ちに出力する。   Further, the control circuit 532 outputs an input selection signal to the input selection circuit 531 with a predetermined time delay from the output of the write signal. The input selection circuit 531 switches the connection source from the data buffer 511 to the input selection circuit 524 of the generation unit 520 based on the input of the input selection signal output from the control circuit 532. Then, the input selection circuit 531 takes in the error check value (PN) output from the generation circuit 521 of the generation means 520 via the input selection circuit 524, and takes the error check value (PN) thus taken in the data bus. Output to. In addition, when the control circuit 532 outputs the input selection signal and the error check value (PN) is output from the input selection circuit 531 onto the data bus, the error check value (PN) is sent to the transmission buffer 551. A write signal and address data for writing are immediately output.

ステップS87において、送信部550は、付加手段530から出力された制御コマンド(P)および誤り検査値(P−N)を中間制御部180へ直ちに送信する。具体的には、送信部550の送信バッファ551は、付加手段530から出力された制御コマンド(P)の書き込み信号の入力に基づいて、データバス上の制御コマンド(P)を取り込み、取り込んだ制御コマンド(P)を直ちに送信回路552へ出力する。また、送信バッファ551は、付加手段530から出力された誤り検査値(P−N)の書き込み信号の入力に基づいて、データバス上の誤り検査値(P−N)を取り込み、取り込んだ誤り検査値(P−N)を送信回路552へ直ちに出力する。送信回路552は、送信バッファ551から出力された制御コマンド(P)および誤り検査値(P−N)を一連の送信データとして、中間制御部180へ直ちに送信する。よって、制御コマンド(P)は、誤り検査値(P−N)が付加された制御コマンドとして中間制御部180へ送信されることになる。   In step S87, the transmission unit 550 immediately transmits the control command (P) and the error check value (PN) output from the adding unit 530 to the intermediate control unit 180. Specifically, the transmission buffer 551 of the transmission unit 550 receives the control command (P) on the data bus based on the input of the write signal of the control command (P) output from the adding unit 530, and takes in the control. The command (P) is immediately output to the transmission circuit 552. The transmission buffer 551 takes in the error check value (PN) on the data bus based on the input of the write signal of the error check value (PN) output from the adding means 530, and takes in the error check. The value (P−N) is immediately output to the transmission circuit 552. The transmission circuit 552 immediately transmits the control command (P) and error check value (PN) output from the transmission buffer 551 to the intermediate control unit 180 as a series of transmission data. Therefore, the control command (P) is transmitted to the intermediate control unit 180 as a control command to which the error check value (PN) is added.

なお、ステップS84の処理は、ステップS76からステップS85までの間に行われていればよく、ステップS83の直後に行われる必要はない。
また、ステップS86において、制御回路532が、入力選択回路531に対して接続切替信号を出力するタイミングは、入力選択回路531から出力された制御コマンド(P)が送信バッファ551へ書き込みが完了されるまでに要する時間が経過した後に、誤り検査値(P−N)の送信バッファ551への書き込みが開始されるようなタイミングに設定する。これによって、誤り検査値(P−N)が送信バッファ551へ書き込まれるタイミングは、送信バッファ551に書き込まれる制御コマンド(P)の直後に連続して誤り検査値(P−N)が書き込まれるようなタイミングとなる。
Note that the process of step S84 only needs to be performed between step S76 and step S85, and need not be performed immediately after step S83.
In step S86, when the control circuit 532 outputs the connection switching signal to the input selection circuit 531, the control command (P) output from the input selection circuit 531 is completely written to the transmission buffer 551. After the elapse of the time required until the error check value (PN), the timing is set such that writing of the error check value (PN) to the transmission buffer 551 is started. As a result, the error check value (PN) is written into the transmission buffer 551 so that the error check value (PN) is written immediately after the control command (P) written in the transmission buffer 551. It will be the right timing.

誤り検査値の書き込みタイミングを上記のように設定することで、送信バッファ551のオーバーランやアンダーラン等が発生し、今回送信する制御コマンド(P)に対して付加するべき誤り検査値(P−N)が適切に付加されなくなるおそれを抑止することができる。このことが、中間制御部180での誤り検査処理の際に、実際に付加されて送信された誤り検査値が本来付加するべき誤り検査値と整合していないことに起因して誤り検査処理の検査結果が正常と判定されなくなるおそれを抑止し、誤り検査処理の確度を向上することにつながる。   By setting the error check value write timing as described above, an overrun or underrun of the transmission buffer 551 occurs, and an error check value (P−) to be added to the control command (P) to be transmitted this time. N) can be prevented from being added appropriately. This is because the error check value actually added and transmitted during the error check process in the intermediate control unit 180 is not consistent with the error check value to be originally added. The possibility that the inspection result will not be determined to be normal is suppressed, and the accuracy of the error inspection process is improved.

また、誤り検査値の書き込みタイミングを上記のように設定することで、今回付加するべき誤り検査値(P−N)の送信バッファ551への書き込みタイミングと、制御コマンド(P)の送信バッファ551への書き込みタイミングの時間軸上の位置関係が明確化され、誤り検査値(P−N)は制御コマンド(P)の直後に確実に付加され、一つの送信データとして送信されることとなる。これにより、誤り検査値(P−N)が、誤り検査値(P−N)単体で中間制御部180へ送信されることがない。よって、不正者が、主制御部110と中間制御部180の間の送信データを窃取して、誤り検査値(P−N)を不正に解析し再利用することが困難となり、遊技機1のセキュリティ強度を向上することができる。   Also, by setting the error check value write timing as described above, the error check value (PN) to be added this time is written to the transmission buffer 551 and the control command (P) is sent to the transmission buffer 551. The positional relationship of the write timing on the time axis is clarified, and the error check value (PN) is surely added immediately after the control command (P) and transmitted as one transmission data. Thereby, the error check value (PN) is not transmitted to the intermediate control unit 180 as a single error check value (PN). Therefore, it becomes difficult for an unauthorized person to steal transmission data between the main control unit 110 and the intermediate control unit 180, illegally analyze and reuse the error check value (PN), and the gaming machine 1 Security strength can be improved.

[中間制御部の制御処理]
以下、本発明の実施形態に係る遊技機1の中間制御部180の制御処理について説明する。
図16は、本実施形態に係る中間制御部180によるメイン処理を示すフローチャートである。なお、図16の各ステップにおいて、中括弧{}内の表記は、RAM180cに設けられた、受信個数記憶領域(P)、変更タイミング情報記憶領域(Mi)、および生成方式情報記憶領域(S)への処理を概説するためのものである。
[Control processing of intermediate control unit]
Hereinafter, the control process of the intermediate control unit 180 of the gaming machine 1 according to the embodiment of the present invention will be described.
FIG. 16 is a flowchart showing main processing by the intermediate control unit 180 according to the present embodiment. In each step of FIG. 16, the notation in curly braces {} indicates the received number storage area (P), the change timing information storage area (Mi), and the generation method information storage area (S) provided in the RAM 180c. It is intended to outline the process.

ステップS4010において、CPU180aは、初期化処理を行う。この処理において、CPU180aは、電源投入に応じて、ROM180bからメイン処理に関するプログラムコードを読み込む。これとともに、CPU180aは、RAM180cに記憶されるフラグなどを初期化し、設定値を設定する処理を行う。   In step S4010, the CPU 180a performs initialization processing. In this process, the CPU 180a reads a program code related to the main process from the ROM 180b in response to power-on. Along with this, the CPU 180a performs processing for initializing flags and the like stored in the RAM 180c and setting the set values.

なお、ステップS4010の中で、主制御部110の誤り検査値付加機能に対応した誤り検査値出力機能を、検査値生成部620へ設定する処理が行われる。すなわち、CPU180aは、主制御部110にてブート処理中に実行されるHWパラメータ設定処理および生成方式設定処理と同様の処理を行う。その際、CPU180aは、決定部623でデフォルトの生成方式を決定し、決定した生成方式に応じて生成部621の設定を行う。この処理が終了した場合には、ステップS4020へ処理を移す。   In step S4010, processing for setting an error check value output function corresponding to the error check value addition function of the main control unit 110 to the check value generation unit 620 is performed. That is, the CPU 180a performs processing similar to the HW parameter setting processing and generation method setting processing executed during the boot processing in the main control unit 110. At that time, the CPU 180a determines a default generation method by the determination unit 623, and sets the generation unit 621 according to the determined generation method. If this process ends, the process moves to a step S4020.

ステップS4020において、CPU180aは、主制御部110から送信された制御コマンドを受信したか否かを判定する。
中間制御部180の受信部600では、主制御部110から送信された制御コマンドを受信し、自身の受信バッファに記憶すると、主制御部110から制御コマンドの受信割込要求があった旨を示す信号を出力し、制御コマンドの受信割込処理を発生させる。
そして、CPU180aは、ステップS4020において、受信部600からの上記受信割込要求信号が入力されるまで待機し、受信部600からの上記信号が入力されると、受信バッファに記憶されている制御コマンドに対して誤り検査処理を行う。具体的には、次のステップS4030からステップS4200の処理である。
In step S4020, CPU 180a determines whether or not the control command transmitted from main control unit 110 has been received.
When the reception unit 600 of the intermediate control unit 180 receives the control command transmitted from the main control unit 110 and stores it in its own reception buffer, it indicates that the main control unit 110 has received a control command reception interrupt request. A signal is output to generate a control command reception interrupt process.
In step S4020, the CPU 180a waits until the reception interrupt request signal from the reception unit 600 is input. When the signal from the reception unit 600 is input, the CPU 180a stores the control command stored in the reception buffer. Error check processing is performed on Specifically, it is the process of the next step S4030 to step S4200.

ステップS4030において、CPU180aは、制御コマンドの受信割込要求があった旨を示す信号が受信部600から出力されると、RAM180cの受信個数記憶領域(P)の値を更新する。
ステップS4040において、CPU180aは、受信部600の受信バッファに記憶された制御コマンド(P)が制御コマンド(1)に該当するか否かを判定する。具体的には、CPU180aは、受信個数記憶領域(P)の値を参照し、P=1であるか否かを判定する。P=1であれば、ステップS4050に処理を移し、P=1でなければ、ステップS4070に処理を移す。
In step S4030, when a signal indicating that a control command reception interrupt request has been made is output from the reception unit 600, the CPU 180a updates the value of the reception number storage area (P) of the RAM 180c.
In step S4040, the CPU 180a determines whether or not the control command (P) stored in the reception buffer of the reception unit 600 corresponds to the control command (1). Specifically, the CPU 180a refers to the value of the received number storage area (P) and determines whether P = 1. If P = 1, the process proceeds to step S4050, and if P = 1, the process proceeds to step S4070.

ステップS4050において、CPU180aは、ROM180bに記憶されている固有情報を読み出す。そして、CPU180aは、読み出した固有情報を検査値生成部620へ出力する。
ステップS4060において、CPU180aは、検査値生成部620へ出力された固有情報を検査値生成部620内の格納部622および生成部621にて格納し、初期設定値として設定する。
In step S4050, the CPU 180a reads unique information stored in the ROM 180b. Then, the CPU 180a outputs the read unique information to the inspection value generation unit 620.
In step S4060, the CPU 180a stores the unique information output to the inspection value generation unit 620 in the storage unit 622 and the generation unit 621 in the inspection value generation unit 620 and sets them as initial setting values.

ステップS4070において、CPU180aは、受信部600の受信バッファに記憶された制御コマンド(P)から、当該制御コマンド(P)に付加された誤り検査値(P−N)を抽出する。
ステップS4080において、CPU180aは、抽出した誤り検査値(P−N)を検査部610へ出力するとともに、誤り検査値(P−N)を抽出後の制御コマンド(P)を検査値生成部620の格納部622および決定部623、ならびに付加部630へ出力する。
In step S4070, the CPU 180a extracts the error check value (PN) added to the control command (P) from the control command (P) stored in the reception buffer of the reception unit 600.
In step S4080, the CPU 180a outputs the extracted error check value (PN) to the check unit 610, and outputs the control command (P) after extracting the error check value (PN) to the check value generation unit 620. The data is output to the storage unit 622, the determination unit 623, and the addition unit 630.

ステップS4090において、CPU180aは、受信部600から出力された制御コマンド(P)が、予め取り決められた変更条件を満たす制御コマンドであるか否かを決定部623にて判定する。具体的には、CPU180aは、当該制御コマンド(P)の種別が所定の制御コマンドの種別であるか否かを判定する。
ステップS4100において、CPU180aは、制御コマンド(P)が所定の制御コマンドであれば、抽出後の制御コマンド(P)が変更条件を満たす制御コマンドであると判断し、ステップS4110に処理を移す。一方、CPU180aは、制御コマンド(P)が所定の制御コマンドでなければ、抽出後の制御コマンド(P)が変更条件を満たす制御コマンドでないと判断し、ステップS4120に処理を移す。
In step S4090, the CPU 180a determines whether or not the control command (P) output from the receiving unit 600 is a control command that satisfies a predetermined change condition, in the determining unit 623. Specifically, the CPU 180a determines whether or not the type of the control command (P) is a predetermined type of control command.
In step S4100, if the control command (P) is a predetermined control command, the CPU 180a determines that the extracted control command (P) is a control command that satisfies the change condition, and moves the process to step S4110. On the other hand, if the control command (P) is not a predetermined control command, the CPU 180a determines that the extracted control command (P) is not a control command that satisfies the change condition, and moves the process to step S4120.

ステップS4110において、CPU180aは、変更条件を満たす制御コマンドを受信したと判断すると、生成方式を変更、すなわち、生成方式情報記憶領域(S)に記憶された生成方式情報の値を変更するタイミングを決定部623にて設定する。具体的には、CPU180aは、変更タイミング情報Miを設定するべく、変更タイミング情報記憶領域(Mi)に対して、現在の生成個数記憶領域(P)の値に予め取り決められたMoの値を加算した値(P+Mo)を記憶する。
ステップS4120において、CPU180aは、現在が生成方式を変更するタイミングであるか否かを決定部623にて判定する。具体的には、CPU180aは、変更タイミング情報記憶領域(Mi)の最小値Mminと現在の受信個数記憶領域(P)の値とを比較する。そして、CPU180aは、両者が一致していれば、現在は変更タイミングであると判定し、ステップS4130に処理を移し、両者が一致していなければ、現在は変更タイミングでないと判定し、ステップS4150に処理を移す。
When CPU 180a determines in step S4110 that a control command satisfying the change condition has been received, CPU 180a changes the generation method, that is, determines the timing for changing the value of the generation method information stored in the generation method information storage area (S). Set in section 623. Specifically, the CPU 180a adds the predetermined value of Mo to the value of the current generated number storage area (P) to the change timing information storage area (Mi) in order to set the change timing information Mi. The obtained value (P + Mo) is stored.
In step S4120, the CPU 180a determines in the determination unit 623 whether or not the present time is the timing for changing the generation method. Specifically, the CPU 180a compares the minimum value Mmin of the change timing information storage area (Mi) with the value of the current reception number storage area (P). If they match, the CPU 180a determines that the current timing is the change timing, and moves to step S4130. If they do not match, the CPU 180a determines that the current timing is not the current timing, and proceeds to step S4150. Move processing.

ステップS4130において、CPU180aは、生成方式を変更すべく生成方式情報を決定部623にて変更する。具体的には、CPU180aは、生成方式情報を予め取り決められた変更方式に従って変更し、変更後の生成方式情報S’を生成方式情報記憶領域(S)へ記憶する。そして、CPU180aは、変更後の生成方式情報記憶領域(S)の値に対応する生成方式を生成部621に対して決定部623にて通知する。
ステップS4140において、CPU180aは、決定部623にて変更された生成方式を用いて誤り検査値が生成されるように、生成部621に変更後の生成方式を設定する。生成部621では、変更後の生成方式で生成された誤り検査値が検査部610へ出力することができる。
In step S4130, the CPU 180a changes the generation method information in the determination unit 623 to change the generation method. Specifically, the CPU 180a changes the generation method information according to a predetermined change method, and stores the changed generation method information S ′ in the generation method information storage area (S). Then, the CPU 180a notifies the generation unit 621 of the generation method corresponding to the value of the changed generation method information storage area (S) to the generation unit 621.
In step S4140, the CPU 180a sets the changed generation method in the generation unit 621 so that an error check value is generated using the generation method changed in the determination unit 623. The generation unit 621 can output an error check value generated by the changed generation method to the check unit 610.

ステップS4150において、CPU180aは、受信部600から出力された制御コマンド(P)を格納部622にて格納するとともに、過去に格納しておいた制御コマンド(P−N)、制御コマンド(P−N−1)、および制御コマンド(P−N−2)を格納部622から生成部621へ出力する。
ステップS4160において、CPU180aは、格納部622にて出力された制御コマンド(P−N)、制御コマンド(P−N−1)、および制御コマンド(P−N−2)を用いて、設定された生成方式で誤り検査値(P−N)(単独検査値(P−N)、累積数がQ=1である累積検査値(P−N)、または累積数がQ=2である累積検査値(P−N)のいずれか)を生成し、検査部610へ出力する。
In step S4150, the CPU 180a stores the control command (P) output from the receiving unit 600 in the storage unit 622, and stores the control command (PN) and control command (PN) stored in the past. -1) and the control command (PN-2) are output from the storage unit 622 to the generation unit 621.
In step S4160, CPU 180a is set using control command (PN), control command (PN-1), and control command (PN-2) output from storage unit 622. Error check value (PN) (single check value (PN), cumulative check value (PN) with cumulative number Q = 1, or cumulative check value with cumulative number Q = 2 in the generation method (Any of (PN)) is generated and output to the inspection unit 610.

ステップS4170において、CPU180aは、受信部600から出力された誤り検査値(P−N)と、生成部621から出力された誤り検査値(P−N)とを検査部610にて比較して照合する。CPU180aは、両者が共に同じ生成方式で生成された誤り検査値(P−N)であり、両者が一致する場合は、誤り検査の検査結果は正常であると判断する。一方、CPU180aは、両者が一致しない場合は、検査結果は正常でないと判断する。   In step S4170, the CPU 180a compares the error check value (PN) output from the reception unit 600 with the error check value (PN) output from the generation unit 621 and compares them. To do. The CPU 180a determines that the error check value is normal when both are error check values (PN) generated by the same generation method and both match. On the other hand, if the two do not match, the CPU 180a determines that the inspection result is not normal.

ステップS4180において、CPU180aは、検査結果が正常であるか否かを検査部610にて判断する。CPU180aは、検査結果が正常であると判断された場合は、今回受信した誤り検査値(P−N)が付加された制御コマンド(P)、および今回の誤り検査値(P−N)の生成元であるN個前の制御コマンド(P−N)の正当性を認証することができたことにより、主制御部110の正当性が認証されたと判断し、ステップS4190に処理を移す。一方、CPU180aは、検査結果が正常でないと判断された場合は、主制御部110の正当性を認証することができなかったと判断し、ステップS4200に処理を移す。   In step S4180, CPU 180a determines whether or not the inspection result is normal in inspection unit 610. When it is determined that the inspection result is normal, the CPU 180a generates the control command (P) to which the currently received error check value (PN) is added and the current error check value (PN). Since the validity of the original N control commands (PN) can be authenticated, it is determined that the validity of the main control unit 110 has been authenticated, and the process proceeds to step S4190. On the other hand, if it is determined that the inspection result is not normal, the CPU 180a determines that the validity of the main control unit 110 has not been authenticated, and moves the process to step S4200.

ステップS4190において、CPU180aは、認証成功を示す認証結果データを検査部610にて生成し、生成した認証結果データを付加部630へ出力し、ステップS4210に処理を移す。
ステップS4200において、CPU180aは、認証不成功を示す認証結果データを検査部610にて生成し、生成した認証結果データを付加部630へ出力し、ステップS4210に処理を移す。
In step S4190, the CPU 180a generates authentication result data indicating successful authentication in the inspection unit 610, outputs the generated authentication result data to the adding unit 630, and shifts the processing to step S4210.
In step S4200, CPU 180a generates authentication result data indicating unsuccessful authentication in inspection unit 610, outputs the generated authentication result data to adding unit 630, and moves the process to step S4210.

ステップS4210において、CPU180aは、受信部600にて出力された制御コマンド(P)に対し、検査部610にて出力された認証結果データを付加部630にて付加し、認証結果データ付きの制御コマンド(P)を中継送信部640へ出力し、ステップS4220に処理を移す。
ステップS4220において、CPU180aは、認証結果データ付きの制御コマンド(P)を送信データとして中継送信部640にて演出制御部120へ直ちに送信する。その後、所定の割込処理があるまで、ステップS4020以降の処理を繰り返す。なお、ステップS4150の処理は、ステップS4080からステップS4160までの間に行われていればよく、ステップS4140の直後に行われる必要はない。
In step S4210, the CPU 180a adds the authentication result data output from the inspection unit 610 to the control command (P) output from the receiving unit 600, and adds the authentication result data to the control command (P). (P) is output to the relay transmission unit 640, and the process proceeds to step S4220.
In step S4220, CPU 180a immediately transmits control command (P) with authentication result data as transmission data to effect control unit 120 at relay transmission unit 640. Thereafter, the processes after step S4020 are repeated until a predetermined interrupt process is performed. Note that the process of step S4150 only needs to be performed between step S4080 and step S4160, and need not be performed immediately after step S4140.

[演出制御部の制御処理]
以下、本発明の実施形態に係る遊技機1の演出制御部120の制御処理について説明する。まず、演出制御部120のメイン処理について説明する。
図17は、本実施形態に係る演出制御部120によるメイン処理を示すフローチャートである。
[Control processing of production control unit]
Hereinafter, the control processing of the effect control unit 120 of the gaming machine 1 according to the embodiment of the present invention will be described. First, the main process of the production control unit 120 will be described.
FIG. 17 is a flowchart showing main processing by the effect control unit 120 according to the present embodiment.

ステップS1000において、サブCPU120aは、初期化処理を行う。この処理において、サブCPU120aは、電源投入に応じて、サブROM120bからメイン処理に関するプログラムコードを読み込む。これとともに、サブCPU120aは、サブRAM120cに記憶されるフラグなどを初期化し、設定値を設定する処理を行う。この処理が終了した場合には、ステップS1100に処理を移す。   In step S1000, the sub CPU 120a performs an initialization process. In this process, the sub CPU 120a reads the program code related to the main process from the sub ROM 120b in response to power-on. At the same time, the sub CPU 120a initializes a flag and the like stored in the sub RAM 120c, and performs a process of setting a setting value. If this process ends, the process moves to a step S1100.

ステップS1100において、サブCPU120aは、演出用乱数更新処理を行う。この処理において、サブCPU120aは、サブRAM120cに記憶される演出用乱数値、演出図柄決定用乱数、演出モード決定用乱数等を更新する処理を行う。以降は、所定の割込処理が行われるまで、上記ステップS1100の処理を繰り返し行う。   In step S1100, the sub CPU 120a performs an effect random number update process. In this process, the sub CPU 120a performs a process of updating the effect random number value, effect design determining random number, effect mode determining random number and the like stored in the sub RAM 120c. Thereafter, the process of step S1100 is repeated until a predetermined interrupt process is performed.

次に、演出制御部120の割込処理について説明する。
図18は、本実施形態に係る演出制御部120による割込処理を示すフローチャートである。
サブCPU120aは、演出制御部120に設けられたクロックパルス発生回路(図示せず)から出力されるクロック信号に基づいて、所定の周期(例えば2ミリ秒)ごとに、演出制御部120のタイマ割込処理を実行する。
Next, the interruption process of the production control unit 120 will be described.
FIG. 18 is a flowchart showing interrupt processing by the effect control unit 120 according to the present embodiment.
Based on a clock signal output from a clock pulse generation circuit (not shown) provided in the effect control unit 120, the sub CPU 120a performs timer allocation of the effect control unit 120 at predetermined intervals (for example, 2 milliseconds). Execute the included process.

ステップS1200において、サブCPU120aは、サブCPU120aのレジスタに記憶されている情報をスタック領域に退避させる。
ステップS1300において、サブCPU120aは、演出制御部120で用いられる各種タイマカウンタの更新処理を行う。
In step S1200, the sub CPU 120a saves the information stored in the register of the sub CPU 120a to the stack area.
In step S1300, the sub CPU 120a performs update processing of various timer counters used in the effect control unit 120.

ステップS1500において、サブCPU120aは、コマンド解析処理を行う。この処理において、サブCPU120aは、サブRAM120cの受信データ用記憶領域に記憶された制御コマンドの種別を解析する処理を行う。   In step S1500, the sub CPU 120a performs command analysis processing. In this process, the sub CPU 120a performs a process of analyzing the type of control command stored in the received data storage area of the sub RAM 120c.

演出制御部120の受信部(図示せず)では、中間制御部180から送信された制御コマンドを受信し、自身の受信バッファに記憶すると、中間制御部180から制御コマンドの受信割込要求があった旨を示す信号を出力し、制御コマンドの受信割込処理を発生させる。
そして、サブCPU120aは、受信した制御コマンドに付加された認証結果データの内容を解析する認証結果データ解析処理を行う。サブCPU120aは、認証結果データ解析処理において、中間制御部180によって制御コマンドの正当性が認証されたことが確認できると、当該制御コマンドを受信バッファからサブRAM120cの受信データ用記憶領域へ取り込んで記憶する。そして、サブCPU120aは、受信データ用記憶領域に記憶された制御コマンドの種別を解析し、制御コマンドの種別に応じた処理を行う。なお、コマンド解析処理の詳細については後述する。
When the receiving unit (not shown) of the effect control unit 120 receives the control command transmitted from the intermediate control unit 180 and stores it in its own reception buffer, there is a control command reception interrupt request from the intermediate control unit 180. A signal indicating that the control command is received is generated, and a control command reception interrupt process is generated.
Then, the sub CPU 120a performs an authentication result data analysis process for analyzing the contents of the authentication result data added to the received control command. When the sub-CPU 120a confirms that the validity of the control command has been authenticated by the intermediate control unit 180 in the authentication result data analysis process, the sub-CPU 120a takes the control command from the reception buffer into the reception data storage area of the sub RAM 120c and stores it. To do. Then, the sub CPU 120a analyzes the type of the control command stored in the received data storage area, and performs processing according to the type of the control command. Details of the command analysis process will be described later.

ステップS1700において、サブCPU120aは、演出ボタン検出スイッチ35aの信号のチェックを行い、演出ボタン35からの入力に関する演出用入力制御処理を行う。
ステップS1800において、サブCPU120aは、サブRAM120cの送信データ用記憶領域にセットされた制御コマンドや各種データを、ランプ制御部140や画像制御部150へ送信するための処理である演出用出力制御処理を行う。
ステップS1900において、サブCPU120aは、ステップS1200で退避した情報をサブCPU120aのレジスタに復帰させる。
In step S <b> 1700, the sub CPU 120 a checks the signal of the effect button detection switch 35 a, and performs effect input control processing related to input from the effect button 35.
In step S1800, the sub CPU 120a performs an effect output control process that is a process for transmitting the control command and various data set in the transmission data storage area of the sub RAM 120c to the lamp control unit 140 and the image control unit 150. Do.
In step S1900, the sub CPU 120a restores the information saved in step S1200 to the register of the sub CPU 120a.

次に、演出制御部120のコマンド解析処理について説明する。
図19および図20は、本実施形態に係る演出制御部120によるコマンド解析処理を示すフローチャートである。なお、図20のコマンド解析処理2は、図19のコマンド解析処理1に引き続いて行われるものである。
Next, command analysis processing of the effect control unit 120 will be described.
19 and 20 are flowcharts showing command analysis processing by the effect control unit 120 according to the present embodiment. The command analysis process 2 in FIG. 20 is performed subsequent to the command analysis process 1 in FIG.

ステップS1501において、サブCPU120aは、受信部600の受信バッファに制御コマンドが記憶されているか否かを確認して、制御コマンドを受信したか否かを判定する。
サブCPU120aは、受信バッファに制御コマンドが記憶されていれば、ステップS3000に処理を移し、受信バッファに制御コマンドが記憶されていなければ、コマンド解析処理を終了する。
In step S1501, the sub CPU 120a checks whether a control command is stored in the reception buffer of the receiving unit 600, and determines whether the control command has been received.
If the control command is stored in the reception buffer, the sub CPU 120a moves the process to step S3000. If the control command is not stored in the reception buffer, the sub CPU 120a ends the command analysis process.

ステップS1650において、サブCPU120aは、受信バッファに記憶されている制御コマンドに付加された認証結果データに対して認証結果データ解析処理を行う。そして、サブCPU120aは、中間制御部180で制御コマンドの正当性が認証されたことが確認できると、受信した制御コマンドを受信データ用記憶領域に取り込み、ステップS1510に処理を移す。なお、認証結果データ解析処理の詳細については後述する。   In step S1650, the sub CPU 120a performs an authentication result data analysis process on the authentication result data added to the control command stored in the reception buffer. Then, when the sub controller 120a can confirm that the validity of the control command has been authenticated by the intermediate control unit 180, the sub CPU 120a takes the received control command into the received data storage area and moves the process to step S1510. The details of the authentication result data analysis process will be described later.

ステップS1510において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、デモ指定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドがデモ指定コマンドであれば、ステップS1511に処理を移し、デモ指定コマンドでなければステップS1520に処理を移す。
In step S1510, the sub CPU 120a checks whether or not the control command stored in the received data storage area is a demo designation command.
If the control command stored in the received data storage area is a demo designation command, the sub CPU 120a moves the process to step S1511, and if not, moves the process to step S1520.

ステップS1511において、サブCPU120aは、デモ演出パターンを決定するデモ演出パターン決定処理を行う。
具体的には、デモ演出パターンを決定し、決定したデモ演出パターンを演出パターン記憶領域にセットするとともに、決定したデモ演出パターンの情報を画像制御部150とランプ制御部140に送信するため、決定したデモ演出パターンに基づく演出パターン指定コマンドをサブRAM120cの送信データ用記憶領域にセットする。
In step S1511, the sub CPU 120a performs a demonstration effect pattern determination process for determining a demonstration effect pattern.
Specifically, the demonstration effect pattern is determined, the determined demonstration effect pattern is set in the effect pattern storage area, and information on the determined demonstration effect pattern is transmitted to the image control unit 150 and the lamp control unit 140. An effect pattern designation command based on the demo effect pattern is set in the transmission data storage area of the sub-RAM 120c.

ステップS1520において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、特別図柄記憶指定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが特別図柄記憶指定コマンドであれば、ステップS1521に処理を移し、特別図柄記憶指定コマンドでなければステップS1530に処理を移す。
In step S1520, sub CPU 120a checks whether or not the control command stored in the reception data storage area is a special symbol storage designation command.
If the control command stored in the received data storage area is a special symbol storage designation command, the sub CPU 120a moves the process to step S1521, and moves to step S1530 if it is not a special symbol storage designation command.

ステップS1521において、サブCPU120aは、特別図柄記憶指定コマンドを解析して、液晶表示装置31に表示させる特別図柄の保留画像(以下、「特図保留画像」という)の表示個数を決定するとともに、決定した特図保留画像の表示個数に対応する特図表示個数指定コマンドを画像制御部150とランプ制御部140に送信する特別図柄記憶数決定処理を行う。   In step S1521, the sub CPU 120a analyzes the special symbol storage designation command to determine the number of display images of special symbols to be displayed on the liquid crystal display device 31 (hereinafter referred to as “special diagram reserved images”). The special symbol display number designation command corresponding to the display number of the special figure reserved images is transmitted to the image control unit 150 and the lamp control unit 140, and a special symbol storage number determination process is performed.

ステップS1530において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、演出図柄指定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが演出図柄指定コマンドであれば、ステップS1531に処理を移し、演出図柄指定コマンドでなければステップS1540に処理を移す。
In step S1530, the sub CPU 120a checks whether or not the control command stored in the received data storage area is an effect designating command.
If the control command stored in the storage area for received data is an effect designating command, the sub CPU 120a moves the process to step S1531, and moves to step S1540 if it is not an effect designating command.

ステップS1531において、サブCPU120aは、受信した演出図柄指定コマンドの内容に基づいて、液晶表示装置31に停止表示させる演出図柄36を決定する演出図柄決定処理を行う。
具体的には、演出図柄指定コマンドを解析して、大当たりの有無、大当たりの種別に応じて演出図柄36の組み合わせを構成する演出図柄データを決定し、決定された演出図柄データを演出図柄記憶領域にセットするとともに、演出図柄データを画像制御部150とランプ制御部140に送信するため、演出図柄データ示す停止図柄指定コマンドをサブRAM120cの送信データ用記憶領域にセットする。
In step S1531, the sub CPU 120a performs an effect symbol determination process for determining an effect symbol 36 to be stopped and displayed on the liquid crystal display device 31 based on the content of the received effect symbol designation command.
Specifically, the effect designating command is analyzed, the effect symbol data constituting the combination of the effect symbols 36 is determined according to the presence / absence of jackpot and the type of jackpot, and the determined effect symbol data is stored in the effect symbol storage area In addition, in order to transmit the effect symbol data to the image control unit 150 and the lamp control unit 140, a stop symbol designation command indicating the effect symbol data is set in the transmission data storage area of the sub RAM 120c.

ステップS1532において、サブCPU120aは、上記ステップS1100において更新されている演出モード決定用乱数値から1つの乱数値を取得し、取得した演出モード決定用乱数値と受信した演出図柄指定コマンドに基づいて、複数の演出モード(例えば、ノーマル演出モードやチャンス演出モード)の中から1つの演出モードを決定する演出モード決定処理を行う。また、決定した演出モードは、演出モード記憶領域にセットされる。   In step S1532, the sub CPU 120a acquires one random number value from the effect mode determination random value updated in step S1100, and based on the acquired effect mode determination random value and the received effect designating command, An effect mode determination process for determining one effect mode from a plurality of effect modes (for example, a normal effect mode and a chance effect mode) is performed. Further, the determined effect mode is set in the effect mode storage area.

ステップS1540において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、変動パターン指定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが変動パターン指定コマンドであれば、ステップS1541に処理を移し、変動パターン指定コマンドでなければステップS1550に処理を移す。
In step S1540, the sub CPU 120a checks whether or not the control command stored in the received data storage area is a variation pattern designation command.
If the control command stored in the storage area for received data is a variation pattern designation command, the sub CPU 120a proceeds to step S1541 and proceeds to step S1550 if it is not a variation pattern designation command.

ステップS1541において、サブCPU120aは、上記ステップS1100において更新されている演出用乱数値から1つの乱数値を取得し、取得した演出用乱数値、受信した変動パターン指定コマンドおよび演出モード記憶領域にセットされている演出モードに基づいて、複数の変動演出パターンの中から1つの変動演出パターンを決定する変動演出パターン決定処理を行う。
具体的には、ノーマル演出モードであれば、変動演出パターン決定テーブルを参照し、取得した演出用乱数値に基づいて1つの変動演出パターンを決定し、決定した変動演出パターンを演出パターン記憶領域にセットするとともに、決定した変動演出パターンの情報を画像制御部150とランプ制御部140に送信するため、決定した変動演出パターンに基づく演出パターン指定コマンドをサブRAM120cの送信データ用記憶領域にセットする。
その後、かかる演出パターンに基づいて、液晶表示装置31、音声出力装置32、演出用駆動装置33、演出用照明装置34が制御されることになる。なお、ここで決定した変動演出パターンに基づいて、演出図柄36の変動態様が決定されることとなる。
In step S1541, the sub CPU 120a obtains one random number value from the effect random number value updated in step S1100, and is set in the obtained effect random number value, the received variation pattern designation command, and effect mode storage area. Based on the effect mode being performed, a variation effect pattern determination process for determining one variation effect pattern from a plurality of variation effect patterns is performed.
Specifically, in the normal effect mode, the variation effect pattern determination table is referred to, one change effect pattern is determined based on the acquired effect random number value, and the determined change effect pattern is stored in the effect pattern storage area. At the same time, in order to transmit the determined variation effect pattern information to the image control unit 150 and the lamp control unit 140, an effect pattern designation command based on the determined variation effect pattern is set in the transmission data storage area of the sub RAM 120c.
Thereafter, based on the effect pattern, the liquid crystal display device 31, the audio output device 32, the effect drive device 33, and the effect illumination device 34 are controlled. Note that the variation mode of the effect symbol 36 is determined based on the variation effect pattern determined here.

ステップS1550において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、図柄確定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが図柄確定コマンドであれば、ステップS1551に処理を移し、図柄確定コマンドでなければステップS1560に処理を移す。
In step S1550, the sub CPU 120a checks whether or not the control command stored in the received data storage area is a symbol determination command.
If the control command stored in the received data storage area is the symbol confirmation command, the sub CPU 120a moves the process to step S1551, and moves to step S1560 if it is not the symbol confirmation command.

ステップS1551において、サブCPU120aは、演出図柄36を停止表示させるために、演出図柄を停止表示させるための停止指定コマンドをサブRAM120cの送信データ用記憶領域にセットする演出図柄停止表示処理を行う。   In step S1551, the sub CPU 120a performs an effect symbol stop display process for setting a stop designation command for stopping the effect symbol in the transmission data storage area of the sub RAM 120c in order to stop the effect symbol 36.

ステップS1560において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、遊技状態指定コマンドであるか否かを判定する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが遊技状態指定コマンドであればステップS1561に処理を移し、遊技状態指定コマンドでなければステップS1570に処理を移す。
In step S1560, the sub CPU 120a determines whether or not the control command stored in the received data storage area is a gaming state designation command.
If the control command stored in the received data storage area is a gaming state designation command, the sub CPU 120a moves the process to step S1561, and moves to step S1570 if it is not a gaming state designation command.

ステップS1561において、サブCPU120aは、受信した遊技状態指定コマンドに基づいた遊技状態を示すデータをサブRAM120cにある遊技状態記憶領域にセットする。   In step S1561, the sub CPU 120a sets data indicating the gaming state based on the received gaming state designation command in the gaming state storage area in the sub RAM 120c.

ステップS1570において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、オープニング指定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドがオープニング指定コマンドであればステップS1571に処理を移し、オープニング指定コマンドでなければステップS1580に処理を移す。
In step S1570, the sub CPU 120a checks whether or not the control command stored in the received data storage area is an opening designation command.
If the control command stored in the received data storage area is an opening designation command, the sub CPU 120a moves the process to step S1571, and if not the opening command, moves the process to step S1580.

ステップS1571において、サブCPU120aは、当たり開始演出パターンを決定する当たり開始演出パターン決定処理を行う。
具体的には、オープニング指定コマンドに基づいて当たり開始演出パターンを決定し、決定した当たり開始演出パターンを演出パターン記憶領域にセットするとともに、決定した当たり開始演出パターンの情報を画像制御部150とランプ制御部140に送信するため、決定した当たり開始演出パターンに基づく演出パターン指定コマンドをサブRAM120cの送信データ用記憶領域にセットする。
In step S1571, the sub CPU 120a performs a hit start effect pattern determination process for determining a hit start effect pattern.
Specifically, the hit start effect pattern is determined based on the opening designation command, the determined hit start effect pattern is set in the effect pattern storage area, and information on the determined hit start effect pattern is transmitted to the image controller 150 and the lamp. In order to transmit to the control unit 140, an effect pattern designation command based on the determined hit start effect pattern is set in the transmission data storage area of the sub RAM 120c.

ステップS1580において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、大入賞口開放指定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが大入賞口開放指定コマンドであればステップS1581に処理を移し、大入賞口開放指定コマンドでなければステップS1590に処理を移す。
In step S1580, the sub CPU 120a confirms whether or not the control command stored in the received data storage area is a special winning opening opening designation command.
If the control command stored in the received data storage area is a big prize opening release designation command, the sub CPU 120a moves the process to step S1581, and if it is not a big prize opening opening designation command, the sub CPU 120a moves the process to step S1590.

ステップS1581において、サブCPU120aは、大当たり演出パターンを決定する大当たり演出パターン決定処理を行う。
具体的には、大入賞口開放指定コマンドに基づいて大当たり演出パターンを決定し、決定した大当たり演出パターンを演出パターン記憶領域にセットするとともに、決定した大当たり演出パターンの情報を画像制御部150とランプ制御部140に送信するため、決定した大当たり演出パターンに基づく演出パターン指定コマンドをサブRAM120cの送信データ用記憶領域にセットする。
In step S1581, the sub CPU 120a performs a jackpot effect pattern determination process for determining a jackpot effect pattern.
Specifically, the jackpot effect pattern is determined based on the big prize opening opening designation command, the determined jackpot effect pattern is set in the effect pattern storage area, and information on the determined jackpot effect pattern is transmitted to the image controller 150 and the lamp. In order to transmit to the control unit 140, an effect pattern designation command based on the determined jackpot effect pattern is set in the transmission data storage area of the sub RAM 120c.

ステップS1590において、サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドが、エンディング指定コマンドであるか否かを確認する。
サブCPU120aは、受信データ用記憶領域に記憶されている制御コマンドがエンディング指定コマンドであればステップS1591に処理を移し、エンディング指定コマンドでなければコマンド解析処理を終了する。
In step S1590, the sub CPU 120a checks whether or not the control command stored in the received data storage area is an ending designation command.
If the control command stored in the received data storage area is an ending designation command, the sub CPU 120a moves the process to step S1591, and ends the command analysis process if it is not an ending designation command.

ステップS1591において、サブCPU120aは、当たり終了演出パターンを決定する当たり終了演出パターン決定処理を行う。
具体的には、エンディング指定コマンドに基づいて当たり終了演出パターンを決定し、決定した当たり終了演出パターンを演出パターン記憶領域にセットするとともに、決定した当たり終了演出パターンの情報を画像制御部150とランプ制御部140に送信するため、決定した当たり終了演出パターンに基づく演出パターン指定コマンドをサブRAM120cの送信データ用記憶領域にセットする。本処理を終了すると、コマンド解析処理が終了する。
In step S1591, the sub CPU 120a performs a hit end effect pattern determination process for determining a hit end effect pattern.
Specifically, the winning end effect pattern is determined based on the ending designation command, the determined hit end effect pattern is set in the effect pattern storage area, and information on the determined hit end effect pattern is stored in the image control unit 150 and the lamp. In order to transmit to the control unit 140, an effect pattern designation command based on the determined winning end effect pattern is set in the transmission data storage area of the sub RAM 120c. When this process ends, the command analysis process ends.

次に、演出制御部120の認証結果データ解析処理について説明する。
図21は、本実施形態に係る演出制御部120による認証結果データ解析処理を示すフローチャートである。
Next, the authentication result data analysis process of the production control unit 120 will be described.
FIG. 21 is a flowchart showing authentication result data analysis processing by the effect control unit 120 according to the present embodiment.

ステップS1651において、サブCPU120aは、演出制御部120を構成する受信部の受信バッファに記憶された制御コマンドに、認証結果データが付加されているか否かを判定する。そして、サブCPU120aは、認証結果データが付加されていれば、ステップS1652に処理を移し、制御コマンドに認証結果データが付加されていなければ、認証結果データ解析処理を終了する。
ステップS1652において、サブCPU120aは、受信バッファに記憶された制御コマンドから認証結果データを抽出し、ステップS1653に処理を移す。
In step S1651, the sub CPU 120a determines whether or not authentication result data is added to the control command stored in the reception buffer of the reception unit constituting the effect control unit 120. If the authentication result data is added, the sub CPU 120a moves the process to step S1652, and if the authentication result data is not added to the control command, the sub CPU 120a ends the authentication result data analysis process.
In step S1652, the sub CPU 120a extracts authentication result data from the control command stored in the reception buffer, and the process proceeds to step S1653.

ステップS1653において、サブCPU120aは、抽出した認証結果データが、中間制御部180にて行った誤り検査処理の検査結果が正常であり、主制御部110の正当性を認証することができたか否かを判定する。そして、サブCPU120aは、認証結果データが認証成功を示す結果である場合、遊技機1が正常に稼働していると判断する。そして、サブCPU120aは、受信した制御コマンドをサブRAM120cの受信データ用記憶領域へ出力し、当該制御コマンドに応じた処理を行わせるべく、認証結果データ解析処理を終了する。一方、サブCPU120aは、認証結果データが認証不成功を示す結果である場合、遊技機1で不正行為等が発生したおそれがあると判断し、ステップS1654に処理を移す。
ステップS1654において、サブCPU120aは、遊技機1で不正行為等が発生したおそれがあると判断した場合、その旨を報知する為に報知信号を出力し、認証結果データ解析処理を終了する。
In step S1653, the sub CPU 120a determines whether or not the extracted authentication result data indicates that the inspection result of the error inspection process performed by the intermediate control unit 180 is normal and the validity of the main control unit 110 can be authenticated. Determine. Then, the sub CPU 120a determines that the gaming machine 1 is operating normally when the authentication result data is a result indicating a successful authentication. Then, the sub CPU 120a outputs the received control command to the received data storage area of the sub RAM 120c, and ends the authentication result data analysis process so as to perform processing according to the control command. On the other hand, if the authentication result data is a result indicating that the authentication is unsuccessful, the sub CPU 120a determines that there is a possibility that an illegal act or the like has occurred in the gaming machine 1, and moves the process to step S1654.
In step S1654, when the sub CPU 120a determines that there is a possibility that an illegal act or the like has occurred in the gaming machine 1, the sub CPU 120a outputs a notification signal to notify that fact, and ends the authentication result data analysis processing.

サブCPU120aは、生成した報知信号を、例えば、ランプ制御部140や画像制御部150、あるいは遊技機1を管理するホールコンピュータ等へ送信する。ランプ制御部140や画像制御部150等は、受信した報知信号に基づいて、遊技機1で不正行為が発生したおそれがある旨を報知する演出を実行する。この演出は、例えば、液晶表示装置31に通常出現しないキャラクタを出現させたり、通常出現するキャラクタを通常とは異なる方法で出現させるなどである。また、液晶表示装置31の輝度を変えたり、色を変えたり、ランプ制御部140に対して所定のランプを表示制御するようにしてもよい。いずれにしても、遊技店の従業員が当該遊技機1の前を通過した際に、その状態に気付くようにしてあればよい。また、この演出は、顧客がその状態に気付かないような演出でもよく、また、顧客が容易に気付く演出であってもよい。顧客が容易に気付く演出にすれば、不正行為を効率的に抑止することができる。   The sub CPU 120a transmits the generated notification signal to, for example, the lamp control unit 140, the image control unit 150, or a hall computer that manages the gaming machine 1. Based on the received notification signal, the lamp control unit 140, the image control unit 150, and the like perform an effect that notifies that there is a possibility that an illegal act has occurred in the gaming machine 1. This effect is, for example, causing a character that does not normally appear on the liquid crystal display device 31 to appear, or causing a character that normally appears to appear by a method different from normal. In addition, the brightness of the liquid crystal display device 31 may be changed, the color may be changed, or the lamp controller 140 may be controlled to display a predetermined lamp. In any case, when the employee of the game shop passes in front of the gaming machine 1, it is only necessary to notice the state. This effect may be an effect that the customer does not notice the state or an effect that the customer can easily notice. If the production is easily noticed by the customer, fraud can be efficiently suppressed.

また、報知信号に、遊技機1の遊技状態や大当たりの種別に関する情報を含めてもよい。これらの情報に基づいて、遊技機1を管理するホールコンピュータ等によって不正行為が行われているか否かの判断を行ってもよい。例えば、「高確率遊技状態」は賞球が集中していても正常である場合がある。よって、高確率遊技状態中は、その他の状態とは異なる条件で不正行為のおそれがあるか否かについて判断するのがよい。また、遊技状態や大当たりの種別に関する情報は、報知信号に含めずに別信号として出力するようにしてもよい。この場合、従業員は、報知信号と遊技状態や大当たりの種別に関する情報の両方に基づいて、不正行為のおそれがあるか否かについて判断する。   Moreover, you may include the information regarding the gaming state or jackpot type of the gaming machine 1 in the notification signal. Based on these pieces of information, it may be determined whether a fraudulent act is being performed by a hall computer or the like that manages the gaming machine 1. For example, the “high probability gaming state” may be normal even if prize balls are concentrated. Therefore, during the high-probability gaming state, it is preferable to determine whether or not there is a risk of cheating under different conditions from the other states. Moreover, you may make it output the information regarding a gaming state or jackpot type as a separate signal without including it in a notification signal. In this case, the employee determines whether or not there is a risk of fraud based on both the notification signal and the information regarding the gaming state and the jackpot type.

なお、主制御部110と、周辺制御部300の他の制御部との間に中間制御部180が設けられた場合の認証処理は、主制御部110と演出制御部120との間に中間制御部180が設けられた場合の認証処理とほぼ同様の手順で行われるため説明を省略する。   The authentication process when the intermediate control unit 180 is provided between the main control unit 110 and the other control units of the peripheral control unit 300 is an intermediate control between the main control unit 110 and the effect control unit 120. Since the procedure is almost the same as the authentication process when the unit 180 is provided, the description is omitted.

以上のように、本実施形態では、セキュリティ機能として、主制御部110が出力する制御コマンドの正当性を検査して主制御部110の正当性を認証する。主制御部110は、今回送信する制御コマンドより前(過去)に生成した制御コマンドを用いて誤り検査値を生成する。そして主制御部110は、今回送信する制御コマンドに、当該誤り検査値を付加して中間制御部180に送信する。一方、中間制御部180は、今回受信した制御コマンドより前(過去)に主制御部110にて生成され受信した制御コマンドを用いて誤り検査値を生成する。そして、中間制御部180は、今回受信した制御コマンドに付加された誤り検査値と、生成した誤り検査値とを照合して誤り検査を行う。   As described above, in the present embodiment, as a security function, the validity of the main control unit 110 is authenticated by checking the validity of the control command output from the main control unit 110. The main control unit 110 generates an error check value using a control command generated before (past) the control command transmitted this time. The main control unit 110 adds the error check value to the control command to be transmitted this time and transmits the control command to the intermediate control unit 180. On the other hand, the intermediate control unit 180 generates an error check value using the control command generated and received by the main control unit 110 before (in the past) the control command received this time. Then, the intermediate control unit 180 performs error checking by comparing the error check value added to the control command received this time with the generated error check value.

通常、チェックサム等の誤り検査値は生成元の制御コマンドに付加されて通信エラーチェックに利用される。これに対して、本実施形態では、上述のように、過去に生成した制御コマンドの誤り検査値を、今回送信する制御コマンドに付加する。このような従来にない新規かつ簡易な手法を用いることにより、不正者が制御コマンドと誤り検査値を窃取しても制御コマンドと誤り検査値の関係を容易に知ることができないようにすることができる。したがって、本実施形態によれば、不正行為を防止することができ、遊技機1のセキュリティ強度を向上させることができる。   Normally, an error check value such as a checksum is added to the control command of the generation source and used for a communication error check. In contrast, in the present embodiment, as described above, the error check value of the control command generated in the past is added to the control command to be transmitted this time. By using such a new and simple method that has not been used in the past, even if an unauthorized person steals a control command and an error check value, the relationship between the control command and the error check value cannot be easily known. it can. Therefore, according to this embodiment, fraud can be prevented and the security strength of the gaming machine 1 can be improved.

また、主制御部110が過去に生成した制御コマンドの誤り検査値を、今回送信する制御コマンドに付加して送信し、中間制御部180が制御コマンドの誤り検査処理を行うことにより、今回受信した制御コマンドの正当性を認証するとともに、過去に生成された制御コマンド、すなわち、今回付加された誤り検査値の生成元となった制御コマンドの正当性をも認証することができる。すなわち、制御コマンドの連続性を認証することができることとなり、不正行為をより検出しやすくなり、遊技機1のセキュリティ強度を向上させることができる。   Also, the error check value of the control command generated in the past by the main control unit 110 is added to the control command to be transmitted this time and transmitted, and the intermediate control unit 180 has received this time by performing the error check process of the control command. In addition to authenticating the validity of the control command, it is also possible to authenticate the validity of the control command generated in the past, that is, the control command from which the error check value added this time is generated. That is, it is possible to authenticate the continuity of the control command, and it becomes easier to detect fraud, and the security strength of the gaming machine 1 can be improved.

また、本実施形態では、P≦Nの場合に送信される制御コマンドには、遊技機1に固有の固有情報が付加されることで、誤り検査値が遊技機1に固有の値とすることができる。これにより、固有情報を知らない不正者が一部の制御コマンドを窃取したとしても誤り検査値の解析を不可能とすることができ、遊技機1のセキュリティ強度をより一層向上させることができる。   In the present embodiment, the error check value is set to a value unique to the gaming machine 1 by adding unique information unique to the gaming machine 1 to the control command transmitted when P ≦ N. Can do. As a result, even if an unauthorized person who does not know the specific information steals a part of the control command, the error check value cannot be analyzed, and the security strength of the gaming machine 1 can be further improved.

また、本実施形態では、通常は通信エラーチェックに用いる誤り検査値を、不正行為を検出するための検査値として利用している。このように通信エラーチェックに従来から用いられている誤り検査値を利用することで、不正行為を検出するための検査値生成手段を別途設けずとも不正行為を検出することができ、セキュリティ強度を向上させることができる。すなわち、遊技機の主制御部のリソースが限られているという状況下において、セキュリティ強度を向上させつつ、主制御部110の処理負荷の増大を抑制することができる。   In this embodiment, an error check value that is normally used for communication error check is used as a check value for detecting fraud. In this way, by using an error check value conventionally used for communication error check, it is possible to detect fraud without separately providing test value generation means for detecting fraud. Can be improved. That is, in a situation where the resources of the main control unit of the gaming machine are limited, an increase in processing load on the main control unit 110 can be suppressed while improving the security strength.

また、本実施形態では、主制御部110へ追加するセキュリティ機能の具体的態様として追加された検査値生成部500は、ワイヤードロジック制御方式のハードウェアで回路構成され、メインCPU110aと送信部550との間に設けられている。その際、検査値生成部500とメインCPU110aとの間の入出力制御方式、および検査値生成部500と送信部550との間の入出力制御方式を、それぞれCPUインターフェース方式としている。そして、検査値生成部500内の各手段や各回路間の入出力制御方式を同期インターフェース方式としている。よって、本実施形態では、メインCPU110aの処理負荷やコードサイズを増大させない検査値生成部500を、既存遊技機のメインCPUと送信部との間の入出力制御方式を維持しつつ、追加することができる。したがって、本実施形態によれば、遊技機1がセキュリティ機能を有しながらも、セキュリティ機能を有することで増大する主制御部110のCPUの処理負荷やコードサイズを最大限抑制することができる。同時に、本実施形態によれば、このような特徴を有するセキュリティ機能を既存の遊技機に比較的簡易に追加することができる。   In the present embodiment, the test value generation unit 500 added as a specific aspect of the security function added to the main control unit 110 is configured with a wired logic control type hardware, and includes the main CPU 110a, the transmission unit 550, and the like. It is provided between. At this time, the input / output control method between the inspection value generation unit 500 and the main CPU 110a and the input / output control method between the inspection value generation unit 500 and the transmission unit 550 are each a CPU interface method. The input / output control method between each means and each circuit in the test value generation unit 500 is a synchronous interface method. Therefore, in this embodiment, the test value generation unit 500 that does not increase the processing load and code size of the main CPU 110a is added while maintaining the input / output control method between the main CPU and the transmission unit of the existing gaming machine. Can do. Therefore, according to the present embodiment, while the gaming machine 1 has the security function, the processing load and code size of the CPU of the main control unit 110, which increase by having the security function, can be suppressed to the maximum. At the same time, according to the present embodiment, a security function having such a feature can be added to an existing gaming machine relatively easily.

また、本実施形態では、検査値生成部500が複数の生成方式を備えることで、誤り検査値付加機能を予め複数用意している。そして、どの生成方式によって誤り検査値を生成し付加するかは、主制御部110のブート処理時の初期値設定時以外ではアクセスされないメインROM110bの特定の記憶領域に記憶されているHWパラメータの値に基づいて決定されている。よって、不正者が、主制御部110と中間制御部180との間の送信データを窃取しても、誤り検査値がどのような生成方式で誤り検査値が生成されたかを解析することが困難となる。したがって、遊技機1が有する誤り検査値付加機能に対する秘匿性を確保することができ、遊技機1のセキュリティ強度を向上させることができる。   In the present embodiment, the check value generation unit 500 includes a plurality of generation methods, so that a plurality of error check value addition functions are prepared in advance. The generation method used to generate and add the error check value depends on the value of the HW parameter stored in a specific storage area of the main ROM 110b that is not accessed except when the initial value is set during the boot process of the main control unit 110. Is determined on the basis of Therefore, even if an unauthorized person steals transmission data between the main control unit 110 and the intermediate control unit 180, it is difficult to analyze in which generation method the error check value is generated. It becomes. Therefore, the confidentiality of the error check value addition function of the gaming machine 1 can be ensured, and the security strength of the gaming machine 1 can be improved.

また、本実施形態では、ブート処理後の遊技処理中においても、送信する制御コマンドに基づいて、検査値生成部500が備える生成方式を変更することで、誤り検査値付加機能を変更している。よって、不正者が、制御コマンドおよび誤り検査値を複数窃取したとしても、制御コマンドと誤り検査値の対応関係を解析することが更に困難となる。したがって、遊技機1が有する誤り検査値付加機能に対する秘匿性を更に向上させることができ、遊技機1のセキュリティ強度を更に向上させることができる。   In the present embodiment, the error check value addition function is changed by changing the generation method provided in the check value generation unit 500 based on the control command to be transmitted even during the game process after the boot process. . Therefore, even if an unauthorized person steals a plurality of control commands and error check values, it becomes more difficult to analyze the correspondence between the control commands and error check values. Therefore, the confidentiality of the error check value adding function of the gaming machine 1 can be further improved, and the security strength of the gaming machine 1 can be further improved.

なお、本実施形態では、検査値生成部500が生成方式を変更する条件、すなわち、誤り検査値付加機能を変更する条件として、送信する制御コマンドの種別が所定の制御コマンドの種別に該当するか否かを条件とした。
ここで、所定の制御コマンドが、大当たりコマンドである場合、大当たりコマンドは発生タイミングにランダム性を有するとともに、大当たり中の各ラウンドで継続的に送信される。そのため、検査値生成部500では、大当たり状態にある一定期間中で複数回にわたって生成方式が変更されることとなる。したがって、不正者が、制御コマンドおよび誤り検査値を窃取し、これを流用した場合でも、更に容易に不正を検出することができる。
In the present embodiment, whether the type of the control command to be transmitted corresponds to the type of the predetermined control command as a condition for changing the generation method by the check value generation unit 500, that is, a condition for changing the error check value addition function. The condition was whether or not.
Here, when the predetermined control command is a jackpot command, the jackpot command has randomness in the generation timing and is continuously transmitted in each round of jackpot. Therefore, in the inspection value generation unit 500, the generation method is changed a plurality of times during a certain period in the big hit state. Therefore, even if an unauthorized person steals a control command and an error check value and diverts them, it is possible to detect fraud more easily.

また、所定の制御コマンドが、リーチコマンドである場合、リーチコマンドは発生タイミングにランダム性を有し、かつ、大当たりコマンドよりも発生頻度が高い。そのため、検査値生成部500では、時間軸上における生成方式の変更タイミングが分散されることとなる。したがって、不正者が、制御コマンドおよび誤り検査値を複数窃取したとしても、制御コマンドと誤り検査値の対応関係の変化を解析することが更に困難となり、誤り検査値付加機能に対する秘匿性を更に向上させることができる。   In addition, when the predetermined control command is a reach command, the reach command has randomness in generation timing and is generated more frequently than the jackpot command. Therefore, in the test value generation unit 500, the generation timing change timing on the time axis is distributed. Therefore, even if an unauthorized person steals multiple control commands and error check values, it becomes more difficult to analyze the change in the correspondence between the control commands and error check values, and the confidentiality of the error check value addition function is further improved. Can be made.

また、所定の制御コマンドが、オープニング指定コマンドまたはエンディング指定コマンドである場合、オープニング指定コマンドまたはエンディング指定コマンドは、大当たり状態を開始時または終了時に送信される制御コマンドであり、発生タイミングにランダム性を有し、かつ、発生頻度が低い。そのため、検査値生成部500では、生成方式の変更タイミングもランダムかつ低い頻度で発生することとなる。したがって、不正者が、生成方式の変更タイミングを特定することが更に困難となり、誤り検査値付加機能に対する秘匿性を更に向上させることができる。更に、所定の制御コマンドが、オープニング指定コマンドおよびエンディング指定コマンドの両方である場合、検査値生成部500では、大当たり状態前後の一定期間中に複数回にわたって生成方式が変更されることとなる。したがって、不正者が、制御コマンドおよび誤り検査値を窃取し、これを流用した場合でも、更に不正を検出し易くすることができる。   In addition, when the predetermined control command is an opening designation command or an ending designation command, the opening designation command or the ending designation command is a control command transmitted at the start or end of the jackpot state, and the occurrence timing is random. And has a low frequency of occurrence. Therefore, in the test value generation unit 500, the generation method change timing also occurs at a low frequency. Therefore, it becomes more difficult for an unauthorized person to specify the change timing of the generation method, and the secrecy of the error check value addition function can be further improved. Furthermore, when the predetermined control commands are both an opening designation command and an ending designation command, the test value generation unit 500 changes the generation method a plurality of times during a certain period before and after the jackpot state. Therefore, even when an unauthorized person steals a control command and an error check value and diverts them, it is possible to further detect fraud.

また、所定の制御コマンドが、デモ指定コマンドである場合、デモ指定コマンドは特別図柄の保留数記憶がない状態が所定時間継続したときにデモ表示を表示させるために送信される制御コマンドであり、発生タイミングにランダム性を有する。そのため、検査値生成部500では、時間軸上における生成方式の変更タイミングが分散されることとなる。したがって、不正者が、制御コマンドおよび誤り検査値を複数窃取したとしても、制御コマンドと誤り検査値の対応関係の変化を解析することが更に困難となり、誤り検査値付加機能に対する秘匿性を更に向上させることができる。   In addition, when the predetermined control command is a demonstration designation command, the demonstration designation command is a control command that is transmitted to display a demonstration display when a state in which there is no special symbol hold number storage continues for a predetermined period of time, Has randomness in generation timing. Therefore, in the test value generation unit 500, the generation timing change timing on the time axis is distributed. Therefore, even if an unauthorized person steals multiple control commands and error check values, it becomes more difficult to analyze the change in the correspondence between the control commands and error check values, and the confidentiality of the error check value addition function is further improved. Can be made.

また、所定の制御コマンドが、ハズレコマンド(ハズレ用演出図柄指定コマンド)である場合、「ハズレ」は、抽選時の抽選結果として最も発生頻度が高いので、ハズレコマンドが送信される頻度は高い。そのため、検査値生成部500では、生成方式の変更タイミングの頻度も高くなる。すなわち、検査値生成部500では、高い頻度で生成方式が変更され、制御コマンドと誤り検査値の対応関係自体が複雑で解析することが更に困難となり、誤り検査値付加機能に対する秘匿性を更に向上させることができる。   In addition, when the predetermined control command is a lose command (lost design symbol designating command), “lost” is most frequently generated as a lottery result at the time of the lottery, and thus the frequency of the lost command being transmitted is high. Therefore, the inspection value generation unit 500 also increases the frequency of generation method change timing. That is, in the check value generation unit 500, the generation method is changed frequently, the correspondence between the control command and the error check value is complicated and it becomes more difficult to analyze, and the secrecy of the error check value addition function is further improved. Can be made.

また、本実施形態では、誤り検査値の生成方式を変更するタイミングを、生成方式を変更するか否かの判断対象となる制御コマンドの出力タイミングから、Mo個後に出力された制御コマンドの出力タイミングとしている。すなわち、本実施形態では、生成方式の変更条件が成立したタイミングと実際の変更タイミングとを分散させている。よって、不正者が、制御コマンドおよび誤り検査値を複数窃取したとしても、制御コマンドと誤り検査値の対応関係を解析することが更に困難となる。したがって、遊技機1が有する誤り検査値付加機能に対する秘匿性を更に向上させることができ、遊技機1のセキュリティ強度を更に向上させることができる。   Further, in the present embodiment, the timing for changing the generation method of the error check value is the output timing of the control command output after Mo from the output timing of the control command to be determined whether to change the generation method. It is said. That is, in this embodiment, the timing at which the generation method change condition is satisfied and the actual change timing are distributed. Therefore, even if an unauthorized person steals a plurality of control commands and error check values, it becomes more difficult to analyze the correspondence between the control commands and error check values. Therefore, the confidentiality of the error check value adding function of the gaming machine 1 can be further improved, and the security strength of the gaming machine 1 can be further improved.

また、本実施形態では、誤り検査値付加機能およびその選択情報としてのHWパラメータを予め複数種類用意するものの、特定のHWパラメータのみを実装している。よって、ブート処理でのHWパラメータの選択処理に伴うプログラムを新たに設ける必要がなく、プログラムのコードサイズを増大させることもない。また、遊技機メーカーが特定の誤り検査値付加機能だけを採用したい場合などであっても、所望の誤り検査値付加機能に対応したHWパラメータのみを実装すればよく、遊技機メーカーの嗜好や用途に柔軟に対応することができる。したがって、多様性に富んだセキュリティ機能であっても比較的簡易に追加することができ、汎用性の高いセキュリティ機能を提供することができる。また、遊技機1の開発段階中で設計・検証作業等に使用するHWパラメータと、遊技機1の出荷前に実際に実装されるHWパラメータとを変えることにより、最終的にどのHWパラメータが採用されたのかを知り得る者を限定することができ、誤り検査値付加機能に対する秘匿性を更に向上させることができる。   In this embodiment, a plurality of types of error check value addition functions and HW parameters as selection information thereof are prepared in advance, but only specific HW parameters are implemented. Therefore, it is not necessary to newly provide a program associated with the HW parameter selection process in the boot process, and the code size of the program is not increased. Even if a gaming machine manufacturer wants to adopt only a specific error check value addition function, only the HW parameter corresponding to the desired error check value addition function needs to be implemented. Can respond flexibly. Therefore, even diverse security functions can be added relatively easily, and a highly versatile security function can be provided. In addition, by changing the HW parameters used for design / verification work during the development stage of the gaming machine 1 and the HW parameters that are actually mounted before the gaming machine 1 is shipped, which HW parameters are finally adopted. It is possible to limit the number of persons who can know whether this has been done, and to further improve the confidentiality of the error check value addition function.

また、本実施形態では、検査値生成部500が備える生成方式は、単独生成方式に加えて累積生成方式としている。そして、累積生成方式で誤り検査値(P−N)を生成する際には、単独生成方式で誤り検査値を生成する場合に用いる制御コマンド(P−N)を含め、これ以前に生成された制御コマンド(P−N−Q)までの制御コマンドを用いて生成している。よって、本実施形態では、累積生成方式で用いられる制御コマンドは、過去に単独生成方式で生成された誤り検査値の生成元でもあった制御コマンドである。したがって、中間制御部180において、累積生成方式で生成された誤り検査値による誤り検査処理は、過去に受信した制御コマンドに関する認証処理を行うことと同等である。例えば、今回の誤り検査処理が、累積生成方式で生成された誤り検査値による誤り検査処理が行われ、その結果が正常であれば、今回受信した制御コマンドの正当性を認証することができたことのみならず、過去に受信した制御コマンドが正しい制御コマンドであることが認証される。このように、累積生成方式を備えることで、過去に受信した制御コマンドに関する認証処理を重ねて行うことができ、認証処理の確度を向上させることができる。   In the present embodiment, the generation method provided in the inspection value generation unit 500 is a cumulative generation method in addition to the single generation method. When the error check value (PN) is generated by the cumulative generation method, the control command (PN) used when generating the error check value by the single generation method is generated before this. It is generated using the control commands up to the control command (PNQ). Therefore, in this embodiment, the control command used in the cumulative generation method is a control command that was also a generation source of the error check value generated in the past by the single generation method. Accordingly, in the intermediate control unit 180, the error check process using the error check value generated by the cumulative generation method is equivalent to performing an authentication process related to a control command received in the past. For example, if the current error check process is an error check process using error check values generated by the cumulative generation method, and the result is normal, the validity of the control command received this time can be authenticated. In addition, it is authenticated that a control command received in the past is a correct control command. As described above, by providing the cumulative generation method, it is possible to repeatedly perform authentication processing related to control commands received in the past, and to improve the accuracy of the authentication processing.

また、本実施形態では、累積生成方式の具体的な実施態様として、生成回路521を2値入力演算回路B〜Dと、記憶回路α、βとによって構成し、生成回路521を構成する演算回路の演算方式を共通の演算方式とした。よって、2値入力演算回路B〜Dでは、一つの演算回路を設計した後は、その回路データを他の演算回路に流用することが可能であり、回路設計やその検証作業に係る開発工数や開発難易度を抑制することができる。また、この場合、単独検査値を生成する演算回路Aと、累積検査値を生成する演算回路B〜Dのいずれかの演算回路との2つの比較的簡易な演算回路を設計するだけで、生成回路521では、演算回路B〜Dを多段に組み合わせて2つ以上の生成方式を容易に実現可能である。すなわち、複数の生成方式が設けられたことで制御コマンドと誤り検査値との対応関係が解析困難となりセキュリティ強度が向上するという効果を、設けられた生成方式の数よりも少数の演算回路を設計するだけで得ることができる。このため、本実施形態では、少ない開発コストで大きな不正防止効果を得ることができる。   In this embodiment, as a specific embodiment of the cumulative generation method, the generation circuit 521 is configured by binary input arithmetic circuits B to D and storage circuits α and β, and the arithmetic circuit that forms the generation circuit 521 The calculation method is a common calculation method. Therefore, in the binary input arithmetic circuits B to D, after designing one arithmetic circuit, it is possible to divert the circuit data to other arithmetic circuits. Development difficulty can be suppressed. Further, in this case, it is possible to generate only by designing two relatively simple arithmetic circuits, that is, the arithmetic circuit A that generates a single test value and the arithmetic circuits B to D that generate cumulative test values. In the circuit 521, two or more generation methods can be easily realized by combining the arithmetic circuits B to D in multiple stages. In other words, designing multiple arithmetic circuits with fewer generation methods than the number of provided generation methods has the effect that it is difficult to analyze the correspondence between control commands and error check values due to the provision of multiple generation methods. Just do it. For this reason, in this embodiment, the big fraud prevention effect can be acquired with little development cost.

また、本実施形態では、主制御部110に対する認証機能は、通常の遊技進行に係る処理を行う周辺制御部300とは別個独立した中間制御部180に備えられている。よって、例えば、中間制御部180が主制御部110と演出制御部120との間に設けられているとき、演出制御部120で認証処理が実行されるのは、中間制御部180から認証結果データを受信した場合のみである。すなわち、認証処理を行うことによって演出制御部120のCPUの処理負荷が増大するのは、認証結果データを受信したときのみであるため、演出制御部120の処理負荷が増大する割合を抑えることができる。また、演出制御部120が実行するプログラムには、認証結果データ解析処理に関するプログラムコードを追加するだけでよい。したがって、演出制御部120が実行するプログラム全体にわたっての新たなタイミング設計を行う必要がないので、認証機能を追加する際の実装および検証作業を、より簡単に少ない作業工数で実施することができる。   In the present embodiment, the authentication function for the main control unit 110 is provided in the intermediate control unit 180 that is independent of the peripheral control unit 300 that performs processing related to normal game progression. Therefore, for example, when the intermediate control unit 180 is provided between the main control unit 110 and the effect control unit 120, the authentication process is executed by the effect control unit 120 from the authentication result data from the intermediate control unit 180. Is only received. That is, the processing load of the CPU of the effect control unit 120 increases only when the authentication result data is received by performing the authentication process, and thus the rate of increase in the processing load of the effect control unit 120 can be suppressed. it can. Further, it is only necessary to add a program code related to the authentication result data analysis process to the program executed by the effect control unit 120. Therefore, since it is not necessary to perform new timing design over the entire program executed by the effect control unit 120, the mounting and verification work when adding the authentication function can be performed more easily and with less work man-hours.

また、本実施形態では、主制御部110と演出制御部120との間に中間制御部180が設けられているので、主制御部110を構成するメインCPU110aと演出制御部120を構成するサブCPU120aとの間の処理能力の差異や、主制御部110を構成するメインROM110bやメインRAM110cと演出制御部120を構成するサブROM120bやサブRAM120cとの間の記憶容量の差異を、中間制御部180において吸収することができる。これにより、主制御部110と演出制御部120との間で処理能力や記憶容量に差異がある場合でも、主制御部110と演出制御部120との間のセキュリティ強度を維持することができる。なお、このことは、中間制御部180が、主制御部110と周辺制御部300の他の制御部との間に設けられた場合も同様である。   In the present embodiment, since the intermediate control unit 180 is provided between the main control unit 110 and the effect control unit 120, the main CPU 110 a configuring the main control unit 110 and the sub CPU 120 a configuring the effect control unit 120. In the intermediate control unit 180, the difference in processing capacity between the main ROM 110b and the main RAM 110c constituting the main control unit 110 and the storage capacity difference between the sub ROM 120b and the sub RAM 120c constituting the effect control unit 120 Can be absorbed. Thereby, even when there is a difference in processing capacity and storage capacity between the main control unit 110 and the effect control unit 120, the security strength between the main control unit 110 and the effect control unit 120 can be maintained. This also applies to the case where the intermediate control unit 180 is provided between the main control unit 110 and another control unit of the peripheral control unit 300.

本実施形態では、バッファ手段510のデータバッファ511と生成手段520の格納回路522とを接続し、格納回路522の入力側にはデータバッファ511が配置され、格納回路522の出力側には生成回路521が配置されるような回路構成とした。すなわち、本実施形態では、格納回路522で格納する対象を、バッファ手段510から出力された制御コマンドとした。しかしながら、本発明はこれに限定されず、格納回路522を生成回路521の出力側に設け、格納回路522で格納する対象を誤り検査値としてもよい。なお、中間制御部180においても、格納部622で格納する対象を誤り検査値としてもよいし、制御コマンドとしてもよい。また、主制御部110での格納対象と、中間制御部180での格納対象とが異なってもよい。   In this embodiment, the data buffer 511 of the buffer means 510 and the storage circuit 522 of the generation means 520 are connected, the data buffer 511 is disposed on the input side of the storage circuit 522, and the generation circuit is provided on the output side of the storage circuit 522. The circuit configuration is such that 521 is arranged. In other words, in the present embodiment, the object to be stored in the storage circuit 522 is the control command output from the buffer unit 510. However, the present invention is not limited to this, and the storage circuit 522 may be provided on the output side of the generation circuit 521 so that an object to be stored in the storage circuit 522 may be an error check value. In the intermediate control unit 180 as well, the object stored in the storage unit 622 may be an error check value or a control command. Further, the storage target in the main control unit 110 and the storage target in the intermediate control unit 180 may be different.

また、本実施形態では、累積生成方式で誤り検査値(P−N)を生成する際に用いる制御コマンドを、単独生成方式で用いられる制御コマンド(P−N)以前に生成された複数の制御コマンドの中から所定の選択方法によって選択された複数個の制御コマンドとした。そして、本実施形態では、所定の選択方法として、制御コマンド(P−N)を含めて順番に遡り、制御コマンド(P−N)、制御コマンド(P−N−1)、制御コマンド(P−N−2)、・・・、制御コマンド(P−N−Q)の(Q+1)個(Q;正の整数)を選択するものとした。しかしながら、本発明はこれに限定されず、制御コマンド(P−N)から順番に遡らなくてもよいし、制御コマンド(P−N)を含めなくてもよい。このようにすることで、誤り検査値の生成元となる制御コマンドが、時系列的に分散されて、誤り検査値がどのような制御コマンドを用いて生成されているのかを解析することが困難となる。したがって、遊技機1が有する誤り検査値付加機能に対する秘匿性を確保することができ、遊技機1のセキュリティ強度を向上させることができる。また、所定の選択方法として、過去に生成された全ての制御コマンドを用いてもよい。この場合、制御コマンド(1)から現在の制御コマンド(P)までの全ての制御コマンドを累積させることで、制御コマンドの連続性をより高い確度で認証することができ、認証機能の確度を向上させることができる。   In the present embodiment, the control command used when generating the error check value (PN) by the cumulative generation method is a plurality of controls generated before the control command (PN) used by the single generation method. A plurality of control commands are selected from the commands by a predetermined selection method. In the present embodiment, as a predetermined selection method, the control command (PN) and the control command (PN-1), control command (PN-1), control command (PN) are traced back in order including the control command (PN). N-2), ..., (Q + 1) (Q: positive integer) of control commands (PNQ) are selected. However, the present invention is not limited to this, and it is not necessary to go back in order from the control command (PN), and the control command (PN) may not be included. In this way, it is difficult to analyze what control commands are used to generate error check values because the control commands that are the sources of error check values are distributed in time series. It becomes. Therefore, the confidentiality of the error check value addition function of the gaming machine 1 can be ensured, and the security strength of the gaming machine 1 can be improved. Further, as a predetermined selection method, all control commands generated in the past may be used. In this case, by accumulating all the control commands from the control command (1) to the current control command (P), the continuity of the control command can be authenticated with higher accuracy, and the accuracy of the authentication function is improved. Can be made.

また、本実施形態では、生成方式の具体的な実施態様を、生成手段520に設けられた複数の演算回路および記憶回路で構成された生成回路521で表していたが、本発明はこれに限定されない。例えば、生成手段520には、生成回路521の替わりに、それぞれの生成方式の演算内容が組み込まれたルックアップテーブルを設けておき、制御コマンドが入力されるとそれぞれの生成方式で演算された誤り検査値が出力されるように構成することができる。そして、HWパラメータの値によって、特定の生成方式で演算された誤り検査値が一義的に出力されるように構成することができる。これにより、例えば、遊技機メーカーごとに所望する生成方式が異なる場合や、機種ごとに採用する生成方式を替えたい場合であっても、ルックアップテーブルに組み込む演算内容を改変すればよい。このため、セキュリティ機能を追加することによる開発コストや開発時間の増大を抑制することができ、セキュリティ機能を比較的簡易に追加することができる。   Further, in this embodiment, a specific embodiment of the generation method is represented by the generation circuit 521 including a plurality of arithmetic circuits and storage circuits provided in the generation unit 520. However, the present invention is not limited to this. Not. For example, instead of the generation circuit 521, the generation unit 520 is provided with a lookup table in which the calculation contents of each generation method are incorporated, and when a control command is input, an error calculated in each generation method is provided. An inspection value can be output. And it can comprise so that the error check value calculated by the specific production | generation system may be output uniquely by the value of a HW parameter. Thus, for example, even when the desired generation method differs for each gaming machine manufacturer or when it is desired to change the generation method adopted for each model, the calculation contents to be incorporated into the lookup table may be changed. For this reason, an increase in development cost and development time due to the addition of the security function can be suppressed, and the security function can be added relatively easily.

また、本実施形態では、HWパラメータは、デフォルトの生成方式を決定するための選択情報として定義したが、本発明はこれに限定されない。例えば、図22に示すように、HWパラメータをデフォルトの変更条件を決定する選択情報とすることもできる。このとき、決定回路542には、予めHWパラメータに対応した複数の変更条件を用意しておくとともに、デフォルトの生成方式を用意しておく。そして、決定回路542は、ブート処理中のHWパラメータ設定処理において、メインCPU110aから設定されたHWパラメータに対応する変更条件を、判定回路541の変更条件記憶器541aへセットすることとすればよい。   In this embodiment, the HW parameter is defined as selection information for determining a default generation method, but the present invention is not limited to this. For example, as shown in FIG. 22, the HW parameter can be used as selection information for determining a default change condition. At this time, in the determination circuit 542, a plurality of change conditions corresponding to the HW parameters are prepared in advance and a default generation method is prepared. Then, the determination circuit 542 may set the change condition corresponding to the HW parameter set by the main CPU 110a in the change condition storage unit 541a of the determination circuit 541 in the HW parameter setting process during the boot process.

なお、判定回路541を構成する比較器541bは、バッファ手段510から出力された制御コマンドが変更条件を満たしているとき、当該制御コマンドが変更条件を満たす制御コマンドであることを示す判定結果信号を、毎回出力しなくともよい。すなわち、比較器541bは、バッファ手段510から出力された制御コマンドが、変更条件を満たす制御コマンドであっても、決定回路542にて生成方式が変更されなくなり、不正者が生成方式の変更条件を解析することが更に困難となる。   When the control command output from the buffer means 510 satisfies the change condition, the comparator 541b constituting the determination circuit 541 outputs a determination result signal indicating that the control command is a control command satisfying the change condition. , It does not have to be output every time. That is, even if the control command output from the buffer means 510 is a control command that satisfies the change condition, the comparator 541b does not change the generation method in the decision circuit 542, and an unauthorized person sets the change condition of the generation method. It becomes more difficult to analyze.

更に、比較器541bは、制御コマンドが入力される度に、判定結果信号自体を毎回出力しなくともよい。この場合、バッファ手段510の制御回路512と、決定回路542とを直接制御線で接続しておき、制御回路512から決定回路542へ作動許可信号を出力させる。決定回路542は、当該作動許可信号の入力に基づいて、生成個数記憶領域(P)の値を更新して、生成方式設定処理を行えばよい。さらに、バッファ手段の制御回路512と、決定手段540の判定回路541や決定回路542とを接続するのではなく、生成手段520の制御回路523とこれらとを接続し、制御回路523から判定回路541や決定回路542へ作動許可信号を出力させるようにしてもよい。   Further, the comparator 541b may not output the determination result signal itself every time a control command is input. In this case, the control circuit 512 of the buffer means 510 and the determination circuit 542 are directly connected by a control line, and an operation permission signal is output from the control circuit 512 to the determination circuit 542. The determination circuit 542 may perform the generation method setting process by updating the value of the generation number storage area (P) based on the input of the operation permission signal. Further, the control circuit 512 of the buffer means is not connected to the determination circuit 541 or the determination circuit 542 of the determination means 540, but is connected to the control circuit 523 of the generation means 520, and the determination circuit 541 is connected to the control circuit 523. Alternatively, the operation permission signal may be output to the determination circuit 542.

また、HWパラメータは、変更方式や変更タイミングの設定方法を決定するための選択情報として定義することができる。例えば、HWパラメータで変更方式を決定する場合、決定回路542には、予め定められた生成方式の変更順序等を規定する変更方式を複数用意しておき、HWパラメータと対応付けておく。そして、決定回路542は、ブート処理中のHWパラメータ設定処理において、メインCPU110aから設定されたHWパラメータに対応する変更方式をセットし、セットされた変更方式に従って生成方式を変更させていけばよい。   The HW parameter can be defined as selection information for determining a change method and a change timing setting method. For example, when the change method is determined by the HW parameter, the determination circuit 542 prepares a plurality of change methods that define the change order of the predetermined generation method, and associates the change method with the HW parameter. Then, the determination circuit 542 may set a change method corresponding to the HW parameter set from the main CPU 110a in the HW parameter setting process during the boot process, and change the generation method according to the set change method.

また、HWパラメータは、デフォルトの生成方式のみを決定する等、変更プロトコルの一構成要素のみを決定するための選択情報として定義することに限定されない。例えば、HWパラメータは、デフォルトの生成方式とデフォルトの変更条件の両方を決定するための選択情報として定義することもできる。すなわち、本発明において、HWパラメータは、生成手段520で用いる生成方式を決定するための選択情報に限定されず、変更条件、変更タイミングの設定方法、および変更方式など、生成方式に係る変更プロトコルを決定するための選択情報として定義することができる。つまり、HWパラメータは、生成方式およびその変更プロトコルを実施態様とした誤り検査値付加機能に対する選択情報である。   Further, the HW parameter is not limited to being defined as selection information for determining only one component of the change protocol, such as determining only a default generation method. For example, the HW parameter can be defined as selection information for determining both a default generation method and a default change condition. In other words, in the present invention, the HW parameter is not limited to the selection information for determining the generation method used in the generation unit 520, but the change protocol related to the generation method such as the change condition, the change timing setting method, and the change method. It can be defined as selection information for determination. That is, the HW parameter is selection information for the error check value addition function in which the generation method and the change protocol thereof are implemented.

このように、本発明では、誤り検査値付加機能が、主制御部110のブート処理時の初期値設定時以外ではアクセスされないメインROM110bの特定の記憶領域に記憶されているHWパラメータの値に基づいて決定される。よって、不正者が、主制御部110と中間制御部180との間の送信データを窃取しても、遊技機1にどのような誤り検査値付加機能が搭載されているのかを解析することが困難となり、誤り検査値付加機能に対する秘匿性は更に向上し、遊技機1のセキュリティ強度をより一層向上させることができる。   As described above, in the present invention, the error check value addition function is based on the value of the HW parameter stored in the specific storage area of the main ROM 110b that is not accessed except when the initial value is set during the boot process of the main control unit 110. Determined. Therefore, even if an unauthorized person steals transmission data between the main control unit 110 and the intermediate control unit 180, it is possible to analyze what error check value addition function is installed in the gaming machine 1. It becomes difficult, the secrecy of the error check value addition function is further improved, and the security strength of the gaming machine 1 can be further improved.

また、本実施形態では、P=1の場合に、固有情報を初期設定値として生成手段520に設定した。そして、P≦Nの場合に、主制御部110では、制御コマンド(P)に対して初期検査値を付加して送信し、中間制御部180では、対応する初期検査値を用いて誤り検査処理を行うこととしたが、本発明はこれに限定されず、中間制御部180は、P≦Nの場合は誤り検査処理を行わず、P>Nとなってから初めて誤り検査処理を行うこととしてもよい。   In the present embodiment, the unique information is set in the generation unit 520 as an initial setting value when P = 1. When P ≦ N, the main control unit 110 adds an initial check value to the control command (P) and transmits it, and the intermediate control unit 180 uses the corresponding initial check value to perform error check processing. However, the present invention is not limited to this, and the intermediate control unit 180 does not perform error check processing when P ≦ N, and performs error check processing only after P> N. Also good.

また、本実施形態では、中間制御部180は、主制御部110が有する生成方式を変更する機能と同様の機能を有する決定部623であることとしたが、本発明はこれに限定されない。例えば、中間制御部180は、受信した制御コマンドに付加された誤り検査値と、生成部621が有する全ての生成方式で生成された誤り検査値と照合して、誤り検査処理を行うこととしてもよい。この場合、中間制御部180は、いずれかの生成方式で生成された誤り検査値と一致すれば、検査結果は正常であるとして、受信した制御コマンドの正当性ならびに主制御部110の正当性を認証すればよい。   In the present embodiment, the intermediate control unit 180 is the determination unit 623 having the same function as the function of changing the generation method of the main control unit 110, but the present invention is not limited to this. For example, the intermediate control unit 180 may perform error check processing by checking the error check value added to the received control command with the error check values generated by all the generation methods included in the generation unit 621. Good. In this case, if the intermediate control unit 180 matches the error check value generated by any of the generation methods, the intermediate control unit 180 determines that the check result is normal and confirms the validity of the received control command and the validity of the main control unit 110. Just authenticate.

また、本実施形態では、P=1の場合に、固有情報を初期設定値として生成手段520に設定したが、本発明はこれに限定されない。例えば、主制御部110に計時手段を設け、または主制御部110が予め備えている計時手段を用いて、電源投入時から制御コマンドの送信タイミングまでの経過時間を経時情報として取得し、取得した経時情報を初期検査値として用いてもよい。取得した経時情報の値は、ランダム性を有する変動値であるため、これを用いて生成された初期検査値を再利用することは困難であり、遊技機1のセキュリティ強度をより一層向上させることができる。このとき、中間制御部180は、上記のようにP≦Nの場合は誤り検査処理を行わないようにすればよい。   In the present embodiment, the unique information is set as the initial setting value in the generation unit 520 when P = 1, but the present invention is not limited to this. For example, the main control unit 110 is provided with time measuring means, or using the time measuring means provided in the main control unit 110 in advance, the elapsed time from the power-on to the transmission timing of the control command is acquired as time-lapse information and acquired. Time information may be used as an initial inspection value. Since the value of the acquired time-lapse information is a fluctuation value having randomness, it is difficult to reuse the initial inspection value generated by using this, and the security strength of the gaming machine 1 is further improved. Can do. At this time, the intermediate control unit 180 may not perform the error check process when P ≦ N as described above.

また、このとき、予めN≧2と取り決めてあれば、中間制御部180は、制御コマンドに付加された経時情報が、連続して送信された経時情報同士が時系列として連続性を有するか否か、すなわち、連続して送信された経時情報の値が送信順番に従って増加しているか否かを確認することによって誤り検査処理を行ってもよい。なお、経時情報は、計時手段をリアルタイムクロック回路等として取得される絶対的な時間であってもよいし、リセット時から計数された相対的な時間であってもよい。いずれにしても、経時情報は、その取得されるタイミングが不定期なタイミングであればある程、様々な値に変動するため、実質的に遊技機1に固有の情報と捉える事ができる。また、N≧2のとき、経時情報は、制御コマンドの送信タイミング毎に計時手段から取得した経時情報を用いてもよいし、最初に生成した制御コマンドの送信タイミングに取得した経時情報を複数の制御コマンドに用いてもよい。また、例えば、最初に生成した制御コマンドに付加される誤り検査値の生成元となる初期設定値は、固定値であるメインCPU110aの識別番号(ID)を用い、それ以降の制御コマンドに付加される誤り検査値の生成元となる初期設定値は、変動値である経時情報を用いるというように、固定値と変動値を組み合わせることもできる。   At this time, if N ≧ 2 is determined in advance, the intermediate control unit 180 determines whether or not the temporal information added to the control command has continuity in time series between the temporal information transmitted continuously. In other words, the error checking process may be performed by confirming whether or not the value of the time information transmitted continuously increases in accordance with the transmission order. The time information may be an absolute time acquired by using a time measuring means as a real time clock circuit or the like, or may be a relative time counted from the reset time. In any case, the time-lapse information changes to various values as the timing of acquisition is irregular, so that it can be regarded as information inherent to the gaming machine 1 substantially. Further, when N ≧ 2, the time information may be obtained from the time measuring means for each control command transmission timing, or a plurality of time information acquired at the transmission timing of the first generated control command may be used. It may be used for control commands. Also, for example, the initial setting value that is the source of the error check value added to the first generated control command uses the identification number (ID) of the main CPU 110a, which is a fixed value, and is added to subsequent control commands. The initial setting value from which the error check value is generated can be a combination of a fixed value and a variation value, such as using time-lapse information that is a variation value.

また、生成手段520に設定される初期設定値として、例えば、主制御部110の誤り検査値付加機能の選択情報であるHWパラメータを用いてもよい。すなわち、主制御部110の検査値生成部500を構成する決定手段540は、ブート処理時に自身の決定回路542にセットされたHWパラメータを、HWパラメータ設定処理後も記憶しておく。そして、決定回路542が、格納回路522へ固有情報を設定する必要があるか否かを判断する。このとき、バッファ手段510の制御回路512と決定回路542とを制御線で接続しておき、制御回路512から作動許可信号を出力させる。決定回路542は、当該作動許可信号の入力に基づいて生成個数記憶領域(P)の値を更新し、生成個数記憶領域(P)の値がP=1であれば、バッファ手段510から出力された制御コマンドは、格納回路522に格納された制御コマンドがクリアされてから最初にメインCPU110aにて生成された制御コマンドであると判断する。この場合、決定回路542は、その旨をバッファ手段510へ通知して固有情報の出力を要求させず、自身に記憶しているHWパラメータを格納回路522へ設定し、初期設定値として用いればよい。   Further, as an initial setting value set in the generation unit 520, for example, an HW parameter that is selection information of an error check value addition function of the main control unit 110 may be used. That is, the determination unit 540 constituting the inspection value generation unit 500 of the main control unit 110 stores the HW parameter set in its determination circuit 542 during the boot process even after the HW parameter setting process. Then, the determination circuit 542 determines whether it is necessary to set unique information in the storage circuit 522. At this time, the control circuit 512 of the buffer means 510 and the determination circuit 542 are connected by a control line, and an operation permission signal is output from the control circuit 512. The decision circuit 542 updates the value of the generated number storage area (P) based on the input of the operation permission signal. If the value of the generated number storage area (P) is P = 1, it is output from the buffer means 510. The control command is determined to be a control command first generated by the main CPU 110a after the control command stored in the storage circuit 522 is cleared. In this case, the determination circuit 542 may notify the buffer unit 510 to request that the specific information be output, set the HW parameter stored in the storage circuit 522, and use it as an initial setting value. .

HWパラメータは、その内容や実装方法を遊技機メーカーの独自の判断で決定することができるため秘匿性が高く、実質的に遊技機1に固有の情報と捉えることができる。なお、中間制御部180は、上記のようにP≦Nの場合は誤り検査処理を行わないようにすればよい。このようにすることで、中間制御部180は、HWパラメータに相当する誤り検査値付加機能の選択情報を、予め主制御部110との間で取り決めていなくとも、主制御部110で設定された誤り検査値付加機能に対応した誤り検査値出力機能を選択することができる。よって、不正者が、中間制御部180自体を解析しても、複数の誤り検査値出力機能のうちのどの出力機能でもって出力された誤り検査値を用いて誤り検査処理が行われるのかを特定することができず、当該出力機能の秘匿性を確保することができ、遊技機1のセキュリティ強度を更に向上させることができる。   The content and mounting method of the HW parameter can be determined by the game machine manufacturer's own judgment, so that the HW parameter is highly confidential and can be regarded as information inherent to the gaming machine 1 substantially. The intermediate control unit 180 may not perform the error check process when P ≦ N as described above. By doing so, the intermediate control unit 180 is set by the main control unit 110 even if the selection information of the error check value addition function corresponding to the HW parameter has not been negotiated with the main control unit 110 in advance. An error check value output function corresponding to the error check value addition function can be selected. Therefore, even if an unauthorized person analyzes the intermediate control unit 180 itself, it is specified whether the error check process is performed using the error check value output by any of the plurality of error check value output functions. Therefore, the confidentiality of the output function can be ensured, and the security strength of the gaming machine 1 can be further improved.

また、本実施形態では、検査値生成部500内の各手段間や各回路間の入出力制御方式を、同期インターフェース方式とした。そして、検査値生成部500内の各手段同士や各回路同士のデータ送受は、主制御部110のクロックパルス発生回路から出力されたクロック信号に同期して行うこととした。しかしながら、本発明はこれに限定されず、検査値生成部500内の各手段同士や各回路同士のデータ送受は、当該クロック信号に対して非同期で行うこととしてもよい。この場合であっても、検査値生成部500内では、出力するデータの接続先に対してイネーブル信号等を出力すれば、接続先は当該イネーブル信号等の入力に基づいて、当該出力データを取り込み、CPUインターフェース方式とは異なることとなる。   Further, in the present embodiment, the input / output control method between each means or each circuit in the test value generation unit 500 is a synchronous interface method. Then, data transmission / reception between each means and each circuit in the inspection value generation unit 500 is performed in synchronization with the clock signal output from the clock pulse generation circuit of the main control unit 110. However, the present invention is not limited to this, and data transmission / reception between each means and each circuit in the test value generation unit 500 may be performed asynchronously with respect to the clock signal. Even in this case, in the test value generation unit 500, if an enable signal or the like is output to the connection destination of the data to be output, the connection destination captures the output data based on the input of the enable signal or the like. This is different from the CPU interface method.

また、本実施形態では、誤り検査値を送信部550の送信バッファ551へ書き込むタイミングは、付加手段530の制御回路532が出力する入力選択信号の出力タイミングを調整することによって制御していた。しかしながら、本発明はこれに限定されず、バッファ手段510の制御回路512が、制御回路532に対して出力する作動許可信号の出力タイミングを調整することで制御することもできる。また、生成手段520の制御回路523が、格納回路522や生成回路521へ出力するシフト処理信号の出力タイミングを調整することで制御することもできる。制御回路532が出力する入力選択信号の出力タイミングは、制御回路512が出力する作動許可信号の入力に基づいているからである。また、当該接続切替信号が入力される入力選択回路531に誤り検査値が入力されるタイミングは、制御回路523が出力するシフト処理信号の入力に基づいているからである。   In this embodiment, the timing for writing the error check value to the transmission buffer 551 of the transmission unit 550 is controlled by adjusting the output timing of the input selection signal output by the control circuit 532 of the adding unit 530. However, the present invention is not limited to this, and the control circuit 512 of the buffer means 510 can be controlled by adjusting the output timing of the operation permission signal output to the control circuit 532. In addition, the control circuit 523 of the generation unit 520 can also perform control by adjusting the output timing of the shift processing signal output to the storage circuit 522 or the generation circuit 521. This is because the output timing of the input selection signal output from the control circuit 532 is based on the input of the operation permission signal output from the control circuit 512. This is because the timing at which the error check value is input to the input selection circuit 531 to which the connection switching signal is input is based on the input of the shift processing signal output from the control circuit 523.

なお、制御回路523が出力するシフト処理信号の出力タイミングにおいても、制御回路512が出力する作動許可信号の入力に基づいており、更に、制御回路512が出力する作動許可信号の出力タイミングは、メインCPU110aが出力するバッファ手段510への書き込み信号の入力に基づいている。そして、メインCPU110aが出力する当該書き込み信号は、既存の遊技処理用プログラムに元来規定されていたコマンド送信処理の実行タイミングによって予め指定されている。   The output timing of the shift processing signal output from the control circuit 523 is also based on the input of the operation permission signal output from the control circuit 512, and the output timing of the operation permission signal output from the control circuit 512 is the main timing. This is based on the input of a write signal to the buffer means 510 output by the CPU 110a. The write signal output from the main CPU 110a is specified in advance by the execution timing of the command transmission process originally defined in the existing game processing program.

このように、本発明では、検査値生成部500が誤り検査値を送信部550へ書き込むタイミングは、既存の遊技処理用プログラムで規定されたコマンド送信処理の実行タイミングに基づいて一意に決定すればよく、比較的簡易にタイミング設計が可能である。よって、本発明は、セキュリティ機能を既存の遊技機に比較的簡易に追加することができ、かつ、誤り検査値の書き込みタイミングの設計に、比較的大きなマージンを確保することができ、誤り検査処理の確度確保が容易となる。   As described above, in the present invention, the timing at which the test value generation unit 500 writes the error test value to the transmission unit 550 is uniquely determined based on the execution timing of the command transmission process defined by the existing game processing program. Well, timing design is relatively easy. Therefore, according to the present invention, a security function can be added to an existing gaming machine relatively easily, and a relatively large margin can be ensured in designing an error check value write timing. It is easy to ensure accuracy.

また、本実施形態では、中間制御部180は、認証結果データを制御コマンドに付加して認証結果データ付き制御コマンドとして演出制御部120へ送信することとしたが、本発明はこれに限定されず、制御コマンドおよび認証結果データを別々に送信するようにしてもよい。この場合、演出制御部120は、認証結果データを受信したかを判断し、認証結果データを受信した場合に認証結果データ解析処理を行うようにすればよい。なお、制御コマンドと認証結果データのそれぞれにダミーデータを付加して、データ長が同一となるようにしてもよい。このようにすることにより、不正者が、制御コマンドと認証結果データを区別することが困難となり、遊技機1のセキュリティ強度を向上することができる。   In the present embodiment, the intermediate control unit 180 adds the authentication result data to the control command and transmits it to the effect control unit 120 as a control command with authentication result data. However, the present invention is not limited to this. The control command and the authentication result data may be transmitted separately. In this case, the effect control unit 120 may determine whether or not the authentication result data has been received, and perform authentication result data analysis processing when the authentication result data is received. Note that dummy data may be added to each of the control command and the authentication result data so that the data length is the same. By doing so, it becomes difficult for an unauthorized person to distinguish between the control command and the authentication result data, and the security strength of the gaming machine 1 can be improved.

また、本実施形態では、中間制御部180は、認証成功の場合も認証不成功の場合も、認証結果データを生成し、演出制御部120へ送信することとしたが、本発明はこれに限定されず、例えば、中間制御部180は、認証不成功の場合のみ認証結果データを生成し、あるいは、認証不成功を示す信号を出力し、演出制御部120へ送信するようにしてもよい。演出制御部120は、認証結果データまたは認証不成功を示す信号を受信したか否かを判断し、受信した場合に報知信号を出力するように構成すればよい。   In the present embodiment, the intermediate control unit 180 generates authentication result data and transmits it to the effect control unit 120 regardless of whether authentication is successful or unsuccessful. However, the present invention is not limited to this. For example, the intermediate control unit 180 may generate authentication result data only when authentication is unsuccessful, or output a signal indicating unsuccessful authentication and transmit it to the effect control unit 120. The effect control unit 120 may determine whether or not a signal indicating authentication result data or authentication failure has been received and output a notification signal when received.

また、本実施形態では、検査値生成部500をワンチップマイコン110mとは別個の回路構成としたが、本発明はこれに限定されず、検査値生成部500をワンチップマイコン110mと一体の回路構成としてもよいし、送信部550と一体の回路構成としてもよい。更に、本発明は、検査値生成部500、ワンチップマイコン110m、及び送信部550の全てを一体の回路構成としてもよい。   In this embodiment, the inspection value generation unit 500 has a circuit configuration separate from the one-chip microcomputer 110m. However, the present invention is not limited to this, and the inspection value generation unit 500 is a circuit integrated with the one-chip microcomputer 110m. It is good also as a structure, and it is good also as a circuit structure integrated with the transmission part 550. Furthermore, in the present invention, all of the inspection value generation unit 500, the one-chip microcomputer 110m, and the transmission unit 550 may be integrated into a circuit configuration.

また、本実施形態では、中間制御部180をCPU、ROM、RAM等を備えて構成しているが、同様の機能をLSI等の集積回路として実現するように構成してもよい。
また、本実施形態では、本発明をパチンコ遊技機に適用する例を示したが、これに限定されず、本発明は、雀球遊技機、アレンジボール等のパチンコ遊技機以外の弾球遊技機、スロットマシン等の回胴式遊技機などの他の遊技機にも適用することができる。これらの遊技機においても、本実施形態と同様に構成することにより、本実施形態と同様の効果を得ることができる。
In the present embodiment, the intermediate control unit 180 includes a CPU, a ROM, a RAM, and the like. However, a similar function may be realized as an integrated circuit such as an LSI.
Moreover, in this embodiment, although the example which applies this invention to a pachinko game machine was shown, it is not limited to this, This invention is a ball game machine other than pachinko game machines, such as a sparrow ball game machine and an arrangement ball. It can also be applied to other gaming machines such as slot machines such as slot machines. Even in these gaming machines, the same effects as in the present embodiment can be obtained by configuring in the same manner as in the present embodiment.

また、本実施形態では、本発明を遊技機に適用する例を示したが、これに限定されず、本発明は、遊技機のような複数の制御部を備え、これら制御部間のデータ伝送について認証処理を実行する電子機器およびその認証方法にも適用することができる。これらの電子機器およびその認証方法においても、本実施形態と同様に構成することにより、本実施形態と同様の効果を得ることができる。また、本実施形態は、その目的および構成等に特に矛盾や問題がない限り、互いの技術を流用することができる。   In the present embodiment, an example in which the present invention is applied to a gaming machine has been described. However, the present invention is not limited thereto, and the present invention includes a plurality of control units such as a gaming machine, and data transmission between these control units. The present invention can also be applied to an electronic device that executes authentication processing and an authentication method thereof. Also in these electronic devices and their authentication methods, the same effects as in the present embodiment can be obtained by configuring in the same manner as in the present embodiment. Moreover, this embodiment can divert each other's technology as long as there is no particular contradiction or problem in its purpose and configuration.

1 遊技機
110 主制御部
110a メインCPU
110b メインROM
110c メインRAM
110d ブートROM
120 演出制御部
120a サブCPU
120b サブROM
120c サブRAM
180 中間制御部
180a CPU
180b ROM
180c RAM
300 周辺制御部
500 検査値生成部
510 バッファ手段
520 生成手段
530 付加手段
540 決定手段
550 送信部
600 受信部
610 検査部
620 検査値生成部
621 生成部
622 格納部
623 決定部
630 付加部
640 中継送信部
1 gaming machine 110 main control unit 110a main CPU
110b Main ROM
110c Main RAM
110d Boot ROM
120 Production control unit 120a Sub CPU
120b Sub ROM
120c sub RAM
180 Intermediate control unit 180a CPU
180b ROM
180c RAM
300 Peripheral Control Unit 500 Inspection Value Generation Unit 510 Buffer Unit 520 Generation Unit 530 Addition Unit 540 Determination Unit 550 Transmission Unit 600 Reception Unit 610 Inspection Unit 620 Test Value Generation Unit 621 Generation Unit 622 Storage Unit 623 Determination Unit 630 Addition Unit 640 Relay Transmission Part

Claims (8)

制御コマンドを出力する主制御部と、前記制御コマンドに基づく処理を行う周辺制御部と、前記主制御部と前記周辺制御部との間に設けられた中間制御部と、を含む遊技機であって、
前記主制御部は、
所定の遊技情報を記憶する記憶領域を有する記憶部と、
前記遊技情報に応じた所定の演算を行って前記制御コマンドを生成し、生成した制御コマンドを予め取り決められた出力制御方式で出力する演算処理部と、
前記演算処理部によって出力された制御コマンドに付加され、該制御コマンドの正当性を検査するための誤り検査値を、予め取り決められた複数の生成方式で生成可能であり、いずれかの生成方式で生成された誤り検査値を前記制御コマンドへ付加して出力する第1検査値生成部と、
前記誤り検査値が付加された制御コマンドを前記周辺制御部へ送信する送信部と、
を備え、
前記中間制御部は、
前記第1検査値生成部によって生成された誤り検査値に対応する検証用の誤り検査値を生成する第2検査値生成部と、
前記送信部によって送信された誤り検査値と前記第2検査値生成部によって生成された誤り検査値とを比較して前記送信部によって送信された制御コマンドの正当性の検査を行い、該検査の結果情報を生成する検査部と、
前記送信部によって送信された制御コマンドを前記周辺制御部へ中継送信すると共に、前記結果情報を前記周辺制御部へ送信する中継送信部と、
を備え、
前記周辺制御部は、
前記中継送信部によって中継送信された制御コマンドに基づく処理を行うと共に、前記中継送信部によって送信された前記結果情報に応じた処理を行う処理部
を備え、
前記第1検査値生成部は、
前記演算処理部によって出力された制御コマンドを入力し、入力した制御コマンドを予め指定されたタイミングで出力するバッファ手段と、
前記バッファ手段によって出力された制御コマンドを入力し、入力した制御コマンドへ付加する誤り検査値を生成する際の生成方式、又は入力した制御コマンドより後に前記演算処理部によって出力される制御コマンドへ付加する誤り検査値を生成する際の生成方式を、入力した制御コマンドより過去に前記演算処理部によって出力された一の制御コマンドを用いて誤り検査値を生成する第1生成方式と、前記過去に出力された複数の制御コマンドを用いて誤り検査値を生成する第2生成方式とのいずれの生成方式にするかを、予め定められたプロトコルに従って決定し、決定した該生成方式で生成される誤り検査値を前記付加する誤り検査値とすることを示す生成方式情報を、前記タイミングに応じて出力する決定手段と、
前記バッファ手段によって出力された制御コマンドと前記決定手段によって出力された生成方式情報とを入力し、入力した制御コマンドより過去に前記演算処理部によって出力された一又は複数の制御コマンドを用いて、入力した生成方式情報が示す生成方式で生成した誤り検査値を、前記付加する誤り検査値として前記タイミングに応じて出力する生成手段と、
前記バッファ手段によって出力された制御コマンドと前記生成手段によって出力された誤り検査値とを入力し、入力した該制御コマンドに、入力した該誤り検査値を付加して、該誤り検査値が付加された該制御コマンドを、前記演算処理部において予め取り決められた前記出力制御方式と同じ出力制御方式で、前記タイミングに応じて前記送信部へ出力する付加手段と、
を有することを特徴とする遊技機。
A gaming machine including a main control unit that outputs a control command, a peripheral control unit that performs processing based on the control command, and an intermediate control unit provided between the main control unit and the peripheral control unit. And
The main control unit
A storage unit having a storage area for storing predetermined game information;
A calculation processing unit that performs a predetermined calculation according to the game information to generate the control command, and outputs the generated control command in a predetermined output control method;
An error check value added to the control command output by the arithmetic processing unit and used to check the correctness of the control command can be generated by a plurality of predetermined generation methods. A first check value generation unit that outputs the generated error check value to the control command;
A transmission unit for transmitting the control command to which the error check value is added to the peripheral control unit;
With
The intermediate control unit
A second check value generator for generating an error check value for verification corresponding to the error check value generated by the first check value generator;
The error check value transmitted by the transmitter is compared with the error check value generated by the second check value generator, and the validity of the control command transmitted by the transmitter is checked. An inspection unit for generating result information;
A relay transmission unit that transmits the control command transmitted by the transmission unit to the peripheral control unit and transmits the result information to the peripheral control unit;
With
The peripheral control unit
A processing unit that performs processing based on the control command relayed by the relay transmission unit and performs processing according to the result information transmitted by the relay transmission unit;
The first inspection value generation unit
Buffer means for inputting the control command output by the arithmetic processing unit and outputting the input control command at a predesignated timing;
The control command output by the buffer means is input, and the generation method for generating an error check value to be added to the input control command, or the control command output by the arithmetic processing unit after the input control command is added A first generation method for generating an error check value using one control command output by the arithmetic processing unit in the past from an input control command; An error generated in the determined generation method is determined according to a predetermined protocol to be selected as a second generation method for generating an error check value using a plurality of output control commands. A determination unit that outputs generation method information indicating that a check value is the error check value to be added, according to the timing;
Using the control command output by the buffer means and the generation method information output by the determination means, using one or more control commands output by the arithmetic processing unit in the past than the input control command, Generation means for outputting an error check value generated by the generation method indicated by the input generation method information according to the timing as the error check value to be added;
The control command output by the buffer means and the error check value output by the generating means are input, the error check value input is added to the input control command, and the error check value is added. An additional means for outputting the control command to the transmission unit according to the timing in the same output control method as the output control method determined in advance in the arithmetic processing unit;
A gaming machine characterized by comprising:
前記決定手段は、前記バッファ手段によって出力された制御コマンドを入力すると、入力した制御コマンドが予め定められた条件を満たす制御コマンドであるか否かの判定を実行し、
前記プロトコルは、前記判定の結果が、入力した制御コマンドが前記条件を満たす制御コマンドであることを示す場合には、前記付加する誤り検査値を生成する際の生成方式を、前記第1生成方式又は前記第2生成方式のいずれかに変更することである
こと特徴とする請求項に記載の遊技機。
When the determination means inputs the control command output by the buffer means, the determination means determines whether or not the input control command is a control command that satisfies a predetermined condition,
When the result of the determination indicates that the input control command is a control command that satisfies the condition, the protocol is configured to generate the error check value to be added as the first generation method. The game machine according to claim 1 , wherein the game machine is changed to any one of the second generation methods.
前記条件は、前記判定の対象となった制御コマンドの種別が、予め定められた制御コマンドの種別であることを特徴とする請求項に記載の遊技機。 The gaming machine according to claim 2 , wherein the condition is that the type of the control command that is the object of the determination is a predetermined type of control command. 前記決定手段は、互いに異なる複数の前記条件を保持し、前記複数の条件を用いて前記判定を実行可能であり、
前記記憶部は、遊技機の起動の際にアクセス可能であって遊技機の初期設定情報を記憶する記憶領域を有し、前記初期設定情報は前記複数の条件のそれぞれに対応する複数の選択情報を含み、
前記演算処理部は、前記遊技機の起動の際に前記複数の選択情報のうちの特定の選択情報を前記決定手段へ設定し、
前記決定手段は、設定された前記特定の選択情報に対応する特定の前記条件を用いて前記判定を実行する
ことを特徴とする請求項1乃至のいずれかに記載の遊技機。
The determination means holds a plurality of different conditions, and can execute the determination using the plurality of conditions.
The storage unit has a storage area that is accessible when the gaming machine is activated and stores initial setting information of the gaming machine, and the initial setting information includes a plurality of selection information corresponding to each of the plurality of conditions. Including
The arithmetic processing unit sets specific selection information of the plurality of selection information to the determining means when the gaming machine is activated,
The gaming machine according to any one of claims 1 to 3 , wherein the determination unit executes the determination using the specific condition corresponding to the specific selection information that has been set.
前記初期設定情報に含まれる前記選択情報は、前記演算処理部が前記遊技機の起動の際に設定する前記特定の選択情報であることを特徴とする請求項に記載の遊技機。 The gaming machine according to claim 4 , wherein the selection information included in the initial setting information is the specific selection information set by the arithmetic processing unit when the gaming machine is activated. 前記バッファ手段は、入力した制御コマンドを、前記演算処理部において予め取り決められた前記出力制御方式とは異なる所定の出力制御方式で出力し、
前記生成手段は、該生成手段が生成した誤り検査値を、前記バッファ手段が用いる前記所定の出力制御方式と同じ出力制御方式で出力し、
前記決定手段は、前記生成方式情報を、前記バッファ手段が用いる前記所定の出力制御方式と同じ出力制御方式で出力する
ことを特徴とする請求項1乃至のいずれかに記載の遊技機。
The buffer means outputs the input control command in a predetermined output control method different from the output control method determined in advance in the arithmetic processing unit,
The generation means outputs the error check value generated by the generation means in the same output control method as the predetermined output control method used by the buffer means,
The gaming machine according to any one of claims 1 to 5 , wherein the determination unit outputs the generation method information in the same output control method as the predetermined output control method used by the buffer unit.
前記第1検査値生成部は、前記演算処理部と前記送信部との間に設けられ、
前記演算処理部と前記第1検査値生成部との接続と、前記第1検査値生成部と前記送信部との接続とは、同じ規格のバスで接続され、
前記演算処理部において予め取り決められた前記出力制御方式は、前記規格に基づいて取り決められた出力制御方式である
ことを特徴とする請求項1乃至のいずれかに記載の遊技機。
The first inspection value generation unit is provided between the arithmetic processing unit and the transmission unit,
The connection between the arithmetic processing unit and the first inspection value generation unit and the connection between the first inspection value generation unit and the transmission unit are connected by a bus of the same standard.
The gaming machine according to any one of claims 1 to 6 , wherein the output control method determined in advance in the arithmetic processing unit is an output control method determined based on the standard.
制御コマンドを出力する主制御部と、前記制御コマンドに基づく処理を行う周辺制御部と、前記主制御部と前記周辺制御部との間に設けられた中間制御部と、を含む電子機器において、前記主制御部と前記中間制御部との間で行われるデータ伝送の正当性を認証する電子機器の認証方法であって、
前記主制御部は、
記憶部に記憶された所定の処理情報に応じた所定の演算を行って前記制御コマンドを生成し、生成した制御コマンドを予め取り決められた出力制御方式で出力する演算処理工程と、
前記演算処理工程によって出力された制御コマンドに付加され、該制御コマンドの正当性を検査するための誤り検査値を、予め取り決められた複数の生成方式で生成し、いずれかの生成方式で生成した誤り検査値を前記制御コマンドへ付加して出力する第1検査値生成工程と、
前記誤り検査値が付加された制御コマンドを前記周辺制御部へ送信する送信工程と、
を実行し、
前記中間制御部は、
前記第1検査値生成工程によって生成された誤り検査値に対応する検証用の誤り検査値を生成する第2検査値生成工程と、
前記送信工程によって送信された誤り検査値と前記第2検査値生成工程によって生成された誤り検査値とを比較して前記送信工程によって送信された制御コマンドの正当性の検査を行い、該検査の結果情報を生成する検査工程と、
前記送信工程によって送信された制御コマンドを前記周辺制御部へ中継送信するとともに、前記結果情報を前記周辺制御部へ送信する中継送信工程と、
を実行し、
前記周辺制御部は、
前記中継送信工程によって中継送信された制御コマンドに基づく処理を行うと共に、前記中継送信工程によって送信された前記結果情報に応じた処理を行う処理工程
を実行し、
前記第1検査値生成工程は、
前記演算処理工程によって出力された制御コマンドを入力し、入力した制御コマンドを予め指定されたタイミングで出力する第1ステップと、
前記第1ステップによって出力された制御コマンドを入力し、入力した制御コマンドへ付加する誤り検査値を生成する際の生成方式、又は入力した制御コマンドより後に前記演算処理工程によって出力される制御コマンドへ付加する誤り検査値を生成する際の生成方式を、入力した制御コマンドより過去に前記演算処理工程によって出力された一の制御コマンドを用いて誤り検査値を生成する第1生成方式と、前記過去に出力された複数の制御コマンドを用いて誤り検査値を生成する第2生成方式とのいずれの生成方式にするかを、予め定められたプロトコルに従って決定し、決定した該生成方式で生成される誤り検査値を前記付加する誤り検査値とすることを示す生成方式情報を、前記タイミングに応じて出力する第2ステップと、
前記第1ステップによって出力された制御コマンドと前記第2ステップによって出力された生成方式情報とを入力し、入力した制御コマンドより過去に前記演算処理工程によって出力された一又は複数の制御コマンドを用いて、入力した生成方式情報が示す生成方式で生成した誤り検査値を、前記付加する誤り検査値として前記タイミングに応じて出力する第3ステップと、
前記第1ステップによって出力された制御コマンドと前記第3ステップによって出力された誤り検査値とを入力し、入力した該制御コマンドに、入力した該誤り検査値を付加して、該誤り検査値が付加された該制御コマンドを、前記演算処理工程において予め取り決められた前記出力制御方式と同じ出力制御方式で、前記タイミングに応じて出力し前記送信工程へ移行する第4ステップと、
を有することを特徴とする電子機器の認証方法。
In an electronic device including a main control unit that outputs a control command, a peripheral control unit that performs processing based on the control command, and an intermediate control unit provided between the main control unit and the peripheral control unit, An electronic device authentication method for authenticating validity of data transmission performed between the main control unit and the intermediate control unit,
The main control unit
An arithmetic processing step of performing a predetermined calculation according to predetermined processing information stored in the storage unit to generate the control command, and outputting the generated control command in a predetermined output control method;
An error check value added to the control command output by the arithmetic processing step to check the validity of the control command is generated by a plurality of predetermined generation methods, and generated by any one of the generation methods A first check value generation step of adding an error check value to the control command and outputting it;
A transmission step of transmitting the control command to which the error check value is added to the peripheral control unit;
Run
The intermediate control unit
A second check value generation step for generating a verification error check value corresponding to the error check value generated by the first check value generation step;
The error check value transmitted by the transmission step and the error check value generated by the second check value generation step are compared to check the validity of the control command transmitted by the transmission step, and An inspection process for generating result information;
Relaying the control command transmitted in the transmission step to the peripheral control unit, and transmitting the result information to the peripheral control unit;
Run
The peripheral control unit
A processing step of performing processing based on the control command relayed by the relay transmission step and performing processing according to the result information transmitted by the relay transmission step
Run
The first inspection value generation step includes:
A first step of inputting the control command output by the arithmetic processing step, and outputting the input control command at a predetermined timing;
The control command output by the first step is input, and the generation method for generating an error check value to be added to the input control command, or the control command output by the arithmetic processing step after the input control command A generation method for generating an error check value to be added is a first generation method for generating an error check value using one control command output by the arithmetic processing step in the past from the input control command, and the past The second generation method for generating an error check value using a plurality of control commands output to the method is determined according to a predetermined protocol, and generated by the determined generation method A second step of outputting generation method information indicating that an error check value is the error check value to be added according to the timing;
The control command output by the first step and the generation method information output by the second step are input, and one or a plurality of control commands output by the arithmetic processing step in the past from the input control command are used. A third step of outputting the error check value generated by the generation method indicated by the input generation method information according to the timing as the error check value to be added;
The control command output by the first step and the error check value output by the third step are input, the input error check value is added to the input control command, and the error check value is A fourth step of outputting the added control command in accordance with the timing in the same output control method as the output control method previously determined in the arithmetic processing step, and shifting to the transmission step;
An electronic device authentication method comprising:
JP2011165819A 2011-07-28 2011-07-28 Authentication method for gaming machines and electronic devices Expired - Fee Related JP5202702B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011165819A JP5202702B2 (en) 2011-07-28 2011-07-28 Authentication method for gaming machines and electronic devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011165819A JP5202702B2 (en) 2011-07-28 2011-07-28 Authentication method for gaming machines and electronic devices

Publications (2)

Publication Number Publication Date
JP2013027567A JP2013027567A (en) 2013-02-07
JP5202702B2 true JP5202702B2 (en) 2013-06-05

Family

ID=47785238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011165819A Expired - Fee Related JP5202702B2 (en) 2011-07-28 2011-07-28 Authentication method for gaming machines and electronic devices

Country Status (1)

Country Link
JP (1) JP5202702B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002058850A (en) * 2000-08-14 2002-02-26 Heiwa Corp Command control method for game machine and game machine having fraud preventing function
JP4598850B2 (en) * 2008-09-29 2010-12-15 京楽産業.株式会社 Game machine, authentication method and authentication program
JP5017308B2 (en) * 2009-03-27 2012-09-05 京楽産業.株式会社 Electronic device, game machine, main control board, peripheral board, authentication method and authentication program

Also Published As

Publication number Publication date
JP2013027567A (en) 2013-02-07

Similar Documents

Publication Publication Date Title
JP5228100B2 (en) Authentication method for gaming machines and electronic devices
JP5228101B2 (en) Authentication method for gaming machines and electronic devices
JP5269133B2 (en) Game machine
JP5202688B2 (en) Authentication method for gaming machines and electronic devices
JP5202695B2 (en) Authentication method for gaming machines and electronic devices
JP5412500B2 (en) Game machine
JP5202702B2 (en) Authentication method for gaming machines and electronic devices
JP5202705B2 (en) Authentication method for gaming machines and electronic devices
JP5202703B2 (en) Authentication method for gaming machines and electronic devices
JP5202706B2 (en) Authentication method for gaming machines and electronic devices
JP5202680B2 (en) Game machine
JP5202681B2 (en) Game machine
JP5269134B2 (en) Game machine
JP5202689B2 (en) Authentication method for gaming machines and electronic devices
JP5202696B2 (en) Authentication method for gaming machines and electronic devices
JP5269135B2 (en) Game machine
JP5202701B2 (en) Authentication method for gaming machines and electronic devices
JP5202704B2 (en) Authentication method for gaming machines and electronic devices
JP5377679B2 (en) Authentication method for gaming machines and electronic devices
JP5412496B2 (en) Game machine
JP5412497B2 (en) Game machine
JP5202679B2 (en) Game machine
JP5412499B2 (en) Game machine
JP5238832B2 (en) Game machine
JP5202619B2 (en) Game machine

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121210

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: 20130115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130212

R150 Certificate of patent or registration of utility model

Ref document number: 5202702

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: 20160222

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees