JP7489788B2 - Gaming Machines - Google Patents

Gaming Machines Download PDF

Info

Publication number
JP7489788B2
JP7489788B2 JP2020037021A JP2020037021A JP7489788B2 JP 7489788 B2 JP7489788 B2 JP 7489788B2 JP 2020037021 A JP2020037021 A JP 2020037021A JP 2020037021 A JP2020037021 A JP 2020037021A JP 7489788 B2 JP7489788 B2 JP 7489788B2
Authority
JP
Japan
Prior art keywords
circuit
display
data
area
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020037021A
Other languages
Japanese (ja)
Other versions
JP2021137280A (en
Inventor
伸美 柴田
Original Assignee
株式会社藤商事
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 株式会社藤商事 filed Critical 株式会社藤商事
Priority to JP2020037021A priority Critical patent/JP7489788B2/en
Publication of JP2021137280A publication Critical patent/JP2021137280A/en
Application granted granted Critical
Publication of JP7489788B2 publication Critical patent/JP7489788B2/en
Active 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 that performs a lottery process based on game actions and executes image effects corresponding to the lottery results, and in particular, to a gaming machine that can stably execute powerful image effects.

パチンコ機などの弾球遊技機は、遊技盤に設けた図柄始動口と、複数の表示図柄による一連の図柄変動態様を表示する図柄表示部と、開閉板が開閉される大入賞口などを備えて構成されている。そして、図柄始動口に設けられた検出スイッチが遊技球の通過を検出すると入賞状態となり、遊技球が賞球として払出された後、図柄表示部では表示図柄が所定時間変動される。その後、7・7・7などの所定の態様で図柄が停止すると大当り状態となり、大入賞口が繰返し開放されて、遊技者に有利な遊技状態を発生させている。 Pinball gaming machines such as pachinko machines are configured with a pattern start opening on the game board, a pattern display section that displays a series of pattern change patterns based on multiple displayed patterns, and a large prize opening with an opening and closing plate. When a detection switch installed in the pattern start opening detects the passage of a game ball, a winning state is reached, and after the game ball is paid out as a prize ball, the displayed pattern in the pattern display section changes for a predetermined period of time. After that, when the pattern stops in a predetermined pattern such as 7-7-7, a large win state is reached, and the large prize opening is repeatedly opened, creating a game state that is advantageous to the player.

このような遊技状態を発生させるか否かは、図柄始動口に遊技球が入賞したことを条件に実行される大当り抽選で決定されており、上記の図柄変動動作は、この抽選結果を踏まえたものとなっている。例えば、抽選結果が当選状態である場合には、リーチアクションなどと称される演出動作を20秒前後実行し、その後、特別図柄を整列させている。一方、ハズレ状態の場合にも、同様のリーチアクションが実行されることがあり、この場合には、遊技者は、大当り状態になることを強く念じつつ演出動作の推移を注視することになる。そして、図柄変動動作の終了時に、停止ラインに所定図柄が揃えば、大当り状態であることが遊技者に保証されたことになる。 Whether or not such a game state occurs is determined by a jackpot lottery that is executed on the condition that a game ball enters the symbol start hole, and the above-mentioned symbol change action is based on the result of this lottery. For example, if the lottery result is a win state, a presentation action called a reach action is executed for about 20 seconds, and then the special symbols are aligned. On the other hand, a similar reach action may also be executed in a loss state, in which case the player will pay close attention to the progress of the presentation action while strongly hoping that the jackpot state will be reached. Then, if the specified symbols are aligned on the stop line at the end of the symbol change action, the player is guaranteed that the jackpot state has been reached.

このような図柄変動動作は、通常、液晶ディスプレイにおいて実行される。液晶ディスプレイは、一般に、横Hドット×縦Vドットの画素で構成されており、H×Vドットの各画素は、各々、RGB三色の基本画素で構成されている。 This type of pattern change operation is usually performed on a liquid crystal display. A liquid crystal display is generally made up of H dots horizontally by V dots vertically, and each H x V pixel is made up of a basic pixel of the three colors RGB.

液晶ディスプレイにおける各画素の駆動は、その装置の動作クロックCK(=ドットクロックDCK)に同期して実行されており、水平方向一ライン分に対応するHドットの画素駆動が、水平同期信号HSに同期して繰り返され、Vライン分の駆動が終われば、垂直同期信号VSに同期して、第1ラインの画素駆動に戻るよう構成されている(図40参照)。そのため、外部機器から液晶ディスプレイに対して、解像度H×Vドットに対応する画像信号と共に、水平同期信号HSと、垂直同期信号VSとドットクロックDCKと共に供給される必要がある。 The driving of each pixel in an LCD display is executed in synchronization with the device's operating clock CK (=dot clock DCK), and pixel driving of H dots corresponding to one horizontal line is repeated in synchronization with the horizontal synchronization signal HS, and when driving of V lines is completed, it is configured to return to pixel driving of the first line in synchronization with the vertical synchronization signal VS (see Figure 40). Therefore, it is necessary for an external device to supply to the LCD display an image signal corresponding to a resolution of H x V dots, along with the horizontal synchronization signal HS, vertical synchronization signal VS, and dot clock DCK.

ここで、液晶ディスプレイの表示更新動作(フレーム更新)を円滑に実行するために、各同期信号HS,Vsのパルス幅や、各同期信号HS,Vsと画像信号の送信タイミングとの間には、所定の条件が要求される。例えば、図40(g)は、640×408ドットのVGA(Video Graphics Array)の場合に要求される駆動タイミング条件の一例を図示したものである。 Here, in order to smoothly execute the display update operation (frame update) of the liquid crystal display, certain conditions are required for the pulse width of each synchronization signal HS, Vs, and between the timing of each synchronization signal HS, Vs and the transmission timing of the image signal. For example, Figure 40 (g) shows an example of the drive timing conditions required for a 640 x 408 dot VGA (Video Graphics Array).

図示の駆動条件では、先ず、水平同期信号HSのパルス幅PWhは、動作クロックCKの96個分であり、水平同期信号PWhの前後に要求されるフロントポーチFPhと、バックポートBPhは、各々、動作クロックCKの16個分と、48個分と規定されている。 In the driving conditions shown in the figure, first, the pulse width PWh of the horizontal synchronization signal HS is 96 clocks of the operating clock CK, and the front porch FPh and back port BPh required before and after the horizontal synchronization signal PWh are specified as 16 and 48 clocks of the operating clock CK, respectively.

一方、垂直同期信号VSのパルス幅PWvは、2ライン分であり、垂直同期信号VSの前後に要求されるフロントポーチFPvと、バックポートBPvは、各々、19ライン分と、33ライン分と規定されている。 On the other hand, the pulse width PWv of the vertical synchronization signal VS is two lines, and the front porch FPv and back port BPv required before and after the vertical synchronization signal VS are specified as 19 lines and 33 lines, respectively.

したがって、この液晶ディスプレイでは、1ラインの駆動動作の動作周期は、動作クロックCKでカウントして、16+96+48+640個分(=800)であり、これを垂直方向に10+2+33+480ライン分(=525)繰り返すことで、表示画面一フレーム分の表示が更新されることになる。 Therefore, in this LCD display, the operating cycle of the drive operation for one line is 16 + 96 + 48 + 640 (= 800) counted by the operating clock CK, and by repeating this vertically for 10 + 2 + 33 + 480 lines (= 525), the display for one frame of the display screen is updated.

上記の動作周期は、動作クロックCKでカウントして、800×525個分であり、例えば、動作クロックの周波数が25MHzの場合には、一フレームの更新に要する時間は、800×525/(25×10)=16.8mSであり、1/60秒程度の動作周期となる。 The above operation cycle is 800 x 525 cycles counted by the operation clock CK. For example, when the frequency of the operation clock is 25 MHz, the time required to update one frame is 800 x 525/(25 x 106 ) = 16.8 mS, which is an operation cycle of approximately 1/60 seconds.

そして、液晶ディスプレイを制御する外部制御機器は、上記の水平条件(PWh,FPh,BPh)を満たす水平同期信号HSと、上記の垂直条件(PWvh,FPvh,BPvh)を満たす水平同期信号HSと共に、表示画面の画素数に対応した画像信号を、繰り返し、液晶ディスプレイに供給することになる。 Then, the external control device that controls the LCD display repeatedly supplies the LCD display with a horizontal synchronization signal HS that satisfies the above horizontal conditions (PWh, FPh, BPh) and a horizontal synchronization signal HS that satisfies the above vertical conditions (PWvh, FPvh, BPvh), as well as an image signal that corresponds to the number of pixels on the display screen.

特開2017-093633号公報JP 2017-093633 A 特開2017-093632号公報JP 2017-093632 A 特開2016-159030号公報JP 2016-159030 A 特開2016-159029号公報JP 2016-159029 A

ところで、この種の遊技機では、各種の演出を複雑化かつ豊富化したいところ、特に、液晶ディスプレイを使用する画像演出については、その要請が高い。そこで、出願人は、各種の提案をしているが(引用文献1~引用文献4)、画像演出の更なる高度化や、画像演出制御を中心とした各種の演出制御動作の更なる改善が望まれるところである。また、画像演出制御の制御負担が軽減できるよう、液晶ディスプレイの駆動動作についても改善が望まれる。 However, in this type of gaming machine, there is a desire to make the various effects more complex and abundant, and there is a particularly high demand for image effects that use liquid crystal displays. The applicant has made various proposals (References 1 to 4), but there is a need for further sophistication of image effects and further improvements in the control operations of various effects, centered on image effect control. There is also a need for improvements in the drive operation of the liquid crystal display so that the control burden of image effect control can be reduced.

本発明は、上記の課題に鑑みてなされたものであり、画像演出制御を中心とした各種の演出制御動作が更に改善された遊技機を提供することを目的とする。 The present invention was made in consideration of the above problems, and aims to provide a gaming machine with further improvements in various presentation control operations, mainly image presentation control.

上記の目的を達成するため、本発明は、表示装置の画面に表示すべき表示内容を特定するディスプレイリストを発行して、画像生成手段の動作を制御する演出制御手段と、前記演出制御手段が発行するディスプレイリストに記載された指示コマンドに基づいて、前記表示内容を実現する画像データを生成する描画回路を有して、縦方向ピクセル数V×横方向ピクセル数Hの前記表示装置による画像演出を実現する前記画像生成手段と、を有する遊技機であって、前記画像生成手段は、前記演出制御手段から所定の取得ビット単位で受けるディスプレイリストの構成データを、所定の転送ビット単位で下流側の回路に転送するデータ転送回路を有して構成され、前記演出制御手段は、ディスプレイリストの全ビット長が、前記所定の転送ビット単位の整数N倍(N≧1)となるよう作成する構成を有し、前記画像生成手段に内蔵された表示回路の内部動作を規定する表示クロックの周波数Fdotを規定する第1手段と、前記表示装置の水平方向一ラインに対応する前記表示回路のライン動作時間を、前記表示クロックの水平サイクル数THcで規定する第2手段と、前記ライン動作時間の繰り返し動作回数である垂直ライン数TVlを規定する第3手段と、を設け、前記水平サイクル数THcと、前記垂直ライン数TVlと、前記表示クロックの周波数Fdotの値に基づいて規定される表示動作周期の水平基準点を起点とする所定のサイクル数の間は、前記表示回路が、前記表示装置の各一ラインのH個のピクセルに対応する画像データを出力しないよう構成されている。 In order to achieve the above object, the present invention provides a gaming machine having a presentation control means for issuing a display list specifying display contents to be displayed on a screen of a display device and controlling the operation of an image generation means, and the image generation means having a drawing circuit for generating image data realizing the display contents based on instruction commands described in the display list issued by the presentation control means, and realizing an image presentation by the display device of a number of vertical pixels V x number of horizontal pixels H, wherein the image generation means is configured with a data transfer circuit for transferring configuration data of the display list received from the presentation control means in a predetermined acquisition bit unit to a downstream circuit in a predetermined transfer bit unit, and the presentation control means controls the display list so that the total bit length of the display list is equal to or larger than the predetermined transfer bit length. The image generating means is configured to generate an image data corresponding to an integer N times (N≧1) of each bit, and includes a first means for specifying a frequency Fdot of a display clock which specifies an internal operation of a display circuit built into the image generating means, a second means for specifying a line operation time of the display circuit corresponding to one horizontal line of the display device by a horizontal cycle number THc of the display clock, and a third means for specifying a vertical line number TVl which is the number of repetitions of the line operation time, and is configured so that the display circuit does not output image data corresponding to H pixels of each line of the display device during a predetermined number of cycles starting from a horizontal reference point of a display operation period specified based on the horizontal cycle number THc, the vertical line number TVl, and the value of the frequency Fdot of the display clock.

上記した本発明によれば、所定のサイクル数(WTh)として、水平ブランク期間を最適に設定することができるので、各種の表示装置の仕様に適合した画像制御動作を実現することができる。 According to the present invention described above, the horizontal blanking period can be optimally set as a predetermined number of cycles (WTh), making it possible to realize image control operations that are compatible with the specifications of various display devices.

本実施例のパチンコ機を示す斜視図である。1 is a perspective view showing a pachinko machine according to an embodiment of the present invention. 図1の遊技機の遊技領域を示す正面図である。FIG. 2 is a front view showing the gaming area of the gaming machine of FIG. 1 . 図1の遊技機の全体回路構成を示すブロック図である。2 is a block diagram showing the overall circuit configuration of the gaming machine of FIG. 1 . 表示装置の仕様を説明する図面である。1 is a diagram illustrating the specifications of a display device. 表示装置の内部構成を説明するブロック図である。FIG. 2 is a block diagram illustrating an internal configuration of the display device. 図1の遊技機について、演出制御部の回路構成をやや詳細に示すブロック図である。2 is a block diagram showing in some detail the circuit configuration of a performance control unit for the gaming machine of FIG. 1. 演出制御部を構成する複合チップを説明する図面である。1 is a diagram for explaining a composite chip that constitutes a performance control unit. 図4に示すCPU回路の内部構成を示すブロック図である。FIG. 5 is a block diagram showing an internal configuration of the CPU circuit shown in FIG. 4 . CPU回路の内蔵CPU(演出制御CPU)のメモリマップを図示したものである。This illustrates the memory map of the built-in CPU (performance control CPU) of the CPU circuit. DMACについて、各種の転送動作モード(a)~(b)と、転送動作手順(c)~(e)を説明する図面である。1A to 1E are diagrams for explaining various transfer operation modes (a) to (b) and transfer operation procedures (c) to (e) of a DMAC. インデックス空間、インデックステーブル、仮想描画空間、及び、描画領域について説明する図面である。1 is a diagram for explaining an index space, an index table, a virtual drawing space, and a drawing area. データ転送回路の内部構成を、関連する回路構成と共に記載したブロック図である。1 is a block diagram illustrating an internal configuration of a data transfer circuit together with related circuit configurations. 表示回路の内部構成を、関連する回路構成と共に記載したブロック図である。2 is a block diagram showing the internal configuration of a display circuit together with related circuit configurations. FIG. VDP回路から出力されるデータ有効信号ENABを説明する図面である。1 is a diagram illustrating a data valid signal ENAB output from a VDP circuit; CPUリセット後のパワーリセット動作を説明するフローチャートである。11 is a flowchart illustrating a power reset operation after a CPU reset. 図15の一部であるメモリセクション初期化処理を説明するフローチャートである。16 is a flowchart illustrating a memory section initialization process which is part of FIG. 15. 図15の一部であるメイン制御処理と、割込み処理を説明するフローチャートである。16 is a flowchart illustrating a main control process and an interrupt process which are part of FIG. 15. メイン制御処理の一部であるCGROMの初期化処理を説明するフローチャートである。11 is a flowchart illustrating a CGROM initialization process which is a part of the main control process. 別の割込み処理について、処理内容の一部を説明するフローチャートである。13 is a flowchart for explaining a part of the processing contents regarding another interrupt processing. プリローダを使用しない場合について、演出制御CPU63の制御動作を説明するフローチャートである。13 is a flowchart illustrating the control operation of the performance control CPU 63 when a preloader is not used. ディスプレイリストの構成を説明する図面である。1 is a diagram for explaining the configuration of a display list. ディスプレイリストDLを発行するDL発行処理を示すフローチャートである。13 is a flowchart showing a DL issuing process for issuing a display list DL. 図22の動作にDMACが関与する場合の動作を説明するフローチャートである。23 is a flowchart for explaining the operation of FIG. 22 when the DMAC is involved. 図23の処理に続く動作を説明するフローチャートである。24 is a flowchart illustrating an operation subsequent to the processing of FIG. 23. プリローダを使用する場合について、演出制御CPU63の制御動作を説明するフローチャートである。13 is a flowchart illustrating the control operation of the performance control CPU 63 when a preloader is used. 図25の一部を説明するフローチャートである。26 is a flowchart illustrating a part of FIG. 25. 図25の別の一部を説明するフローチャートである。26 is a flowchart illustrating another part of FIG. 25 . プリローダを使用しない実施例について、VDP各部の動作を示すタイムチャートである。11 is a time chart showing the operation of each part of a VDP in an embodiment in which a preloader is not used. プリローダを使用する実施例について、VDP各部の動作を示すタイムチャートである。11 is a time chart showing the operation of each part of the VDP in an embodiment using a preloader. 別の実施例について全体回路構成を示すブロック図である。FIG. 11 is a block diagram showing an overall circuit configuration according to another embodiment. 図30の一部をやや詳細に示すブロック図である。FIG. 31 is a block diagram showing a portion of FIG. 30 in greater detail. 別の実施例について、動作内容を説明するフローチャートである。13 is a flowchart illustrating the operation of another embodiment. 更に別の実施例を説明する図面である。11 is a diagram illustrating yet another embodiment. 設定値を繰り返し設定する実施例を説明する図面である。11 is a diagram for explaining an embodiment in which a set value is repeatedly set; 内蔵された音声回路を使用する実施例の回路構成を説明する図面である。1 is a diagram illustrating a circuit configuration of an embodiment using a built-in audio circuit. 音声回路の初期設定動作を説明するフローチャートである。4 is a flowchart illustrating an initial setting operation of the audio circuit. CPUリセット後のパワーリセット動作について別の実施例を説明する図面である。11 is a diagram for explaining another embodiment of a power reset operation after a CPU reset. メモリREAD動作とメモリWRITE 動作の一例を示すタイムチャートである。4 is a time chart showing an example of a memory READ operation and a memory WRITE operation. 別の実施例を説明する図面である。11 is a diagram illustrating another embodiment. 一般の表示装置の駆動方法を説明する図面である。1 is a diagram illustrating a method of driving a general display device.

以下、実施例に基づいて本発明を詳細に説明する。図1は、本実施例のパチンコ機GMを示す斜視図である。このパチンコ機GMは、島構造体に着脱可能に装着される矩形枠状の木製外枠1と、外枠1に固着されたヒンジ2を介して開閉可能に枢着される内枠3とで構成されている。この内枠3には、遊技盤5が、裏側からではなく、表側から着脱自在に装着され、その前側には、ガラス扉6と前面板7とが夫々開閉自在に枢着されている。なお、本明細書では、ガラス扉6と前面板7を総称して前扉部材と称する。そして、前扉部材(ガラス扉6や前面板7)が枢着された状態の内枠3を遊技枠と称することがある。 The present invention will be described in detail below based on the examples. Figure 1 is a perspective view showing a pachinko machine GM of this embodiment. This pachinko machine GM is composed of a rectangular wooden outer frame 1 that is detachably attached to the island structure, and an inner frame 3 that is pivotally attached so as to be able to be opened and closed via hinges 2 fixed to the outer frame 1. A game board 5 is detachably attached to this inner frame 3 from the front side, not from the back side, and a glass door 6 and a front panel 7 are pivotally attached to the front side so as to be able to be opened and closed. In this specification, the glass door 6 and the front panel 7 are collectively referred to as the front door member. The inner frame 3 to which the front door member (glass door 6 and front panel 7) is pivotally attached may be referred to as the game frame.

ガラス扉6の外周には、LEDランプなどによる電飾ランプが、略C字状に配置されている。一方、ガラス扉6の上部左右位置と下側には、全3個のスピーカが配置されている。上部に配置された2個のスピーカは、各々、左右チャンネルR,Lの音声を出力し、下側のスピーカは低音を出力するよう構成されている。 Illuminated lamps such as LED lamps are arranged in a roughly C-shape around the outer periphery of the glass door 6. Meanwhile, a total of three speakers are arranged on the upper left and right sides and on the lower side of the glass door 6. The two speakers arranged on the upper side are configured to output sound for the left and right channels R and L, respectively, and the speaker on the lower side is configured to output low-pitched sounds.

前面板7には、発射用の遊技球を貯留する上皿8が装着され、内枠3の下部には、上皿8から溢れ出し又は抜き取った遊技球を貯留する下皿9と、発射ハンドル10とが設けられている。発射ハンドル10は発射モータと連動しており、発射ハンドル10の回動角度に応じて動作する打撃槌によって遊技球が発射される。 An upper tray 8 that stores game balls to be launched is attached to the front panel 7, and a lower tray 9 that stores game balls that have spilled over or been removed from the upper tray 8, and a launch handle 10 are provided at the bottom of the inner frame 3. The launch handle 10 is linked to a launch motor, and the game balls are launched by a striking hammer that operates according to the rotation angle of the launch handle 10.

上皿8の外周面には、チャンスボタン11が設けられている。このチャンスボタン11は、遊技者の左手で操作できる位置に設けられており、遊技者は、発射ハンドル10から右手を離すことなくチャンスボタン11を操作できる。このチャンスボタン11は、通常時には機能していないが、ゲーム状態がボタンチャンス状態となると内蔵ランプが点灯されて操作可能となる。なお、ボタンチャンス状態は、必要に応じて設けられるゲーム状態である。 A chance button 11 is provided on the outer periphery of the upper tray 8. This chance button 11 is provided in a position where it can be operated by the player's left hand, and the player can operate the chance button 11 without taking his/her right hand off the launch handle 10. This chance button 11 is not normally functional, but when the game state is in the button chance state, the built-in lamp lights up and the button becomes operable. The button chance state is a game state that is set as needed.

また、チャンスボタン11の下方には、ロータリースイッチ型の音量スイッチVLSWが配置されており、遊技者が音量スイッチVLSWを操作することで、無音レベル(=0)から最高レベル(=7)まで、スピーカ音量を8段階に調整できるようになっている。なお、スピーカの音量は、係員だけが操作可能な設定スイッチ(不図示)によって初期設定されており、遊技者が音量スイッチVLSWを操作しない限り、初期設定音量が維持される。また、異常事態が発生したことを報知する異常報知音は、係員による初期設定音量や、遊技者の設定音量に拘らず最高音量で放音される。 In addition, a rotary switch-type volume switch VLSW is located below the chance button 11, and the player can operate the volume switch VLSW to adjust the speaker volume in eight steps, from silent level (=0) to the maximum level (=7). The speaker volume is initially set by a setting switch (not shown) that can only be operated by an attendant, and the initial setting volume is maintained unless the player operates the volume switch VLSW. In addition, the abnormality notification sound that notifies the player of the occurrence of an abnormal situation is emitted at the maximum volume, regardless of the initial setting volume by the attendant or the volume set by the player.

上皿8の右部には、カード式球貸し機に対する球貸し操作用の操作パネル12が設けられ、カード残額を3桁の数字で表示する度数表示部と、所定金額分の遊技球の球貸しを指示する球貸しスイッチと、ゲーム終了時にカードの返却を指令する返却スイッチとが設けられている。 To the right of the upper tray 8 is an operation panel 12 for operating the ball lending machine, which includes a degree display that displays the remaining balance on the card in three digits, a ball lending switch that commands the lending of a specified amount of game balls, and a return switch that commands the return of the card when the game ends.

図2に示すように、遊技盤5の表面には、金属製の外レールと内レールとからなるガイドレール13が環状に設けられ、その略中央には、中央開口HOが設けられている。そして、中央開口HOの下方には、不図示の可動演出体が隠蔽状態で収納されており、可動予告演出時には、その可動演出体が上昇して露出状態となることで、所定の信頼度の予告演出を実現している。ここで、予告演出とは、遊技者に有利な大当り状態が招来することを不確定に報知する演出であり、予告演出の信頼度とは、大当り状態が招来する確率を意味している。 As shown in FIG. 2, a guide rail 13 consisting of an outer and inner metallic rail is provided in a ring shape on the surface of the game board 5, and a central opening HO is provided in approximately the center of the guide rail. A movable performance body (not shown) is stored in a concealed state below the central opening HO, and during a movable preview performance, the movable performance body rises and becomes exposed, realizing a preview performance with a predetermined reliability. Here, the preview performance is a performance that notifies the player with uncertainty that a favorable jackpot state will occur, and the reliability of the preview performance means the probability that a jackpot state will occur.

中央開口HOには、大型(例えば、横1280×縦1024ピクセル)の液晶カラーディスプレイ(LCD)で構成されたメイン表示装置DS1が配置され、メイン表示装置DS1の右側には、小型(例えば、横480×縦800ピクセル)の液晶カラーディスプレイで構成された可動式のサブ表示装置DS2が配置されている。メイン表示装置DS1は、大当り状態に係わる特定図柄を変動表示すると共に背景画像や各種のキャラクタなどをアニメーション的に表示する装置である。この表示装置DS1は、中央部に特別図柄表示部Da~Dcと右上部に普通図柄表示部19とを有している。そして、特別図柄表示部Da~Dcでは、大当り状態の招来を期待させるリーチ演出が実行されることがあり、特別図柄表示部Da~Dc及びその周りでは、適宜な予告演出などが実行される。 The main display device DS1, which is a large (e.g., 1280 pixels wide by 1024 pixels high) liquid crystal color display (LCD), is placed in the central opening HO, and a movable sub-display device DS2, which is a small (e.g., 480 pixels wide by 800 pixels high) liquid crystal color display, is placed to the right of the main display device DS1. The main display device DS1 is a device that displays specific symbols related to the jackpot state in a variable manner, as well as background images and various characters in an animated manner. This display device DS1 has special symbol display sections Da-Dc in the center and a normal symbol display section 19 in the upper right corner. The special symbol display sections Da-Dc may perform reach effects that raise expectations of the arrival of a jackpot state, and appropriate preview effects are performed in and around the special symbol display sections Da-Dc.

サブ表示装置DS2は、通常時には、その表示画面が遊技者に見やすい角度に傾斜した静止状態で画像情報を表示している。但し、所定の予告演出時には、遊技者に見やすい角度に傾斜角度を変えながら、図示の左側に移動する共に、所定の予告画像を表示するようになっている。 The sub display device DS2 normally displays image information in a stationary state with its display screen tilted at an angle that is easy for the player to see. However, during a specified preview performance, the tilt angle is changed to an angle that is easy for the player to see, and the specified preview image is displayed while moving to the left side of the figure.

すなわち、実施例のサブ表示装置DS2は、単なる表示装置ではなく、予告演出を実行する可動演出体としても機能している。ここで、サブ表示装置DS2による予告演出は、その信頼度が高く設定されており、遊技者は、大きな期待感をもってサブ表示装置DS2の移動動作に注目することになる。 In other words, the sub-display device DS2 of the embodiment is not just a display device, but also functions as a movable performance body that executes the preview performance. Here, the preview performance by the sub-display device DS2 is set to have a high reliability, and the player will pay attention to the movement of the sub-display device DS2 with great anticipation.

ところで、遊技球が落下移動する遊技領域には、第1図柄始動口15a、第2図柄始動口15b、第1大入賞口16a、第2大入賞口16b、普通入賞口17、及び、ゲート18が配設されている。これらの入賞口15~18は、それぞれ内部に検出スイッチを有しており、遊技球の通過を検出できるようになっている。 In the game area where the game balls fall, there are a first symbol start hole 15a, a second symbol start hole 15b, a first big prize hole 16a, a second big prize hole 16b, a normal prize hole 17, and a gate 18. Each of these prize holes 15 to 18 has a detection switch inside, so that it can detect the passage of the game ball.

第1図柄始動口15aの上部には、導入口INから進入した遊技球がシーソー状又はルーレット状に移動した後に、第1図柄始動口15に入賞可能に構成された演出ステージ14が配置されている。そして、第1図柄始動口15に遊技球が入賞すると、特別図柄表示部Da~Dcの変動動作が開始されるよう構成されている。 A performance stage 14 is arranged above the first symbol start port 15a, and is configured so that the game ball that enters from the inlet IN can enter the first symbol start port 15 after moving in a seesaw or roulette shape. When the game ball enters the first symbol start port 15, the special symbol display sections Da to Dc are configured to start changing.

第2図柄始動口15bは、左右一対の開閉爪を備えた電動式チューリップで開閉されるように構成され、普通図柄表示部19の変動後の停止図柄が当り図柄を表示した場合には、所定時間だけ、若しくは、所定個数の遊技球を検出するまで、開閉爪が開放されるようになっている。 The second symbol start opening 15b is configured to be opened and closed by an electric tulip equipped with a pair of opening and closing claws on the left and right, and when the stopped symbol after the normal symbol display section 19 changes displays a winning symbol, the opening and closing claws are opened for a predetermined time or until a predetermined number of game balls are detected.

なお、普通図柄表示部19は、普通図柄を表示するものであり、ゲート18を通過した遊技球が検出されると、普通図柄が所定時間だけ変動し、遊技球のゲート18の通過時点において抽出された抽選用乱数値により決定される停止図柄を表示して停止する。 The normal symbol display unit 19 displays normal symbols. When a gaming ball that has passed through the gate 18 is detected, the normal symbols change for a predetermined period of time and then stop displaying a stop symbol determined by a random number value for lottery that is extracted at the time the gaming ball passes through the gate 18.

第1大入賞口16aは、前後方向に進退するスライド盤を有して構成され、第2大入賞口16bは、下端が軸支されて前方に開放する開閉板を有して構成されている。第1大入賞口16aや第2大入賞口16bの動作は、特に限定されないが、この実施例では、第1大入賞口16aは、第1図柄始動口15aに対応し、第2大入賞口16bは、第1図柄始動口15bに対応するよう構成されている。 The first large prize opening 16a is configured with a slide plate that moves back and forth, and the second large prize opening 16b is configured with an opening and closing plate whose lower end is supported by a shaft and opens forward. The operation of the first large prize opening 16a and the second large prize opening 16b is not particularly limited, but in this embodiment, the first large prize opening 16a is configured to correspond to the first pattern starting opening 15a, and the second large prize opening 16b is configured to correspond to the first pattern starting opening 15b.

すなわち、第1図柄始動口15aに遊技球が入賞すると、特別図柄表示部Da~Dcの変動動作が開始され、その後、所定の大当り図柄が特別図柄表示部Da~Dcに整列すると、第1大当りたる特別遊技が開始され、第1大入賞口16aのスライド盤が、前方に開放されて遊技球の入賞が容易化される。 In other words, when a game ball enters the first symbol start hole 15a, the special symbol display sections Da-Dc start to move, and then when a predetermined jackpot symbol is aligned on the special symbol display sections Da-Dc, the special game that is the first jackpot starts, and the slide plate of the first jackpot opening 16a opens forward, making it easier for the game ball to enter.

一方、第2図柄始動口15bへの遊技球の入賞によって開始された変動動作の結果、所定の大当り図柄が特別図柄表示部Da~Dcに整列すると、第2大当りたる特別遊技が開始され、第2大入賞口16bの開閉板が開放されて遊技球の入賞が容易化される。特別遊技(大当り状態)の遊技価値は、整列する大当り図柄などに対応して種々相違するが、何れの遊技価値が付与されるかは、遊技球の入賞タイミングに応じた抽選結果に基づいて予め決定される。 On the other hand, when a predetermined jackpot pattern is aligned in the special pattern display sections Da-Dc as a result of the movement started by the game ball entering the second pattern start hole 15b, a special game that is a second jackpot is started, and the opening and closing plate of the second big prize entry hole 16b is opened to facilitate the entry of the game ball. The game value of the special game (jackpot state) varies depending on the aligned jackpot pattern, but the game value that is awarded is determined in advance based on the result of a lottery that corresponds to the timing of the game ball's entry.

典型的な大当り状態では、大入賞口16の開閉板が開放された後、所定時間が経過し、又は所定数(例えば10個)の遊技球が入賞すると開閉板が閉じる。このような動作は、最大で例えば15回まで継続され、遊技者に有利な状態に制御される。なお、特別図柄表示部Da~Dcの変動後の停止図柄が特別図柄のうちの特定図柄であった場合には、特別遊技の終了後のゲームが高確率状態(確変状態)となるという特典が付与される。 In a typical jackpot state, after the opening and closing plate of the big prize opening 16 is opened, it closes after a predetermined time has elapsed or when a predetermined number of game balls (for example, 10 balls) have entered the prize. This operation continues for a maximum of, for example, 15 times, and is controlled to be in a state advantageous to the player. Note that if the stopped pattern after the change in the special pattern display sections Da to Dc is a specific one of the special patterns, a special bonus is given in which the game after the special play ends will be in a high probability state (probability state).

図3(a)は、上記した各動作を実現するパチンコ機GMの全体回路構成を示すブロック図である。また、図3(b)は、払出制御基板25に配置された電源モニタ部MNIの回路構成を示す回路図であり、図3(c)は、本実施例で使用するメイン表示装置DS1の仕様を説明する図面である。 Figure 3(a) is a block diagram showing the overall circuit configuration of the pachinko machine GM that realizes each of the above-mentioned operations. Also, Figure 3(b) is a circuit diagram showing the circuit configuration of the power supply monitor unit MNI arranged on the payout control board 25, and Figure 3(c) is a drawing explaining the specifications of the main display device DS1 used in this embodiment.

最初に、図3(c)に基づいて、実施例で使用するメイン表示装置DS1の仕様から説明する。先に説明した通り、この表示装置DS1は、横1280×縦1024ピクセルの液晶カラーディスプレイであるが、左右方向に隣接する奇数ピクセル(ODD)と偶数ピクセル(EVEN)を、別々のLVDS(Low Voltage Differential Signaling)伝送路を通して、受信部RV(RVa+RVb)で受ける構成となっている。そこで、本実施例では、この仕様に対応して、第1の伝送路LVDS1を経由してODD信号を伝送し、第2の伝送路LVDS2を経由してEVEN信号を伝送している(図3(a)の右下部)。 First, the specifications of the main display device DS1 used in the embodiment will be described with reference to FIG. 3(c). As described above, the display device DS1 is a liquid crystal color display with 1280 horizontal and 1024 vertical pixels, and is configured so that odd pixels (ODD) and even pixels (EVEN) adjacent to each other in the left-right direction are received by the receiver RV (RVa+RVb) via separate LVDS (Low Voltage Differential Signaling) transmission paths. Therefore, in this embodiment, in response to this specification, the ODD signal is transmitted via the first transmission path LVDS1, and the EVEN signal is transmitted via the second transmission path LVDS2 (lower right of FIG. 3(a)).

また、この表示装置DS1では、表示装置DS1の内部動作を規定する動作クロックCK(図7参照)は、その周波数が40MHz~70MHzの範囲とするべく規定されている(典型値=54MHz)。この動作クロックCKは、後述するLVDSクロックCLKに対応するが、以下では、説明の便宜上、動作クロックCKの周波数は、典型値の54MHzであるとする。また、54MHzの動作クロックCKにおいて、一フレームの画像更新に要する更新時間FR(Frame Rate)を、ほぼ1/60秒に一致させる構成について説明する。 In addition, in this display device DS1, the operating clock CK (see FIG. 7) that defines the internal operation of the display device DS1 is specified to have a frequency in the range of 40 MHz to 70 MHz (typical value = 54 MHz). This operating clock CK corresponds to the LVDS clock CLK described below, but for the sake of convenience in the following explanation, the frequency of the operating clock CK is assumed to be a typical value of 54 MHz. In addition, a configuration is described in which the update time FR (Frame Rate) required to update one frame of image is matched to approximately 1/60 seconds for a 54 MHz operating clock CK.

この表示装置DS1は、その仕様として、第1の伝送路LVDS1から受けたODD信号と、第2の伝送路LVDS2から受けたEVEN信号に基づき、表示画面の左右方向に隣接する2画素を、一の動作クロックCKで同時に処理するよう構成されている。この結果、水平方向一ラインの1280画素の画素データは、640/54MHz=11.85μSの動作時間で更新され、この動作が1024ライン分だけ繰り返されることで、一フレーム分1280×1024ピクセルの画像表示が更新されることになる。なお、第1ライン→第2ライン・・・→第1024ラインのように、一ラインごとにノンインタレース方式で画像が更新される。 The display device DS1 is configured to simultaneously process two adjacent pixels in the left and right direction of the display screen with one operating clock CK based on the ODD signal received from the first transmission path LVDS1 and the EVEN signal received from the second transmission path LVDS2. As a result, the pixel data of 1280 pixels in one horizontal line is updated with an operating time of 640/54 MHz = 11.85 μS, and this operation is repeated for 1024 lines, updating one frame of 1280 x 1024 pixel image display. The image is updated line by line in a non-interlaced manner, such as the first line → second line ... → 1024th line.

但し、図3(c)に示す通り、表示装置DS1の仕様として、水平方向に、典型値としては、204クロック分の待機時間(ブランク期間)を設けること、及び、垂直方向に、典型値としては、42行分の待機時間(ブランク期間)を設けることが規定されている。したがって、これらのブランク期間を考慮した実際の画面更新周期FRは、上記した典型値に基づく計算において、(204+640)×(42+1024)/54MHz≒16.66mSとなるので、フレームレートFRは約1/60Hzとなる。 However, as shown in FIG. 3(c), the specifications of the display device DS1 stipulate that a typical waiting time (blank period) of 204 clocks is provided in the horizontal direction, and a typical waiting time (blank period) of 42 rows is provided in the vertical direction. Therefore, the actual screen update period FR taking these blank periods into account is calculated based on the typical values described above as (204 + 640) x (42 + 1024) / 54 MHz ≈ 16.66 mS, so the frame rate FR is approximately 1/60 Hz.

なお、水平方向の待機時間WThと、垂直方向の待機時間WTvには、各々、典型値に対する許容幅が規定されており、実際には、上記した典型値とは異なる値が選択可能である。但し、フレームレートFR=1/60秒とするため、(WTh+640)×(WTv+1024)/54MHz=1/60秒となるよう、水平/垂直方向の待機時間WTh/WTvを正確に設定する必要がある。 Note that the horizontal waiting time WTh and the vertical waiting time WTv each have a tolerance range for the typical value, and in practice, values other than the typical values listed above can be selected. However, to set the frame rate FR = 1/60 seconds, it is necessary to accurately set the horizontal/vertical waiting times WTh/WTv so that (WTh + 640) x (WTv + 1024)/54 MHz = 1/60 seconds.

一方、この表示装置DS1では、水平同期信号HSと、垂直同期信号VSの受信が特に不要である一方、ODD信号とEVEN信号の伝送時には、Hレベルのデータ有効信号ENABの伝送が要求される。すなわち、伝送路LVDS1,LVDS2に対して、有意な信号(ODD/EVEN信号)を伝送しているタイミングでは、データ有効信号ENABがアクティブレベル(H)である必要がある。 On the other hand, this display device DS1 does not particularly need to receive the horizontal synchronization signal HS and the vertical synchronization signal VS, but when transmitting the ODD signal and the EVEN signal, it is required to transmit the H-level data enable signal ENAB. In other words, when a significant signal (ODD/EVEN signal) is being transmitted to the transmission paths LVDS1 and LVDS2, the data enable signal ENAB must be at an active level (H).

そこで、本実施例では、上記したメイン表示装置DS1の仕様に基づき、演出制御基板23とメイン表示装置DS1とを、周波数54MHz(=ドットクロックDCKの1/2)のLVDSクロックCLKのデュアルリンク伝送路でLVDS接続している(図5、図13(a))。また、本実施例のVDP回路52では、メイン表示装置DS1の仕様を満たす水平方向ブランク期間WThと、垂直ブランク期間WTvを設けるとともに、画像データ(ODD/EVEN信号)の出力時は、データ有効信号ENABがアクティブレベル(Hレベル)になるようにしている。 Therefore, in this embodiment, based on the specifications of the main display device DS1 described above, the performance control board 23 and the main display device DS1 are LVDS-connected with a dual link transmission path of an LVDS clock CLK with a frequency of 54 MHz (= 1/2 the dot clock DCK) (Figures 5 and 13 (a)). In addition, in the VDP circuit 52 of this embodiment, a horizontal blank period WTh and a vertical blank period WTv that meet the specifications of the main display device DS1 are provided, and when image data (ODD/EVEN signals) are output, the data enable signal ENAB is set to an active level (H level).

すなわち、データ有効信号ENABは、図4(b)に示すように、水平同期周期THのうち、水平表示期間THdだけがHレベルとなるよう構成されている。したがって、データ有効信号ENABは、垂直同期周期TVのうち、垂直表示期間TVd以外は、必ずLレベルとなる。なお、水平方向ブランク期間WThと、垂直ブランク期間WTvは、各々の典型値(WTh=204/WTv=42)とは異なる値を採用しているが、具体的な設計値は、図14に基づいて後述する。 That is, as shown in FIG. 4(b), the data valid signal ENAB is configured to be H level only during the horizontal display period THd of the horizontal synchronization period TH. Therefore, the data valid signal ENAB is always L level during the vertical synchronization period TV other than the vertical display period TVd. Note that the horizontal blank period WTh and the vertical blank period WTv adopt values different from their respective typical values (WTh=204/WTv=42), but the specific design values will be described later with reference to FIG. 14.

何れにしても、データ有効信号ENABは、差動信号ラインRA2/RB2を経由して、LVDSクロックCLKの各動作サイクルにおいて、離散的なDE信号として繰り返し伝送される。図4(b)や図4(c)に示すデータ有効信号ENABは、LVDS伝送された離散データであるDE信号を復調したものであり、離散的なDE信号を時間軸上に連続させたものである。なお、差動信号ラインRA2/RBでは、垂直同期信号VSと、水平同期信号HSについても、DE信号(データ有効信号ENAB)に続いて、繰り返し伝送されているが、実施例で使用するメイン表示装置DS1では、この同期信号VS,HSを活用していない。 In any case, the data valid signal ENAB is repeatedly transmitted as a discrete DE signal via the differential signal lines RA2/RB2 in each operating cycle of the LVDS clock CLK. The data valid signal ENAB shown in FIG. 4(b) and FIG. 4(c) is a demodulated DE signal, which is discrete data transmitted via LVDS, and is a continuous discrete DE signal on the time axis. In addition, the vertical synchronization signal VS and the horizontal synchronization signal HS are also repeatedly transmitted following the DE signal (data valid signal ENAB) on the differential signal lines RA2/RB, but the main display device DS1 used in the embodiment does not utilize these synchronization signals VS and HS.

もっとも、表示装置DS1では、水平同期信号HSや、垂直同期信号VSの伝送を何ら禁止していない。但し、これらの同期信号に規定された内部動作が実行されることはない。すなわち、表示ラインの水平改行タイミングは、受信した水平同期信号HSとは無関係に、データ有効信号ENABの立下りタイミングや、データ有効信号ENABの立上りタイミング後の動作クロックCK(LVDSクロックCLKに対応)の個数(実施例では640個=1280/2)などに基づいて、表示装置DS1の内部回路にとって最適なタイミングに規定される(図4(b)の下向き矢印)。 However, the display device DS1 does not prohibit the transmission of the horizontal synchronization signal HS or the vertical synchronization signal VS. However, the internal operations regulated by these synchronization signals are not executed. In other words, the horizontal line feed timing of the display line is determined to be optimal for the internal circuitry of the display device DS1 based on the falling edge of the data enable signal ENAB and the number of operation clocks CK (corresponding to the LVDS clock CLK) after the rising edge of the data enable signal ENAB (640 = 1280/2 in this embodiment), regardless of the received horizontal synchronization signal HS (downward arrow in Figure 4(b)).

この点は、一フレーム分の画像表示後の垂直改行タイミングについても同様であり、所定パルス幅のデータ有効信号ENABの連続個数(実施例では1024個)などに基づいて、表示装置DS1の内部回路にとっての最適タイミングに規定され(図4(c)の下向き矢印)、受信した垂直同期信号VSには影響されない。このように、本実施例では、表示装置DS1に水平同期信号HSや垂直同期信号VSを伝送する必要がないので、同期信号HS,VSのパルス幅PWh/PWvや、フロントポートFPh/FPvや、バックポートBPh/BPvを最適に設定する必要がなくなり、演出制御部23やVDP回路52の制御負担が大きく軽減される。 The same is true for the vertical line feed timing after one frame of image display, which is determined to be optimal for the internal circuitry of the display device DS1 based on the number of consecutive data enable signals ENAB of a specified pulse width (1024 in this embodiment) and is not affected by the received vertical synchronization signal VS (downward arrow in FIG. 4(c)). In this way, in this embodiment, there is no need to transmit the horizontal synchronization signal HS or vertical synchronization signal VS to the display device DS1, so there is no need to optimally set the pulse widths PWh/PWv of the synchronization signals HS and VS, the front ports FPh/FPv, and the back ports BPh/BPv, and this significantly reduces the control burden on the performance control unit 23 and the VDP circuit 52.

また、表示装置DS1の内部動作としても、自らの内部構成に基づいた最適タイミングで、水平改行や垂直改行の動作が実行されるので、不自然な表示動作のおそれが解消される。因みに、外部から受ける水平同期信号HSや、垂直同期信号VSに基づいて動作する表示装置の場合には、同期信号HS,VSのパルス幅や、同期信号HS,VSに前後するフロントポーチ期間や、バックポーチ期間が不適切な場合には、正常な表示動作が損なわれるおそれがある。 In addition, the internal operation of the display device DS1 is that horizontal and vertical line feed operations are performed at optimal timing based on its own internal configuration, eliminating the risk of unnatural display operations. Incidentally, in the case of a display device that operates based on a horizontal synchronization signal HS or a vertical synchronization signal VS received from the outside, if the pulse width of the synchronization signals HS and VS, or the front porch period and back porch period before and after the synchronization signals HS and VS, are inappropriate, there is a risk that normal display operations will be impaired.

ところで、図4(a)において、差動信号ラインRA0~RA3,RACLKを使用する第1の差動信号LVDS1は、奇数番目の画素を伝送しており(AサイドのODD信号)、差動信号ラインRB0~RB3,RBCLKを使用する第2の差動信号LVDS2は、偶数番目の画素を伝送している(BサイドのEVEN信号)。このように、本実施例では、二種類のODD信号とEVEN信号を、デュアルリンク伝送路で伝送することで、ドットクロックDCKの周波数を1/2に低下させることができ、その分だけ耐ノイズ性に優れ、また、伝送距離を上げることもできる。 In FIG. 4(a), the first differential signal LVDS1 using differential signal lines RA0-RA3 and RACCLK transmits odd-numbered pixels (ODD signal on side A), and the second differential signal LVDS2 using differential signal lines RB0-RB3 and RBCLK transmits even-numbered pixels (EVEN signal on side B). In this way, in this embodiment, by transmitting two types of ODD signals and EVEN signals over a dual link transmission path, the frequency of the dot clock DCK can be reduced by half, which improves noise resistance and also increases the transmission distance.

一方、メイン表示装置DS1には、デュアルリンク伝送路で伝送されたODD信号と、EVEN信号の変換受信部RVが内蔵されており、二つのLVDS信号(ODD信号とEVEN信号)からRGB信号を復元して、一フレーム分(1280×1024ドット)の画像を表示している。先に説明した通り、RGB信号は、各々、8bitで構成されているので、メイン表示装置DS1には、諧調度2×2×2のフルカラー画像が表示される。 Meanwhile, the main display device DS1 has a built-in conversion receiver RV for the ODD and EVEN signals transmitted over the dual link transmission path, and restores the RGB signal from the two LVDS signals (ODD and EVEN signals) to display one frame's worth of image (1280 x 1024 dots). As explained above, each RGB signal is composed of 8 bits, so the main display device DS1 displays a full-color image with a gradation of 28 x 28 x 28 .

図5は、表示装置DS1の内部構成を、VDP回路52の関連部分と共に図示したブロック図である。図示の通り、ODD信号は、第1のLVDSライン(Aサイド)を経由してLVDS-パラレル変換部RVaに伝送され、EVEN信号は、第2のLVDSライン(Bサイド)を経由してLVDS-パラレル変換部RVbに伝送される。そして、差動ラインSA0/SB0で伝送される各8ビット長のRGBデータのうち、画像データR0~R5,G0が注出され、差動ラインSA1/SB1からは、画像データG1~G5,B0~B1が注出される。 Figure 5 is a block diagram showing the internal configuration of the display device DS1 together with the relevant parts of the VDP circuit 52. As shown in the figure, the ODD signal is transmitted to the LVDS-parallel conversion unit RVa via the first LVDS line (A side), and the EVEN signal is transmitted to the LVDS-parallel conversion unit RVb via the second LVDS line (B side). Of the 8-bit RGB data transmitted over the differential lines SA0/SB0, image data R0-R5 and G0 are extracted, and image data G1-G5 and B0-B1 are extracted from the differential lines SA1/SB1.

また、差動ラインSA2/SB2から、画像データB2~B5とDE信号とVS信号とHS信号が注出され、差動ラインSA3/SB3からは、画像データG6~G7,R6~R7,B6~B7が注出される。ここで、DE信号は、データ有効信号ENABに他ならない。また、注出されたVS信号と、HS信号が利用されないことは前記した通りである。 In addition, image data B2-B5, DE signal, VS signal, and HS signal are output from differential lines SA2/SB2, and image data G6-G7, R6-R7, and B6-B7 are output from differential lines SA3/SB3. Here, the DE signal is nothing but the data valid signal ENAB. Also, as mentioned above, the output VS signal and HS signal are not used.

次に、差動ラインRACLK/RBCLKのLVDSクロックCLKは、PLL回路に供給されることで、LVDSクロックCLKと同一の周波数54MHzの動作クロックCKが生成される。この動作クロックCKは、液晶コントローラLCD_CTL の内部動作を規定するもので、液晶コントローラLCD_CTL は、液晶パネルLCDの左右方向に隣接する2個のRGB画素(8ビット×3×2)に対応する画像データを、一の動作クロックCKに同期してまとめて処理している。 The LVDS clock CLK of the differential line RACCLK/RBCLK is then supplied to a PLL circuit to generate an operating clock CK with the same frequency as the LVDS clock CLK, 54 MHz. This operating clock CK regulates the internal operation of the LCD controller LCD_CTL, which processes image data corresponding to two RGB pixels (8 bits x 3 x 2) adjacent to each other in the left-right direction of the LCD panel LCD in synchronization with a single operating clock CK.

そのため、横方向1280(=640×2)ドットの画素は、動作クロックCK640個分の処理時間11.85μS(=640/54MHz)で処理を完了することになる。なお、一の画素は、RGB三色の基本画素で構成されて、RGB三色の基本画素の画像データは、各々1バイト長であって諧調度2×2×2であるので、一ラインの全画素(1280ドット)の画像データは、全体として、3×1280バイト長となる。 Therefore, processing of a pixel with 1280 (=640 x 2) dots in the horizontal direction is completed in 11.85 μS (=640/54 MHz), which is the processing time for 640 operation clocks CK. Note that one pixel is composed of three basic RGB pixels, and the image data of the three basic RGB pixels is one byte long each, with a gradation of 28 x 28 x 28 , so the image data of all pixels (1280 dots) on one line is 3 x 1280 bytes long overall.

図5に示す通り、液晶コントローラLCD_CNT は、1280本のソース信号ラインを、各々、2(=256)諧調の駆動信号で駆動するソースドライバSDVと、1024本のゲート信号ラインをON/OFF制御するゲートドライバGDVを適宜に制御している。具体的には、液晶コントローラLCD_CNT は、LVDS伝送路から注出したDE信号と、動作クロックCKとに基づいて、各部を適宜に動作させることで、フレームレートFR=1/60Hzの画像更新動作を実現している。先に確認した通り、DE信号は、VDP回路52が出力したデータ有効信号ENABに対応する。 As shown in Fig. 5, the liquid crystal controller LCD_CNT appropriately controls the source driver SDV, which drives 1280 source signal lines with drive signals of 28 (=256) gradations, and the gate driver GDV, which controls the ON/OFF of 1024 gate signal lines. Specifically, the liquid crystal controller LCD_CNT realizes an image update operation at a frame rate FR = 1/60 Hz by appropriately operating each part based on the DE signal extracted from the LVDS transmission line and the operation clock CK. As confirmed earlier, the DE signal corresponds to the data valid signal ENAB output by the VDP circuit 52.

本実施例の場合、ソースドライバSDVは、384本の出力端子を有するドライバ素子を10個配置して構成されている。先に説明した通り、液相パネルLCDの一ライン全画素(1280ドット)は、RGB三色の基本画素で構成されて合計3×1280個であるので、これらを駆動するドライバ素子が10個必要となる。なお、これら10個のドライバ素子には、液晶コントローラLCD_CNT から画像データDATが順番に供給され、これがスタート信号SPや転送クロックDCLKに基づいて適宜に転送される。そして、ラッチ信号LTに同期して、アナログ変換された駆動信号が3840本のソース信号ラインに供給される。先に説明した通り、液晶パネルLCDの一ラインの全画素(1280ドット)が更新されるに要する時間は、11.85μS(=640/54MHz)である。 In this embodiment, the source driver SDV is configured by arranging 10 driver elements each having 384 output terminals. As explained above, all the pixels (1280 dots) on one line of the liquid crystal panel LCD are composed of 3 x 1280 basic pixels of three colors RGB, so 10 driver elements are required to drive them. These 10 driver elements are supplied with image data DAT in sequence from the liquid crystal controller LCD_CNT, which is transferred appropriately based on the start signal SP and the transfer clock DCLK. Then, in synchronization with the latch signal LT, the analog-converted drive signal is supplied to the 3840 source signal lines. As explained above, it takes 11.85 μS (= 640/54 MHz) to update all the pixels (1280 dots) on one line of the liquid crystal panel LCD.

一方、液晶コントローラLCD_CNT は、ゲートドライバGDVに対して、ゲートスタート信号GSや、ゲートクロック信号GCLKを供給することで、駆動対象となるゲート信号ラインを更新している。ここで、ゲートドライバGDVは、256本の出力端子を有するドライバ素子を4個配置して構成されている。 On the other hand, the LCD controller LCD_CNT updates the gate signal lines to be driven by supplying a gate start signal GS and a gate clock signal GCLK to the gate driver GDV. Here, the gate driver GDV is configured with four driver elements, each with 256 output terminals.

なお、ゲート信号ラインの更新タイミングは、DE信号の立下りタイミングと、動作クロックCKに基づいて規定され、ゲート信号ラインの水平改行周期は、動作クロックCKでカウントして、典型値計算では、640+204クロックとされる(図3(c)参照)。また、DE信号の個数(1024)に基づいて、駆動対象のゲート信号ラインが初期状態にリセットされ、最適なタイミングで、ゲートスタート信号GSが出力され、ゲートクロック信号GCLKの出力が再開される。ゲート信号ラインの垂直改行周期は、動作クロックCKでカウントして、典型値計算では、42+1024クロックである(図3(c)参照)。但し、先に説明した通り、本実施例では、典型値とは異なる設計で表示装置DS1を動作させている(図14参照)。 The update timing of the gate signal line is determined based on the falling edge of the DE signal and the operating clock CK, and the horizontal line feed period of the gate signal line is counted by the operating clock CK and is calculated as 640+204 clocks in typical value calculation (see FIG. 3(c)). Based on the number of DE signals (1024), the gate signal line to be driven is reset to the initial state, and the gate start signal GS is output at the optimal timing, and the output of the gate clock signal GCLK is resumed. The vertical line feed period of the gate signal line is counted by the operating clock CK and is calculated as 42+1024 clocks in typical value calculation (see FIG. 3(c)). However, as explained above, in this embodiment, the display device DS1 is operated with a design different from the typical value (see FIG. 14).

以上、メイン表示装置DS1について、詳細に説明したが、サブ表示装置DS2は、VDP回路52から受ける水平同期信号HSと垂直同期信号VSに基づいて、図40に示すと同様の動作をしている。但し、サブ制御装置DS2も、水平同期信号HSや垂直同期信号VSに基づくことなく、データ有効信号ENABに基づいて動作する構成を採るのも好適である。なお、データ有効信号ENABは、サブ表示装置DS2に対しては、離散的なDE信号の形式ではなく、連続信号ENABとして伝送される(図13(a)右下部参照)。 The main display device DS1 has been described in detail above, but the sub-display device DS2 operates in a similar manner to that shown in FIG. 40, based on the horizontal synchronizing signal HS and vertical synchronizing signal VS received from the VDP circuit 52. However, it is also preferable for the sub-control device DS2 to be configured to operate based on a data enable signal ENAB, rather than based on the horizontal synchronizing signal HS or vertical synchronizing signal VS. The data enable signal ENAB is transmitted to the sub-display device DS2 as a continuous signal ENAB, not in the form of a discrete DE signal (see the lower right of FIG. 13(a)).

次に、図3(a)に戻って、パチンコ機GMの全体回路構成を説明する。図3(a)に示す通り、このパチンコ機GMは、AC24Vを受けて各種の直流電圧(35V,12V,5V)をAC24Vと共に出力する電源基板20と、遊技制御動作を中心統括的に担う主制御基板21と、音声演出用の回路素子SNDを搭載した演出インタフェイス基板22と、主制御基板21から受けた制御コマンドCMDに基づいてランプ演出、音声演出、及び画像演出を統一的に実行する演出制御基板23と、演出制御基板23と表示装置DS1,DS2の間に位置する液晶インタフェイス基板24と、主制御基板21から受けた制御コマンドCMD’に基づいて払出モータMを制御して遊技球を払い出す払出制御基板25と、遊技者の操作に応答して遊技球を発射させる発射制御基板26と、を中心に構成されている。 Next, returning to FIG. 3(a), the overall circuit configuration of the pachinko machine GM will be described. As shown in FIG. 3(a), this pachinko machine GM is mainly composed of a power supply board 20 that receives AC 24V and outputs various DC voltages (35V, 12V, 5V) together with AC 24V, a main control board 21 that is responsible for the central and overall game control operation, a performance interface board 22 equipped with a circuit element SND for sound performance, a performance control board 23 that executes lamp performance, sound performance, and image performance in a unified manner based on a control command CMD received from the main control board 21, a liquid crystal interface board 24 located between the performance control board 23 and the display devices DS1 and DS2, a payout control board 25 that controls the payout motor M based on the control command CMD' received from the main control board 21 to pay out game balls, and a launch control board 26 that launches game balls in response to the player's operation.

なお、演出インタフェイス基板22と、演出制御基板23と、液晶インタフェイス基板24とは、配線ケーブルを経由することなく、雄型コネクタと雌型コネクタとを直結されている。そのため、各電子回路の回路構成を複雑高度化しても基板全体の収納空間を最小化できると共に、接続ラインを最短化することで耐ノイズ性を高めることができる。 The performance interface board 22, performance control board 23, and liquid crystal interface board 24 are directly connected to male and female connectors without going through wiring cables. Therefore, even if the circuit configuration of each electronic circuit is made complex and advanced, the storage space of the entire board can be minimized, and noise resistance can be improved by shortening the connection lines.

図示の通り、主制御基板21が出力する制御コマンドCMD’は、払出制御基板25に伝送される。一方、主制御基板21が出力する制御コマンドCMDは、演出インタフェイス基板22を経由して演出制御基板23に伝送される。ここで、制御コマンドCMD,CMD’は、何れも16bit長であるが、8bit長毎に2回に分けてパラレル送信される。 As shown in the figure, the control command CMD' output by the main control board 21 is transmitted to the payout control board 25. On the other hand, the control command CMD output by the main control board 21 is transmitted to the performance control board 23 via the performance interface board 22. Here, the control commands CMD and CMD' are both 16 bits long, but are sent in parallel in two batches of 8 bits each.

主制御基板21と払出制御基板25には、ワンチップマイコンを含むコンピュータ回路が搭載されている。また、演出制御基板23には、VDP回路(Video Display Processor )52や内蔵CPU回路51などのコンピュータ回路が内蔵された複合チップ50が搭載されている。そこで、これらの制御基板21、25、23と、演出インタフェイス基板22や液晶インタフェイス基板24に搭載された回路、及びその回路によって実現される動作を機能的に総称して、本明細書では、主制御部21、演出制御部23、及び払出制御部25と言うことがある。なお、主制御部21に対して、演出制御部23と、払出制御部25がサブ制御部となる。 The main control board 21 and the payout control board 25 are equipped with computer circuits including a one-chip microcomputer. The performance control board 23 is equipped with a composite chip 50 that has built-in computer circuits such as a VDP circuit (Video Display Processor) 52 and an internal CPU circuit 51. These control boards 21, 25, 23, the circuits mounted on the performance interface board 22 and the liquid crystal interface board 24, and the operations realized by these circuits are sometimes referred to functionally collectively as the main control unit 21, the performance control unit 23, and the payout control unit 25 in this specification. Note that the performance control unit 23 and the payout control unit 25 are sub-control units relative to the main control unit 21.

また、このパチンコ機GMは、図3(a)の破線で囲む枠側部材GM1と、遊技盤5の背面に固定された盤側部材GM2とに大別されている。枠側部材GM1には、ガラス扉6や前面板7が枢着された内枠3と、その外側の木製外枠1とが含まれており、機種の変更に拘わらず、長期間にわたって遊技ホールに固定的に設置される。一方、盤側部材GM2は、機種変更に対応して交換され、新たな盤側部材GM2が、元の盤側部材の代わりに枠側部材GM1に取り付けられる。なお、枠側部材1を除く全てが、盤側部材GM2である。 This pachinko machine GM is broadly divided into a frame side member GM1 surrounded by a dashed line in Figure 3(a) and a board side member GM2 fixed to the back of the game board 5. The frame side member GM1 includes an inner frame 3 to which a glass door 6 and a front panel 7 are pivotally attached, and an outer wooden frame 1 on the outside of that, and is fixedly installed in the game hall for a long period of time regardless of changes in the model. On the other hand, the board side member GM2 is replaced in response to a change in the model, and a new board side member GM2 is attached to the frame side member GM1 in place of the original board side member. All except the frame side member 1 is the board side member GM2.

図3(a)の破線枠に示す通り、枠側部材GM1には、電源基板20と、バックアップ電源基板33と、払出制御基板25と、発射制御基板26と、枠中継基板36と、モータ/ランプ駆動基板37と、が含まれており、これらの回路基板が、内枠3の適所に各々固定されている。一方、遊技盤5の背面には、主制御基板21、演出制御基板23が、表示装置DS1,DS2やその他の回路基板と共に固定されている。そして、枠側部材GM1と盤側部材GM2とは、一箇所に集中配置された集中接続コネクタC1~C3によって電気的に接続されている。 As shown in the dashed frame in Figure 3(a), the frame side member GM1 includes a power supply board 20, a backup power supply board 33, a payout control board 25, a launch control board 26, a frame relay board 36, and a motor/lamp drive board 37, and these circuit boards are each fixed in appropriate positions to the inner frame 3. Meanwhile, the main control board 21 and the performance control board 23 are fixed to the back of the game board 5, along with the display devices DS1, DS2 and other circuit boards. The frame side member GM1 and the board side member GM2 are electrically connected by centralized connectors C1 to C3, which are centrally located in one place.

電源基板20は、遊技ホールから配電される交流電圧AC24Vに基づいて、三種類の直流電圧(35V,12V,5V)を生成し、各直流電圧を、集中接続コネクタC2を経由して、演出インタフェイス基板22に配電している。また、三種類の直流電圧(35V,12V,5V)は、交流電圧AC24Vと共に、払出制御基板25に配電される。そして、払出制御基板25に配電された直流電圧(35V,12V,5V)は、バックアップ電源BAKと共に、集中接続コネクタC1を経由して、主制御基板21に配電されるよう構成されている。 The power supply board 20 generates three types of DC voltages (35V, 12V, 5V) based on the AC voltage AC24V distributed from the gaming hall, and distributes each DC voltage to the performance interface board 22 via the centralized connection connector C2. The three types of DC voltages (35V, 12V, 5V) are also distributed to the payout control board 25 together with the AC voltage AC24V. The DC voltages (35V, 12V, 5V) distributed to the payout control board 25 are then distributed to the main control board 21 together with the backup power supply BAK via the centralized connection connector C1.

直流35Vは、遊技球の発射動作に関し、球送りソレノイドや発射ソレノイドの駆動電源、及び、電動式チューリップ(可変入賞装置)や大入賞口16を開閉駆動する電磁ソレノイドの駆動電源として使用される。また、直流12Vは、各制御基板から制御されるLEDランプやモータの駆動電源、及びデジタルアンプの電源電圧として使用され、一方、直流5Vは、払出制御基板25や主制御基板21のワンチップマイコンの電源電圧、及び、各制御基板に搭載された論理素子の電源電圧として使用される。また、直流5Vは、演出インタフェイス基板22のDC/DCコンバータでレベル降下された後、レベル降下された各種レベルの電圧が、各種コンピュータ回路(複合チップ50や音声プロセッサ27など)の電源電圧として使用される。 The 35V DC is used as the driving power source for the ball feed solenoid and launch solenoid for the ball launch operation, and for the electromagnetic solenoid that opens and closes the electric tulip (variable winning device) and the large winning port 16. The 12V DC is used as the driving power source for the LED lamps and motors controlled by each control board, and as the power supply voltage for the digital amplifier, while the 5V DC is used as the power supply voltage for the one-chip microcomputers of the payout control board 25 and the main control board 21, and for the logic elements mounted on each control board. The 5V DC is stepped down by the DC/DC converter of the performance interface board 22, and the stepped down voltages of various levels are then used as the power supply voltage for various computer circuits (such as the composite chip 50 and the audio processor 27).

バックアップ電源BAKは、電源遮断後、主制御部21と払出制御部25のワンチップマイコンの内蔵RAMのデータを保持するためのDC5Vの直流電源であり、例えば、電気二重層コンデンサで実現される。この実施例では、専用のバックアップ電源基板33が設けられており、バックアップ電源基板33に配置された電気二重層コンデンサは、払出制御基板25から受ける直流電圧5Vによって遊技動作中に充電されるよう構成されている。 The backup power supply BAK is a 5V DC power supply for retaining data in the built-in RAM of the one-chip microcomputer of the main control unit 21 and the payout control unit 25 after the power is cut off, and is realized, for example, by an electric double-layer capacitor. In this embodiment, a dedicated backup power supply board 33 is provided, and the electric double-layer capacitor placed on the backup power supply board 33 is configured to be charged by the 5V DC voltage received from the payout control board 25 during game operation.

一方、電源遮断後は、バックアップ電源BAKが、主制御部21と払出制御部25のワンチップマイコンの内蔵RAMのデータを保持するので、主制御部21と払出制御部25は、電源遮断前の遊技動作を電源投入後に再開できることになる。なお、バックアップ電源基板33には、少なくとも数日は、各ワンチップマイコンの内蔵RAMの記憶内容を保持可能な電気二重層コンデンサが配置されている。 After the power is cut off, the backup power supply BAK retains the data in the built-in RAM of the one-chip microcomputers of the main control unit 21 and the payout control unit 25, so that the main control unit 21 and the payout control unit 25 can resume the gaming operation before the power was cut off after the power is turned on. The backup power supply board 33 is equipped with an electric double layer capacitor that can retain the memory contents of the built-in RAM of each one-chip microcomputer for at least several days.

ところで、本実施例では、従来の機器構成とは異なり、交流電圧AC24Vの異常低下を示す電源異常信号ABNは、電源基板20ではなく、払出制御基板25の電源モニタ部MNTにおいて生成されるよう構成されている。電源モニタ部MNTは、図3(b)に示す通り、電源基板20から受けるAC24Vを整流する全波整流回路と、全波整流回路の出力を受けて通電発光するフォトダイオードDと、電源基板20から受ける直流電圧5Vを電源とし、フォトダイオードDの発光に基づいてON動作するフォトトランジスTRと、フォトトランジスTRのON動作に基づいてHレベルの検出信号ABN(電源異常信号)を出力する出力部と、を有して構成されている。なお、フォトダイオードDと、フォトトランジスTRとで、フォトカプラPHを構成している。 In this embodiment, unlike the conventional device configuration, the power supply abnormality signal ABN indicating an abnormal drop in the AC voltage AC24V is generated not by the power supply board 20 but by the power supply monitor unit MNT of the dispensing control board 25. As shown in FIG. 3(b), the power supply monitor unit MNT is configured to have a full-wave rectifier circuit that rectifies the AC24V received from the power supply board 20, a photodiode D that receives the output of the full-wave rectifier circuit and emits light, a phototransistor TR that uses the DC voltage of 5V received from the power supply board 20 as a power source and turns ON based on the light emitted by the photodiode D, and an output unit that outputs an H-level detection signal ABN (power supply abnormality signal) based on the ON operation of the phototransistor TR. The photodiode D and the phototransistor TR constitute a photocoupler PH.

上記の構成において、電源投入後、フォトカプラPHが速やかにON状態になることで、電源異常信号ABNが正常レベル(H)となる。しかし、その後、交流電源が何らかの理由(正常には電源遮断)で異常降下すると、フォトカプラPHがOFF状態に変化することで、電源異常信号ABNが異常レベル(L)に変化する。この電源異常信号ABNは、払出制御基板25のワンチップマイコンに伝送されると共に、集中接続コネクタC1を経由して、主制御基板21のワンチップマイコンにも伝送されるよう構成されている。したがって、異常レベルの電源異常信号ABNを受けた各ワンチップマイコンは、必要な情報を、各々の内蔵RAMに記憶するバックアップ処理を実行することになる。先に説明した通り、内蔵RAMの情報は、バックアップ電源BAKによって維持されるので、電源遮断前の遊技動作が電源投入後に再開可能となる。 In the above configuration, after the power is turned on, the photocoupler PH quickly turns ON, causing the power supply abnormality signal ABN to go to the normal level (H). However, if the AC power supply subsequently drops abnormally for some reason (normally due to a power cut), the photocoupler PH turns OFF, causing the power supply abnormality signal ABN to go to the abnormal level (L). This power supply abnormality signal ABN is transmitted to the one-chip microcomputer of the payout control board 25, and is also transmitted to the one-chip microcomputer of the main control board 21 via the centralized connection connector C1. Therefore, each one-chip microcomputer that receives the abnormal level of the power supply abnormality signal ABN executes a backup process to store the necessary information in its own built-in RAM. As explained above, the information in the built-in RAM is maintained by the backup power supply BAK, so that the game operation before the power cut can be resumed after the power is turned on.

図3(a)に示す通り、演出インタフェイス基板22には、音声プロセッサ27などの音声回路SNDが搭載され、演出制御基板23には、VDP回路52や内蔵CPU回路51などのコンピュータ回路が内蔵された複合チップ50が搭載されている。以下、内蔵CPU回路をCPU回路と略称することがある。 As shown in FIG. 3(a), the performance interface board 22 is equipped with an audio circuit SND such as an audio processor 27, and the performance control board 23 is equipped with a composite chip 50 that incorporates computer circuits such as a VDP circuit 52 and an internal CPU circuit 51. Hereinafter, the internal CPU circuit may be abbreviated as the CPU circuit.

演出インタフェイス基板22には、電源投入時に、電源電圧の上昇を検知して各種のリセット信号RT3,RT4を生成するリセット回路RST3,RST4が搭載されている。先ず、リセット回路RST3は、電源基板20から配電された直流電圧12Vと5Vに基づいて、リセット信号RT3を生成している。そして、リセット信号RT3は、音声メモリ28だけを電源リセットして、そのまま演出制御基板23に伝送される。 The performance interface board 22 is equipped with reset circuits RST3 and RST4 that detect an increase in the power supply voltage when the power is turned on and generate various reset signals RT3 and RT4. First, the reset circuit RST3 generates the reset signal RT3 based on the DC voltages of 12V and 5V distributed from the power supply board 20. The reset signal RT3 then resets the power supply to only the audio memory 28 and is transmitted directly to the performance control board 23.

演出制御基板23に伝送されたリセット信号RT3は、図6(a)に示す通り、ANDゲートG1において、WDT(Watch Dog Timer )回路58の出力とAND演算され、システムリセット信号SYSとして、CPU回路51やVDP回路52を電源リセットしている(図6(a)及び図6(d)参照)。 As shown in FIG. 6(a), the reset signal RT3 transmitted to the performance control board 23 is ANDed with the output of the WDT (Watch Dog Timer) circuit 58 in the AND gate G1, and the result is the system reset signal SYS, which resets the power supply to the CPU circuit 51 and the VDP circuit 52 (see FIG. 6(a) and FIG. 6(d)).

リセット回路RST3が生成するリセット信号RT3は、電源投入後、電源リセット信号として所定時間Lレベルを維持した後、Hレベルに上昇する。しかし、その後、直流電圧12V又は直流電圧5Vの何れか一以上が降下した場合(通常は電源遮断時)には、リセット信号RT3のレベル降下に対応して、システムリセット信号SYSもLレベルに降下するので、演出制御基板23のCPU回路51とVDP回路52は動作停止状態となる。 After the power is turned on, the reset signal RT3 generated by the reset circuit RST3 remains at L level for a predetermined time as a power reset signal, and then rises to H level. However, if thereafter, either the DC voltage of 12V or the DC voltage of 5V drops (usually when the power is cut off), the system reset signal SYS also drops to L level in response to the drop in the level of the reset signal RT3, and the CPU circuit 51 and VDP circuit 52 of the performance control board 23 are put into a stopped state.

このシステムリセット信号SYSは、WDT回路58の出力(正常時にはHレベル)に基づいても変化するので、リセット信号RT3=Hの状態で、プログラム暴走時などに起因して、WDT回路58の出力がLレベルに降下することに対応して、システムリセット信号SYSもLレベルに変化して、CPU回路51やVDP回路52を異常リセットする(図6(d)参照)。 This system reset signal SYS also changes based on the output of the WDT circuit 58 (normally at H level). Therefore, when the reset signal RT3 is in the H state and the output of the WDT circuit 58 drops to L level due to a program runaway or the like, the system reset signal SYS also changes to L level, abnormally resetting the CPU circuit 51 and VDP circuit 52 (see FIG. 6(d)).

一方、リセット回路RST4は、電源基板20から配電された5Vを降下して生成された3.3Vに基づいて、リセット信号RT4を生成している。このリセット信号RT4は、電源投入時の電源リセット信号として、音声プロセッサ27を電源リセットしている。 On the other hand, the reset circuit RST4 generates a reset signal RT4 based on 3.3V generated by dropping the 5V distributed from the power supply board 20. This reset signal RT4 resets the power supply of the audio processor 27 as a power supply reset signal when the power is turned on.

図示の通り、リセット回路RST4には、演出制御基板23から返送されたシステムリセット信号SYSも供給されているので、CPU回路51やVDP回路52の異常リセット時には、これらの回路の異常リセットに同期して、音声プロセッサ27も異常リセットされる。この結果、音声演出は、画像演出やランプ演出と共に初期状態に戻ることになり、不自然な音声演出が継続するおそれがない。 As shown in the figure, the reset circuit RST4 is also supplied with the system reset signal SYS returned from the performance control board 23, so when the CPU circuit 51 or VDP circuit 52 is abnormally reset, the audio processor 27 is also abnormally reset in synchronization with the abnormal reset of these circuits. As a result, the audio performance returns to its initial state along with the image and lamp performances, and there is no risk of unnatural audio performance continuing.

次に、枠側部材GM1たる払出制御基板25と、盤側部材GM2たる主制御部21には、各々、リセット回路RST1,RST2が搭載されており、電源投入時に電源リセット信号が生成され、各コンピュータ回路が電源リセットされるよう構成されている。 Next, the payout control board 25, which is the frame side member GM1, and the main control unit 21, which is the board side member GM2, are each equipped with reset circuits RST1 and RST2, and are configured to generate a power reset signal when the power is turned on, and to reset the power of each computer circuit.

このように、本実施例では、主制御部21と、払出制御部25と、演出インタフェイス基板22に、各々、リセット回路RST1~RST4を配置しており、システムリセット信号SYSが回路基板間で伝送されることがない。すなわち、システムリセット信号SYSを伝送する配線ケーブルが存在しないので、配線ケーブルに重畳するノイズによって、コンピュータ回路が異常リセットされるおそれが解消される。 In this way, in this embodiment, the reset circuits RST1 to RST4 are arranged in the main control unit 21, the payout control unit 25, and the performance interface board 22, respectively, and the system reset signal SYS is not transmitted between the circuit boards. In other words, since there is no wiring cable to transmit the system reset signal SYS, the risk of the computer circuit being abnormally reset by noise superimposed on the wiring cable is eliminated.

但し、主制御部21や払出制御部25に設けられたリセット回路RST1,RST2は、各々ウォッチドッグタイマを内蔵しており、各制御部21,25のCPUから、定時的なクリアパルスを受けない場合には、各CPUは強制的にリセットされる。 However, the reset circuits RST1 and RST2 provided in the main control unit 21 and the payout control unit 25 each have a built-in watchdog timer, and if they do not receive a regular clear pulse from the CPU of each control unit 21, 25, the CPU is forcibly reset.

また、主制御部21には、係員が操作可能な初期化スイッチSWが配置されており、電源投入時、初期化スイッチSWがON操作されたか否かを示すRAMクリア信号CLRが出力されるよう構成されている。このRAMクリア信号CLRは、主制御部21と払出制御部25のワンチップマイコンに伝送され、各制御部21,25のワンチップマイコンの内蔵RAMの全領域を初期設定するか否かを決定している。 The main control unit 21 is also provided with an initialization switch SW that can be operated by an attendant, and is configured to output a RAM clear signal CLR indicating whether the initialization switch SW has been turned ON when the power is turned on. This RAM clear signal CLR is transmitted to the one-chip microcomputers of the main control unit 21 and the dispensing control unit 25, and determines whether or not to initialize the entire area of the built-in RAM of the one-chip microcomputer of each control unit 21, 25.

また、先に説明した通り、主制御部21及び払出制御部25のワンチップマイコンは、払出制御部25に配置された電源モニタMNTから電源異常信号ABNを受けることによって、停電や営業終了に先立って、必要な終了処理を開始するようになっている。 As explained above, the one-chip microcomputers of the main control unit 21 and the dispensing control unit 25 receive a power abnormality signal ABN from the power monitor MNT located in the dispensing control unit 25, and start the necessary termination processing prior to a power outage or closing of business.

図3(a)に示す通り、主制御部21は、払出制御部25から、遊技球の払出動作を示す賞球計数信号や、払出動作の異常に係わるステイタス信号CONや、動作開始信号BGNを受信している。ステイタス信号CONには、例えば、補給切れ信号、払出不足エラー信号、下皿満杯信号が含まれる。動作開始信号BGNは、電源投入後、払出制御部25の初期動作が完了したことを主制御部21に通知する信号である。 As shown in FIG. 3(a), the main control unit 21 receives from the payout control unit 25 a prize ball count signal indicating the payout operation of game balls, a status signal CON related to abnormalities in the payout operation, and an operation start signal BGN. The status signal CON includes, for example, an out-of-supply signal, a payout shortage error signal, and a lower tray full signal. The operation start signal BGN is a signal that notifies the main control unit 21 that the initial operation of the payout control unit 25 has been completed after power is turned on.

また、主制御部21は、遊技盤上の各入賞口16~18に内蔵された検出スイッチのスイッチ信号を受ける一方、電動式チューリップなどのソレノイド類を駆動している。ソレノイド類や検出スイッチは、主制御部21から配電された電源電圧VB(12V)で動作するよう構成されている。また、図柄始動口15への入賞状態などを示す各スイッチ信号は、電源電圧VB(12V)と電源電圧Vcc(5V)とで動作するインタフェイスICで、TTLレベル又はCMOSレベルのスイッチ信号に変換された上で、主制御部21に伝送される。 The main control unit 21 also receives switch signals from the detection switches built into each winning slot 16-18 on the game board, while driving solenoids such as electric tulips. The solenoids and detection switches are configured to operate on the power supply voltage VB (12V) distributed from the main control unit 21. Furthermore, each switch signal indicating the winning status of the symbol start slot 15 is converted into a TTL level or CMOS level switch signal by an interface IC that operates on the power supply voltage VB (12V) and power supply voltage Vcc (5V) before being transmitted to the main control unit 21.

先に説明した通り、演出インタフェイス基板22は、集中接続コネクタC2を経由して、電源基板20から各レベルの直流電圧(5V,12V,35V)を受けている(図3(a)及び図6(a)参照)。直流電圧12Vは、デジタルアンプ29の電源電圧であると共に、LEDランプなどの駆動電圧として使用される。また、直流電圧35Vは、遊技枠の適所に配電されて可動物を往復移動させるソレノイドの駆動電圧として使用される。 As explained above, the performance interface board 22 receives various levels of DC voltage (5V, 12V, 35V) from the power supply board 20 via the centralized connection connector C2 (see Figures 3(a) and 6(a)). The 12V DC voltage is the power supply voltage for the digital amplifier 29 and is also used as the drive voltage for LED lamps and the like. The 35V DC voltage is distributed to appropriate locations in the play frame and is used as the drive voltage for solenoids that move movable objects back and forth.

一方、直流電圧5Vは、演出インタフェイス基板22各所の回路素子の電源電圧として供給されると共に、2つのDC/DCコンバータDC1,DC2に供給されて3.3Vと1.0Vが生成される(図6(a)参照)。生成された直流電圧3.3Vと1.0Vは、各々、I/O(入出力)用と、チップコア用の電源電圧として音声プロセッサ27に供給される。また、直流電圧3.3Vは、リセット回路RST4が生成する電源リセット信号RT4の基礎電圧となる。 The DC voltage of 5V is supplied as a power supply voltage to the circuit elements in various parts of the performance interface board 22, and is also supplied to two DC/DC converters DC1 and DC2 to generate 3.3V and 1.0V (see FIG. 6(a)). The generated DC voltages of 3.3V and 1.0V are supplied to the audio processor 27 as power supply voltages for I/O (input/output) and the chip core, respectively. The DC voltage of 3.3V also becomes the base voltage for the power supply reset signal RT4 generated by the reset circuit RST4.

演出インタフェイス基板22に配電された直流電圧5Vは、DC/DCコンバータDC1で生成された3.3Vと共に、演出制御基板23に配電される。そして、演出制御基板23に配電された直流電圧3.3Vは、電源電圧として、複合チップ50や、PROM53及びCGROM55に供給される。 The 5V DC voltage distributed to the performance interface board 22 is distributed to the performance control board 23 together with the 3.3V generated by the DC/DC converter DC1. The 3.3V DC voltage distributed to the performance control board 23 is then supplied as a power supply voltage to the composite chip 50, PROM 53, and CGROM 55.

図6(a)に示す通り、演出制御基板23には、2つのDC/DCコンバータDC3,DC4が配置されており、各々に供給される直流電圧5Vに基づいて、1.5Vと1.05Vを生成している。ここで、直流電圧1.05Vは、複合チップ50のチップコア用の電源電圧であり、直流電圧1.5Vは、DRAM54とのI/O(入出力)用の電源電圧である。したがって、直流電圧1.5Vは、電源電圧として、DRAM54にも供給される。 As shown in FIG. 6(a), two DC/DC converters DC3 and DC4 are arranged on the performance control board 23, and generate 1.5V and 1.05V based on the DC voltage of 5V supplied to each of them. Here, the DC voltage of 1.05V is the power supply voltage for the chip core of the composite chip 50, and the DC voltage of 1.5V is the power supply voltage for I/O (input/output) with the DRAM 54. Therefore, the DC voltage of 1.5V is also supplied to the DRAM 54 as the power supply voltage.

図3(a)に示す通り、演出インタフェイス基板22は、主制御部21から制御コマンドCMDとストローブ信号STBとを受けて、演出制御基板23に転送している。より詳細には、図6(a)に示す通りであり、制御コマンドCMDとストローブ信号STBは、入力バッファ40を経由して、演出制御基板23の複合チップ50(CPU回路51)に転送される。ここで、ストローブ信号STBは、受信割込み信号IRQ_CMD であり、演出制御CPU63は、受信割込み信号IRQ_CMD を受けて起動される割込み処理プログラム(割込みハンドラ)に基づいて、制御コマンドCMDを取得している。 As shown in FIG. 3(a), the performance interface board 22 receives the control command CMD and strobe signal STB from the main control unit 21 and transfers them to the performance control board 23. More specifically, as shown in FIG. 6(a), the control command CMD and strobe signal STB are transferred to the composite chip 50 (CPU circuit 51) of the performance control board 23 via the input buffer 40. Here, the strobe signal STB is the received interrupt signal IRQ_CMD, and the performance control CPU 63 obtains the control command CMD based on the interrupt processing program (interrupt handler) that is started in response to the received interrupt signal IRQ_CMD.

図6(a)に示す通り、演出インタフェイス基板22の入力バッファ44は、枠中継基板35,36からチャンスボタン11や音量スイッチVLSWのスイッチ信号を受け、各スイッチ信号を演出制御基板23のCPU回路51に伝送している。具体的には、音量スイッチVLSWの接点位置(0~7)を示すエンコーダ出力の3bit長と、チャンスボタン11のON/OFF状態を示す1bit長をCPU回路51に伝送している。 As shown in FIG. 6(a), the input buffer 44 of the performance interface board 22 receives switch signals of the chance button 11 and the volume switch VLSW from the frame relay boards 35 and 36, and transmits each switch signal to the CPU circuit 51 of the performance control board 23. Specifically, it transmits to the CPU circuit 51 a 3-bit encoder output indicating the contact position (0-7) of the volume switch VLSW, and a 1-bit signal indicating the ON/OFF state of the chance button 11.

また、演出インタフェイス基板22には、ランプ駆動基板30やモータランプ駆動基板31が接続されると共に、枠中継基板35,36を経由して、ランプ駆動基板37にも接続されている。図示の通り、ランプ駆動基板30に対応して、出力バッファ42が配置され、モータランプ駆動基板31に対応して、入力バッファ43aと出力バッファ43bが配置されている。なお、図6(a)では、便宜上、入力バッファ43aと出力バッファ43bを総称して、入出力バッファ43と記載している。入力バッファ43aは、可動演出体たる役物の現在位置(演出モータM1~Mnの回転位置)を把握する原点センサの出力SN0~SNnを受けて、演出制御基板23のCPU回路51に伝送している。 The performance interface board 22 is also connected to the lamp drive board 30 and the motor lamp drive board 31, and is also connected to the lamp drive board 37 via the frame relay boards 35 and 36. As shown in the figure, an output buffer 42 is arranged corresponding to the lamp drive board 30, and an input buffer 43a and an output buffer 43b are arranged corresponding to the motor lamp drive board 31. For convenience, the input buffer 43a and the output buffer 43b are collectively referred to as the input/output buffer 43 in FIG. 6(a). The input buffer 43a receives the outputs SN0 to SNn of the origin sensor that grasps the current position of the movable performance object (the rotational position of the performance motors M1 to Mn), and transmits them to the CPU circuit 51 of the performance control board 23.

ランプ駆動基板30、モータランプ駆動基板31、及び、ランプ駆動基板37には、同種のドライバICが搭載されており、演出インタフェイス基板22は、演出制御基板23から受けるシリアル信号を、各ドライバICに転送している。シリアル信号は、具体的には、ランプ(モータ)駆動信号SDATAとクロック信号CKであり、駆動信号SDATAがクロック同期方式で各ドライバICに伝送され、多数のLEDランプや電飾ランプによるランプ演出や、演出モータM1~Mnによる役物演出が実行される。 The lamp drive board 30, motor lamp drive board 31, and lamp drive board 37 are equipped with the same type of driver IC, and the performance interface board 22 transfers the serial signal received from the performance control board 23 to each driver IC. Specifically, the serial signal is a lamp (motor) drive signal SDATA and a clock signal CK, and the drive signal SDATA is transmitted to each driver IC in a clock-synchronized manner, and lamp performances using numerous LED lamps and electric lamps, and role-play performances using performance motors M1 to Mn are executed.

本実施例の場合、ランプ演出は、三系統のランプ群CH0~CH2によって実行されており、ランプ駆動基板37は、枠中継基板35,36を経由して、CH0のランプ駆動信号SDATA0を、クロック信号CK0に同期して受けている。なお、シリアル信号として伝送される一連のランプ駆動信号SDATA0は、動作制御信号ENABLE0がアクティブレベルに変化したタイミングで、ドライバICからランプ群CH0に出力されることで一斉に点灯状態が更新される。 In this embodiment, the lamp effects are performed by three lamp groups CH0 to CH2, and the lamp drive board 37 receives the lamp drive signal SDATA0 of CH0 in synchronization with the clock signal CK0 via the frame relay boards 35 and 36. The series of lamp drive signals SDATA0 transmitted as serial signals are output from the driver IC to the lamp group CH0 when the operation control signal ENABLE0 changes to the active level, thereby updating the lighting state of all the lamps at once.

以上の点は、ランプ駆動基板30についても同様であり、ランプ駆動基板30のドライバICは、ランプ群CH1のランプ駆動信号SDATA1を、クロック信号CK1に同期して受け、動作制御信号ENABLE1がアクティブレベルに変化したタイミングで、ランプ群CH1の点灯状態を一斉に更新している。 The above also applies to the lamp drive board 30, where the driver IC of the lamp drive board 30 receives the lamp drive signal SDATA1 for the lamp group CH1 in synchronization with the clock signal CK1, and simultaneously updates the lighting state of the lamp group CH1 when the operation control signal ENABLE1 changes to the active level.

一方、モータランプ駆動基板31に搭載されたドライバICは、クロック同期式で伝送されるランプ駆動信号を受けてランプ群CH2を駆動すると共に、クロック同期式で伝送されるモータ駆動信号を受けて、複数のステッピングモータで構成された演出モータ群M1~Mnを駆動している。なお、ランプ駆動信号とモータ駆動信号は、一連のシリアル信号SDATA2であって、クロック信号CK1に同期してシリアル伝送され、これを受けたドライバICは、動作制御信号ENABLE2がアクティブレベルに変化するタイミングで、ランプ群CH2やモータ群M1~Mnの駆動状態を更新する。 Meanwhile, the driver IC mounted on the motor lamp drive board 31 drives the lamp group CH2 in response to a lamp drive signal transmitted in clock synchronous fashion, and drives the performance motor group M1-Mn, which is made up of multiple stepping motors, in response to a motor drive signal transmitted in clock synchronous fashion. The lamp drive signal and motor drive signal are a series of serial signals SDATA2 that are serially transmitted in synchronization with the clock signal CK1, and the driver IC that receives them updates the drive state of the lamp group CH2 and the motor group M1-Mn when the operation control signal ENABLE2 changes to the active level.

続いて、音声回路SNDについて説明する。図6(a)に示す通り、演出インタフェイス基板22には、演出制御基板23のCPU回路51(演出制御CPU63)から受ける指示に基づいて音声信号を再生する音声プロセッサ(音声合成回路)27と、再生される音声信号の元データである圧縮音声データなどを記憶する音声メモリ28と、音声プロセッサ27から出力される音声信号を受けるデジタルアンプ29と、が搭載されている。 Next, the audio circuit SND will be described. As shown in FIG. 6(a), the performance interface board 22 is equipped with an audio processor (audio synthesis circuit) 27 that reproduces audio signals based on instructions received from the CPU circuit 51 (performance control CPU 63) of the performance control board 23, an audio memory 28 that stores compressed audio data, which is the original data of the reproduced audio signal, and a digital amplifier 29 that receives the audio signal output from the audio processor 27.

音声プロセッサ27は、内部回路の異常動作時に、内部回路の設定値を自動的にデフォルト値(初期値)にリセットするWDT回路と、音声制御レジスタSRGとを内蔵して構成されている。そして、音声プロセッサ27は、演出制御CPU63から音声制御レジスタSRGに受ける動作パラメータ(音声コマンドによる設定値)に基づいて、音声メモリ28をアクセスして、必要な音声信号を再生して出力している。 The audio processor 27 is configured with a built-in WDT circuit that automatically resets the internal circuit settings to default values (initial values) when the internal circuit operates abnormally, and an audio control register SRG. The audio processor 27 accesses the audio memory 28 based on the operating parameters (setting values by audio commands) received by the audio control register SRG from the performance control CPU 63, and reproduces and outputs the required audio signals.

図6(a)に示す通り、音声プロセッサ27と、音声メモリ28とは、26bit長の音声アドレスバスと、16bit長の音声データバスで接続されている。そのため、音声メモリ28には、1Gbit(=226×16)のデータが記憶可能となる。 6A, the audio processor 27 and the audio memory 28 are connected by a 26-bit audio address bus and a 16-bit audio data bus. Therefore, the audio memory 28 can store 1 Gbit (= 2 × 16) of data.

音声制御レジスタSRGは、レジスタバンク1~レジスタバンク6に区分され、各々、00H~FFHのレジスタ番号で特定される。したがって、所定の設定動作は、レジスタバンクを特定した上で、演出制御CPU63が、所定のレジスタ番号(1バイト長)の音声制御レジスタSRGに、1バイト長の動作パラメータを書込むことで実現される。 The sound control registers SRG are divided into register banks 1 to 6, each identified by a register number from 00H to FFH. Therefore, a specified setting operation is realized by the performance control CPU 63 specifying the register bank and then writing a 1-byte operation parameter to the sound control register SRG of the specified register number (1 byte long).

本実施例の場合、音声制御レジスタSRGのレジスタ番号(00H~FFH)は、演出制御CPU63のアドレス空間CS3に対応しており、例えば、レジスタ番号XXHの音声制御レジスタSRGに、動作パラメータYYHを設定する場合には、演出制御CPU63は、アドレス空間CS3のゼロ番地にXXHを書込み、次に、1番地にYYHを書込むことになる。すなわち、演出制御CPU63は、そのデータバスにXXHとYYHを、この順番に書き出すことになる。なお、本明細書において、添え字Hや、0X/0xの接頭記号は、数値が16進数表示であることを示している。 In this embodiment, the register number (00H to FFH) of the sound control register SRG corresponds to the address space CS3 of the performance control CPU 63. For example, when setting the operating parameter YYH in the sound control register SRG with register number XXH, the performance control CPU 63 writes XXH to address zero in the address space CS3, and then writes YYH to address 1. In other words, the performance control CPU 63 writes XXH and YYH in that order to its data bus. Note that in this specification, the suffix H and the prefixes 0X/0x indicate that the numerical values are expressed in hexadecimal.

また、本明細書において、アドレス空間CS0~CS7とは、揮発性の有無を含むメモリ種別や、データバス幅(8/16/32ビット)を、各々、規定可能なCPU回路51にとって外部メモリを意味する(内蔵メモリを除く)。このアドレス空間CS0~CS7は、異なるチップセレクト信号CS0~CS7で選択され、READ/WRITE アクセス時に機能するREAD/WRITE 制御信号がメモリ種別に対応して最適化できるよう設定可能に構成されている。なお、この設定動作は、バスステートコントローラ66に対して実行される。 In addition, in this specification, the address space CS0 to CS7 refers to external memory (excluding built-in memory) for the CPU circuit 51, which can specify the memory type, including whether it is volatile or not, and the data bus width (8/16/32 bits). This address space CS0 to CS7 is selected by different chip select signals CS0 to CS7, and is configured to be configurable so that the READ/WRITE control signal that functions during READ/WRITE access can be optimized according to the memory type. This setting operation is executed for the bus state controller 66.

図6(e)は、演出制御CPU63による音声レジスタSRGへの設定動作を図示したものであり、2bit長のアドレスバスA1-A0と、1バイト長のデータバスD7-D0の内容が示されている。なお、本実施例では、チップセレクト信号CS3は、アドレス空間CS3をアクセスする場合に、自動的にアクティブになるよう、電源投入時に設定されるが、この点は図8や図15に関して後述する。 Figure 6 (e) illustrates the setting operation of the performance control CPU 63 to the sound register SRG, showing the contents of the 2-bit address bus A1-A0 and the 1-byte data bus D7-D0. In this embodiment, the chip select signal CS3 is set at power-on so that it automatically becomes active when the address space CS3 is accessed; this will be described later with reference to Figures 8 and 15.

何れにしても、本実施例の場合、音声メモリ28に記憶された圧縮音声データは、13bit長のフレーズ番号NUM(000H~1FFFH)で特定されるフレーズ(phrase)圧縮データであり、一連の背景音楽の一曲分(BGM)や、ひと纏まりの演出音(予告音)などが、最高8192種類(=213)、各々、フレーズ番号NUMに対応して記憶されている。そして、このフレーズ番号NUMは、演出制御CPU63から音声プロセッサ27の音声制御レジスタSRGに伝送される音声コマンドの設定値(動作パラメータ)によって特定される。 In any case, in the case of this embodiment, the compressed audio data stored in the audio memory 28 is compressed data of phrases specified by 13-bit phrase numbers NUM (000H to 1FFFH), and a maximum of 8192 types (=2 13 ) of a series of background music (BGM) or a collection of performance sounds (warning sounds) are stored corresponding to the phrase numbers NUM. The phrase numbers NUM are specified by the setting values (operation parameters) of the audio commands transmitted from the performance control CPU 63 to the audio control register SRG of the audio processor 27.

前記の通り、上記の構成を有する音声メモリ28は、リセット信号RT3で電源リセットされ、音声プロセッサ27は、リセット信号RT4で電源リセットされる。図6(c)に示す通り、リセット信号RT4は、電源投入後、所定のアサート期間ASRT(Lレベル区間)を経て、Hレベルに立ち上がるが、本実施例では、その後、音声プロセッサ27の内部回路が自動的に機能して、初期化シーケンス処理が実行されるよう構成されている。なお、この初期化シーケンス処理は、所定の手順で実行される内部動作であり、初期化シーケンス処理の動作中は、演出制御CPU63が音声レジスタSRGをアクセスすることはできない。 As described above, the audio memory 28 having the above configuration is power-reset by the reset signal RT3, and the audio processor 27 is power-reset by the reset signal RT4. As shown in FIG. 6(c), after power-on, the reset signal RT4 rises to H level after a predetermined assertion period ASRT (L level section). In this embodiment, the internal circuit of the audio processor 27 then automatically functions and executes the initialization sequence process. Note that this initialization sequence process is an internal operation that is executed in a predetermined procedure, and the performance control CPU 63 cannot access the audio register SRG while the initialization sequence process is in operation.

そして、内部動作たる初期化シーケンス処理が完了すると、CPU回路51に対する割込み信号IRQ_SND がLレベルに変化し、CPU回路51(演出制御CPU63)は、割込み信号IRQ_SND に基づき割込み処理プログラムを実行する。そして、所定の命令に基づいて割込み信号IRQ_SND がHレベルに戻されるが、その詳細については、図17(c)を参照して更に後述する。 When the internal initialization sequence process is completed, the interrupt signal IRQ_SND to the CPU circuit 51 changes to L level, and the CPU circuit 51 (performance control CPU 63) executes an interrupt processing program based on the interrupt signal IRQ_SND. The interrupt signal IRQ_SND is then returned to H level based on a specified command, the details of which will be described further below with reference to FIG. 17(c).

図6(a)に示す通り、演出制御部23のCPU回路51のデータバスとアドレスバスは、液晶インタフェイス基板24に搭載された時計回路(real time clock )38と演出データメモリ39にも及んでいる。時計回路38は、CPU回路51のアドレスバスの下位4bitと、データバスの下位4bitに接続されており、チップセレクト信号CS4で時計回路38が選択された状態では、CPU回路51が、(4bit長アドレス値を有する)内部レジスタを任意にアクセスできるよう構成されている。 As shown in FIG. 6(a), the data bus and address bus of the CPU circuit 51 of the performance control unit 23 extend to the clock circuit (real time clock) 38 and performance data memory 39 mounted on the liquid crystal interface board 24. The clock circuit 38 is connected to the lower 4 bits of the address bus and the lower 4 bits of the data bus of the CPU circuit 51, and when the clock circuit 38 is selected by the chip select signal CS4, the CPU circuit 51 is configured to be able to access the internal registers (which have 4-bit address values) at will.

また、演出データメモリ39は、高速アクセス可能なメモリ素子SRAM(Static Random Access Memory )であって、CPU回路51のアドレスバスの16bitと、データバスの下位16bitに接続されており、チップセレクト信号CS4でチップ選択された状態では、SRAM(演出データメモリ)39に記憶されている遊技実績情報その他が、CPU回路51から適宜にR/Wアクセスされるようになっている。なお、チップセレクト信号CS4で選択されるアドレス空間CS4において、0番地から15番地までは時計回路38に付番されているので、SRAM39では使用しない。 The performance data memory 39 is a high-speed accessible memory element SRAM (Static Random Access Memory), and is connected to 16 bits of the address bus of the CPU circuit 51 and the lower 16 bits of the data bus. When the chip is selected by the chip select signal CS4, the game performance information and other information stored in the SRAM (performance data memory) 39 can be appropriately read/written by the CPU circuit 51. In the address space CS4 selected by the chip select signal CS4, addresses 0 to 15 are assigned to the clock circuit 38, and are therefore not used by the SRAM 39.

時計回路38と演出データメモリ39は、不図示の二次電池で駆動されており、この二次電池は、遊技動作中、電源基板20からの給電電圧によって適宜に充電される。そのため、電源遮断後も、時計回路38の計時動作が継続され、また、演出データメモリ39に記憶された遊技実績情報が、永続的に記憶保持されることになる(不揮発性を付与)。なお、時計回路(RTC)38は、CPU回路51に対して、割込み信号IRQ_RTC を出力可能に構成されている(RTC割込み)。このRTC割込みには、日、曜日、時、分、秒が特定可能なアラーム割込みと、所定時間経過後に起動されるタイマ割込みが存在するが、本実施例では、毎日の営業終了時に、日々の遊技実績情報を更新するアラーム割込みを活用している。 The clock circuit 38 and the performance data memory 39 are driven by a secondary battery (not shown), which is charged appropriately by the power supply voltage from the power supply board 20 during game operation. Therefore, even after the power is cut off, the clock circuit 38 continues to keep time, and the game performance information stored in the performance data memory 39 is permanently stored (non-volatile). The clock circuit (RTC) 38 is configured to be able to output an interrupt signal IRQ_RTC to the CPU circuit 51 (RTC interrupt). This RTC interrupt includes an alarm interrupt that can specify the date, day of the week, hour, minute, and second, and a timer interrupt that is activated after a specified time has elapsed. In this embodiment, an alarm interrupt is used to update the daily game performance information at the end of business each day.

図6(a)の右側に示す通り、演出制御基板23には、CPU回路51やVDP回路52を内蔵する複合チップ50と、CPU回路51の制御プログラムを記憶する制御メモリ(PROM)53と、大量のデータを高速にアクセス可能なDRAM(Dynamic Random Access Memory)54と、演出制御に必要な大量のCGデータを記憶するCGROM55と、が搭載されている。 As shown on the right side of Figure 6(a), the performance control board 23 is equipped with a composite chip 50 incorporating a CPU circuit 51 and a VDP circuit 52, a control memory (PROM) 53 that stores the control program for the CPU circuit 51, a DRAM (Dynamic Random Access Memory) 54 that can access large amounts of data at high speed, and a CGROM 55 that stores large amounts of CG data required for performance control.

図9に関して後述するように、制御メモリ(PROM)53は、本実施例では、チップセレクト信号CS0で選択されるアドレス空間CS0に位置付けされている。また、DDR(Double-Data-Rate 3)で構成されるDRAM(Dynamic Random Access Memory)54は、チップセレクト信号CS5で選択されるアドレス空間CS5に位置付けされている。 As will be described later with reference to FIG. 9, in this embodiment, the control memory (PROM) 53 is located in the address space CS0 selected by the chip select signal CS0. Also, the DRAM (Dynamic Random Access Memory) 54, which is configured with DDR (Double-Data-Rate 3), is located in the address space CS5 selected by the chip select signal CS5.

図7(a)は、演出制御部23を構成する複合チップ50について、関連する回路素子も含めて図示した回路ブロック図である。図示の通り、実施例の複合チップ50には、所定時間毎にディスプレイリストDLを発行するCPU回路51と、発行されたディスプレイリストDLに基づいて画像データを生成して表示装置DS1,DS2を駆動するVDP回路52とが内蔵されている。そして、CPU回路51とVDP回路52とは、互いの送受信データを中継するCPUIF回路56を通して接続されている。 Figure 7 (a) is a circuit block diagram illustrating the composite chip 50 that constitutes the performance control unit 23, including related circuit elements. As shown in the figure, the composite chip 50 of the embodiment includes a CPU circuit 51 that issues a display list DL at predetermined time intervals, and a VDP circuit 52 that generates image data based on the issued display list DL to drive the display devices DS1 and DS2. The CPU circuit 51 and the VDP circuit 52 are connected via a CPUIF circuit 56 that relays the data sent and received by each other.

なお、VDP回路52には、音声プロセッサ27と同等の機能を発揮する音声回路SNDが内蔵されているが、これから説明する最初の実施例では、音声回路SNDを活用していない。但し、最後に説明する実施例のように、VDP回路52に内蔵された音声回路SNDを活用すれば、音声メモリ28や音声プロセッサ27の配置が不要となる。 The VDP circuit 52 includes an audio circuit SND that performs the same functions as the audio processor 27, but in the first embodiment described below, the audio circuit SND is not used. However, if the audio circuit SND built into the VDP circuit 52 is used, as in the last embodiment described below, the audio memory 28 and audio processor 27 will not be required.

先ず、CPU回路51は、発振器OSC1の発振出力(例えば100/3MHz)をHCLKI 端子に受けて、これを周波数逓倍(例えば8逓倍)して、266.7MHz程度のCPU動作クロックとしている(図13(b)参照)。ここで、発振器OSC1は、スペクトラムス拡散波を出力するよう構成されることで、電波障害/電磁妨害を防止するEMI(Electromagnetic Interference)対策を図っている。 First, the CPU circuit 51 receives the oscillation output (e.g., 100/3 MHz) of the oscillator OSC1 at the HCLKI terminal and multiplies the frequency (e.g., by 8) to generate a CPU operating clock of about 266.7 MHz (see FIG. 13(b)). Here, the oscillator OSC1 is configured to output a spread spectrum wave, thereby providing EMI (Electromagnetic Interference) measures to prevent radio interference/electromagnetic jamming.

ところで、本実施例の場合、CPU動作クロックを、発振器OSC1ではなく、後述する発振器OSC2の出力に基づいて生成することも可能であり、発振器OSC1を不要にすることもできる。しかし、発振器を単一化する構成では、PLL回路の周波数逓倍比が、以下に説明するシステムクロックの場合と同じ固定値(例えば5)となるので、CPU動作クロックの周波数は、VDP回路52のシステムクロックと同一の200MHz(=40MHz×5)となる。 In the present embodiment, the CPU operating clock can be generated based on the output of oscillator OSC2 (described later) instead of oscillator OSC1, making oscillator OSC1 unnecessary. However, in a configuration that uses a single oscillator, the frequency multiplication ratio of the PLL circuit is a fixed value (e.g., 5) the same as that of the system clock described below, so the frequency of the CPU operating clock is 200 MHz (= 40 MHz x 5), the same as the system clock of the VDP circuit 52.

このような構成を採ると、内蔵CPU回路51とVDP回路52の動作周期が共通化される利点がある一方で、CPUの動作を可能な限り高速化したい要請に反する。すなわち、VDPの動作は、ある程度以上には高速化できないので、CPU動作の高速化の要請に確実に応えることはできない。そこで、本実施例では、VDP回路52とCPU回路51の各動作周期を各々最適化するべく、2つの発振器を設けている。また、別個の発振器OSC1を設けることで、上記したEMI対策の向上を図ることもできる。 While this configuration has the advantage of sharing the operating cycles of the built-in CPU circuit 51 and the VDP circuit 52, it runs counter to the desire to make the CPU operate as fast as possible. In other words, since the VDP operation cannot be made faster than a certain level, it cannot reliably meet the demand for faster CPU operation. Therefore, in this embodiment, two oscillators are provided to optimize the operating cycles of the VDP circuit 52 and the CPU circuit 51, respectively. Also, by providing a separate oscillator OSC1, it is possible to improve the EMI countermeasures mentioned above.

以上を踏まえてVDP回路52について説明すると、VDP回路52は、発振器OSC1とは別の発振器OSC2の発振出力(40MHz)をPLLREF端子に受け、PLL(Phase Locked Loop )回路で、周波数逓倍した上で、VDP回路52のシステムクロックとしている。PLL回路の周波数逓倍比は、所定の設定端子への設定値で固定的に規定され、この実施例では、設定端子(3bit のPLLMD 端子)への設定値が固定値5であることから、VDP回路52のシステムクロックは、200MHz(=40MHz×5)となる(図13(b)参照)。 In light of the above, the VDP circuit 52 will be explained. The VDP circuit 52 receives the oscillation output (40 MHz) of an oscillator OSC2, which is separate from the oscillator OSC1, at the PLLREF terminal, and multiplies the frequency in a PLL (Phase Locked Loop) circuit to produce the system clock for the VDP circuit 52. The frequency multiplication ratio of the PLL circuit is fixedly determined by the setting value of a specific setting terminal. In this embodiment, the setting value of the setting terminal (3-bit PLLMD terminal) is a fixed value of 5, so the system clock for the VDP circuit 52 is 200 MHz (= 40 MHz x 5) (see FIG. 13(b)).

また、本実施例では、表示回路74A~74Cの動作を規定するドットクロックDCK~DCK、及び、外付けDRAM54のDDRクロックについても、発振器OSC2の発振出力(40MHz)に基づいて生成している。すなわち、発振器OSC2の出力(40MHz)は、VDP回路52全体のリファレンスクロックとして機能している。 In this embodiment, the dot clocks DCK A to DCK C that regulate the operation of the display circuits 74A to 74C and the DDR clock of the external DRAM 54 are also generated based on the oscillation output (40 MHz) of the oscillator OSC2. In other words, the output (40 MHz) of the oscillator OSC2 functions as a reference clock for the entire VDP circuit 52.

図13や図14に関して後述するように、表示回路74A~74Cは、通常、仕様の異なる表示装置を各々駆動しているので、各表示回路74A~74Cの動作を規定するドットクロックDCK~DCKは、駆動対象となる表示装置の仕様に対応させる必要がある。かかる必要に基づき、本実施例では、表示回路74A~74Cは、専用発振回路DCLKA~DCLKCの出力クロック(DCLKAI~DCLKCI)の何れかを受けて、それをドットクロックDCK~DCKとすることもできるよう構成されている。 13 and 14, the display circuits 74A to 74C usually drive display devices with different specifications, so the dot clocks DCK A to DCK C that define the operation of the display circuits 74A to 74C must correspond to the specifications of the display devices to be driven. Based on this requirement, in this embodiment, the display circuits 74A to 74C are configured to receive one of the output clocks (DCLKAI to DCLKCI) of the dedicated oscillation circuits DCLKA to DCLKC and use it as the dot clocks DCK A to DCK C.

この構成を活用した場合には、後述する逓倍比や分周比の設計や、VDPレジスタRGijへの設定処理が不要となり、ドットクロックDCK~DCKの周波数を簡単に最適化することができる。すなわち、メイン表示装置DS1のドットクロック周波数FDOT1に対応して発振周波数FDOT1の専用発振回路DCLKAを設け、また、サブ表示装置DS2のドットクロック周波数FDOT2に対応して発振周波数FDOT2の専用発振回路DCLKBを設けることも可能である。 When this configuration is utilized, it becomes unnecessary to design the multiplication ratio and division ratio described later, or to perform setting processing in the VDP register RGij, and it is possible to easily optimize the frequencies of the dot clocks DCK A to DCK C. That is, it is also possible to provide a dedicated oscillator circuit DCLKA with an oscillation frequency F DOT1 corresponding to the dot clock frequency F DOT1 of the main display device DS1, and to provide a dedicated oscillator circuit DCLKB with an oscillation frequency F DOT2 corresponding to the dot clock frequency F DOT2 of the sub-display device DS2.

しかし、このような構成を採る場合には、表示装置の個数に対応して、専用発振回路が必要となり、機器構成が複雑化する。そこで、本実施例では、機器構成を簡素化するため、発振器OSC2の発振出力(40MHz)に基づいて、表示回路74A/74BのドットクロックDCK/DCKを生成している。具体的には、図13(b)に示す通り、メイン表示装置DS1を駆動する表示回路74Aについて、発振器OSC2の発振出力(40MHz)に、所定の逓倍処理(×108)と分周処理(1/40)を施すことで、周波数108MHzのドットクロックDCKを生成している。 However, when such a configuration is adopted, a dedicated oscillator circuit is required corresponding to the number of display devices, and the device configuration becomes complicated. Therefore, in this embodiment, in order to simplify the device configuration, the dot clocks DCK A /DCK B of the display circuits 74A / 74B are generated based on the oscillation output (40 MHz) of the oscillator OSC2. Specifically, as shown in Figure 13 (b), for the display circuit 74A that drives the main display device DS1, a dot clock DCK A with a frequency of 108 MHz is generated by performing a predetermined multiplication process (x108) and a frequency division process (1/40) on the oscillation output (40 MHz) of the oscillator OSC2.

同様に、サブ表示装置DS2を駆動する表示回路74Bについても、発振器OSC2の発振出力(40MHz)に、所定の逓倍処理(×108)と分周処理(1/160)を施すことで、周波数Fdot=27MHzのドットクロックDCKを生成している。これら逓倍比や分周比を設計することは、それなりに煩雑であり、専用の発振回路を設ける方が容易であるが、本実施例では、機器構成の簡素化を重視して、専用発振回路を設けていない。 Similarly, for the display circuit 74B that drives the sub-display device DS2, a dot clock DCK B with a frequency F dot = 27 MHz is generated by performing a predetermined multiplication process (×108) and division process (1/160) on the oscillation output (40 MHz) of the oscillator OSC2 . Designing these multiplication and division ratios is quite complicated, and it would be easier to provide a dedicated oscillation circuit, but in this embodiment, emphasis is placed on simplifying the device configuration, and a dedicated oscillation circuit is not provided.

何れにしても、ドットクロックDCK~DCKは、表示回路74A~74C毎に個々的に設定されるが、これらドットクロックDCK~DCKを総称する場合、本明細書では、「表示クロックDCK」と称する場合がある。また、以下の説明では、ドットクロックDCKやDCKを、便宜上、「ドットクロックDCK」と略称することがある。 In any case, the dot clocks DCK A to DCK C are set individually for each of the display circuits 74A to 74C, but in this specification, these dot clocks DCK A to DCK C may be collectively referred to as the "display clock DCK." In the following description, the dot clocks DCK A and DCK B may be abbreviated to the "dot clock DCK" for convenience.

なお、本実施例では、低速LVDS出力の構成を採らないので、表示回路74Aを経由して出力されるLVDS信号のLVDSクロックCLKについても、ドットクロックDCKと同一の生成過程を経て、周波数108MHzとしている。但し、本実施例では、デュアルリンク伝送路を採るので、実際のLVDSクロックCLKの周波数は、図4に関して説明した通り54MHzとなる。なお、シングルリンク伝送路を採用する場合、LVDSクロックCLKの周波数は、108MHzである。 In this embodiment, since a low-speed LVDS output configuration is not adopted, the LVDS clock CLK of the LVDS signal output via the display circuit 74A is generated through the same process as the dot clock DCK A and has a frequency of 108 MHz. However, since a dual link transmission path is adopted in this embodiment, the actual frequency of the LVDS clock CLK is 54 MHz as explained in relation to Fig. 4. If a single link transmission path is adopted, the frequency of the LVDS clock CLK is 108 MHz.

上記のように、本実施例では、発振器OSC2の発振出力(40MHz)が、システムクロック、ドットクロックDCK、及び、DDRクロックのリファレンスクロックとして活用される。そこで、この重要性を考慮して、発振器OSC2をVDP回路52と同じ電源電圧3.3Vで動作させると共に、出力イネーブル端子OEがHレベル(=3.3V)であることを条件に、リファレンスクロックを発振出力するよう構成されている。そして、万一、電源電圧3.3Vが所定レベル以下に低下した場合には、その後、正常な演出動作は望めないので、マスク不能の割込み(NMI)が生じるよう構成されている。 As described above, in this embodiment, the oscillation output (40 MHz) of oscillator OSC2 is used as the reference clock for the system clock, dot clock DCK, and DDR clock. Considering the importance of this, oscillator OSC2 is configured to operate at the same power supply voltage of 3.3 V as VDP circuit 52, and to oscillate and output the reference clock on condition that output enable terminal OE is at H level (= 3.3 V). In the unlikely event that the power supply voltage of 3.3 V drops below a predetermined level, normal performance operation cannot be expected, so a non-maskable interrupt (NMI) is generated.

また、複合チップ50には、HBTSL 端子が設けられ、HBTSL 端子の論理レベルに基づいて、電源投入(CPUリセット)後に実行されるブートプログラム(初期設定プログラム)が、CGROM55に記憶されているか(HBTSL =H)、それ以外のメモリに記憶されているか(HBTSL =L)を特定している。図示の通り、この実施例では、HBTSL =Lレベルに設定されており、演出制御CPU63のアドレス空間CS0のゼロ番地が、CGROM以外に割り当てられ、具体的には、アドレス空間CS0は、制御メモリ53に割り当てられている。 The composite chip 50 is also provided with an HBTSL terminal, and based on the logic level of the HBTSL terminal, it is determined whether the boot program (initial setting program) executed after power-on (CPU reset) is stored in the CGROM 55 (HBTSL = H) or in some other memory (HBTSL = L). As shown in the figure, in this embodiment, HBTSL is set to the L level, and address zero of the address space CS0 of the performance control CPU 63 is assigned to a location other than the CGROM; specifically, the address space CS0 is assigned to the control memory 53.

一方、HBTSL 端子=Hレベルに設定されている場合(破線参照)は、演出制御CPU63のアドレス空間CS0のゼロ番地が、CGROM55に割り当てられる。この場合は、CGROM55のメモリ種別と、バス幅(64/32/16bit)とが、2bit長のHBTBWD端子と、4bit長のHBTRMSL 端子への入力値に基づいて各々特定されようになっている。なお、これらの点は、図37に基づいて更に後述する。 On the other hand, when the HBTSL terminal is set to the H level (see dashed line), address zero of the address space CS0 of the performance control CPU 63 is assigned to the CGROM 55. In this case, the memory type and bus width (64/32/16 bits) of the CGROM 55 are determined based on the input values to the 2-bit HBTBWD terminal and the 4-bit HBTRMSL terminal, respectively. These points will be discussed further below with reference to Figure 37.

続いて、CPU回路51とVDP回路52について、互いの送受信データを中継するCPUIF回路56について説明する。図7(a)に示す通り、CPUIF回路56には、制御プログラムや必要な制御データを不揮発的に記憶する制御メモリ(PROM)53と、2Mバイト程度の記憶容量を有するワークメモリ(RAM)57とが接続され、各々、CPU回路51からアクセス可能に構成されている。先に説明した通り、制御メモリ(PROM)53は、チップセレクト信号CS0で選択されるアドレス空間CS0に位置付けられ、ワークメモリ(RAM)57は、チップセレクト信号CS6で選択されるアドレス空間CS6に位置付けられている。 Next, the CPUIF circuit 56 that relays data transmitted and received between the CPU circuit 51 and the VDP circuit 52 will be described. As shown in FIG. 7(a), the CPUIF circuit 56 is connected to a control memory (PROM) 53 that stores control programs and necessary control data in a non-volatile manner, and a work memory (RAM) 57 with a storage capacity of about 2 MB, each of which is configured to be accessible from the CPU circuit 51. As explained above, the control memory (PROM) 53 is located in the address space CS0 selected by the chip select signal CS0, and the work memory (RAM) 57 is located in the address space CS6 selected by the chip select signal CS6.

このワークメモリ(RAM)57には、表示装置DS1,DS2の各一フレームを特定する一連の指示コマンドが記載されたディスプレイリストDLを、一次的に記憶するDLバッファBUFが確保されている。本実施例の場合、一連の指示コマンドには、CGROM55から画像素材(テクスチャ)を読み出してデコード(展開)するためのTXLOADコマンドなどのテクスチャロード系コマンドと、デコード(展開)先のVRAM領域(インデックス空間)を予め特定するなどの機能を有するSETINDEXコマンドなどのテクスチャ設定系コマンドと、デコード(展開)後の画像素材を仮想描画空間の所定位置に配置するためのSPRITEコマンドなどのプリミティブ描画系コマンドと、描画系コマンドによって仮想描画空間に描画された画像のうち、実際に表示装置に描画する描画領域を特定するためのSETDAVR コマンドやSETDAVF コマンドなどの環境設定コマンドと、インデックス空間を管理するインデックステーブルIDXTBLに関するインデックステーブル制御系コマンド(WRIDXTBL)が含まれる。 In this work memory (RAM) 57, a DL buffer BUF is reserved for temporarily storing a display list DL in which a series of instruction commands for specifying each frame of the display devices DS1 and DS2 are written. In this embodiment, the series of instruction commands include texture load commands such as a TXLOAD command for reading image material (texture) from the CGROM 55 and decoding (expanding), texture setting commands such as a SETINDEX command having a function of specifying the VRAM area (index space) to decode (expand) in advance, primitive drawing commands such as a SPRITE command for placing the image material after decoding (expanding) at a predetermined position in the virtual drawing space, environment setting commands such as a SETDAVR command and a SETDAVF command for specifying the drawing area to be actually drawn on the display device from the images drawn in the virtual drawing space by the drawing commands, and an index table control command (WRIDXTBL) related to the index table IDXTBL that manages the index space.

なお、図11(c)には、仮想描画空間(水平X方向±8192:垂直Y方向±8192)と、仮想描画空間の中で任意に設定可能な描画領域と、表示装置DS1,DS2に出力する画像データを一次保存するフレームバッファFBa,FBbにおける実描画領域と、の関係が図示されている。 In addition, FIG. 11(c) shows the relationship between the virtual drawing space (horizontal X direction ±8192: vertical Y direction ±8192), the drawing area that can be arbitrarily set in the virtual drawing space, and the actual drawing area in the frame buffers FBa and FBb that temporarily store image data to be output to the display devices DS1 and DS2.

次に、CPU回路51は、汎用のワンチップマイコンと同等の性能を有する回路であり、制御メモリ53の制御プログラムに基づき画像演出を統括的に制御する演出制御CPU63と、プログラムが暴走状態になるとCPUを強制リセットするウォッチドッグタイマ(WDT)と、16kバイト程度の記憶容量を有してCPUの作業領域として使用される内蔵RAM59と、CPU63を経由しないでデータ転送を実現するDMAC(Direct Memory Access Controller )60と、複数の入力ポートSi及び出力ポートSoを有するシリアル入出力ポート(SIO)61と、複数の入力ポートPi及び出力ポートPoを有するパラレル入出力ポート(PIO)62と、前記各部の動作を制御するべく設定値が設定される動作制御レジスタREGなどを有して構成されている。但し、外付けのWDT回路58を設けた本実施例では、CPU回路51に内蔵されたウォッチドッグタイマ(WDT)を活用していない。 Next, the CPU circuit 51 is a circuit with the same performance as a general-purpose one-chip microcomputer, and is configured with a performance control CPU 63 that controls the image performance in an integrated manner based on the control program in the control memory 53, a watchdog timer (WDT) that forcibly resets the CPU when the program goes out of control, an internal RAM 59 with a storage capacity of about 16 kbytes and used as a working area for the CPU, a DMAC (Direct Memory Access Controller) 60 that realizes data transfer without going through the CPU 63, a serial input/output port (SIO) 61 with multiple input ports Si and output ports So, a parallel input/output port (PIO) 62 with multiple input ports Pi and output ports Po, and an operation control register REG in which a setting value is set to control the operation of each of the above-mentioned parts. However, in this embodiment in which an external WDT circuit 58 is provided, the watchdog timer (WDT) built into the CPU circuit 51 is not used.

なお、本明細書では、便宜上、入出力ポートとの表現を使用するが、演出制御部23において、入出力ポートには、独立して動作する入力ポートと出力ポートとが含まれている。この点は、以下に説明する入出力回路64pや入出力回路64sについても同様である。 For convenience, the term "input/output port" is used in this specification, but in the performance control unit 23, the input/output port includes an input port and an output port that operate independently. This also applies to the input/output circuit 64p and the input/output circuit 64s described below.

パラレル入出力ポート62は、入出力回路64pを通して外部機器(演出インタフェイス基板22)に接続されており、演出制御CPU63は、入力回路64pを経由して、音量スイッチVLSWのエンコーダ出力3bitと、チャンスボタン11のスイッチ信号と、制御コマンドCMDと、割込み信号STBと、を受信するようになっている。エンコーダ出力3bitと、スイッチ信号1bitは、入出力回路64pを経由して、パラレル入出力ポート(PIO)62に供給されている。 The parallel input/output port 62 is connected to an external device (performance interface board 22) through an input/output circuit 64p, and the performance control CPU 63 receives the 3-bit encoder output of the volume switch VLSW, the switch signal of the chance button 11, the control command CMD, and the interrupt signal STB via the input circuit 64p. The 3-bit encoder output and 1-bit switch signal are supplied to the parallel input/output port (PIO) 62 via the input/output circuit 64p.

同様に、受信した制御コマンドCMDは、入出力回路64pを経由して、パラレル入出力ポート(PIO)62に供給されている。また、ストローブ信号STBは、入出力回路64pを経由して、演出制御CPU63の割込み端子に供給されることで、受信割込み処理を起動させている。したがって、受信割込み処理に基づいて、制御コマンドCMDを把握した演出制御CPU63は、演出抽選などを経て、この制御コマンドCMDに対応する音声演出、ランプ演出、モータ演出、及び画像演出を統一的に制御することになる。 Similarly, the received control command CMD is supplied to the parallel input/output port (PIO) 62 via the input/output circuit 64p. The strobe signal STB is also supplied to the interrupt terminal of the performance control CPU 63 via the input/output circuit 64p, thereby starting the reception interrupt process. Therefore, the performance control CPU 63, which has grasped the control command CMD based on the reception interrupt process, will unifiedly control the sound performance, lamp performance, motor performance, and image performance corresponding to this control command CMD through a performance lottery, etc.

特に限定されないが、本実施例では、ランプ演出とモータ演出のために、VDP回路52のSMC部(Serial Management Controller)78を使用している。SMC部78は、LEDコントローラとMotorコントローラと、を内蔵した複合コントコントローラであり、クロック同期方式でシリアル信号を出力できるよう構成されている。また、Motorコントローラは、所定の制御レジスタ70への設定値に基づき、任意のタイミングでラッチパルスを出力可能に構成され、また、クロック同期方式でシリアル信号を入力可能に構成されている。 In this embodiment, the SMC (Serial Management Controller) 78 of the VDP circuit 52 is used for lamp and motor effects, although this is not limited thereto. The SMC 78 is a composite controller incorporating an LED controller and a Motor controller, and is configured to be able to output serial signals in a clock-synchronized manner. The Motor controller is also configured to be able to output latch pulses at any timing based on the set value in a specific control register 70, and is also configured to be able to input serial signals in a clock-synchronized manner.

そこで、本実施例では、クロック信号に同期してモータ駆動信号やLED駆動信号を、SMC部78から出力させる一方、適宜なタイミングで、ラッチパルスを、動作制御信号ENABLEとして出力するようにしている。また、演出モータ群M1~Mnからの原点センサ信号SN0~SNnをクロック同期方式でシリアル入力するよう構成されている。 In this embodiment, the motor drive signal and LED drive signal are output from the SMC unit 78 in synchronization with the clock signal, while a latch pulse is output as an operation control signal ENABLE at an appropriate timing. Also, the origin sensor signals SN0 to SNn from the performance motor groups M1 to Mn are configured to be input serially in a clock synchronization system.

図6(a)に関して説明した通り、クロック信号CK0~CK2、駆動信号SDATA0~SDATA2、及び、動作制御信号ENABLE0~ENABLE2は、出力バッファ41~43を経由して、所定の駆動基板30,31,37に伝送される。また、原点センサ信号SN0~SNnは、モータランプ駆動基板31から入出力バッファ43を経由して、SMC部78にシリアル入力される。 As explained with reference to FIG. 6(a), the clock signals CK0-CK2, drive signals SDATA0-SDATA2, and operation control signals ENABLE0-ENABLE2 are transmitted to the appropriate drive boards 30, 31, and 37 via output buffers 41-43. In addition, the origin sensor signals SN0-SNn are serially input from the motor lamp drive board 31 to the SMC unit 78 via the input/output buffer 43.

但し、本実施例において、SMC部78を使用することは必須ではない。すなわち、CPU回路51には、汎用のシリアル入出力ポートSIO61が内蔵されているので、これらを使用して、ランプ演出とモータ演出を実行することもできる。 However, in this embodiment, it is not necessary to use the SMC unit 78. In other words, the CPU circuit 51 has a built-in general-purpose serial input/output port SIO61, which can be used to execute lamp and motor effects.

具体的には、図7(a)の破線に示す通りであり、破線で示す構成では、シリアル入出力ポートSIO61に内部接続されている入出力回路64sを経由して、クロック信号CK0~CK2、駆動信号SDATA0~SDATA2が出力され、入出力回路64pを経由して動作制御信号ENABLE0~ENABLE2が出力される。なお、便宜上、入出力ポートや入出力回路と表現するが、実際に機能するのは、出力ポートや出力回路である。 Specifically, as shown by the dashed lines in Figure 7(a), in the configuration shown by the dashed lines, clock signals CK0 to CK2 and drive signals SDATA0 to SDATA2 are output via an input/output circuit 64s internally connected to the serial input/output port SIO61, and operation control signals ENABLE0 to ENABLE2 are output via an input/output circuit 64p. Note that, for convenience, these are referred to as input/output ports and input/output circuits, but it is the output ports and output circuits that actually function.

ここで、シリアル出力ポートSOは、16段のFIFOレジスタを内蔵して構成されている。そして、DMAC回路60は、演出制御CPU63から動作開始指示(図20(b)ST18参照)を受けて起動し、ランプ/モータ駆動テーブル(図20(b)参照)から、必要な駆動テータを順番に読み出し、シリアル出力ポートSOのFIFOレジスタにDMA転送するよう構成されている。FIFOレジスタに蓄積された駆動データは、クロック同期方式でシリアル出力ポートSOからシリアル出力される。なお、DMAC回路には、複数(例えば7)のDMAチャネルが存在するが、優先度に劣る第3のDMAチャネルでランプ駆動データをDMA転送し、最優先度の第1のDMAチャネルでモータ駆動データをDMA転送するよう構成されている。 Here, the serial output port SO is configured to incorporate a 16-stage FIFO register. The DMAC circuit 60 is configured to start up upon receiving an operation start instruction (see ST18 in FIG. 20(b)) from the performance control CPU 63, read the necessary drive data in order from the lamp/motor drive table (see FIG. 20(b)), and transfer it by DMA to the FIFO register of the serial output port SO. The drive data stored in the FIFO register is output serially from the serial output port SO in a clock-synchronized manner. Note that the DMAC circuit has multiple DMA channels (e.g., seven), but is configured to DMA transfer lamp drive data using the third DMA channel, which has a lower priority, and DMA transfer motor drive data using the first DMA channel, which has the highest priority.

CPU回路51に内蔵された動作制御レジスタREGは、レジス番号(アドレス値)が0xFF400000以降に付番された8bit、16bit、又は32bit長のレジスタであり、演出制御CPU63から適宜にWRITE/READアクセス可能に構成されている(図9参照)。そのためノイズなどの影響で、動作制御レジスタREGに、不合理な値に設定される可能性がある。 The operation control register REG built into the CPU circuit 51 is an 8-bit, 16-bit, or 32-bit register with a register number (address value) starting from 0xFF400000, and is configured to be appropriately accessible for WRITE/READ from the performance control CPU 63 (see Figure 9). Therefore, due to the influence of noise, etc., there is a possibility that an irrational value may be set in the operation control register REG.

但し、例えば、意図的に無限ループ処理を実行させて外付けのWDT回路58を起動させることで、複合チップ50を異常リセットすることができる。この場合、動作制御レジスタREGの値が、電源投入後と同じデフォルト値(初期値)に戻され、且つ、VDP回路52についても、VDPレジスタRGijの値が、デフォルト値(初期値)に戻されることで異常状態が解消される。 However, for example, the combined chip 50 can be reset as an abnormality by intentionally executing an infinite loop process and activating the external WDT circuit 58. In this case, the value of the operation control register REG is returned to the same default value (initial value) as after power-on, and the value of the VDP register RGij in the VDP circuit 52 is also returned to the default value (initial value), thereby resolving the abnormal state.

図6(b)は、このリセット動作に関連する回路構成であって、本実施例に特徴的なリセット機構を説明する図面である。なお、本明細書において、RGijと表記するVDPレジスタは、CPU回路51に内蔵された動作制御レジスタREGではなく、VDP回路52の内部動作を制御する制御レジスタ群70(図9参照)の何れかを意味する。また、図6(b)に示すシステム制御回路520とは、VDPレジスタRGij(図9の制御レジスタ群70の何れか)への設定値に基づいて機能するVDP回路52の内部制御回路を意味する(図6(a)参照)。なお、VDPレジスタRGijは、演出制御CPU63のアドレスマップにおいて、チップセレクト信号CS7で選択されるアドレス空間CS7に位置付けられる。 Figure 6(b) shows the circuit configuration related to this reset operation, and is a drawing explaining the reset mechanism characteristic of this embodiment. In this specification, the VDP register denoted as RGij does not mean the operation control register REG built into the CPU circuit 51, but any one of the control register group 70 (see Figure 9) that controls the internal operation of the VDP circuit 52. Also, the system control circuit 520 shown in Figure 6(b) means the internal control circuit of the VDP circuit 52 that functions based on the setting value of the VDP register RGij (any one of the control register group 70 in Figure 9) (see Figure 6(a)). Note that the VDP register RGij is located in the address space CS7 selected by the chip select signal CS7 in the address map of the performance control CPU 63.

以上を踏まえてリセット機構について説明すると、図6(b)に示す通り、複合チップ50は、論理反転されたシステムリセット信号SYSバーを受ける3個のORゲートG2~G4を経由して、内部回路がリセット可能に構成されている。但し、本実施例では、破線で示すように、内蔵WDTを有効化しないので、ORゲートG2の入端子と出力端子は、直結状態となる。 To explain the reset mechanism based on the above, as shown in FIG. 6(b), the composite chip 50 is configured so that the internal circuitry can be reset via three OR gates G2 to G4, which receive the logically inverted system reset signal SYS bar. However, in this embodiment, as shown by the dashed line, the built-in WDT is not enabled, so the input terminal and output terminal of OR gate G2 are directly connected.

何れにしても、CPU回路51とVDP回路52の間に、パターンチェック回路CHKが設けられ、パターンチェック回路CHKは、パラレル入出力ポート(PIO)62から、所定のキーワード列(リセット用の暗号列)を受けることを条件に、リセット信号RSTを出力するよう構成されている。 In any case, a pattern check circuit CHK is provided between the CPU circuit 51 and the VDP circuit 52, and the pattern check circuit CHK is configured to output a reset signal RST on condition that a predetermined keyword sequence (a reset code sequence) is received from the parallel input/output port (PIO) 62.

そして、複合チップ50の内部回路は、(1)CPU回路51と、(2)VDP回路52の表示回路74と、(3)VDP回路52における表示回路以外とに三分されて、各々、ORゲートG2~G4から第1リセット経路~第3リセット経路のリセット信号を受けるよう構成されている。 The internal circuitry of the composite chip 50 is divided into three parts: (1) the CPU circuit 51, (2) the display circuit 74 of the VDP circuit 52, and (3) the non-display circuitry in the VDP circuit 52. Each part is configured to receive reset signals from the first to third reset paths from OR gates G2 to G4.

先ず、入出力端子が直結状態のORゲートG2は、第1リセット経路に関連しており、システムリセット信号SYSバーに基づき、CPU回路51の全体をシステムリセットされるように構成されている。また、ORゲートG3は、第2リセット経路に関連しており、システムリセット信号SYSバーと、パターンチェック回路CHKからのリセット信号RSTとを受けて、OR論理に基づき、VDP回路52全体をリセット可能に構成されている。 First, the OR gate G2, whose input/output terminals are directly connected, is associated with the first reset path, and is configured to perform a system reset of the entire CPU circuit 51 based on the system reset signal SYS bar. The OR gate G3 is associated with the second reset path, and is configured to receive the system reset signal SYS bar and the reset signal RST from the pattern check circuit CHK, and to reset the entire VDP circuit 52 based on OR logic.

この第2リセット経路は、電源投入時の電源リセット動作だけでなく、所定の異常を検出した演出制御CPU63が、VDP回路52の全体を異常リセットして初期状態に戻す用途で使用される。具体的には、VDP回路52の内部動作を示す所定のステイタスレジスタRGijに基づき、重大な異常が発生していると判断される場合には、パターンチェック回路CHKからリセット信号RSTを発生させることで、VDP回路52の全体を異常リセットしている。なお、表示回路74は、ORゲートG4を経由して、第2リセット経路→第3リセット経路で異常リセットされる。 This second reset path is used not only for the power reset operation when the power is turned on, but also when the performance control CPU 63 detects a specific abnormality and abnormally resets the entire VDP circuit 52 to return it to its initial state. Specifically, if it is determined that a serious abnormality has occurred based on a specific status register RGij that indicates the internal operation of the VDP circuit 52, a reset signal RST is generated from the pattern check circuit CHK to abnormally reset the entire VDP circuit 52. The display circuit 74 is abnormally reset via the second reset path → third reset path via OR gate G4.

一方、VDP回路52に内蔵された内部回路は、第4リセット経路で、必要時に個々的にリセットすることも可能に構成されている。個々的にリセット可能な内部回路には、図7(a)に示すインデックステーブルIDXTBL、データ転送回路72、プリローダ73、表示回路74、描画回路76、SMC回路78、及び、音声回路SNDや、図12に示すICM回路が含まれている。 On the other hand, the internal circuits built into the VDP circuit 52 are configured so that they can be individually reset when necessary via the fourth reset path. The internal circuits that can be individually reset include the index table IDXTBL, data transfer circuit 72, preloader 73, display circuit 74, drawing circuit 76, SMC circuit 78, and audio circuit SND shown in FIG. 7(a), and the ICM circuit shown in FIG. 12.

個別的なリセット動作を実現する手法は、図6(b)の下部に記載の通りであり、例えば、表示回路74は、所定のVDPレジスタRGij(システムコマンドレジスタ)に、第1リセット値を書き込むことで、第4リセット経路4A→第3リセット経路を経てリセットされる。 The method for realizing the individual reset operation is as shown in the lower part of FIG. 6(b). For example, the display circuit 74 is reset via the fourth reset path 4A → the third reset path by writing the first reset value to a specific VDP register RGij (system command register).

また、VDP回路52の各内部回路(72,73,74,76,SND,・・・)は、(1)第1のVDPレジスタRGij(リセットRQレジスタ)に、対象回路を特定する設定値を書き込んだ後、(2)所定のVDPレジスタRGij(システムコマンドレジスタ)に、第2リセット値を書き込むことで、個々的にリセットされる(第4リセット経路4B)。なお、この実施例では使用しないが、音声回路SNDは、第4リセット経路4Bによるリセットだけでなく、所定のVDPレジスタ(回路設定コマンドレジスタ)に、リセット値を書き込むことでもリセット可能である(第4リセット経路4C)。 In addition, each internal circuit (72, 73, 74, 76, SND, ...) of the VDP circuit 52 is individually reset by (1) writing a setting value that identifies the target circuit to the first VDP register RGij (reset RQ register), and then (2) writing a second reset value to a specific VDP register RGij (system command register) (fourth reset path 4B). Although not used in this embodiment, the audio circuit SND can be reset not only by the fourth reset path 4B, but also by writing a reset value to a specific VDP register (circuit setting command register) (fourth reset path 4C).

本実施例は、上記の構成を有するので、電源投入時やプログラム暴走時に、VDP回路52全体が自動的に初期状態に戻るだけでなく、必要に応じて、各部を初期状態に戻して異常事態の回復を図ることができる。例えば、一定期間、内蔵VRAM71に対してREAD/WRITE アクセスがない描画回路76のフリーズ時には、第4リセット経路4Bを経由して描画回路76が個別的に初期化される(図20(d)のST16a参照)。プリローダ73やデータ転送回路72についても、ほぼ同様であり、所定の異常時には、第4リセット経路4Bを経由してプリローダ73が初期化され(図27のST27参照)、第4リセット経路4Bを経由してデータ転送回路72が初期化される(図22や図27のST27参照)。 Since this embodiment has the above configuration, not only does the entire VDP circuit 52 automatically return to its initial state when the power is turned on or the program crashes, but each part can also be returned to its initial state as necessary to recover from an abnormal situation. For example, when the drawing circuit 76 freezes after there is no READ/WRITE access to the built-in VRAM 71 for a certain period of time, the drawing circuit 76 is initialized individually via the fourth reset path 4B (see ST16a in FIG. 20(d)). The same is true for the preloader 73 and data transfer circuit 72, and when a certain abnormality occurs, the preloader 73 is initialized via the fourth reset path 4B (see ST27 in FIG. 27), and the data transfer circuit 72 is initialized via the fourth reset path 4B (see ST27 in FIG. 22 and FIG. 27).

また、表示回路74については、1/60秒毎の表示タイミングに、表示データの生成が間に合わないアンダーラン(Underrun)異常が続くような場合に、第4リセット経路4A又は第4リセット経路4Bを経由して、表示回路74が個別的に初期化される(図20のST10c参照)。なお、これら個別的なリセット動作については、図20以降に記載したプログラム処理に関して更に後述する。 Furthermore, in the case where an underrun abnormality continues, in which the generation of display data does not keep up with the display timing every 1/60 seconds, the display circuit 74 is individually initialized via the fourth reset path 4A or the fourth reset path 4B (see ST10c in FIG. 20). Note that these individual reset operations will be described further below in relation to the program processing described in FIG. 20 and subsequent figures.

以上、本実施例に特徴的なリセット機構について説明したが、何れかのリセット経路1~4が機能して、複合チップ50の内部回路がリセットされると、その内部回路に対応するVDPレジスタRGijの設定値は、電源投入後と同じデフォルト値に戻る。 The above describes the reset mechanism characteristic of this embodiment. When any of the reset paths 1 to 4 function and the internal circuit of the composite chip 50 is reset, the setting value of the VDP register RGij corresponding to that internal circuit returns to the same default value as after power is turned on.

続いて、CPU回路51の内部構成に戻って、特徴的な回路構成の説明を続ける。図8は、CPU回路51の内部構成をやや詳細に示すブロック図である。CPU回路51は、先に説明した内蔵RAM59、DMAC回路60、SIO61、PIO62、WDT以外にも、多くの特徴的な回路を含んで構成されている。 Next, we will return to the internal configuration of the CPU circuit 51 and continue explaining the characteristic circuit configuration. Figure 8 is a block diagram showing the internal configuration of the CPU circuit 51 in some detail. The CPU circuit 51 is configured to include many characteristic circuits in addition to the internal RAM 59, DMAC circuit 60, SIO 61, PIO 62, and WDT described above.

先ず第1に、CPU回路51は、命令用のCPUフェッチバスと、データ用のCPUメモリアクセスバスとを別々に有してハーバード・アーキテクチャを実現している。そのため、CPUコア(演出制御CPU)63が命令をメモリから読むフェッチ動作と、メモリアクセス動作とが競合せず、フェッチ動作を連続させることで高速処理を実現している。 Firstly, the CPU circuit 51 has a separate CPU fetch bus for instructions and a CPU memory access bus for data, realizing a Harvard architecture. Therefore, there is no contention between the fetch operation by the CPU core (performance control CPU) 63 to read instructions from memory and the memory access operation, and high-speed processing is achieved by making the fetch operation continuous.

また、CPUコア63は、複数個(例えば15個)のレジスタバンクRB0~RB14を有して構成されており、その使用の有無を選択できるよう構成されている。そして、レジスタバンクRBiの使用を許可した動作状態では、割込み処理の開始時に、CPUの内蔵レジスタ(例えば19個)のレジスタ値(各32bit長)が、空き状態のレジスタバンクRBiに自動的に退避される。 The CPU core 63 is also configured with multiple (e.g., 15) register banks RB0 to RB14, and is configured to allow the selection of whether to use them or not. In an operating state in which the use of register bank RBi is permitted, the register values (each 32 bits long) of the CPU's built-in registers (e.g., 19 registers) are automatically saved to an empty register bank RBi when interrupt processing begins.

また、割込み処理の終了時に所定の復帰命令を実行すると、例えば19個の退避データが、対応する内蔵レジスタに自動的に復帰される。したがって、通常の構成のように、割込み処理の開始時にPUSH命令を19回実行し、割込み処理の終了時にPOP命令を19回実行する手間が不要となり、高速処理が実現される。 In addition, when a specified restore command is executed at the end of interrupt processing, for example, 19 pieces of saved data are automatically restored to the corresponding built-in registers. This eliminates the need to execute the PUSH command 19 times at the start of interrupt processing and the POP command 19 times at the end of interrupt processing, as in the normal configuration, and achieves high-speed processing.

また、実施例のCPU回路51は、命令キャッシュメモリ67と、オペランドキャッシュメモリ89と、キャッシュコントローラ69とを設けることで、ハーバードキャッシュ動作を実現しており、同一アドレスをアクセスする場合に、キャッシュ済みのデータを活用することでプログラム処理の更なる高速化を図っている。なお、バスブリッジ65と、周辺バス(1) 用のコントローラ、周辺バス(2) 用のコントローラ、及び、周辺バス(3) 用のコントローラとが設けられることで、内部バスと、周辺バス(1) 、周辺バス(2) 、及び周辺バス(3) とを適宜に接続している。 The CPU circuit 51 of the embodiment also provides an instruction cache memory 67, an operand cache memory 89, and a cache controller 69 to realize Harvard cache operation, and when accessing the same address, cached data is utilized to further speed up program processing. The bus bridge 65, a controller for peripheral bus (1), a controller for peripheral bus (2), and a controller for peripheral bus (3) are provided to appropriately connect the internal bus to peripheral bus (1), peripheral bus (2), and peripheral bus (3).

次に、図8の回路構成において、バスステートコントローラ66は、動作制御レジスタREGへの適宜な設定値に基づいて動作して、CPU回路51に接続された各種メモリデバイスとのメモリREAD動作やメモリWRITE 動作を最適化する部分である。メモリREAD動作やメモリWRITE 動作は、例えば、図38に例示した動作タイミングで実行されるが、アドレスバス(28Bit )から出力されるアドレスデータと、READデータバス(32Bit )に読み出されるREADデータと、WRITE データバス(32Bit )に書き出されるWRITE データと、チップセレクト信号CS0~CS7などの制御信号との動作タイミングが、動作制御レジスタREGへの設定値に基づいて、各メモリデバイスの特性に対応して適宜に規定される。 Next, in the circuit configuration of FIG. 8, the bus state controller 66 is a part that operates based on appropriate settings in the operation control register REG to optimize memory READ and memory WRITE operations with various memory devices connected to the CPU circuit 51. The memory READ and memory WRITE operations are executed, for example, at the operation timing illustrated in FIG. 38, but the operation timing of the address data output from the address bus (28 bits), the READ data read to the READ data bus (32 bits), the WRITE data written to the WRITE data bus (32 bits), and control signals such as the chip select signals CS0 to CS7 are appropriately specified according to the characteristics of each memory device based on the settings in the operation control register REG.

READデータバスとWRITE データバスが別々に設けられているので、上記したハーバード・アーキテクチャによる高速動作が実現される。なお、本明細書では、アドレスバス(28Bit )、READデータバス(32Bit )、及び、WRITE データバス(32Bit )について、図8に示す内部バスや、周辺バス(1) ~周辺バス(3) などと区別する意味で、外部バスと総称することがある。 The separate READ and WRITE data buses allow for high-speed operation using the Harvard architecture described above. In this specification, the address bus (28 bits), READ data bus (32 bits), and WRITE data bus (32 bits) are sometimes collectively referred to as external buses to distinguish them from the internal bus shown in Figure 8 and peripheral buses (1) to (3).

図9は、チップセレクト信号CS0~CS7によって選択されるアドレス空間CS0~CS7を図示したものであり、バスステートコントローラ66を経由してアクセスされる演出制御CPU63にとってのアドレスマップを図示したものである。先ず、各アドレス空間CS0~CS7は、何れも、最大64Mバイトに(=0x4000000H=67108864)に規定されている。 Figure 9 illustrates the address spaces CS0 to CS7 selected by the chip select signals CS0 to CS7, and illustrates the address map for the performance control CPU 63 accessed via the bus state controller 66. First, each address space CS0 to CS7 is defined as a maximum of 64 MB (= 0x4000000H = 67108864).

先に説明した通り、アドレス空間CS0~CS7とは、揮発性の有無を含むメモリ種別や、データバス幅(8/16/32ビット)を、各々、規定可能なCPU回路51にとって外部メモリを意味する。そして、本実施例では、図8(b)や図9に示す通り、制御メモリ(PROM)53がアドレス空間CS0、音声プロセッサ27の音声制御レジスタSRGがアドレス空間CS3、時計回路38の内部レジスタやSRAM39がアドレス空間CS4、外付けDRAM(DDR)54がアドレス空間CS5、ワークメモリ57がアドレス空間CS6、VDPレジスタRGijがアドレス空間CS7に位置付けられている。なお、アドレス空間CS1,CS2についての説明は省略する。 As explained above, the address spaces CS0 to CS7 refer to external memories for the CPU circuit 51, which can specify the memory type (including whether it is volatile or not) and the data bus width (8/16/32 bits). In this embodiment, as shown in Figures 8(b) and 9, the control memory (PROM) 53 is located in address space CS0, the audio control register SRG of the audio processor 27 is located in address space CS3, the internal register of the clock circuit 38 and the SRAM 39 are located in address space CS4, the external DRAM (DDR) 54 is located in address space CS5, the work memory 57 is located in address space CS6, and the VDP register RGij is located in address space CS7. Note that the description of address spaces CS1 and CS2 will be omitted.

ところで、図9から確認される通り、アドレス空間CS0~CS7は、アドレス値0x00000000~0x1FFFFFFF(キャッシュ有効空間)だけでなく、アドレス値0x20000000~0x3FFFFFFF(キャッシュ無効空間)にも確保されている。これは、アドレスビットA29=1のときには、CPU回路51の内部動作に基づいて、キャッシュ無効とする一方、アドレスビットA29=0のときにキャッシュ有効とすることで、キャッシュ機能の活用を任意選択できるようにしたものである。 As can be seen from Figure 9, the address space CS0 to CS7 is reserved not only for address values 0x00000000 to 0x1FFFFFFF (cache-enabled space), but also for address values 0x20000000 to 0x3FFFFFFF (cache-disabled space). This allows the use of the cache function to be selected at will, by disabling the cache based on the internal operation of the CPU circuit 51 when address bit A29 = 1, and enabling the cache when address bit A29 = 0.

そのため、本実施例では、全32bitのアドレス情報(ビットA31~A0)のうち、ビットA29の値が1又は0の何れであっても、残り31bit(ビットA31~A30とビットA28~A0)の値が同じであれば、同一のメモリの同一番地を指示することになる。例えば、0x18000000番地をREADアクセスしても、0x38000000番地をREADアクセスしても,ワークメモリ57のゼロ番地から同一データが読み出されることになる。なお、0x18000000番地をREADアクセスした場合には、読み出したデータがキャッシュに保存されるが、図8(b)は、キャッシュ有効/無効のアクセス動作を図示している。 Therefore, in this embodiment, out of the total 32-bit address information (bits A31 to A0), even if the value of bit A29 is either 1 or 0, if the values of the remaining 31 bits (bits A31 to A30 and bits A28 to A0) are the same, it will point to the same address in the same memory. For example, whether address 0x18000000 is accessed for READ or address 0x38000000 is accessed for READ, the same data will be read from address zero of work memory 57. Note that when address 0x18000000 is accessed for READ, the read data is stored in the cache, and Figure 8(b) illustrates the access operation with the cache enabled/disabled.

もっとも、所定の動作制御レジスタREGへの設定値に基づいて、命令キャッシュ及び/又はオペランドキャッシュについて、キャッシュ動作を無効化することもできる。但し、本実施例では、電源投入後、命令キャッシュ及びオペランドキャッシュについて、キャッシュ動作を有効化した上で、必要に応じて、キャッシュ無効空間をアクセスすることで、キャッシュ動作を無効化している。 However, it is also possible to disable cache operation for the instruction cache and/or operand cache based on the setting value of a specified operation control register REG. However, in this embodiment, after power is turned on, cache operation is enabled for the instruction cache and operand cache, and cache operation is disabled by accessing the cache-disabled space as necessary.

図9のメモリマップについて説明を続けると、0x40000000番地以降は、バスステートコントローラ66が機能しない内部メモリ空間であって、0xF0000000番地~0xFF3FFFFF番地は、キャッシュのアドレスアレイ空間に割り当てられている。また、0xFF400000番地~0xFFF7FFFF番地と、0xFFFC0000番地~0xFFFFFFFF番地は、内蔵周辺モジュールに割り当てられ、具体的には、CPU回路の動作制御レジスタREGに割り当てられている。なお、内蔵RAM59のアドレス範囲は、0xFFF80000~0xFFFBFFFFである。 Continuing with the explanation of the memory map in Figure 9, addresses 0x40000000 and onwards are internal memory space in which the bus state controller 66 does not function, and addresses 0xF0000000 to 0xFF3FFFFF are allocated to the cache address array space. Additionally, addresses 0xFF400000 to 0xFFF7FFFF and 0xFFFC0000 to 0xFFFFFFFF are allocated to built-in peripheral modules, specifically to the operation control register REG of the CPU circuit. The address range of the built-in RAM 59 is 0xFFF80000 to 0xFFFBFFFF.

CPU回路51の内部構成について説明を続けると、コンペアマッチタイマCMTと、マルチファンクションタイマユニットMTUは、CPU回路51に供給される外部信号をカウントしたり、或いは、内部クロックを逓倍又は分周した計数クロックをカウントして、カウント結果が所定値に達すると、割込み信号などを発生する回路である。特に限定されないが、本実施例では、マルチファンクションタイマユニットMTUを活用して、1mS割込み信号と、20μS割込み信号を発生させている。 Continuing with the explanation of the internal configuration of the CPU circuit 51, the compare match timer CMT and the multifunction timer unit MTU are circuits that count external signals supplied to the CPU circuit 51, or count a counting clock that is a multiplied or divided internal clock, and generate an interrupt signal or the like when the count result reaches a predetermined value. Although not limited to this, in this embodiment, the multifunction timer unit MTU is used to generate a 1 ms interrupt signal and a 20 μS interrupt signal.

次に、割込みコントローラINTCは、VDP回路52やDMAC回路60やマルチファンクションタイマユニットMTUなどからの内部割込みと、IRQ_CMD 、IRQ_SND 、IRQ_RCT などの外部割込みを受けて、予め規定されている優先順位に基づいて、割込み処理(割込みハンドラ)を起動させる回路である。ここで、IRQ_CMD は、制御コマンドCMDを受信すべきコマンド受信割込み信号、IRQ_SND は、音声プロセッサ27が初期化シーケンスを終えたことを示す終了割込み信号、IRQ_RCT は、アラーム割込み信号である。 Next, the interrupt controller INTC is a circuit that receives internal interrupts from the VDP circuit 52, DMAC circuit 60, multifunction timer unit MTU, etc., and external interrupts such as IRQ_CMD, IRQ_SND, and IRQ_RCT, and starts the interrupt process (interrupt handler) based on a predefined priority order. Here, IRQ_CMD is a command reception interrupt signal that should receive the control command CMD, IRQ_SND is an end interrupt signal that indicates that the audio processor 27 has completed the initialization sequence, and IRQ_RCT is an alarm interrupt signal.

そして、本実施例では、割込み優先度は、コマンド受信割込みIRQ_CMD が最高レベルであり、以下、20μS割込み→1mS割込み→VDP回路からの割込み(IRQ0,IRQ1,IRQ2,IRQ3)→DMAC割込み→IRQ_SND →IRQ_RCT の順になっている(図17(d)参照)。なお、これらは何れも、マスク可能な割込みであり、マスク不能な割込みNMIは、先に説明した通り、発振器OSC2からリファレンスクロックが出力されていない場合に演出制御CPU63に出力される。 In this embodiment, the command reception interrupt IRQ_CMD has the highest interrupt priority, followed by the 20 μS interrupt → 1 ms interrupt → interrupts from the VDP circuit (IRQ0, IRQ1, IRQ2, IRQ3) → DMAC interrupt → IRQ_SND → IRQ_RCT (see FIG. 17(d)). Note that all of these are maskable interrupts, and the non-maskable interrupt NMI is output to the performance control CPU 63 when the reference clock is not being output from the oscillator OSC2, as explained above.

そして、何れの割込み処理でも、CPUの複数の内蔵レジスタのレジスタ値(各32bit長)は、空き状態の何れかのレジスタバンクRBiに、自動的に退避される。そして、割込み処理の最後に所定の復帰命令を実行すると、退避データが、対応する内蔵レジスタに自動的に復帰される。 In any interrupt processing, the register values (each 32 bits long) of the CPU's multiple built-in registers are automatically saved to one of the free register banks RBi. Then, when a specified restore command is executed at the end of the interrupt processing, the saved data is automatically restored to the corresponding built-in register.

続いて、DMAC回路60について説明する。実施例のDMAC回路60は、所定の動作制御レジスタREGへの設定値に基づいて、転送元(Source)から転送先(Destination )に対して、所定のDMA転送モードで、所定のデータ転送単位毎に、所定回数、データ転送を繰り返す回路である。なお、同一の内部構成を有する複数チャネルのDMAC0~DMACnが用意されており、並列的に動作可能となっている。但し、優先度が決まっており(チャネル0>・・・>チャネルn)、チャネル調停動作モードの並列動作時には、所定タイミングでのチャネル調停によって優先度の高いDMACiの動作が優先される。 Next, the DMAC circuit 60 will be described. The DMAC circuit 60 of the embodiment is a circuit that repeats data transfers from the source (Source) to the destination (Destination) in a specified DMA transfer mode for each specified data transfer unit a specified number of times based on the setting value of a specified operation control register REG. Note that multiple channels DMAC0 to DMACn with the same internal configuration are provided, and can operate in parallel. However, a priority is set (channel 0>...>channel n), and during parallel operation in the channel arbitration operation mode, the operation of the DMACi with the higher priority is prioritized by channel arbitration at a specified timing.

DMAC回路60の活用としては、例えば、シリアル出力ポートSOが機能する実施例(図9(a)破線部参照)では、CPU回路51の動作制御レジスタREGには、ランプ/モータ駆動テーブルの先頭アドレス(転送元アドレスの先頭値)と、シリアル出力ポートSOの入力レジスタのアドレス(転送先アドレスの固定値)と、データ転送単位(8bit)と、転送回数と、が指定される。そして、所定の動作制御レジスタREGに動作開始指示を受けたDMAC回路60は、転送元アドレスを更新しつつ、所定の転送先アドレスに駆動データをDMA転送する。そして、全てのDMA転送が終われば、DMAC割込み(動作終了割込み)が生じるよう構成されている。 In one embodiment where the DMAC circuit 60 is used, for example, in which the serial output port SO functions (see the dashed line in Figure 9(a)), the operation control register REG of the CPU circuit 51 is specified with the top address of the lamp/motor drive table (top value of the source address), the address of the input register of the serial output port SO (fixed value of the destination address), the data transfer unit (8 bits), and the number of transfers. Then, when a specific operation control register REG receives an instruction to start operation, the DMAC circuit 60 DMA transfers the drive data to the specific destination address while updating the source address. Then, when all DMA transfers have been completed, a DMAC interrupt (operation end interrupt) is generated.

この点は、ディスプレイリストDLをDMAC回路60が発行する実施例(図23、図27(c))の場合もほぼ同様である。すなわち、演出制御CPU63は、CPU回路51の所定の動作制御レジスタREGに、転送元(DLバッファBUF)の先頭アドレスと、転送先(転送ポートTR_PORT )のアドレスと、DMA転送モードと、データ転送単位と、転送回数、その他の条件を設定することになる。なお、これらの点は、図23に関して更に後述する。 This is almost the same in the embodiment (Fig. 23, Fig. 27(c)) in which the DMAC circuit 60 issues the display list DL. That is, the performance control CPU 63 sets the start address of the transfer source (DL buffer BUF), the address of the transfer destination (transfer port TR_PORT), the DMA transfer mode, the data transfer unit, the number of transfers, and other conditions in a specified operation control register REG of the CPU circuit 51. These points will be discussed further below in relation to Fig. 23.

ところで、一般に、DMA転送モードには、DMA転送の単位動作(R動作/W動作)の途中でバス制御権を開放するなど、DMA動作がメモリバスを占有しないサイクルスチール転送モードと、複数のR動作やW動作を連続させるなど、指定された転送回数が完了するまでバス制御権を解放しないバースト転送(パイプライン転送)モードと、他のデバイスから受けるDMA転送要求(デマンド)がアクティブの間はDMA動作を継続するデマンド転送モードなどが考えられる。しかし、本実施例のDMAC回路60は、DMA転送時のリードアクセス起動(R動作)とライトアクセス起動(W動作)の間に、少なくとも1サイクルのメモリ開放期間を設けたサイクルスチール転送モードで機能することで、演出制御CPU63の動作に支障が出ないようにしている。 Generally, DMA transfer modes include cycle steal transfer mode, in which the DMA operation does not occupy the memory bus, for example by releasing bus control during a unit operation (R operation/W operation) of the DMA transfer; burst transfer (pipeline transfer) mode, in which the bus control is not released until a specified number of transfers are completed, for example by performing multiple R operations or W operations in succession; and demand transfer mode, in which the DMA operation continues while a DMA transfer request (demand) from another device is active. However, the DMAC circuit 60 of this embodiment functions in cycle steal transfer mode, which provides at least one cycle of memory release period between read access activation (R operation) and write access activation (W operation) during DMA transfer, to prevent any disruption to the operation of the performance control CPU 63.

図10は、サイクルスチール転送動作(a1)と、パイプライン転送(a2)とを説明する図面である。図10(a1)に示す通り、サイクルスチール転送モードで機能するDMAC回路60は、1データ転送のリードアクセス起動(R)とライトアクセス起動(W)の間に、少なくとも1サイクル空けて動作しており、この空いたサイクルでは、演出制御CPU63のバス使用が可能となる。図10(a1)と図10(a2)の対比関係から明らかなように、パイプライン転送では、一サイクル(一オペランド転送)が終わるまでは、バスがCPUに開放されないのに対して、サイクルスチール転送モードでは、リードアクセス毎に、バスがCPUに開放されるので、CPUの動作が大きく遅れることがない。 Figure 10 is a diagram explaining cycle steal transfer operation (a1) and pipeline transfer (a2). As shown in Figure 10 (a1), the DMAC circuit 60 functioning in cycle steal transfer mode operates with at least one cycle between the read access activation (R) and write access activation (W) of one data transfer, and during this free cycle, the performance control CPU 63 can use the bus. As is clear from the comparison between Figure 10 (a1) and Figure 10 (a2), in pipeline transfer, the bus is not released to the CPU until one cycle (one operand transfer) is completed, whereas in cycle steal transfer mode, the bus is released to the CPU for each read access, so the operation of the CPU is not significantly delayed.

そして、例えば、ディスプレイリストDLのVDP回路52への発行時に、DMAC回路60を使用する実施態様では、一サイクルのデータ転送単位(1オペランド)を、32×2bitに設定し、ディスプレイリストDLが格納されている内蔵RAM59のソースアドレスを適宜に増加しつつ(1オペランド転送毎に+8)、固定アドレスで特定されるデータ転送回路72の転送ポートレジスタTR_PORT (図12参照)に対して、DMA転送動作を実行している。 For example, in an embodiment using the DMAC circuit 60 when issuing a display list DL to the VDP circuit 52, the data transfer unit (one operand) for one cycle is set to 32 x 2 bits, and the source address of the internal RAM 59 in which the display list DL is stored is appropriately increased (+8 for each operand transfer), while a DMA transfer operation is performed for the transfer port register TR_PORT (see FIG. 12) of the data transfer circuit 72 specified by a fixed address.

後述するように、実施例では、ディスプレイリストDLに、必要個数のNOP (no operation)コマンドを付加することで、全体のデータサイズを、固定値(例えば、4×64=256バイト、又はその整数倍)に調整しており、32bit×2回の一オペランド転送を32回(又はその整数倍)繰り返すことで、ディスプレイリストDLの発行を完了させている。なお、描画回路76がNOP コマンドを実行しても、事実上、何の変化も生じない。 As will be described later, in the embodiment, the total data size is adjusted to a fixed value (for example, 4 x 64 = 256 bytes, or an integer multiple thereof) by adding the required number of NOP (no operation) commands to the display list DL, and the issuance of the display list DL is completed by repeating one operand transfer of 32 bits x 2 times 32 times (or an integer multiple thereof). Note that even if the drawing circuit 76 executes a NOP command, no change actually occurs.

また、DMA転送条件に関して動作モードを分類すると、一般に、単一オペランド転送(図10(b1)参照)と、連続オペランド転送(図10(b2)参照)と、ノンストップ転送(図10(b3)参照)とが考えられる。 Furthermore, when classifying operating modes with respect to DMA transfer conditions, generally, there are single operand transfer (see FIG. 10(b1)), consecutive operand transfer (see FIG. 10(b2)), and non-stop transfer (see FIG. 10(b3)).

ここで、単一オペランド転送とは、図10(b1)に示すように、DMA転送要求が与えられるたびに、1オペランドの転送を繰り返し、転送バイト数をカウントするバイトカウントがゼロになった時点で、DMA割込み要求が生じる動作モードを意味する。次に、連続オペランド転送とは、図10(b2)に示すように、1回のDMA要求で、バイトカウントがゼロになるまでDMA転送を繰り返す動作モードを意味する。 Here, single operand transfer means an operation mode in which, as shown in FIG. 10(b1), the transfer of one operand is repeated each time a DMA transfer request is given, and a DMA interrupt request occurs when the byte count, which counts the number of transferred bytes, reaches zero. Next, continuous operand transfer means an operation mode in which, as shown in FIG. 10(b2), DMA transfer is repeated with one DMA request until the byte count reaches zero.

これら、連続オペランド転送(b2)や単一オペランド転送(b1)では、1オペランド転送が終了するごとにチャネル調停が行われ、優先順位の高いチャネルのDMA要求がないことを条件に、現在のチャネルの転送が継続される(チャネル調停動作モード)。そこで、本実施例では、ディスプレイリストDLのVDP回路への発行や、ランプ駆動データやモータ駆動データのDMA転送は、単一オペランド転送方式を採っている。そして、並列動作時には、例えば、モータデータ>ディスプレイリストDL>ランプデータの優先度のチャネル調停となるよう、最適チャネルのDMACiを使用している。 In these continuous operand transfers (b2) and single operand transfers (b1), channel arbitration is performed each time one operand transfer is completed, and the current channel transfer continues on the condition that there is no DMA request for a channel with a higher priority (channel arbitration operation mode). Therefore, in this embodiment, the single operand transfer method is used for issuing the display list DL to the VDP circuit and for DMA transfer of lamp drive data and motor drive data. During parallel operation, the DMACi of the optimal channel is used so that channel arbitration is performed with the priority of motor data > display list DL > lamp data, for example.

一方、ノンストップ転送とは、チャネル調停が実行されない動作モードであって、図10(b3)に記載の通り、1回のDMA要求で、バイトカウントがゼロになるまで連続的にDMA転送が繰り返される。本実施例では、電源投入時のメモリセクション初期化処理(図15のSP8)では、ノンストップ転送でプログラムやデータをDMA転送している。 On the other hand, non-stop transfer is an operating mode in which channel arbitration is not performed, and as shown in FIG. 10 (b3), DMA transfer is repeated continuously until the byte count reaches zero in response to a single DMA request. In this embodiment, in the memory section initialization process at power-on (SP8 in FIG. 15), programs and data are DMA transferred using non-stop transfer.

以上、CPU回路51について説明したので、次に、VDP回路52について説明すると、VDP回路52には、画像演出を構成する静止画や動画の構成要素となる圧縮データを記憶するCGROM55と、4Gbit程度の記憶容量を有する外付けDRAM(Dynamic Random Access Memory)54と、メイン表示装置DS1と、サブ表示装置DS2とが接続されている。なお、DRAM54は、好適にはDDR3(Double-Data-Rate3 SDRAM )で構成される。 Having explained the CPU circuit 51 above, we will now explain the VDP circuit 52. Connected to the VDP circuit 52 are a CGROM 55 that stores compressed data that is a component of the still and moving images that make up the image presentation, an external DRAM (Dynamic Random Access Memory) 54 with a storage capacity of about 4 Gbit, a main display device DS1, and a sub-display device DS2. The DRAM 54 is preferably configured with a DDR3 (Double-Data-Rate3 SDRAM).

特に限定するものではないが、この実施例では、CGROM55は、62Gbit程度の記憶容量のNAND型フラッシュメモリで構成されたフラッシュSSD(solid state drive )で構成されており、シリアル伝送によって必要な圧縮データを取得するよう構成されている。そのため、パラレル伝送において不可避的に生じるスキュー(ビットデータ毎の伝送速度の差)の問題が解消され、極限的な高速伝送動作が可能となる。特に限定されないが、本実施例では、SerialATAに準拠したHSS(High Speed Serial )方式で、CGROM55を高速アクセスしている。 In this embodiment, the CGROM 55 is configured as a flash SSD (solid state drive) made up of a NAND type flash memory with a storage capacity of about 62 Gbits, and is configured to obtain the necessary compressed data by serial transmission. This eliminates the problem of skew (difference in transmission speed for each bit of data) that inevitably occurs in parallel transmission, enabling extremely high-speed transmission operations. In this embodiment, the CGROM 55 is accessed at high speed using a HSS (High Speed Serial) method that complies with Serial ATA, although this is not particularly limited.

なお、SerialATAに準拠したHSS方式を採るか否かに拘らず、NAND型のフラッシュメモリは、ハードディスクより機械的に安定であり、且つ高速アクセスが可能である一方で、シーケンシャルアクセスメモリであるため、DRAMやSRAM(Static Random Access Memory )に比較すると、ランダムアクセス性に問題がある。そこで、本実施例では、一群の圧縮データ(CGデータ)を、描画動作に先行してDRAM54に読み出しておくプリロード動作を実行することで、描画動作時におけるCGデータの円滑なランダムアクセスを実現している。ちなみに、アクセス速度は、内蔵VRAM>外付けDRAM>CGROMの順番に遅くなる。 Whether or not it uses the HSS method compliant with SerialATA, NAND-type flash memory is more mechanically stable than a hard disk and allows high-speed access, but since it is a sequential access memory, it has problems with random access compared to DRAM and SRAM (Static Random Access Memory). Therefore, in this embodiment, a preload operation is performed in which a group of compressed data (CG data) is read into DRAM 54 prior to the drawing operation, thereby realizing smooth random access of CG data during drawing operations. Incidentally, the access speed is slower in the following order: built-in VRAM > external DRAM > CG ROM.

VDP回路52は、詳細には、VDP(Video Display Processor )の動作を規定する各種の動作パラメータが演出制御CPU63によって設定可能な制御レジスタ群70と、表示装置DS1,DS2に表示すべき画像データの生成時に使用される48Mバイト程度の内蔵VRAM(video RAM )71と、チップ内部の各部間のデータ送受信及びチップ外部とのデータ送受信を実行するデータ転送回路72と、内蔵VRAM71に関して、SourceやDestination のアドレス情報を特定可能なインデックステーブルIDXTBLと、描画動作に先行してCGROM55をREADアクセスするプリロード動作が実行可能なプリローダ73と、CGROM55から読み出した圧縮データをデコード(復号伸長/展開)するグラフィックスデコーダ(GDEC)75と、デコード(展開)後の静止画データや動画データを適宜に組み合わせて表示装置DS1,DS2の各一フレーム分の画像データを生成する描画回路76と、描画回路76の動作の一部として、適宜な座標変換によって立体画像を生成するジオメトリエンジン77と、描画回路76が生成したフレームバッファFBa,FBbの画像データを読み出して、適宜な画像処理を並列的に実行可能な3系統(A/B/C)の表示回路74A~74Cと、3系統(A/B/C)の表示回路74の出力を適宜に選択出力する出力選択部79と、出力選択部79が出力する画像データをLVDS信号に変換するLVDS部80と、シリアルデータ送受信可能なSMC部78と、CPUIF回路56とのデータ送受信を中継するCPUIF部81と、CGROM55からのデータ受信を中継するCGバスIF部82と、外付けDRAM54とのデータ送受信を中継するDRAMIF部83と、内蔵VRAM71とのデータ送受信を中継するVRAMIF部84と、を有して構成されている(図7(a)参照)。なお、音声回路SNDも内蔵されている。 In detail, the VDP circuit 52 comprises a control register group 70 in which various operating parameters that define the operation of the VDP (Video Display Processor) can be set by the performance control CPU 63, an internal VRAM (video RAM) 71 of about 48 MB that is used when generating image data to be displayed on the display devices DS1 and DS2, a data transfer circuit 72 that transmits and receives data between each section within the chip and with the outside of the chip, and a source and destination bus for the internal VRAM 71. a preloader 73 capable of executing a preload operation for accessing the CGROM 55 for reading prior to a drawing operation; a graphics decoder (GDEC) 75 for decoding (decoding and expanding/expanding) compressed data read from the CGROM 55; a drawing circuit 76 for generating image data for one frame of each of the display devices DS1 and DS2 by appropriately combining still image data and moving image data after decoding (expanding); a geometry engine 77 for generating a three-dimensional image by appropriate coordinate conversion as part of the operation of the drawing circuit 76; The display circuit 74A-74C has three systems (A/B/C) capable of executing appropriate image processing in parallel, an output selection unit 79 that appropriately selects and outputs the output of the display circuit 74 of the three systems (A/B/C), an LVDS unit 80 that converts the image data output by the output selection unit 79 into an LVDS signal, an SMC unit 78 that can transmit and receive serial data, a CPUIF unit 81 that relays data transmission and reception with the CPUIF circuit 56, a CG bus IF unit 82 that relays data reception from the CGROM 55, a DRAMIF unit 83 that relays data transmission and reception with the external DRAM 54, and a VRAMIF unit 84 that relays data transmission and reception with the built-in VRAM 71 (see FIG. 7(a)). An audio circuit SND is also built in.

図7(b)には、CPUIF部81、CGバスIF部82、DRAMIF部83、及び、VRAMIF部84と、制御レジスタ群70、CGROM55、DRAM54、及び内蔵VRAM71との関係が図示されている。図示の通り、CGROM55から取得したCGデータは、例えば、プリロードデータとして、データ転送回路72及びDRAMIF部83を経由して、外付けDRAM54のプリロード領域に転送される。 Figure 7 (b) illustrates the relationship between the CPUIF unit 81, CG bus IF unit 82, DRAMIF unit 83, and VRAMIF unit 84 and the control register group 70, CGROM 55, DRAM 54, and built-in VRAM 71. As shown in the figure, the CG data acquired from the CGROM 55 is transferred, for example, as preload data, via the data transfer circuit 72 and the DRAMIF unit 83 to the preload area of the external DRAM 54.

但し、上記したプリロード動作は、何ら必須動作ではなく、また、データ転送先も、外付けDRAM54に限定されず、内蔵VRAM71であっても良い。したがって、例えば、プリロード動作を実行しない実施例では、CGデータは、データ転送回路72及びVRAMIF部84を経由して、内蔵VRAM71に転送される(図7(b))。 However, the above-mentioned preload operation is not a required operation, and the data transfer destination is not limited to the external DRAM 54, but may be the built-in VRAM 71. Therefore, for example, in an embodiment in which the preload operation is not performed, the CG data is transferred to the built-in VRAM 71 via the data transfer circuit 72 and the VRAM IF unit 84 (FIG. 7(b)).

ところで、本実施例では、内蔵VRAM71には、CGROM55から読み出した圧縮データの展開領域、表示装置のW×H個の表示ピクセルの各ARGB情報(32bit=8×4)を特定する画像データを格納するフレームバッファ領域、及び、各表示ピクセルの深度情報を記憶するZバッファ領域などが必要となる。なお、ARGB情報において、Aは、8bitのαプレーンデータ、RGBは三原色の8bitデータを意味する。 In this embodiment, the built-in VRAM 71 requires a decompression area for the compressed data read from the CGROM 55, a frame buffer area for storing image data specifying the ARGB information (32 bits = 8 x 4) for each of the W x H display pixels of the display device, and a Z buffer area for storing depth information for each display pixel. In the ARGB information, A means 8-bit alpha plane data, and RGB means 8-bit data for the three primary colors.

ここで、内蔵VRAM71の上記した各領域は、演出制御CPU63がディスプレイリストDLに記載した各種の指示コマンド(前記したテクスチャやSPRITEなど)に基づいて間接的にアクセスされるが、そのREAD/WRITEアクセスにおいて、一々、内蔵VRAM71のDestination アドレスや、Sourceアドレスを特定するのでは煩雑である。そこで、本実施例では、CPUリセット後の初期処理において、描画動作で必要となる一次元または二次元の論理アドレス空間(以下、インデックス空間という)を確保して、各インデックス空間にインデックス番号を付与することで、インデックス番号に基づくアクセスを可能にしている。 The above-mentioned areas of the built-in VRAM 71 are indirectly accessed by the performance control CPU 63 based on various instruction commands (such as the textures and sprites mentioned above) written in the display list DL, but it would be cumbersome to specify the destination address and source address of the built-in VRAM 71 for each READ/WRITE access. Therefore, in this embodiment, in the initial processing after the CPU is reset, a one-dimensional or two-dimensional logical address space (hereinafter referred to as index space) required for drawing operations is secured, and an index number is assigned to each index space, making it possible to access based on the index number.

具体的には、CPUリセット後、内蔵VRAM71を3種類のメモリ領域に大別すると共に、各メモリ領域に、必要数のインデックス空間を確保している。そして、インデックス空間とインデックス番号とを紐付けて記憶するインデックステーブルIDXTBL(図11(a)参照)を構築することで、その後のインデックス番号に基づく動作を実現している。 Specifically, after the CPU is reset, the built-in VRAM 71 is roughly divided into three types of memory areas, and the required number of index spaces are secured in each memory area. Then, an index table IDXTBL (see FIG. 11(a)) is constructed that associates and stores the index spaces with index numbers, thereby enabling subsequent operations based on the index numbers.

このインデックス空間は、(1) 初期処理後に追加することや、逆に、(2) 開放することも必要となる。そこで、これら追加/開放の演出制御CPU63の動作時に、追加/開放の処理が可能なタイミングか否か、また、追加/開放などの処理が実際に完了したか否か、などを判定可能なフラグ領域FGをインデックステーブルIDXTBLに設けている。なお、内蔵VRAM71は、以下に説明する2つのAAC領域(a1,a2) と、ページ領域(b) と、任意領域(c) の三種類のメモリ領域に大別され、この三種類のメモリ領域(a1,a2)(b)(c) に対応して、インデックステーブルIDXTBLが3区分されている(図11(a))。図示の通り、この実施例では、AAC領域(a) として、第一AAC領域(a1)と第二AAC領域(a2)が確保されているが、特に限定されるものではなく、何れか一方だけでも良い。なお、以下の説明では、第一と第二のAAC領域(a1,a2) を総称する場合には、AAC領域(a) と称する場合がある。 This index space needs to be added after (1) initial processing, or conversely, to be released (2). Therefore, a flag area FG is provided in the index table IDXTBL, which can determine whether the timing for adding/opening processing is possible or not, and whether the processing such as adding/opening has actually been completed or not, during the operation of the performance control CPU 63 for adding/opening. The built-in VRAM 71 is roughly divided into three types of memory areas, namely, two AAC areas (a1, a2), a page area (b), and an arbitrary area (c), which will be described below, and the index table IDXTBL is divided into three areas corresponding to the three types of memory areas (a1, a2) (b) (c) (FIG. 11 (a)). As shown in the figure, in this embodiment, the first AAC area (a1) and the second AAC area (a2) are secured as the AAC area (a), but this is not particularly limited, and only one of them may be used. In the following description, the first and second AAC regions (a1, a2) may be collectively referred to as AAC region (a).

本実施例の場合、内蔵VRAM71は、(a) インデックス空間とそのインデックス番号が内部処理によって自動付与され、且つメモリキャッシュ機能を有するAAC領域と、(b) 例えば4096bit×128ラインの二次元空間を単位空間として、その整数倍の範囲でインデックス空間が確保可能なページ領域と、(c) 先頭アドレス(空間先頭アドレス)STxと水平サイズHxが任意に設定できる任意領域と、に区分可能に構成されている(図11(b)参照)。但し、VDP回路52の内部動作を円滑化するため、任意領域(c) において任意設定されるインデックス空間の空間先頭アドレスSTxは、その下位11bitが0であって、所定ビット(2048bit=256バイト)単位とする必要がある。 In this embodiment, the built-in VRAM 71 is configured to be divisible into (a) an AAC area in which the index space and its index number are automatically assigned by internal processing and which has a memory cache function, (b) a page area in which the index space can be secured within an integer multiple of a two-dimensional space of, for example, 4096 bits x 128 lines, and (c) an arbitrary area in which the start address (space start address) STx and horizontal size Hx can be set arbitrarily (see FIG. 11(b)). However, in order to facilitate the internal operation of the VDP circuit 52, the space start address STx of the index space arbitrarily set in the arbitrary area (c) must have the lowest 11 bits 0 and be in units of a specified number of bits (2048 bits = 256 bytes).

そして、CPUリセット後、各々に必要なアドレス空間の最大値と、領域先頭アドレス(下位11bit=0)を規定して、AAC領域(a1)と、第二AAC領域(a2)と、ページ領域(b) とが確保され、その残りのメモリ領域が任意領域(c) となる。VDP回路52の内部動作を円滑化するため、AAC領域のアドレス空間の最大値は、2048bit単位で規定され、ページ領域のアドレス空間の最大値は、上記した4096bit×128ラインの単位空間の整数倍とされる。 After the CPU is reset, the maximum address space required for each area and the area start address (lowest 11 bits = 0) are specified, and the AAC area (a1), second AAC area (a2), and page area (b) are secured, and the remaining memory area becomes the arbitrary area (c). To facilitate the internal operation of the VDP circuit 52, the maximum address space of the AAC area is specified in units of 2048 bits, and the maximum address space of the page area is an integer multiple of the unit space of 4096 bits x 128 lines described above.

次に、このように確保された各領域(a1,a2)(b)(c) に必要個数のインデックス空間が設定される。なお、任意領域(c) を使用する場合、VDP回路52の内部動作を円滑化するため、二次元データを扱うインデックス空間の水平サイズHxは、256bitの倍数として、任意に設定可能である一方、その垂直サイズは固定値(例えば、2048ライン)となっている。 Next, the required number of index spaces are set in each of the areas (a1, a2), (b), and (c) thus secured. When using the arbitrary area (c), in order to facilitate the internal operation of the VDP circuit 52, the horizontal size Hx of the index space that handles two-dimensional data can be arbitrarily set as a multiple of 256 bits, while its vertical size is a fixed value (for example, 2048 lines).

何れにしても、第一と第二のAAC領域(a1,a2) は、VDP回路52によって、インデックス空間とインデックス番号が自動的に付与されるので、例えば、テクスチャ設定系コマンドのSETINDEXコマンドによって、デコード先をAAC領域(a) に指定すれば、CGROM55からCGデータを読み出すTXLOAD(テクスチャロード)コマンドでは、CGROM55のSourceアドレスと、展開(デコード)後の水平・垂直サイズなどを指定するだけで足りることになる。そこで、本実施例では、予告演出時などに一時的に出現するキャラクタなどの静止画(テクスチャ)や、Iストリーム動画については、そのデコード先をAAC領域(a) にしている。 In any case, the first and second AAC areas (a1, a2) are automatically assigned index spaces and index numbers by the VDP circuit 52. For example, if the decoding destination is specified as AAC area (a) by the SETINDEX command, which is a texture setting command, then the TXLOAD (texture load) command that reads CG data from CGROM 55 only needs to specify the source address of CGROM 55 and the horizontal and vertical size after expansion (decoding). Therefore, in this embodiment, the decoding destination for still images (textures) such as characters that appear temporarily during preview performances, and I-stream video, is set to AAC area (a).

このAAC領域(a) は、いずれも、メモリキャッシュ機能が付与されているので、例えば、CGROM55の同一のテクスチャを複数回、AAC領域(a) に読み出すような場合には、二度目以降は、AAC領域(a) にキャッシュされているデコードデータが活用可能となり、余分なREADアクセスとデコード処理が抑制可能となる。もっとも、AAC領域(a) を使い切った場合には、古いデータが自動的に破壊されるので、本実施例では、AAC領域(a) を使用する場合、原則として第一AAC領域(a1)を使用することとし、繰り返し使用する特定のテクスチャだけを第二AAC領域(a2)に取得するようにしている。 Since each of these AAC areas (a) has a memory cache function, for example, if the same texture from CGROM 55 is read into AAC area (a) multiple times, the decoded data cached in AAC area (a) can be used from the second time onwards, making it possible to suppress unnecessary read accesses and decode processes. However, since old data is automatically destroyed when AAC area (a) is used up, in this embodiment, when using AAC area (a), the first AAC area (a1) is used as a general rule, and only specific textures that are used repeatedly are acquired in the second AAC area (a2).

繰り返し使用するテクスチャとして、例えば、所定の予告演出時に繰り返し出現するキャラクタや、背景画面を静止画で構築する場合の背景画などを例示することができる。このような場合、テクスチャ設定系コマンドのSETINDEXコマンドによって、デコード先を第二AAC領域(a2)に設定し、TXLOADコマンドによって、キャラクタや背景画などのテクスチャを第二AAC領域(a2)にデコードした後は、第二AAC領域(a2)を使用しないことで、デコード結果を保護する。 Examples of textures that are used repeatedly include characters that appear repeatedly during a specified preview performance, and background images when the background screen is constructed with still images. In such cases, the SETINDEX command, which is a texture setting command, sets the decoding destination to the second AAC area (a2), and after the TXLOAD command decodes the texture of the characters, background images, etc. into the second AAC area (a2), the second AAC area (a2) is not used to protect the decoded results.

そして、その後、SETINDEXコマンドによって、デコード先を第二AAC領域(a2)に指定した上で、取得済みのテクスチャを再取得する同一のTXLOADコマンドを実行させると、取得済みのテクスチャがキャッシュヒットするので、CGROM55へのREADアクセスと、デコード処理に要する時間を削除することができる。後述するように、このようなキャッシュヒット機能は、プリロード領域に先読みされたプリロードデータでも発揮されるが、プリロード領域でキャッシュヒットするプリロードデータは、デコード前の圧縮データであるのに対して、AAC領域でキャッシュヒットするのはデコード後の展開データである点に意義がある。 Then, after that, if the SETINDEX command is used to specify the second AAC area (a2) as the decoding destination and the same TXLOAD command is executed to reacquire the acquired texture, the acquired texture will be a cache hit, so it is possible to eliminate the need for a READ access to the CGROM 55 and the time required for the decoding process. As will be described later, this cache hit function is also exhibited by preload data pre-read into the preload area, but what is significant is that the preload data that hits the cache in the preload area is compressed data before decoding, whereas the data that hits the cache in the AAC area is expanded data after decoding.

ところで、テクスチャ(texture )とは、一般に、物の表面の質感・手触りなどを指す概念であるが、本明細書では、静止画を構成するスプライト画像データや、動画一フレームを構成する画像データや、三角形や四角形などの描画プリミティブ(primitive )に貼り付ける画像データだけでなく、デコード後の画像データも含む概念として使用している。そして、内蔵VRAM71の内部で、画像データをコピーする(以下、便宜上、移動と称する)場合には、テクスチャ設定系コマンドのSETINDEXコマンドによって、移動元の画像データをテクスチャとして設定した上で、SPRITEコマンドを実行することになる。 The term "texture" generally refers to the feel and texture of an object's surface, but in this specification it is used to include not only sprite image data that makes up a still image, image data that makes up one frame of a video, and image data pasted onto drawing primitives such as triangles and rectangles, but also image data after decoding. When copying image data within the built-in VRAM 71 (hereafter referred to as moving for convenience), the source image data is set as the texture using the SETINDEX texture setting command, and then the SPRITE command is executed.

なお、SPRITEコマンドの実行により、移動元のSource画像データが、形式上は、図11(c)に示す仮想描画空間に描画されるが、表示装置に実際に描画される仮想描画空間内の描画領域と、フレームバッファとなるインデックス空間との対応関係を、予め環境設定コマンド(SETDAVR ,SETDAVF )や、テクスチャ設定系コマンド(SETINDEX)によって設定しておけば、例えば、SPRITEコマンドによる仮想描画空間への描画により、所定のインデックス空間(フレームバッファ)には、移動元のSource画像データが描画されることになる(図11(c)参照)。 When the SPRITE command is executed, the source Source image data is technically drawn in the virtual drawing space shown in Figure 11 (c); however, if the correspondence between the drawing area in the virtual drawing space that is actually drawn on the display device and the index space that serves as the frame buffer has been set in advance using environment setting commands (SETDAVR, SETDAVF) or texture setting commands (SETINDEX), then, for example, drawing in the virtual drawing space using the SPRITE command will result in the source Source image data being drawn in a specified index space (frame buffer) (see Figure 11 (c)).

何れにしても、本実施例では、内蔵VRAM71が、AAC領域(a1,a2) とページ領域(b) と任意領域(c) に大別され、各々に、適当数のインデックス空間を確保することができ、各インデックス空間は、各領域(a)(b)(c) ごとに独立のインデックス番号によって特定される。インデックス番号は、例えば、1バイト長であり、(内部回路によって自動付与されるAAC領域(a) を除いた)ページ領域(b) と任意領域(c) については、0~255の範囲で演出制御CPU63が、インデックス番号を自由に付与することができる。 In any case, in this embodiment, the built-in VRAM 71 is roughly divided into an AAC area (a1, a2), a page area (b), and an arbitrary area (c), and an appropriate number of index spaces can be secured for each area, and each index space is identified by an independent index number for each area (a), (b), and (c). The index number is, for example, 1 byte long, and for the page area (b) and arbitrary area (c) (excluding the AAC area (a) which is automatically assigned by the internal circuitry), the performance control CPU 63 can freely assign index numbers in the range of 0 to 255.

そこで、本実施例では、図11(a)に示す通り、表示装置DS1用として、任意領域(c) に、一対のフレームバッファFBaを確保して、ダブルバッファ構造の双方に、インデックス番号255,254を付与している。すなわち、メイン表示装置DS1用のフレームバッファFBaとして、トグル的に切り換えて使用されるインデックス空間255と、インデックス空間254を確保している。特に限定されないが、このインデックス空間255,254は、表示装置DS1の横方向ピクセル数に対応して、水平サイズ1280としている。なお、各ピクセルは、ARGB情報32bitで特定されるので、水平サイズ1280は、32×1280=40960bit(256bitの倍数)を意味する。 In this embodiment, as shown in FIG. 11(a), a pair of frame buffers FBa are reserved in the arbitrary area (c) for the display device DS1, and index numbers 255 and 254 are assigned to both of the double buffer structure. That is, index space 255 and index space 254 are reserved as frame buffer FBa for the main display device DS1, which are switched in a toggle manner. Although not limited to this, these index spaces 255 and 254 have a horizontal size of 1280, corresponding to the number of horizontal pixels of the display device DS1. Note that each pixel is specified by 32 bits of ARGB information, so the horizontal size 1280 means 32 x 1280 = 40960 bits (a multiple of 256 bits).

また、表示装置DS2用として、任意領域(c) に、別の一対のフレームバッファFBbを確保して、ダブルバッファ構造の双方にインデックス番号252,251を付与している。すなわち、サブ表示装置DS2用のフレームバッファFBbとして、インデックス空間252と、インデックス空間251を確保している。このインデックス空間252,251は、表示装置DS2の横方向ピクセル数に対応して、水平サイズ480としている。この場合も、各ピクセルは、ARGB情報32bitで特定されるので、水平サイズ480は、32×480=15360bit(256bitの倍数)を意味する。 In addition, another pair of frame buffers FBb are reserved in the arbitrary area (c) for the display device DS2, and index numbers 252, 251 are assigned to both sides of the double buffer structure. That is, index space 252 and index space 251 are reserved as frame buffer FBb for the sub-display device DS2. These index spaces 252, 251 have a horizontal size of 480, corresponding to the number of horizontal pixels of the display device DS2. In this case, each pixel is specified by 32 bits of ARGB information, so the horizontal size of 480 means 32 x 480 = 15,360 bits (a multiple of 256 bits).

なお、フレームバッファFBa,FBbを任意領域(c) に確保するのは、任意領域(c) には、32バイト(=256bit=8ピクセル分)の倍数として、任意の水平サイズに設定することができ、上記のように、表示装置DS1,DS2の水平ピクセル数に一致させれば、確保領域に無駄が生じないからである。一方、ページ領域(b) には、128ピクセル×128ラインの単位空間の整数倍の水平/垂直サイズしか設定できない。 The reason why frame buffers FBa and FBb are reserved in arbitrary area (c) is that arbitrary area (c) can be set to any horizontal size as a multiple of 32 bytes (= 256 bits = 8 pixels), and as mentioned above, if it is set to match the number of horizontal pixels of display devices DS1 and DS2, no waste will occur in the reserved area. On the other hand, page area (b) can only be set to horizontal/vertical sizes that are integer multiples of the unit space of 128 pixels x 128 lines.

但し、任意領域(c)に確保される二次元のインデックス空間は、その垂直サイズが固定値(例えば、2048ライン)となっている。そのため、フレームバッファFBaにおいて、水平サイズ1280×垂直サイズ1024の領域だけが、メイン表示装置DS1にとって有効データ領域となる。この点は、サブ表示装置DS2についても同様であり、フレームバッファFBbにおいて、水平サイズ480×垂直サイズ800の領域だけが、サブ表示装置DS2にとって有効データ領域となる(図11(c),図20(e)参照)。 However, the two-dimensional index space secured in the arbitrary area (c) has a fixed vertical size (e.g., 2048 lines). Therefore, in the frame buffer FBa, only the area with a horizontal size of 1280 x vertical size of 1024 becomes the valid data area for the main display device DS1. The same is true for the sub-display device DS2, and in the frame buffer FBb, only the area with a horizontal size of 480 x vertical size of 800 becomes the valid data area for the sub-display device DS2 (see Figures 11(c) and 20(e)).

上記の点は更に後述するが、何れにしても、フレームバッファFBa,FBbは、描画回路76にとっての描画領域として、各ダブルバッファ(255/254 ,252/251 )が交互に使用され、また、表示回路74A,74Bにとっての表示領域として、各ダブルバッファ(255/254 ,252/251 )が交互に使用される。なお、本実施例では、表示ピクセルの深度情報を記憶するZバッファを使用しないので欠番(253)が生じるが、Zバッファを使用する場合には、任意領域(c) におけるインデックス番号253,250のインデックス空間253,250が、表示装置DS1と表示装置DS2のためのZバッファとなる。 The above points will be discussed further below, but in any case, the frame buffers FBa and FBb are used alternately as the drawing area for the drawing circuit 76, with each double buffer (255/254, 252/251), and are used alternately as the display area for the display circuits 74A and 74B, with each double buffer (255/254, 252/251). In this embodiment, a missing number (253) occurs because a Z buffer that stores depth information of the display pixels is not used, but if a Z buffer is used, the index spaces 253 and 250 of index numbers 253 and 250 in the arbitrary area (c) become the Z buffers for the display devices DS1 and DS2.

また、本実施例では、フレームバッファFBa,FBbが確保された任意領域(c) に、追加のインデックス空間(メモリ領域)を確保する場合には、0から始まるインデック番号を付与するようにしている。何ら限定されないが、本実施例では、キャラクタやその他の静止画で構成された演出画像を、必要に応じて、適宜な回転姿勢で表示画面の一部に出現させる予告演出用の作業領域として、任意領域(c) に、インデックス空間(0)を確保している。 In addition, in this embodiment, when an additional index space (memory area) is reserved in the arbitrary area (c) where frame buffers FBa and FBb are reserved, an index number starting from 0 is assigned. Although not limited in any way, in this embodiment, index space (0) is reserved in the arbitrary area (c) as a working area for preview effects in which performance images composed of characters and other still images are made to appear in a part of the display screen in an appropriate rotational position as necessary.

但し、作業領域の使用は必須ではなく、また、任意領域(c) に代えて、ページ領域(b) に作業領域としてのインデックス空間を確保しても良い。ページ領域(b) を使用すれば、水平サイズ128(=4096bit)×垂直サイズ128の正方形状の単位空間の倍数寸法のインデックス空間を確保できるので、小型の演出画像を扱うには好適である。 However, the use of a work area is not essential, and index space may be reserved as a work area in the page area (b) instead of the arbitrary area (c). If the page area (b) is used, an index space with dimensions that are a multiple of a square unit space of horizontal size 128 (= 4096 bits) x vertical size 128 can be reserved, making it ideal for handling small-sized performance images.

ところで、本実施例では、背景画も含め動画で構成されており、画像演出は、ほぼ動画のみで実現されている。特に、変動演出時には、多数(通常10個以上)の動画が同時に描画されている。これらの動画は、何れも、一連の動画フレームとして、圧縮状態でCGROM55に格納されているが、Iフレームのみで構成されたIストリーム動画と、IフレームとPフレームとで構成されたIPストリーム動画とに区分される。ここで、Iフレーム(Intra coded frame )とは、他画面とは独立して、入力画像をそのまま圧縮するフレームを意味する。一方、Pフレーム(Predictive coded frame)とは、前方向予測符号化を行うフレームを意味し、時間的に過去に位置するIフレームまたはPフレームが必要となる。 In this embodiment, the background images are also composed of moving images, and the image presentation is realized almost entirely with moving images. In particular, during a moving presentation, a large number of moving images (usually 10 or more) are simultaneously drawn. All of these moving images are stored in the CGROM 55 in a compressed state as a series of moving image frames, but are classified as I-stream moving images consisting of I-frames only, and IP-stream moving images consisting of I-frames and P-frames. Here, an I-frame (Intra coded frame) refers to a frame in which the input image is compressed as is, independent of other screens. On the other hand, a P-frame (Predictive coded frame) refers to a frame that performs forward predictive coding, and requires an I-frame or P-frame located in the past in time.

そこで、本実施例では、IPストリーム動画については、旧データの破壊が懸念されるAAC領域(a) ではなく、ページ領域(b) に展開している。すなわち、水平サイズ128×垂直サイズ128の倍数寸法のインデックス空間を確保可能なページ領域(b) に、多数のインデックス空間(IDX~IDX)を確保して、一連の動画フレームは、各動画MViに対応する、常に同一のインデックス空間IDXiを使用してデコードするようにしている。すなわち、動画MV1はインデックス空間IDX1に展開され、動画MV2はインデックス空間IDX2に展開され、以下同様に、動画MViはインデックス空間IDXiに展開されるよう構成されている。 Therefore, in this embodiment, IP stream video is expanded in the page area (b) rather than in the AAC area (a) where there is a concern that old data may be destroyed. That is, a number of index spaces ( IDX0 to IDXN ) are secured in the page area (b) where an index space of a multiple of horizontal size 128 x vertical size 128 can be secured, and a series of video frames are decoded using the same index space IDXi corresponding to each video MVi at all times. That is, video MV1 is expanded in the index space IDX1, video MV2 is expanded in the index space IDX2, and so on.

動画MViについて、更に具体的に説明すると、SETINDEXコマンドによって、「IPストリーム動画MViのデコード先は、ページ領域(b) におけるインデックス番号iのインデックス空間(i)である」と予め指定した上で、IPストリーム動画MViの動画一フレームを取得するTXLOADコマンドを実行させている。 To explain the video MVi more specifically, the SETINDEX command specifies in advance that the decode destination of the IP stream video MVi is the index space (i) of index number i in the page area (b), and then the TXLOAD command is executed to obtain one video frame of the IP stream video MVi.

すると、TXLOADコマンドが特定するCGROM55上の動画一フレーム(一連の動画フレームの何れか)が、先ず、AAC領域(a) に取得され、その後、自動的に起動するGDEC(グラフィックスデコーダ)75によって、ページ領域(b) のインデックス空間(i)に、取得した動画一フレームがデコードされて展開されることになる。 Then, one frame of video (any of a series of video frames) on CGROM 55 specified by the TXLOAD command is first retrieved into the AAC area (a), and then the GDEC (graphics decoder) 75, which starts automatically, decodes and expands the retrieved one frame of video into the index space (i) of the page area (b).

一方、本実施例では、Iストリーム動画については、静止画と同一扱いとしており、SETINDEXコマンドによって、「Iストリーム動画MVjのデコード先は、第一AAC領域(a1)である」と指定して、TXLOADコマンドを実行させる。その結果、動画フレームは第一AAC領域(a1)に取得され、その後、自動的に起動するGDEC75が、第一ACC領域(a1)にデコードデータを展開している。先に説明した通り、AAC領域(a) のインデックス空間は、自動的に生成されるので、インデックス番号を指定する必要はない。なお、インデックス空間に必要となる展開ボリューム、つまり、デコードされたテクスチャ(動画フレーム)の水平サイズと垂直サイズは、展開先がAAC領域(a) か、ページ領域(b) かに拘らず、TXLOADコマンドによって特定される。 On the other hand, in this embodiment, I stream video is treated the same as a still image, and the SETINDEX command is used to specify that "the decoded destination of I stream video MVj is the first AAC area (a1)", and the TXLOAD command is executed. As a result, video frames are acquired in the first AAC area (a1), and then the GDEC 75, which starts automatically, expands the decoded data in the first ACC area (a1). As explained above, the index space for the AAC area (a) is generated automatically, so there is no need to specify an index number. The expansion volume required for the index space, that is, the horizontal and vertical sizes of the decoded texture (video frame), are specified by the TXLOAD command, regardless of whether the expansion destination is the AAC area (a) or the page area (b).

ところで、IPストリーム動画MViやIストリーム動画MVjは、一般にN枚の動画フレーム(IフレームやPフレーム)で構成されている。そのため、TXLOADコマンドでは、例えば、k枚目(1≦k≦N)の動画フレームが記憶されているCGROM55のSourceアドレスと、展開後の水平・垂直サイズなどを指定することになる。何ら限定されないが、静止画を殆ど使用しない実施例では、内蔵VRAM71のアドレス空間48Mバイトの大部分(30Mバイト程度)をページ領域(b) に割り当てている。そして、静止画を殆ど使用しない実施例では、AAC領域として、第一AAC領域(a1)だけを確保し、第二AAC領域(a2)を確保せず、また、前記したAAC領域のキャッシュヒット機能も活用しない。 Meanwhile, IP stream video MVi and I stream video MVj are generally composed of N video frames (I frames and P frames). Therefore, the TXLOAD command specifies, for example, the source address of the CGROM 55 where the kth (1≦k≦N) video frame is stored, and the horizontal and vertical sizes after expansion. Although not limited in any way, in an embodiment where still images are hardly used, most of the 48 MB address space of the built-in VRAM 71 (about 30 MB) is assigned to the page area (b). And, in an embodiment where still images are hardly used, only the first AAC area (a1) is reserved as the AAC area, and the second AAC area (a2) is not reserved, and the cache hit function of the AAC area described above is not utilized.

なお、圧縮動画データのデコード処理を高速化するため、専用のGDEC(グラフィックスデコーダ)回路を設けることも考えられる。そして、専用のGDEC回路をVDP回路52に内蔵させれば、N枚の圧縮動画フレームで構成された圧縮動画データのデコード処理において、動画圧縮データの先頭アドレスをGDEC回路に指示すれば足りるので、N枚の圧縮動画フレームについて、1枚ごとに先頭アドレスを指定する必要がなくなる。 In order to speed up the decoding process of compressed video data, it is also possible to provide a dedicated GDEC (graphics decoder) circuit. If a dedicated GDEC circuit is built into the VDP circuit 52, it will be sufficient to specify the start address of the video compression data to the GDEC circuit in the decoding process of compressed video data consisting of N compressed video frames, so there will be no need to specify the start address for each of the N compressed video frames.

しかし、このような専用のGDEC回路を、圧縮アルゴリズム毎に複数個内蔵させるのでは、VDP回路52の内部構成が更に複雑化する。そこで、本実施例では、ソフトウェアGDECとし、IPストリーム動画、Iストリーム動画、静止画、その他α値などのデータについて、各圧縮アルゴリズムに対応するソフトウェア処理によってデコード処理を実現している。なお、ハードウェア処理とソフトウェア処理の処理時間差は、あまり問題にならず、処理時間が問題になるのは、もっぱら、CGROM55からのアクセス(READ)タイムである。 However, if multiple dedicated GDEC circuits like this are built in for each compression algorithm, the internal configuration of the VDP circuit 52 becomes even more complicated. Therefore, in this embodiment, a software GDEC is used, and decoding of data such as IP stream video, I stream video, still images, and other alpha values is achieved by software processing corresponding to each compression algorithm. Note that the difference in processing time between hardware processing and software processing is not much of a problem; the processing time that is an issue is mainly the access (READ) time from the CGROM 55.

続いて、図7(a)に戻って説明を続けると、データ転送回路72は、VDP回路内部のリソース(記憶媒体)と外部記憶媒体を、転送元ポート又は転送先ポートとして、これらの間でDMA(Direct Memory Access)的にデータ転送動作を実行する回路である。図12は、このデータ転送回路72の内部構成を、関連する回路構成と共に記載したブロック図である。 Returning to FIG. 7(a), the data transfer circuit 72 is a circuit that performs data transfer operations between a resource (storage medium) inside the VDP circuit and an external storage medium as a source port and a destination port in a DMA (Direct Memory Access) manner. FIG. 12 is a block diagram showing the internal configuration of the data transfer circuit 72 together with the related circuit configuration.

図12に示す通り、データ転送回路72は、ルータ機能を有する統合接続バスICMを経由して、CGROM55、DRAM54、及び、内蔵VRAM71とデータを送受信するよう構成されている。なお、CGROM55とDRAM54は、CGバスIF部82や、DMAMIF部83を経由してアクセスされる。 As shown in FIG. 12, the data transfer circuit 72 is configured to transmit and receive data to and from the CGROM 55, DRAM 54, and built-in VRAM 71 via an integrated connection bus ICM with a router function. The CGROM 55 and DRAM 54 are accessed via the CG bus IF unit 82 and the DMAMIF unit 83.

一方、CPU回路51は、データ転送回路72に内蔵された転送ポートレジスタTR_PORT を経由して、描画回路76やプリローダ73にディスプレイリストDLを発行している。なお、CPU回路51とデータ転送回路72は、双方向に接続されているが、ディスプレイリストDLの発行時には、転送ポートレジスタTR_PORT は、ディスプレイリストDLを構成する一単位のデータを受け入れるデータ書き込みポートとして機能する。なお、転送ポートレジスタTR_PORT の書込み単位(一単位データ長)は、CPUバス制御部72dのFIFO構造に対応して32bitとなる。 Meanwhile, the CPU circuit 51 issues a display list DL to the drawing circuit 76 and preloader 73 via the transfer port register TR_PORT built into the data transfer circuit 72. The CPU circuit 51 and the data transfer circuit 72 are connected bidirectionally, and when a display list DL is issued, the transfer port register TR_PORT functions as a data write port that accepts one unit of data that constitutes the display list DL. The write unit (one unit data length) of the transfer port register TR_PORT is 32 bits, corresponding to the FIFO structure of the CPU bus control unit 72d.

図示の通り、演出制御CPU63は、CPUIF部81を経由して、転送ポートレジスタTR_PORT をWRITE アクセスできる一方、DMAC回路60を活用する場合には、DMAC回路60が、転送ポートレジスタTR_PORT を直接的にWRITE アクセスすることになる。そして、転送ポートレジスタTR_PORT に書込まれた一連の指示コマンド(つまり、ディスプレイリストDLを構成する指示コマンド列)は、32bit単位で、FIFO構造(32bit×130段)のFIFOバッファを内蔵したCPUバス制御部72dに、自動蓄積されるよう構成されている。 As shown in the figure, the performance control CPU 63 can access the transfer port register TR_PORT for WRITE via the CPUIF unit 81, but when the DMAC circuit 60 is used, the DMAC circuit 60 directly accesses the transfer port register TR_PORT for WRITE. The series of instruction commands written to the transfer port register TR_PORT (i.e., the sequence of instruction commands that make up the display list DL) are automatically stored in 32-bit units in the CPU bus control unit 72d, which has a built-in FIFO buffer with a FIFO structure (32 bits x 130 stages).

また、このデータ転送回路72は、3チャンネルChA~ChCの伝送経路で、データの送受信動作を実行しており、FIFO構造(64bit×N段)のFIFOバッファを有するChA制御回路72a(N=130段)と、ChB制御回路72b(N=1026段)と、ChC制御回路72c(N=130段)と、を有している。 The data transfer circuit 72 also performs data transmission and reception operations on the transmission paths of three channels ChA to ChC, and has a ChA control circuit 72a (N=130 stages) with a FIFO buffer of a FIFO structure (64 bits x N stages), a ChB control circuit 72b (N=1026 stages), and a ChC control circuit 72c (N=130 stages).

そして、CPUバス制御部72dに蓄積された指示コマンド列(ディスプレイリストDL)は、演出制御CPU63によるデータ転送レジスタRGij(各種制御レジスタ70の一種)への設定値に基づき、描画回路76か、又はプリローダ73に転送される。矢印で示す通り、ディスプレイリストDLは、CPUバス制御部72dから、ChB制御回路72bのFIFOバッファを経由して描画回路76に転送され、ChC制御回路72cのFIFOバッファを経由してプリローダ73に転送されるよう構成されている。 Then, the instruction command sequence (display list DL) stored in the CPU bus control unit 72d is transferred to the drawing circuit 76 or the preloader 73 based on the setting value of the data transfer register RGij (one type of various control registers 70) by the performance control CPU 63. As shown by the arrows, the display list DL is configured to be transferred from the CPU bus control unit 72d to the drawing circuit 76 via the FIFO buffer of the ChB control circuit 72b, and then to the preloader 73 via the FIFO buffer of the ChC control circuit 72c.

なお、本実施例では、ChB制御回路72bと、ChC制御回路72bは、ディスプレイリストDLの転送動作に特化されており、CPUバス制御部72dのFIFOバッファに蓄積されたデータは、ChB制御回路72bか、ChC制御回路72cのFIFOバッファを経由して、各々、ディスプレイリストDLの一部として、描画回路76かプリローダ73のディスプレイリストアナライザ(Display List Analyzer )に転送される。 In this embodiment, the ChB control circuit 72b and the ChC control circuit 72b are specialized for the transfer operation of the display list DL, and the data stored in the FIFO buffer of the CPU bus control unit 72d is transferred as part of the display list DL to the drawing circuit 76 or the display list analyzer of the preloader 73 via the FIFO buffer of the ChB control circuit 72b or the ChC control circuit 72c, respectively.

そして、描画回路76は、転送されたディスプレイリストDLに基づいた描画動作を開始する。一方、プリローダ73は、転送されたディスプレイリストDLに基づき、必要なプリロード動作を実行する。プリロード動作によってCGROM55のCGデータが、DRAM54に確保されたプリロード領域に先読みされ、TXLOADコマンドなどに関して、テクスチャのSourceアドレスを変更したディスプレイリストDL(以下、書換えリストDL’という)が、DRAM54に確保されたDLバッファ領域BUF’に保存される。 Then, the drawing circuit 76 starts drawing operations based on the transferred display list DL. Meanwhile, the preloader 73 executes the necessary preload operations based on the transferred display list DL. The preload operation causes the CG data in the CGROM 55 to be pre-read into a preload area secured in the DRAM 54, and the display list DL with the texture source address changed for the TXLOAD command or the like (hereinafter referred to as the rewrite list DL') is saved in the DL buffer area BUF' secured in the DRAM 54.

一方、CGROM55、DRAM54、及び、内蔵VRAM71などの記憶媒体の間のデータ転送には、ChA制御回路72aと、接続バスアクセス調停回路72eとが機能する。また、インデックステーブルIDXTBLのアドレス情報が必要になる内蔵VRAM71のアクセス時には、IDXTBLアクセス調停回路72fが機能する。具体的に確認すると、ChA制御回路72aは、例えば、(a)CGROM55の圧縮データを内蔵VRAM71に転送する場合や、(b)CGROM55の圧縮データをプリロード(先読み)して外付けDRAM54に転送する場合や、(c)プリロード領域の先読みデータを、内蔵VRAM71に転送する場合に機能する。 On the other hand, the ChA control circuit 72a and the connection bus access arbitration circuit 72e function to transfer data between storage media such as the CGROM 55, the DRAM 54, and the built-in VRAM 71. The IDXTBL access arbitration circuit 72f functions when accessing the built-in VRAM 71, which requires address information from the index table IDXTBL. Specifically, the ChA control circuit 72a functions, for example, when (a) compressed data from the CGROM 55 is transferred to the built-in VRAM 71, (b) compressed data from the CGROM 55 is preloaded (read ahead) and transferred to the external DRAM 54, or (c) read-ahead data from the preload area is transferred to the built-in VRAM 71.

ここで、ChA制御回路72aは、ChB制御回路72bやChC制御回路72cと並行して動作可能に構成されており、上記した(a)~(c)の動作は、ディスプレイリストDLの発行動作(図20のST8,図25のPT11)や、書換えリストDL’の転送動作(図25のPT10)と並行して実行可能となる。また、ChB制御回路72bとChC制御回路72cも、同時実行可能であり、例えば、ChB制御回路72bが機能する図25のステップPT10の処理と、ChC制御回路72cが機能するステップPT11の処理は並行して実行可能である。但し、転送ポートレジスタTR_PORT は単一であるので、何れか一方(72b/72c)が転送ポートレジスタTR_PORT を使用しているタイミングでは、他方(72c/72b)は、転送ポートレジスタTR_PORT をアクセスすることはできない。 The ChA control circuit 72a is configured to be able to operate in parallel with the ChB control circuit 72b and the ChC control circuit 72c, and the above operations (a) to (c) can be executed in parallel with the issuance operation of the display list DL (ST8 in FIG. 20, PT11 in FIG. 25) and the transfer operation of the rewrite list DL' (PT10 in FIG. 25). The ChB control circuit 72b and the ChC control circuit 72c can also be executed simultaneously. For example, the process of step PT10 in FIG. 25 in which the ChB control circuit 72b functions and the process of step PT11 in which the ChC control circuit 72c functions can be executed in parallel. However, since there is only one transfer port register TR_PORT, when one of them (72b/72c) is using the transfer port register TR_PORT, the other (72c/72b) cannot access the transfer port register TR_PORT.

なお、ChA制御回路72aの動作時に、接続バスアクセス調停回路72eは、統合接続バスICMを経由する各記憶素子(CGROM55、DRAM54)とのデータ伝送を調停(Arbitration )している。一方、IDXTBLアクセス調停回路72fは、インデックステーブルIDXTBLに基づいてChA制御回路72aを制御することで、内蔵VRAM71とのデータ交信を調停している。なお、プリローダ73が機能する実施例の場合、DRAM54のDLバッファ領域BUF’に保存された書換えリストDL’は、接続バスアクセス調停回路72eと、ChB制御回路72bを経由して描画回路76に転送されることになる(図26(b)参照)。 When the ChA control circuit 72a is in operation, the connection bus access arbitration circuit 72e arbitrates data transmission with each memory element (CGROM 55, DRAM 54) via the integrated connection bus ICM. On the other hand, the IDXTBL access arbitration circuit 72f arbitrates data communication with the built-in VRAM 71 by controlling the ChA control circuit 72a based on the index table IDXTBL. In the embodiment in which the preloader 73 is functioning, the rewrite list DL' stored in the DL buffer area BUF' of the DRAM 54 is transferred to the drawing circuit 76 via the connection bus access arbitration circuit 72e and the ChB control circuit 72b (see FIG. 26(b)).

上記の通り、本実施例のデータ転送回路72は、各種の記憶リソース(Resource)から任意に選択されたデータ転送元と、各種の記憶リソース(Resource)から任意に選択されたデータ転送先との間で、高速のデータ転送を実現している。図12から確認される通り、データ転送回路72が機能する記憶リソースには、内蔵VRAM71だけでなく、CPUIF部56、CGバスIF部82、DRAMIF部83を経由する外部デバイスも含まれる。 As described above, the data transfer circuit 72 of this embodiment realizes high-speed data transfer between a data source arbitrarily selected from various storage resources (Resources) and a data destination arbitrarily selected from various storage resources (Resources). As can be seen from FIG. 12, the storage resources on which the data transfer circuit 72 functions include not only the built-in VRAM 71, but also external devices via the CPUIF unit 56, CG bus IF unit 82, and DRAMIF unit 83.

そして、CGROM55から1回に取得すべきデータ量(メモリシーケンシャルREAD)のように、ChA制御回路72aが機能する外部デバイスとのデータ転送量は、ChB制御回路72bやChC制御回路72cが機能するディスプレイリストDLの場合と比較して膨大であり、互いに、データ転送量が大きく相違する。 The amount of data transferred between the external device and the ChA control circuit 72a is huge compared to the amount of data transferred between the ChB control circuit 72b and the ChC control circuit 72c, such as the amount of data to be acquired from the CGROM 55 at one time (memory sequential READ), and the amounts of data transferred are significantly different.

ここで、これら各種のデータ転送について、単位データ量や総転送データ量を、細かく設定可能に構成することも考えらえるが、これでは、VDP内部の制御動作が煩雑化し、円滑な転送動作が阻害される。そこで、本実施例では、データ転送の最低データ量Dminを一意に規定すると共に、総転送データ量を、最低データ量DTminの整数倍となるよう制限することで、高速で円滑なデータ転送動作を実現している。特に限定されないが、実施例のデータ転送回路72では、最低データ量Dmin(単位データ量)を、256バイトとし、総転送データ量を、この整数倍に制限することにしている。 It is conceivable to configure these various types of data transfer so that the unit data amount and total data transfer amount can be set in detail, but this would complicate the control operations within the VDP and hinder smooth transfer operations. Therefore, in this embodiment, a minimum data amount Dmin for data transfer is uniquely defined, and the total data transfer amount is limited to an integer multiple of the minimum data amount DTmin, thereby achieving high-speed, smooth data transfer operations. Although not particularly limited, in the data transfer circuit 72 of the embodiment, the minimum data amount Dmin (unit data amount) is set to 256 bytes, and the total data transfer amount is limited to an integer multiple of this amount.

したがって、32bit毎にCPUバス制御部72dのFIFOバッファに蓄積されたディスプレイリストDLの指示コマンド列は、その総量が最低データ量Dminに達したタイミングで、ChB制御回路72bやChC制御回路72bに転送され、各々のFIFOバッファに蓄積されることになる。 Therefore, the display list DL instruction command sequence stored in the FIFO buffer of the CPU bus control unit 72d for each 32 bits is transferred to the ChB control circuit 72b and the ChC control circuit 72b when the total amount reaches the minimum data amount Dmin, and is stored in each FIFO buffer.

ディスプレイリストDLは、一連の指示コマンドで構成されているが、本実施例では、転送ポートレジスタTR_PORT の書込み単位(32bit)に対応して、ディスプレイリストDLは、コマンド長が、32bitの整数N倍(N>0)の指示コマンドのみで構成されている。したがって、データ転送回路72を経由して、ディスプレイリストDLの指示コマンドを受ける描画回路76やプリローダ73は、素早く円滑にコマンド解析処理(DL analyze)を開始することができる。なお、32bitの整数N倍のコマンド長は、その全てが有意ビットとは限らず、無意ビット(Don't care bit)も含んで、32bitの整数N倍という意味である。 The display list DL is composed of a series of instruction commands, but in this embodiment, in accordance with the write unit (32 bits) of the transfer port register TR_PORT, the display list DL is composed only of instruction commands whose command length is an integer multiple of 32 bits (N>0). Therefore, the drawing circuit 76 and preloader 73 that receive the instruction commands of the display list DL via the data transfer circuit 72 can quickly and smoothly start the command analysis process (DL analyze). Note that the command length of an integer multiple of 32 bits does not necessarily mean that all bits are significant, but also includes don't care bits, meaning that it is an integer multiple of 32 bits.

次に、プリローダ73について説明する。先に概略説明した通り、プリローダ73は、データ転送回路72(ChC制御回路72b)から転送されたディスプレイリストDLを解釈して、TXLOADコマンドが参照しているCGROM55上のCGデータを、予め、DRAM54のプリロード領域に転送する回路である。また、プリローダ73は、このTXLOADコマンドに関し、CGデータの参照先を、転送後のアドレスに書換えた書換えリストDL’を、DRAM54のDLバッファBUF’に記憶する。なお、DLバッファBUF’や、プリロード領域は、CPUリセット後の初期処理時(図20のST3)に、予め確保されている。 Next, the preloader 73 will be described. As briefly explained above, the preloader 73 is a circuit that interprets the display list DL transferred from the data transfer circuit 72 (ChC control circuit 72b) and transfers the CG data in the CGROM 55 referenced by the TXLOAD command to the preload area of the DRAM 54 in advance. The preloader 73 also stores a rewrite list DL' in which the reference destination of the CG data for this TXLOAD command is rewritten to the address after transfer in the DL buffer BUF' of the DRAM 54. The DL buffer BUF' and the preload area are reserved in advance during the initial processing after the CPU is reset (ST3 in FIG. 20).

そして、書換えリストDL’は、描画回路76の描画動作の開始時に、データ転送回路72の接続バスアクセス調停回路72eや、ChB制御回路72bを経由して、描画回路76のディスプレイリストアナライザ(DL Analyzer )に転送される。そして、描画回路76は、書換えリストDL’に基づいて、描画動作を実行する。したがって、TXLOADコマンドなどに基づき、本来は、CGROM55から取得すべきCGデータが、プリロード領域に先読みされているプリロードデータとして、DRAM54のプリロード領域から取得される。この場合、プリロードデータは、上書き消去されない限り、繰り返し使用可能であり、プリロード領域にキャッシュヒットしたプリロードデータは、繰り返し再利用される。 Then, when the drawing operation of the drawing circuit 76 starts, the rewrite list DL' is transferred to the display list analyzer (DL Analyzer) of the drawing circuit 76 via the connection bus access arbitration circuit 72e of the data transfer circuit 72 and the ChB control circuit 72b. The drawing circuit 76 then executes the drawing operation based on the rewrite list DL'. Therefore, based on the TXLOAD command, etc., the CG data that should originally be obtained from the CGROM 55 is obtained from the preload area of the DRAM 54 as preload data that has been preloaded into the preload area. In this case, the preload data can be used repeatedly unless it is overwritten and erased, and preload data that hits the cache in the preload area is repeatedly reused.

本実施例では、十分な記憶容量を有する外付けDRAM54にプリロード領域を設定しているので、上記のキャッシュヒット機能が有効に機能する。また、外付けDRAM54の記憶容量が大きいので、例えば、複数フレーム分のCGデータを一気にプリロードする多重プリロードも可能である。すなわち、プリローダ73の動作期間に関し、CGデータの先読み動作を含んだ一連のプリロード動作の動作期間を、VDP回路52の間欠動作時の動作周期δの整数倍の範囲内で、適宜に設定することで多重プリロードが実現される。 In this embodiment, the preload area is set in the external DRAM 54, which has sufficient storage capacity, so the above-mentioned cache hit function works effectively. In addition, since the storage capacity of the external DRAM 54 is large, multiple preloading, for example, in which multiple frames of CG data are preloaded at once, is also possible. In other words, multiple preloading is realized by appropriately setting the operating period of the preloader 73, which is a series of preloading operations including the CG data prefetching operation, within the range of an integer multiple of the operating cycle δ of the VDP circuit 52 during intermittent operation.

但し、以下の説明では、便宜上、多重プリロードのない実施例について説明するので、実施例のプリローダ73は、一動作周期(δ)の間に、一フレーム分のプリロード動作を完了することにする。なお、図20に関し後述するように、本実施例では、VDP回路52の間欠動作時の動作周期δは、表示装置DS1の垂直同期信号の2倍周期である1/30秒である。 However, for the sake of convenience, the following description will be given of an embodiment without multiple preloading, so the preloader 73 of the embodiment will complete the preloading operation for one frame during one operation period (δ). As will be described later with reference to FIG. 20, in this embodiment, the operation period δ during intermittent operation of the VDP circuit 52 is 1/30 seconds, which is twice the period of the vertical synchronization signal of the display device DS1.

次に、描画回路76は、データ転送回路72を経由して転送されたディスプレイリストDLや書換えリストDL’の指示コマンド列を順番に解析して、グラフィックスデコーダ75やジオメトリエンジン77などと協働して、VRAM71に形成されたフレームバッファに、各表示装置DS1,DS2の一フレーム分の画像を描画する回路である。 Next, the drawing circuit 76 sequentially analyzes the instruction command sequence of the display list DL and the rewrite list DL' transferred via the data transfer circuit 72, and works with the graphics decoder 75 and the geometry engine 77 to draw one frame's worth of images for each display device DS1, DS2 in the frame buffer formed in the VRAM 71.

上記の通り、プリローダ73を機能させる実施例では、書換えリストDL’のCGデータの参照先は、CGROM55ではなく、DRAM54に設定されたプリロード領域である。そのため、描画回路76による描画の実行中に生じるCGデータへのシーケンシャルアクセスを迅速に実行することができ、動きの激しい高解像度の動画についても問題なく描画することができる。すなわち、本実施例によれば、CGROM55として、安価なSATAモジュールを活用しつつ、複雑高度な画像演出を実行することができる。 As described above, in an embodiment where the preloader 73 is activated, the CG data in the rewrite list DL' is referenced not to the CGROM 55 but to the preload area set in the DRAM 54. This allows for rapid sequential access to CG data that occurs while the drawing circuit 76 is drawing, and allows for fast-moving, high-resolution video to be drawn without any problems. In other words, according to this embodiment, complex and highly advanced image presentation can be achieved while utilizing an inexpensive SATA module as the CGROM 55.

ところで、プリローダ73を機能させるか否かに拘らず、ディスプレイリストDLや書換えリストDL’の転送時に、仮にデータ化けが発生しても、描画回路76は、これを検出することはできない。また、ノイズなどの影響で、描画回路76がフリーズして、内蔵VRAM71のREAD/WRITE アクセスが異常停止することも有り得る。そこで、本実施例では、描画回路76が不合理な指示コマンド(analyze 不能のビット並び)を検出した場合や、一定期間、内蔵VRAM71に対してREAD/WRITE アクセスがない場合には、描画異常割込みを発生させるよう構成されている(描画異常割込みが許可状態)。なお、この点は、図20(d)に関して後述する。 However, regardless of whether the preloader 73 is enabled or disabled, even if data corruption occurs during the transfer of the display list DL or rewrite list DL', the drawing circuit 76 cannot detect this. In addition, the drawing circuit 76 may freeze due to noise or other factors, causing READ/WRITE access to the built-in VRAM 71 to stop abnormally. Therefore, in this embodiment, if the drawing circuit 76 detects an irrational instruction command (a bit sequence that cannot be analyzed) or if there is no READ/WRITE access to the built-in VRAM 71 for a certain period of time, a drawing abnormality interrupt is generated (drawing abnormality interrupt is enabled). This point will be described later with reference to FIG. 20(d).

次に、図11に関して説明した通り、VRAM71の任意領域(c) に確保されたフレームバッファFBは、描画領域と読出領域に区分されたダブルバッファであり、2つの領域を、交互に用途を切り替えて使用する。また、本実施例では、2つの表示装置DS1,DS2が接続されているので、図11に示す通り、2区画のフレームバッファFBa/FBbが確保されている。したがって、描画回路76は、表示装置DS1用のフレームバッファFBaの描画領域(書込み領域)に、一フレーム分の画像データを描画すると共に、表示装置DS2用のフレームバッファFBaの描画領域(書込み領域)に、一フレーム分の画像データを描画することになる。なお、描画領域に、画像データが書込まれているとき、表示回路74は、他方の読出領域(表示領域)の画像データを読み出して、各表示装置DS1,DS2に出力する。 Next, as explained with reference to FIG. 11, the frame buffer FB secured in the arbitrary area (c) of the VRAM 71 is a double buffer divided into a drawing area and a read area, and the two areas are used alternately. In this embodiment, since two display devices DS1 and DS2 are connected, two frame buffers FBa/FBb are secured as shown in FIG. 11. Therefore, the drawing circuit 76 draws one frame of image data in the drawing area (write area) of the frame buffer FBa for the display device DS1, and also draws one frame of image data in the drawing area (write area) of the frame buffer FBa for the display device DS2. When image data is written in the drawing area, the display circuit 74 reads out the image data from the other read area (display area) and outputs it to each display device DS1 and DS2.

表示回路74は、フレームバッファFBa,FBbの画像データを読み出して、最終的な画像処理を施した上で出力する回路である(図13(a)参照)。最終的な画像処理には、例えば、画像を拡大/縮小するスケーラのスケーリング処理、微妙なカラー補正処理、画像全体の量子化誤差が最小化するディザリング処理が含まれている。そして、これらの画像処理を経たデジタルRGB信号(合計24bit)が、通常は、水平同期信号HSや垂直同期信号VSなどと共に出力される。 The display circuit 74 is a circuit that reads image data from the frame buffers FBa and FBb, performs final image processing, and outputs the result (see FIG. 13(a)). The final image processing includes, for example, a scaling process using a scaler that enlarges or reduces the image, subtle color correction processing, and dithering processing that minimizes quantization errors in the entire image. The digital RGB signal (total of 24 bits) that has undergone these image processes is then normally output together with a horizontal synchronization signal HS and a vertical synchronization signal VS.

図13(a)に示す通り、本実施例では、上記の動作を並列的に実行する3系統の表示回路A/B/Cが設けられており、各表示回路74A~74Cは、各々に対応するフレームバッファFBa/FBb/FBcの画像データを読み出して、上記の最終画像処理を実行する。但し、本実施例では、表示装置は2個であるので、フレームバッファFBcは確保されておらず、表示回路74Cが機能することもない。 As shown in FIG. 13(a), in this embodiment, three display circuits A/B/C are provided that perform the above operations in parallel, and each display circuit 74A-74C reads image data from its corresponding frame buffer FBa/FBb/FBc and performs the above final image processing. However, since there are only two display devices in this embodiment, frame buffer FBc is not reserved and display circuit 74C does not function.

ここで、メイン表示装置DS1の仕様を確認すると、メイン表示装置DS1は、左右方向に隣接する奇数ピクセル(ODD)と偶数ピクセル(EVEN)を、別々のLVDS(Low Voltage Differential Signaling)伝送路を通して、受信部RV(RVa+RVb)で受ける必要がある。また、メイン表示装置DS1の動作クロックCKの周波数は、40~70MHz程度(典型値54MHz)にする必要があり、(WTh+640)×(WTv+1024)/54MHz≒1/60秒となるよう、水平/垂直方向の待機時間WTh/WTvを設定する必要がある。更に、メイン表示装置DS1に対して画像データ(ODD/EVEN信号)を出力するタイミングでは、アクティブレベルのデータ有効信号ENABを出力する必要がある。 Now, looking at the specifications of the main display device DS1, the main display device DS1 needs to receive the odd pixels (ODD) and even pixels (EVEN) adjacent to the left and right in the receiver RV (RVa + RVb) through separate LVDS (Low Voltage Differential Signaling) transmission paths. In addition, the frequency of the operating clock CK of the main display device DS1 needs to be around 40 to 70 MHz (typical value 54 MHz), and the horizontal/vertical waiting times WTh/WTv need to be set so that (WTh + 640) x (WTv + 1024)/54 MHz ≒ 1/60 seconds. Furthermore, at the timing when image data (ODD/EVEN signal) is output to the main display device DS1, an active level data enable signal ENAB needs to be output.

そこで、表示回路74Aは、上記した全ての仕様を満たす信号を出力する必要がある。図14(a)~図14(e)は、表示回路74Aから出力される各種の信号を図示したものである。まず、ドットクロック(LVDSクロック)DCKの周波数を決定する必要があるが、本実施例では、メイン表示装置DS1を、典型値54MHzの動作クロックCKで動作させるので、これに対応して、(VDP回路52における)設計上のドットクロックDCKを、108MHz(=54×2)としている。 Therefore, the display circuit 74A needs to output a signal that satisfies all of the above specifications. Figures 14(a) to 14(e) show various signals output from the display circuit 74A. First, the frequency of the dot clock (LVDS clock) DCK needs to be determined. In this embodiment, the main display device DS1 is operated by an operating clock CK with a typical value of 54 MHz, so the designed dot clock DCK (in the VDP circuit 52) is set to 108 MHz (= 54 x 2) accordingly.

それは、横1280ドット×縦1024ラインの表示パネルLCD(図14(f)参照)において、左右に隣接する2つの画素が、54MHzの動作クロックCKに同期して一気に処理されるので、実質的には、108MHzのドットクロックDCKで動作するのと等価だからである。 This is because in a display panel LCD (1280 dots horizontally and 1024 lines vertically) (see Figure 14(f)), two adjacent pixels on the left and right are processed at once in synchronization with a 54 MHz operating clock CK, which is essentially equivalent to operating with a 108 MHz dot clock DCK.

そして、表示回路74Aの動作を規定する各種の動作パラメータは、周波数108MHzのドットクロックDCKに基づいて規定される。先ず、(WTh+640)×(WTv+1024)/54MHz≒1/60秒となるよう、水平/垂直方向の待機時間WTh/WTvを設定する必要があるが、表示回路74Aについての動作パラメータWTh,WTvとしては、(WTh+1280)×(WTv+1024)/108MHz≒1/60秒を満たす必要がある。 The various operating parameters that define the operation of the display circuit 74A are determined based on a dot clock DCK with a frequency of 108 MHz. First, the horizontal and vertical waiting times WTh/WTv must be set so that (WT+640) x (WTv+1024)/54 MHz ≒ 1/60 seconds, but the operating parameters WTh and WTv for the display circuit 74A must satisfy (WT+1280) x (WTv+1024)/108 MHz ≒ 1/60 seconds.

また、水平/垂直方向の待機時間WTh/WTvについて、表示装置DS1の仕様上の許容範囲も考慮する必要がある。そこで、本実施例では、水平待機時間WThを、108MHzのドットクロックDCKでカウントして、382クロックとし、垂直待機時間WTvを、59ラインとしている。したがって、一フレームの画像更新に要する時間は、(382+1280)×(59+1024)/108MHz=16.666mSとなり、フレームレートFR(Frame Rate)が1/60秒となる。 Furthermore, the tolerance range of the display device DS1 specifications must be taken into consideration for the horizontal/vertical waiting times WTh/WTv. Therefore, in this embodiment, the horizontal waiting time WTh is counted using a 108 MHz dot clock DCK, and is set to 382 clocks, and the vertical waiting time WTv is set to 59 lines. Therefore, the time required to update one frame of image is (382 + 1280) x (59 + 1024) / 108 MHz = 16.666 mS, and the frame rate FR (Frame Rate) is 1/60 seconds.

この関係は、表示装置DS1の更新周期FR[秒]を規定するものであり、後述するドットクロックDCKの周波数Fdot、水平同期のサイクル数THc、及び、垂直同期のライン数TVlを使用すると、FR=THc×TVl/Fdotとなる。ここで更新周期FRが長すぎると、フリッカなどの異常が生じるおそれがあり、一方、更新周期FRが短すぎると、表示装置が正常な更新処理を実行できないので、0.95/60<FR[秒]<1.05/60の範囲に規定すべきである。 This relationship defines the update period FR [seconds] of the display device DS1, and when using the frequency F dot of the dot clock DCK described later, the number of horizontal synchronization cycles THc, and the number of vertical synchronization lines TVl, FR = THc x TVl/F dot . If the update period FR is too long, there is a risk of abnormalities such as flickering, whereas if the update period FR is too short, the display device cannot perform normal update processing, so it should be defined in the range of 0.95/60 < FR [seconds] < 1.05/60.

この設定に対応して、データ有効信号ENABは、各ラインの画像更新動作において、382クロックに対応する待機時間WTh(=382/108MHz)は、Lレベルであり、その後、1280クロックに対応するアクティブ区間(=1280/108MHz)は、アクティブレベル(H)となる(図14(c))。なお、図14(d)と、図14(e)に示す通り、データ有効信号ENABのアクティブ区間では、一ライン1280ドットの画素について、所定の時間(11.85μS=1280/108MHz)で画像更新動作が完了するよう、画像データが出力される。すなわち、1280個のドットクロックDCKに同期して、1280個の画素データ(Pixel Data)が出力される。なお、表示装置DS1には、諧調度2×2×2のフルカラー画像が表示されるので、1画素の画素データは、3×8ビット長である。 Corresponding to this setting, the data valid signal ENAB is at L level during the waiting time WTh (=382/108 MHz) corresponding to 382 clocks in the image update operation of each line, and then becomes active level (H) during the active section (=1280/108 MHz) corresponding to 1280 clocks (FIG. 14(c)). As shown in FIG. 14(d) and FIG. 14(e), in the active section of the data valid signal ENAB, image data is output so that the image update operation is completed within a predetermined time (11.85 μS=1280/108 MHz) for the pixels of one line of 1280 dots. That is, 1280 pieces of pixel data (Pixel Data) are output in synchronization with 1280 dot clocks DCK. Since a full-color image with a gradation of 2 8 × 2 8 × 2 8 is displayed on the display device DS1, the pixel data of one pixel is 3×8 bits long.

ところで、本実施例では、メイン表示装置DS1では必要とはされないものの、垂直同期信号VSと水平同期信号HSを出力している。垂直同期信号VSは、垂直待機時間WTvの時間内に出力され、水平同期信号HSは、水平待機時間WThの時間内に出力される。なお、図14(a)と図14(b)には、理解の便宜上、各々の動作周期が示されている。また、図14(f)には、TH×TV(=1083×1662クロック)で特定される矩形枠の左上と右下の頂点に、〇印を示して「表示動作の開始」「表示動作の終了」と記載されているが、この〇印は、1/60秒ごとに開始される表示回路74Aの動作周期を規定する「Vブランク開始」を意味する。表示動作を規定する1083×1662クロックが、1/60秒に一致するので、「表示動作の開始」から「表示動作の終了」までの経過時間(表示回路74Aの動作周期)は1/60秒である。なお、「Vブランク開始」については、図20に基づいて後述する。 In this embodiment, the main display device DS1 outputs a vertical synchronizing signal VS and a horizontal synchronizing signal HS, although they are not required. The vertical synchronizing signal VS is output within the vertical waiting time WTv, and the horizontal synchronizing signal HS is output within the horizontal waiting time WTh. For ease of understanding, the operation cycles of each are shown in Fig. 14(a) and Fig. 14(b). Also, in Fig. 14(f), a circle is shown at the top left and bottom right vertices of a rectangular frame specified by TH x TV (= 1083 x 1662 clocks), and "Start of display operation" and "End of display operation" are written, but this circle signifies "V blank start" which specifies the operation cycle of the display circuit 74A which starts every 1/60 seconds. Since the 1083 x 1662 clocks which specify the display operation coincide with 1/60 seconds, the elapsed time from "Start of display operation" to "End of display operation" (operation cycle of the display circuit 74A) is 1/60 seconds. "V Blank Start" will be explained later with reference to Figure 20.

図13に戻って説明を続けると、実施例の出力選択部79は、表示回路74Aの出力信号を、108MHzのドットクロックDCKを2分周するデュアルリンクに分割して、各々、LVDS部80aと、LVDS部80bに伝送している(図13(a)、図5参照)。そして、各LVDS部80a,80bは、画像データ(合計24bitのデジタルRGB信号)を、第1と第2のLVDS信号に変換し、これにクロック信号(54MHz=108/2)を伝送する一対を加えて、全五対の差動信号LVDS1,LVDS2として、2つの経路を経由して、メイン表示装置DS1に出力している(図13(a)図4参照)。 Returning to FIG. 13, the output selection unit 79 of the embodiment divides the output signal of the display circuit 74A into dual links that divide the 108 MHz dot clock DCK by two, and transmits them to the LVDS unit 80a and the LVDS unit 80b, respectively (see FIG. 13(a) and FIG. 5). Each LVDS unit 80a, 80b then converts the image data (a total of 24-bit digital RGB signal) into a first and second LVDS signal, adds a pair that transmits a clock signal (54 MHz = 108/2), and outputs a total of five pairs of differential signals LVDS1, LVDS2 via two paths to the main display device DS1 (see FIG. 13(a) and FIG. 4).

先に説明した通り、メイン表示装置DS1では、一画素分のODD信号と、隣接する一画素分のEVEN信号とが、同じタイミングで処理されるので、実質的な動作クロックCKの周波数は、表示回路74Aが出力する108MHzのドットクロックDCKに一致する。 As explained above, in the main display device DS1, the ODD signal for one pixel and the EVEN signal for an adjacent pixel are processed at the same timing, so the actual frequency of the operating clock CK matches the 108 MHz dot clock DCK output by the display circuit 74A.

以上、メイン表示装置DS1に伝送すべき画像を生成する表示回路74Aについて説明したが、表示回路74Bは、サブ表示装置DS2に伝送すべき画像データを生成している。表示回路74Bが出力するデジタルRGB信号は、出力選択部79を経由してデジタルRGB部80cに供給され、垂直同期信号VSや水平同期信号HSと共に、サブ表示装置DS2に伝送される。 The above describes the display circuit 74A that generates the image to be transmitted to the main display device DS1, but the display circuit 74B generates image data to be transmitted to the sub-display device DS2. The digital RGB signal output by the display circuit 74B is supplied to the digital RGB section 80c via the output selection section 79, and is transmitted to the sub-display device DS2 together with the vertical synchronization signal VS and horizontal synchronization signal HS.

なお、同期信号VS,HSと共に、データ有効信号ENABもデジタルRGB部80cを経由して伝送されるが、これら各信号は、LVDS伝送路の場合のような離散値ではなく、連続信号として伝送されるのは勿論である(図13(a)参照)。 In addition to the synchronization signals VS and HS, the data valid signal ENAB is also transmitted via the digital RGB section 80c, but of course each of these signals is transmitted as a continuous signal, not as discrete values as in the case of an LVDS transmission line (see Figure 13(a)).

ところで、本実施例の場合、各表示回路74A~74Bには、表示タイミングに対して、表示データの生成が間に合わなかったUnderrun異常をカウントするアンダーランカウンタURCNTa~URCNTcが設けられている(図14参照)。そして、このアンダーランカウンタURCNTa~URCNTcのカウンタ値は、アンダーラン異常が発生するとVBLANK毎に自動的に加算されるよう構成されている。 In this embodiment, each display circuit 74A-74B is provided with an underrun counter URCNTa-URCNTc that counts underrun abnormalities, which are when the generation of display data is delayed in time for the display timing (see FIG. 14). The counter values of these underrun counters URCNTa-URCNTc are configured to be automatically incremented for each VBLANK when an underrun abnormality occurs.

次に、SMC部78(Serial Management Controller)は、LEDコントローラとMotorコントローラとを内蔵した複合コントコントローラである。そして、外部基板に搭載したLED/Motorドライバ(シフトレジスタを内蔵するドライバIC)に対して、クロック信号に同期してLED駆動信号やモータ駆動信号を出力する一方、適宜なタイミングで、ラッチパルスを出力可能に構成されている。 Next, the SMC section 78 (Serial Management Controller) is a composite controller incorporating an LED controller and a Motor controller. It outputs LED drive signals and motor drive signals in synchronization with a clock signal to an LED/Motor driver (a driver IC incorporating a shift register) mounted on an external board, while being configured to be able to output latch pulses at appropriate timing.

上記したVDP回路52の内部回路及びその動作に関し、内部回路が実行すべき動作内容は、演出制御CPU63が、制御レジスタ群70に設定する動作パラメータ(設定値)で規定され、VDP回路52の実行状態は、制御レジスタ群70の動作ステイタス値をREADすることで特定できるようになっている。制御レジスタ群70は、演出制御CPU63のメモリマップ上、1Mバイト程度のアドレス空間(0~FFFFFH)にマッピングされた多数のVDPレジスタRGijを意味し、演出制御CPU63は、CPUIF部81を経由して動作パラメータのWRITE (設定)動作と、動作ステイタス値のREAD動作を実行するようになっている(図7(b)参照)。 Regarding the internal circuitry and its operation of the VDP circuit 52 described above, the operation contents to be performed by the internal circuitry are specified by the operation parameters (setting values) set by the performance control CPU 63 in the control register group 70, and the execution state of the VDP circuit 52 can be determined by reading the operation status value of the control register group 70. The control register group 70 refers to a large number of VDP registers RGij mapped to an address space of about 1 MB (0 to FFFFFH) on the memory map of the performance control CPU 63, and the performance control CPU 63 executes the WRITE (setting) operation of the operation parameters and the READ operation of the operation status value via the CPUIF unit 81 (see FIG. 7(b)).

制御レジスタ群70(VDPレジスタRGij)には、割り込み動作などシステム動作に関する初期設定値が書込まれる「システム制御レジスタ」と、内蔵VRAMにAAC領域(a) やページ領域(b) を確定する共に、インデックステーブルIDXTBLを構築又は変更などに関する「インデックステーブルレジスタ」と、演出制御CPU63とVDP回路52の内部回路との間のデータ転送回路72によるデータ転送処理に関する設定値などが書込まれる「データ転送レジスタ」と、グラフィックスデコーダ75の実行状況を特定する「GDECレジスタ」と、指示コマンドや描画回路76に関する設定値が書込まれる「描画レジスタ」と、プリローダ73の動作に関する設定値が書込まれる「プリローダレジスタ」と、表示回路74の動作に関する設定値が書込まれる「表示レジスタ」と、LEDコントローラ(SMC部78)に関する設定値が書込まれる「LED制御レジスタ」と、Motorコントローラ(SMC部78)に関する設定値が書込まれる「モータ制御レジスタ」と、音声回路SNDに関する設定値が書込まれる「音声制御レジスタSRG」と、が含まれている。但し、本実施例では、音声回路SNDを活用していない。 The control register group 70 (VDP register RGij) includes a "system control register" in which initial setting values related to system operations such as interrupt operations are written, an "index table register" that determines the AAC area (a) and page area (b) in the built-in VRAM and is used for constructing or changing the index table IDXTBL, a "data transfer register" in which setting values related to the data transfer process by the data transfer circuit 72 between the performance control CPU 63 and the internal circuitry of the VDP circuit 52 are written, a "GDEC register" that specifies the execution status of the graphics decoder 75, a "drawing register" in which instruction commands and setting values related to the drawing circuit 76 are written, a "preloader register" in which setting values related to the operation of the preloader 73 are written, a "display register" in which setting values related to the operation of the display circuit 74 are written, an "LED control register" in which setting values related to the LED controller (SMC unit 78) are written, a "motor control register" in which setting values related to the motor controller (SMC unit 78) are written, and an "audio control register SRG" in which setting values related to the audio circuit SND are written. However, in this embodiment, the audio circuit SND is not used.

何れにしても、以下の説明では、制御レジスタ群70に含まれる一又は複数のレジスタRGijを、上記した個別名称で呼ぶ場合と、VDPレジスタRGijと総称することがあるが、何れにしても、演出制御CPU63は、所定のVDPレジスタRGijに、適宜な設定値を書込むことで、VDP回路52の内部動作を制御している。具体的には、演出制御CPU63は、適宜な時間間隔で更新するディスプレイリストDLと、所定のVDPレジスタRGijへの設定値に基づいて、所定の画像演出を実現している。なお、この実施例では、ランプ演出やモータ演出も含め、演出制御CPU63が担当するので、VDPレジスタRGijには、LED制御レジスタやモータ制御レジスタも含まれる。 In any case, in the following description, one or more registers RGij included in the control register group 70 may be referred to by the individual names described above, or may be referred to collectively as VDP registers RGij. In either case, the performance control CPU 63 controls the internal operation of the VDP circuit 52 by writing appropriate setting values to a specific VDP register RGij. Specifically, the performance control CPU 63 realizes a specific image performance based on a display list DL that is updated at appropriate time intervals and the setting values to a specific VDP register RGij. In this embodiment, the performance control CPU 63 is also responsible for lamp and motor performances, so the VDP register RGij also includes an LED control register and a motor control register.

続いて、上記したCPU回路51とVDP回路52とを内蔵した複合チップ50によって実現される、画像演出、音声演出、モータ演出、及び、ランプ演出の統一的な演出制御動作について説明する。 Next, we will explain the unified control operation of image effects, sound effects, motor effects, and lamp effects that is realized by the composite chip 50 incorporating the above-mentioned CPU circuit 51 and VDP circuit 52.

本実施例の場合、複合チップ50の動作は、電源投入や異常リセットによるパワーオンリセット動作(図15(a)参照)によって開始され、初期設定プログラム(ブートプログラム)Pinitによる初期設定処理(SP1~SP9)を経て、演出制御プログラムMain及び割込み処理プログラム(ベクタハンドラ)Voptによるメイン制御処理(SP10)に移行するよう構成されている。メイン制御処理については、図17(a)に、その導入部の処理内容が記載されており、本体部の処理内容が図20(a)に記載されている。なお、図17のステップSP27の処理は、図20(a)のステップST1~ST3の処理を含んでいる。 In this embodiment, the operation of the composite chip 50 is started by a power-on reset operation (see FIG. 15(a)) caused by power-on or abnormal reset, and is configured to move through initial setting processing (SP1 to SP9) by the initial setting program (boot program) Pinit, and then to main control processing (SP10) by the performance control program Main and the interrupt processing program (vector handler) Vopt. With regard to the main control processing, the processing content of the introductory part is described in FIG. 17(a), and the processing content of the main part is described in FIG. 20(a). Note that the processing of step SP27 in FIG. 17 includes the processing of steps ST1 to ST3 in FIG. 20(a).

以上を踏まえて、パワーオンリセット動作について図15(a)に基づいて説明する。電源投入時など、システムリセット信号SYSが所定の期間(アサート期間)Lレベルを維持すると、全ての動作制御レジスタREGや、全てのVDPレジスタRGijは、所定のデフォルト値に自動設定される。そして、その後、システムリセット信号SYSがHレベル(ネゲートレベル)に変化すると、本実施例では、最初に、アドレス空間CS0の先頭番地からの32bitデータが、演出制御CPU63のプログラムカウンタPCに設定され、これに続く32bitデータが、スタックポインタSPに設定されるよう構成されている。なお、図9や図16(c)では、プログラムカウンタPCやスタックポインタSPの初期値を記憶するメモリの先頭領域をベクタテーブルVECTと称している。 Based on the above, the power-on reset operation will be explained based on FIG. 15(a). When the system reset signal SYS maintains the L level for a predetermined period (assertion period), such as when the power is turned on, all operation control registers REG and all VDP registers RGij are automatically set to a predetermined default value. Then, when the system reset signal SYS subsequently changes to the H level (negate level), in this embodiment, first, 32-bit data from the top address of the address space CS0 is set in the program counter PC of the performance control CPU 63, and the following 32-bit data is set in the stack pointer SP. In addition, in FIG. 9 and FIG. 16(c), the top area of the memory that stores the initial values of the program counter PC and stack pointer SP is called the vector table VECT.

図15(b)に示す通り、このベクタテーブルVECTには、優先度と割込み要因などを特定するベクタ番号と、アドレス情報とが対応して記憶されている。ベクタ番号は、その番号が小さいほど優先度が高いが、例えば、ベクタ番号11は、マスク不能割込み(NMI)であって、アドレス情報として、NMI割込み時に実行される割込み処理プログラムの先頭アドレスが記憶されている。また、ベクタ番号64は、VDPからの内部割込み(VDP_IRQ0)であって、アドレス情報として、VDP_IRQ0割込み時に実行される割込み処理プログラムの先頭アドレスが記憶されている。 As shown in FIG. 15(b), this vector table VECT stores vector numbers that specify priority and interrupt causes, etc., in correspondence with address information. The smaller the vector number, the higher the priority. For example, vector number 11 is a non-maskable interrupt (NMI), and the address information stored therein is the start address of the interrupt processing program executed upon an NMI interrupt. Vector number 64 is an internal interrupt from the VDP (VDP_IRQ0), and the address information stored therein is the start address of the interrupt processing program executed upon a VDP_IRQ0 interrupt.

割込み優先度は、図17(d)に示す通りであるので、ベクタ番号64より小さいベクタ番号の欄には、制御コマンド受信割込みIRQ_CMD と、20μSタイマ割込みと、1mSタイマ割込みについて、割込み処理プログラムの先頭アドレスが各々記憶されていることになる。一方、ベクタ番号64より大きいベクタ番号の欄には、VDP_IRQ 1より優先度が低い割込み処理プログラム(IRQ_SND ,IRQ_RTC など)の先頭アドレスが各々記憶されている。 The interrupt priority is as shown in FIG. 17(d), so that the columns for vector numbers smaller than vector number 64 store the start addresses of the interrupt processing programs for the control command receive interrupt IRQ_CMD, the 20 μS timer interrupt, and the 1 ms timer interrupt. On the other hand, the columns for vector numbers larger than vector number 64 store the start addresses of the interrupt processing programs (IRQ_SND, IRQ_RTC, etc.) that have a lower priority than VDP_IRQ 1.

また、ベクタテーブルVECTにおいて、ベクタ番号0とベクタ番号1は、パワーオンリセット時にCPUのプログラムカウンタと、スタックポインタに自動設定されるべき、設定値が規定されている。図15(b)に示す通り、この実施例では、パワーオンリセット時(リセットアサート期間)の内部動作として、4バイトデータ「****」が、プログラムカウンタPCに設定され、4バイトデータ「++++」がスタックポインタSPに設定される。なお、「****」は、アドレス空間CS0に不揮発的に記憶されている初期設定プログラムPinit(図15のSP1~SP9)の先頭アドレス値であり、「++++」は、内蔵RAM59に確保された、LIFO(Last-In First-Out )方式で機能するスタック領域の先端又は終端のアドレス値である。 In addition, in the vector table VECT, vector number 0 and vector number 1 are stipulated as setting values that should be automatically set in the program counter and stack pointer of the CPU at power-on reset. As shown in FIG. 15(b), in this embodiment, as an internal operation at power-on reset (reset assert period), 4-byte data "****" is set in the program counter PC, and 4-byte data "++++" is set in the stack pointer SP. Note that "****" is the top address value of the initial setting program Pinit (SP1 to SP9 in FIG. 15) stored in a non-volatile manner in the address space CS0, and "++++" is the address value of the beginning or end of the stack area secured in the internal RAM 59 and functioning in a LIFO (Last-In First-Out) manner.

なお、本実施例では、レジスタバンクRBiを有効活用するので、割込み処理時に、スタック領域が消費されることなく、それほどのメモリ容量は必要とされない。すなわち、本実施例では、スタック領域は、専ら、関数処理や、サブルーチン処理において活用される。 In this embodiment, the register bank RBi is effectively used, so the stack area is not consumed during interrupt processing, and so a large amount of memory capacity is not required. In other words, in this embodiment, the stack area is used exclusively for function processing and subroutine processing.

以上の動作の結果、その後、演出制御CPU63は、アドレス値「****」以降に記載された初期設定プログラムPinitを実行することになる。但し、アドレス空間CS0のメモリREAD動作は、バスステートコントローラ66(図8)の動作を規定する動作制御レジスタREGのデフォルト値(初期値)に基づいて実行される。この動作制御レジスタREGの初期値は、リセットアサート期間(システムリセット信号SYSがLレベルを維持する図6(d)に示す期間)に自動的に設定される値であり、アドレス空間CS0を、如何なるメモリデバイスで構成しても、問題なくREADアクセスできるよう、最遅READアクセス動作(デフォルトアクセス動作)に設定されている。 As a result of the above operations, the performance control CPU 63 will then execute the initial setting program Pinit described after the address value "****". However, the memory READ operation of the address space CS0 is executed based on the default value (initial value) of the operation control register REG, which specifies the operation of the bus state controller 66 (Figure 8). The initial value of this operation control register REG is a value that is automatically set during the reset assertion period (the period shown in Figure 6 (d) during which the system reset signal SYS maintains an L level), and is set to the slowest READ access operation (default access operation) so that no matter what memory device the address space CS0 is configured with, READ access can be performed without any problems.

そこで、このデフォルトアクセス動作を、最適なアクセス動作に変更するべく、最初に、アドレス空間CS0に対するバスステートコントローラ66(図8)の動作を規定する所定の動作制御レジスタREGに最適値を設定する(SP1)。すなわち、初期設定プログラムPinit(SP1~SP9)、演出制御プログラムMainB(SP10)、定数データなどを格納したPROM53をアクセスする場合のメモリREAD動作を、メモリデバイスに合わせて最適化するべく、バス幅やページアクセスの有無を設定すると共に、チップセレク信号CS0や、READ制御信号や、WRITE 制御信号その他の動作タイミングを最適設定する(図38参照)。 Therefore, to change this default access operation to an optimal access operation, first an optimal value is set in a predetermined operation control register REG that specifies the operation of the bus state controller 66 (Figure 8) for the address space CS0 (SP1). That is, in order to optimize the memory READ operation when accessing the PROM 53 that stores the initial setting program Pinit (SP1-SP9), the performance control program MainB (SP10), constant data, etc., to match the memory device, the bus width and the presence or absence of page access are set, and the operation timing of the chip select signal CS0, the READ control signal, the WRITE control signal, and other signals are optimally set (see Figure 38).

以上の設定の結果、ステップSP2以降の処理は、アドレス空間CS0に記憶されているプログラムを、最適にメモリREADして実行されることになる。そこで、次に、演出制御CPU63が、VDPレジスタRGijをアクセスする場合のREAD/WRITE アクセス動作を最適化するべく、VDPレジスタRGijに対するバスステートコントローラ66(図8)の動作を規定する所定の動作制御レジスタREGに最適値を設定する(SP2)。 As a result of the above settings, the processing from step SP2 onwards will be executed by optimally reading the program stored in address space CS0 from memory. Next, the performance control CPU 63 sets an optimal value in a specified operation control register REG that specifies the operation of the bus state controller 66 (Figure 8) for the VDP register RGij, in order to optimize the READ/WRITE access operation when accessing the VDP register RGij (SP2).

先に説明した通り、本実施例では、VDPレジスタRGijは、演出制御CPU63のアドレス空間CS7に位置付けられているので、チップセレク信号CS7や、その他の制御信号の動作タイミングを最適設定するべく所定の動作制御レジスタREGに所定値を書込むことになる。 As explained above, in this embodiment, the VDP register RGij is located in the address space CS7 of the performance control CPU 63, so a specified value is written to a specified operation control register REG to optimally set the operation timing of the chip select signal CS7 and other control signals.

続いて、特定のVDPレジスタRGijのレジスタ値を読み出して、その値が所定値(デバイスコード)か否かを判定する(SP3)。これは、VDP回路52のシステムクロックが安定化したことの確認判定である。すなわち、VDP回路52は、PLLREF端子に供給される発振器OSC2の発振出力に基づいて動作するが、このVDP回路52が、CPU回路51からの指令(つまり、VDPレジスタRGijへの設定など)を正常に受け付け可能か否かの判定である。 Next, the register value of a specific VDP register RGij is read, and it is determined whether or not the value is a predetermined value (device code) (SP3). This is a confirmation and determination that the system clock of the VDP circuit 52 has stabilized. In other words, the VDP circuit 52 operates based on the oscillation output of the oscillator OSC2 supplied to the PLLREF terminal, and this is a determination of whether or not this VDP circuit 52 can normally accept commands from the CPU circuit 51 (i.e., settings to the VDP register RGij, etc.).

そして、デバイスコードの読出し処理(SP3)によって、システムクロックが安定化したことが確認できれば、その後は、VDP回路52の正常動作を期待できるので、所定のVDPレジスタRGijに対する設定処理を実行する(SP4~SP6)。具体的には、先ず、演出制御CPU63からVDPレジスタRGijをアクセスする場合のエンディアン設定(ビッグ/リトル)や、データバス幅を設定する(SP4)。 If it is confirmed that the system clock has stabilized by the device code read process (SP3), normal operation of the VDP circuit 52 can be expected, and a setting process for a specific VDP register RGij is executed (SP4 to SP6). Specifically, first, the endian setting (big/little) and data bus width for when the performance control CPU 63 accesses the VDP register RGij are set (SP4).

なお、本実施例では、設定値の最上位ビット(Most significant Bit)を、VDPレジスタRGijの最上位ビットに格納するビックエンディアンに設定し、データ32バス幅を32bitに設定するが、これらの設定値が、仮に、デフォルト値と同じであれば、これらの設定処理を省略することもできる(以下の処理も同様)。 In this embodiment, the most significant bit of the set value is set to big endian, which is stored in the most significant bit of the VDP register RGij, and the data 32 bus width is set to 32 bits, but if these set values are the same as the default values, these setting processes can be omitted (the same applies to the following processes).

次に、VDP回路からCPU回路への内部割込み(VDP_IRQ0,VDP_IRQ1,VDP_IRQ2,VDP_IRQ3)について、割込み有意レベル(H/L)を設定し、PLLREF端子(図7(a)参照)へのクロック信号(リファレンスクロック)に基づいてDDR(DRAM54)を機能させる旨を設定する(SP4)。なお、PLLREF端子に、発振器OSC2のリファレンスクロックが供給されることは図7(a)に関して説明した通りである。 Next, the interrupt significance level (H/L) is set for the internal interrupts (VDP_IRQ0, VDP_IRQ1, VDP_IRQ2, VDP_IRQ3) from the VDP circuit to the CPU circuit, and a setting is made to operate the DDR (DRAM54) based on the clock signal (reference clock) to the PLLREF terminal (see FIG. 7(a)) (SP4). As explained in FIG. 7(a), the reference clock of oscillator OSC2 is supplied to the PLLREF terminal.

続いて、図9に示すメモリマップを実現するべく、アドレス空間CS1~CS6を定義する(SP5)。先に説明した通り、アドレス空間CS3は、音声プロセッサ27の内部レジスタに付与され、アドレス空間CS4は、RTC38の内部レジスタやSRAM39のアドレス空間に付与され、アドレス空間CS5は、外付けDRAM(DDR)54に付与され、アドレス空間CS6は、内蔵CPUのワークメモリ57に付与される。 Next, address spaces CS1 to CS6 are defined to realize the memory map shown in Figure 9 (SP5). As explained above, address space CS3 is assigned to the internal register of the audio processor 27, address space CS4 is assigned to the internal register of the RTC 38 and the address space of the SRAM 39, address space CS5 is assigned to the external DRAM (DDR) 54, and address space CS6 is assigned to the work memory 57 of the built-in CPU.

なお、VDPレジスタRGijが、アドレス空間CS7に割り当てられることは固定的に規定されているので、アドレス空間CS7の定義処理は不要である。また、アドレス空間CS0は、CPU回路51のメモリマップ0x000000000番地以降であることは予め固定的に規定されており、この規定を前提として、アドレス空間CS0が、CGROM55に確保されているか、その他のメモリデバイスに付与されるかは、HBTSL 端子のH/Lレベルで規定される。 Note that since it is fixedly specified that the VDP register RGij is assigned to address space CS7, there is no need to define address space CS7. Also, it is fixedly specified in advance that address space CS0 is from address 0x000000000 onwards in the memory map of the CPU circuit 51. Based on this specification, whether address space CS0 is secured in CGROM 55 or assigned to another memory device is specified by the H/L level of the HBTSL terminal.

先に説明した通り、本実施例では、HBTSL 端子=Lとなっており、CGROM55以外にアドレス空間CS0が定義されていることが示されている。そして、CGROM55以外である制御メモリ53の具体的なバス幅や、最適なアクセス動作については、ステップSP1において設定済みであるので、アドレス空間CS0についても、ステップSP5の処理は不要である。 As explained above, in this embodiment, the HBTSL terminal is set to L, which indicates that the address space CS0 is defined in addition to the CGROM 55. The specific bus width and optimal access operation of the control memory 53, which is other than the CGROM 55, have already been set in step SP1, so the processing of step SP5 is not required for the address space CS0 either.

続いて、ステップSP5の処理で定義されたアドレス空間CS1~CS6について、各アドレス空間CSiをアクセスする場合のバス幅やページアクセスの有無について、所定の動作制御レジスタREGに所定値を書込む(SP6)。また、チップセレク信号CSiその他を最適設定するべく、所定の動作制御レジスタREGに所定値を書込む(SP6)。これらの処理は、ステップSP1やSP2の処理と同様の内容であり、バスステートコントローラ66(図8)の動作を規定する動作制御レジスタへの書込み処理によって、チップセレク信号CSi、READ制御信号、WRITE 制御信号、その他の動作タイミングが最適に設定される。 Next, for the address spaces CS1 to CS6 defined in the processing of step SP5, a predetermined value is written to a predetermined operation control register REG regarding the bus width and the presence or absence of page access when accessing each address space CSi (SP6). Also, in order to optimally set the chip select signal CSi and others, a predetermined value is written to a predetermined operation control register REG (SP6). These processes are similar to the processes of steps SP1 and SP2, and the chip select signal CSi, READ control signal, WRITE control signal, and other operation timings are optimally set by the write process to the operation control registers that define the operation of the bus state controller 66 (Figure 8).

続いて、WDT回路58にクリア信号を出力することで、異常リセットを回避する(SP7)。これは、電源投入後、WDT回路58が自動的に動作を開始することを考慮したものであり、この後も、繰り返し同様の処理が実行される。なお、ステップSP9の処理は、サブルーチンSP7として制御メモリ53に格納されているが、ステップSP9の終了時までは、制御メモリ53のサブルーチンSP7が呼び出され、ステップSP9の終了後は、外付けDRAM54に転送された別のサブルーチンSP7’が呼び出されて実行される。 Next, a clear signal is output to the WDT circuit 58 to avoid an abnormal reset (SP7). This is done to take into consideration that the WDT circuit 58 automatically starts operating after power is turned on, and similar processing is executed repeatedly thereafter. Note that the processing of step SP9 is stored in the control memory 53 as subroutine SP7, but until the end of step SP9, the subroutine SP7 in the control memory 53 is called, and after the end of step SP9, another subroutine SP7' transferred to the external DRAM 54 is called and executed.

続いて、アドレス空間CS0に格納されているプログラムやデータのうち、図15(b)や図16(c)に示すベクタハンドラVopt(割込み処理プログラム)、エラー復帰処理プログラムPiram、演出制御プログラムMainB、初期値有り変数D、及び、定数データCを、外付けDRAM54や、内蔵RAM59に転送する(SP8)。なお、初期値有り変数Dとは、所定の変数領域に記憶されている初期値データを意味する。このメモリセクションの初期化処理(SP8)は、演出制御処理の高速化を図るため、プログラムやデータを転送する処理であり、アクセス速度に劣るROMへのアクセスを回避するための処理である。 Next, among the programs and data stored in address space CS0, the vector handler Vopt (interrupt processing program), error recovery processing program Piram, performance control program MainB, variables with initial values D, and constant data C shown in Figures 15(b) and 16(c) are transferred to the external DRAM 54 or the internal RAM 59 (SP8). Note that variables with initial values D refer to initial value data stored in a specified variable area. This memory section initialization process (SP8) is a process that transfers programs and data in order to speed up performance control processing, and is a process to avoid accessing ROM, which has a slower access speed.

そして、次に、レジスタバンクRBiを使用する旨の設定をする(SP9)。そのため、その後は、割込み処理時に、レジスタバンクRB0~RB14が機能することになり、割込み処理が迅速化されると共に、スタック領域の消費が緩和される。 Next, the register bank RBi is set to be used (SP9). As a result, from then on, register banks RB0 to RB14 will function during interrupt processing, speeding up interrupt processing and reducing stack area consumption.

以上の処理は、アドレス空間CS0である制御メモリ53に格納されている「初期設定プログラムPinit」の実行によって実現される(図16(c)参照)。そして、この初期設定プログラムPinitの実行が終われば、続いて、演出制御プログラムMainによるメイン制御処理を実行する(SP10)。ここで、メイン制御処理の実行とは、ステップSP8の転送処理によって、制御メモリ53から外付けDRAM54に転送された「演出制御プログラムMain」の実行を意味する(図15(b)参照)。 The above processing is realized by executing the "initial setting program Pinit" stored in the control memory 53, which is the address space CS0 (see FIG. 16(c)). Then, once execution of this initial setting program Pinit is completed, the main control processing is executed by the performance control program Main (SP10). Here, execution of the main control processing means execution of the "performance control program Main" transferred from the control memory 53 to the external DRAM 54 by the transfer processing of step SP8 (see FIG. 15(b)).

メイン制御処理(演出制御プログラムMain)の具体的な内容については、図17(a)や、図20(a)に基づいて説明するが、それに先行して、メモリセクションの初期化処理(SP8)について説明する。図16(a)に示す通り、メモリセクションの初期化処理(SP8)では、最初に複数チャネルのDMACを動作停止状態に初期設定する。なお、この処理は、念のための形式的な処理に過ぎない。 The specific contents of the main control process (performance control program Main) will be explained based on Figures 17(a) and 20(a), but before that, the memory section initialization process (SP8) will be explained. As shown in Figure 16(a), the memory section initialization process (SP8) first initializes the DMACs of multiple channels to a stopped state. Note that this process is merely a formality just to be on the safe side.

以上の処理が終われば、所定チャネルのDMACiを起動させて、制御メモリ53の記憶されているベクタハンドラVopt(割込み処理プログラム)を、内蔵RAM59に、ノンストップ転送方式(図10(b3)参照)でDMA転送する。本実施例では、割込み処理プログラムVoptを内蔵RAM59に転送するので、外付けDRAM54の異常時においても、適切な異常対応処理が可能となる。 When the above processing is completed, the DMACi of the specified channel is started, and the vector handler Vopt (interrupt processing program) stored in the control memory 53 is DMA transferred to the built-in RAM 59 using the non-stop transfer method (see FIG. 10(b3)). In this embodiment, since the interrupt processing program Vopt is transferred to the built-in RAM 59, appropriate abnormality response processing is possible even when an abnormality occurs in the external DRAM 54.

その後の処理も同じであり、所定チャネルのDMACiを使用して、ノンストップ転送方式で実行され、エラー復帰処理プログラムPiramを内蔵RAM59にDMA転送する(SP62)。本実施例では、エラー復帰処理プログラムPiramを内蔵RAM59に転送するので、エラー復帰処理において、周辺回路を確実にリセット状態にすることができる。例えば、エラー復帰処理プログラムPiramを、内蔵RAM59以外の例えば外付けDRAM54に転送すると、エラー復帰処理時に、外付けDRAM54をリセット処理できないことになる。 The subsequent processing is the same, and is executed in a non-stop transfer mode using the DMACi of a specified channel, and the error recovery processing program Piram is DMA transferred to the built-in RAM 59 (SP62). In this embodiment, since the error recovery processing program Piram is transferred to the built-in RAM 59, the peripheral circuits can be reliably reset during the error recovery processing. For example, if the error recovery processing program Piram is transferred to an external DRAM 54, for example, other than the built-in RAM 59, the external DRAM 54 cannot be reset during the error recovery processing.

次に、演出制御プログラムMainを、外付けDRAM54にDMA転送し(SP63)、定数データCを、外付けDRAM54にDMA転送する(SP64)。定数データには、演出抽選に使用する抽選データや、図20(b)に示す各種の駆動データテーブルにおける、ランプ駆動データやモータ駆動データが含まれる。また、初期値の有る変数Dを、外付けDRAM54にDMA転送するが(SP65)、これら何れも、所定チャネルのDMACiを使用したノンストップ転送方式で実行される。 Next, the performance control program Main is DMA-transferred to the external DRAM 54 (SP63), and the constant data C is DMA-transferred to the external DRAM 54 (SP64). The constant data includes the lottery data used in the performance lottery, and the lamp drive data and motor drive data in the various drive data tables shown in FIG. 20(b). In addition, the variable D, which has an initial value, is DMA-transferred to the external DRAM 54 (SP65), and all of these are executed by a non-stop transfer method using the DMACi of a specified channel.

最後に、外付けDRAMの変数領域Bの先頭にクリアデータを書込む(SP66)。この先頭アドレスを、仮にADbとすると、その後のDMA転送処理では、転送元アドレスをADbとし、転送先アドレスをADb+1と初期設定した後、各アドレス値ADb,ADb+1をインクリメント処理しつつ、このクリアデータを拡散させることで、変数領域Bのクリア処理を実行することになる(SP67)。 Finally, clear data is written to the beginning of variable area B of the external DRAM (SP66). If this beginning address is assumed to be ADb, then in the subsequent DMA transfer process, the source address is initially set to ADb and the destination address is initially set to ADb+1, and then the clear data is diffused while the address values ADb and ADb+1 are incremented, thereby executing the clear process of variable area B (SP67).

以上説明したステップSP61~SP66、及びステップSP67の処理は、何れも、類似の動作であり図16(b)に示す通りである。すなわち、先ず、所定チャネルのDMACiに関し、DMA転送条件として、(1)サイクルスチール転送モード、(2)ノンストップ転送方式を採り、(3)SourceとDestinationのアドレス値をincrement 更新すると、設定する(SP68)。 The above-described steps SP61 to SP66 and step SP67 all perform similar operations, as shown in FIG. 16(b). That is, first, for the DMACi of a specified channel, the following DMA transfer conditions are set (1) cycle steal transfer mode, (2) non-stop transfer method, and (3) the address values of the source and destination are incremented (SP68).

次に、転送元Sourceアドレスと、転送先Destination アドレスの初期値を設定し(SP69)、転送サイズを設定し、割込み禁止などに設定した上で(SP70)、DMA転送の動作を開始させる(SP71)。なお、ステップSP68~SP71の設定は、何れも所定の動作制御レジスタREGへの設定動作によって実現される。 Next, the initial values of the source address and destination address are set (SP69), the transfer size is set, and interrupts are disabled (SP70), and then the DMA transfer operation is started (SP71). Note that the settings in steps SP68 to SP71 are all realized by setting a specified operation control register REG.

このメモリセクションの初期化処理では、DMA転送終了の割込みを禁止設定しているので(SP70)、DMA転送の動作を開始させた後は、所定の動作制御レジスタREGのステイタスフラグを、繰り返しREADアクセスして、DMA転送の終了を待つ(SP72)。但し、動作終了までの処理時間を考慮して、WDT回路58に対して、クリア信号を繰り返し出力する(SP73)。そして、DMA転送の終了時には、所定の動作制御レジスタREGへの設定動作に基づいてDMACiを停止設定する。 In the initialization process for this memory section, interrupts upon completion of DMA transfer are prohibited (SP70), so after starting the DMA transfer operation, the status flag of a specified operation control register REG is repeatedly read and accessed to wait for the completion of the DMA transfer (SP72). However, taking into account the processing time until the operation ends, a clear signal is repeatedly output to the WDT circuit 58 (SP73). Then, when the DMA transfer ends, the DMACi is stopped based on the setting operation to the specified operation control register REG.

続いて、メイン制御処理の動作内容について図17~図20に基づいて説明する。先に説明した通り、メイン制御処理については、図17(a)に、その導入部(SP20~SP27)の処理内容が記載されており、本体部(ST4~ST14)の処理内容が図20(a)に記載されている。なお、図17のステップSP27の処理は、図20(a)のステップST1~ST3の処理を含んでいる。 Next, the operation of the main control process will be described with reference to Figures 17 to 20. As explained above, the process contents of the introductory part (SP20 to SP27) of the main control process are shown in Figure 17(a), and the process contents of the main part (ST4 to ST14) are shown in Figure 20(a). Note that the process of step SP27 in Figure 17 includes the processes of steps ST1 to ST3 in Figure 20(a).

図17(a)に示す通り、メイン制御処理(導入部)では、最初に、CGROM55について、そのバス幅やROMデバイスの種別を特定する(SP20)。具体的には、図18(a)に示す通りであり、CGROM55とのインタフェイスを司るCGバスの動作状態を特定する所定のVDPレジスタRGij(例えばCGバスStatusレジスタ)をREADアクセスして(SP80)、CGバスについて動作設定が可能か否かを判定する(SP81)。 As shown in Figure 17(a), the main control process (introduction) first specifies the bus width and ROM device type for the CGROM 55 (SP20). Specifically, as shown in Figure 18(a), a specific VDP register RGij (e.g., the CG bus status register) that specifies the operating status of the CG bus that controls the interface with the CGROM 55 is accessed for READ (SP80), and it is determined whether the operation of the CG bus can be set (SP81).

ここで、CGバスStatusレジスタの値が1であれば、CGバスの内部回路がリセット動作中であることを意味し、VDPレジスタRGijへの設定値を受け付けることができないことを意味する。そこで、CGバスStatusレジスタの値が1から0に変化していることを確認した上で(SP81)、CGROMを構成するメモリデバイスに対応して規定可能なデバイス区間(SPA0~SPAn)毎に(1)各デバイス区間SPAiの有効/無効、(2)ROMデバイスの種別、(3)データバス幅などの動作パラメータを、所定のVDPレジスタRGijに設定する(SP82)。 If the value of the CG bus Status register is 1, it means that the internal circuitry of the CG bus is undergoing a reset operation, and the setting value for the VDP register RGij cannot be accepted. Therefore, after confirming that the value of the CG bus Status register has changed from 1 to 0 (SP81), the device sets operational parameters such as (1) the enable/disable status of each device section SPAi, (2) the type of ROM device, and (3) the data bus width in the specified VDP register RGij for each device section (SPA0 to SPAn) that can be defined corresponding to the memory devices that make up the CGROM (SP82).

図17(a)に示す通り、この実施例では、CGROM55を複数領域(デバイス区間)に区分できるようになっており、例えば、デバイス区間(SPA0~SPAn)毎に、メモリデバイスや、データバス幅を選択可能に構成されている。メモリデバイスとしては、例えば、(1)本実施例で採用するSATAモジュール(AHSI/F)、(2)パラレルI/F(Interface )形式を採るメモリ素子、(3)シーケンシャルI/F形式を採るメモリ素子などに大別されるが、大別されたメモリデバイスごとに、メモリデバイスを具体的に選択可能であり、且つ、データバス幅などを任意に規定できるようになっている。 As shown in FIG. 17(a), in this embodiment, the CGROM 55 can be divided into multiple areas (device sections), and for example, the memory device and data bus width can be selected for each device section (SPA0 to SPAn). Memory devices are broadly classified into, for example, (1) the SATA module (AHSI/F) used in this embodiment, (2) memory elements using a parallel I/F (Interface) format, and (3) memory elements using a sequential I/F format, and for each of the broadly classified memory devices, a specific memory device can be selected, and the data bus width, etc. can be specified arbitrarily.

次に、デバイス区間(SPA0~SPAn)毎に選択されたメモリデバイスとのメモリREAD動作を最適化するべく、所定の動作パラメータを、所定のVDPレジスタRGijに設定する(SP83)。動作パラメータには、チップセレクト信号と、その他の制御信号(READ制御信号など)との動作タイミングを規定する設定値が含まれている。また、シーケンシャルI/F形式を採るメモリ素子が選択された場合には、図18(b)も示す動作を実現するべく、アドレスラッチの出力タイミングや、読出しクロック数なども特定される。 Next, in order to optimize the memory READ operation with the memory device selected for each device section (SPA0 to SPAn), predetermined operating parameters are set in a predetermined VDP register RGij (SP83). The operating parameters include set values that stipulate the operation timing of the chip select signal and other control signals (such as the READ control signal). In addition, when a memory element that uses a sequential I/F format is selected, the output timing of the address latch and the number of read clocks are also specified to realize the operation shown in FIG. 18(b).

したがって、種類の異なるメモリデバイスを組合せてCGROM55を構成することもできる。但し、本実施例では、SATAモジュールだけを使用してCGROM55を構成し、デバイス区間(SPA0)だけを有効化し、他のデバイス区間(SPA1~SPAn)を無効化している。 Therefore, it is possible to configure CGROM 55 by combining different types of memory devices. However, in this embodiment, CGROM 55 is configured using only SATA modules, and only the device section (SPA0) is enabled, while the other device sections (SPA1 to SPAn) are disabled.

何れにしても、ステップSP82~SP83の設定処理が終われば、その設定処理の実効化を図るべく、所定のVDPレジスタRGijに所定値を書込む(SP84)。これは、CGバスの内部回路がステップSP82~SP83の設定処理に対応して動作できるまでに所定の時間を要することを考慮したものであり、内部回路の動作中は、前記したCGバスStatusレジスタ(SP80参照)の値が0となる。 In any case, once the setting process of steps SP82 to SP83 is complete, a specified value is written to a specified VDP register RGij in order to effectuate the setting process (SP84). This takes into consideration the fact that it takes a certain amount of time for the internal circuitry of the CG bus to be able to operate in response to the setting process of steps SP82 to SP83, and while the internal circuitry is operating, the value of the CG bus Status register (see SP80) mentioned above is 0.

したがって、その後は、CGバスStatusレジスタを繰り返しREADアクセスして(SP85)、Statusレジスタの値が1から0に戻ることを確認して処理を終える(SP86)。なお、所定回数の判定に拘らず、Statusレジスタの値が1から0に戻らない場合に、ステップSP66の処理を終えても良い。但し、その場合CGROMが正常にアクセスできない状態で遊技処理が始まるので、その後、何れかのタイミングでWDT回路58が起動して複合チップ50が異常リセット状態になる。そして、この場合は、再度、パワーオンリセット動作が実行されることになる。 Therefore, thereafter, the CG bus Status register is repeatedly accessed for a read (SP85), and the process ends after confirming that the value of the Status register has returned from 1 to 0 (SP86). Note that regardless of the predetermined number of determinations, if the value of the Status register has not returned from 1 to 0, the process of step SP66 may end. In that case, however, the game process will begin in a state in which the CGROM cannot be accessed normally, and the WDT circuit 58 will then start up at some point thereafter, causing the composite chip 50 to enter an abnormal reset state. In this case, the power-on reset operation will be executed again.

一方、図17のステップSP20の処理が、正常に実行された後は、割込みコントローラINTCや、DMAC回路60や、マルチファンクションタイマユニットMTUなど、CPU回路51の内蔵回路をソフトウェア処理によって個々的に初期化する(SP21)。 On the other hand, after the processing of step SP20 in FIG. 17 has been executed normally, the internal circuits of the CPU circuit 51, such as the interrupt controller INTC, the DMAC circuit 60, and the multifunction timer unit MTU, are individually initialized by software processing (SP21).

次に、マルチファンクションタイマユニットMTUについて、所定のタイマ計測動作を開始させた後(SP22)、内部割込み及び内部割込みについて、所定の動作制御レジスタREGに許可設定値を書込んで割込み許可状態に設定する(SP23)。 Next, the multifunction timer unit MTU starts a specified timer measurement operation (SP22), and then writes an enabled setting value to a specified operation control register REG for internal interrupts and internal interrupts to set the interrupt enabled state (SP23).

その結果、その後は、図17(d)に示す各種の割込みが生じ得ることになる。通常、このタイミングでは、音声プロセッサ27は、その初期化シーケンスを終えているので、図6(c)に示す通り、終了割込み信号IRQ_SND はLレベルに降下している筈である。そのため、図17(c)に示す割込み処理が起動され、演出制御CPU63は、エラーフラグERRを1に初期設定すると共に、アドレス空間CS3をREADアクセスして(SP30)、音声プロセッサ27の所定の音声レジスタSRGの値を取得して、初期化シーケンスが正常に終了しているか否かを判定する(SP31)。 As a result, various interrupts as shown in FIG. 17(d) may occur. Normally, at this timing, the sound processor 27 has completed its initialization sequence, so the end interrupt signal IRQ_SND should have dropped to L level, as shown in FIG. 6(c). Therefore, the interrupt processing shown in FIG. 17(c) is started, and the performance control CPU 63 initializes the error flag ERR to 1, and performs READ access to address space CS3 (SP30), obtains the value of a specified sound register SRG of the sound processor 27, and determines whether the initialization sequence has ended normally (SP31).

そして、万一、初期化シーケンスが正常に終了していない場合には、演出制御CPU63は、音声プロセッサ27の所定の音声レジスタSRGにリセットコマンドを書込むと共に(SP32)、1に初期設定されているエラーフラグERRを2にセットする(SP33)。このエラーフラグERRは、音声プロセッサ初期化処理(SP26)を実行するか否かを規定しており、エラーフラグERR=1がステップSP26の実行条件となっている。 If the initialization sequence does not end normally, the performance control CPU 63 writes a reset command to a specified sound register SRG of the sound processor 27 (SP32) and sets the error flag ERR, which is initially set to 1, to 2 (SP33). This error flag ERR determines whether or not to execute the sound processor initialization process (SP26), and the error flag ERR = 1 is the execution condition for step SP26.

一方、音声プロセッサ27は、リセットコマンドを受けたことに対応して、終了割込み信号IRQ_SND =Hレベルの状態で、再度、初期化シーケンスを開始し、初期化シーケンスが終われば、終了割込み信号IRQ_SND はLレベルに降下させる。この結果、図17(c)の処理が再実行されることになる。 Meanwhile, in response to receiving the reset command, the audio processor 27 restarts the initialization sequence with the end interrupt signal IRQ_SND at H level, and when the initialization sequence ends, the end interrupt signal IRQ_SND drops to L level. As a result, the process in FIG. 17(c) is executed again.

以上、初期化シーケンスが正常に終了していない例外的な場合について説明したが、通常は、ステップSP31に続いて、ステップSP32の処理が実行され、演出制御CPU63は、所定の音声レジスタSRGに、所定値を書込むことで終了割込み信号IRQ_SND を、LレベルからHレベルに復帰させる(SP34)。 The above describes the exceptional case where the initialization sequence does not end normally, but normally, following step SP31, the processing of step SP32 is executed, and the performance control CPU 63 writes a predetermined value to a predetermined sound register SRG, thereby returning the end interrupt signal IRQ_SND from L level to H level (SP34).

そして、最後に、所定の音声レジスタSRGに所定値を書込むことで、全ての音声レジスタSRGへのREAD/WRITE アクセスを許可する(SP35)。この処理の結果、その後の音声プロセッサ初期化処理(SP26)では、必要な設定処理を実行できることになる。 Finally, a specified value is written to a specified audio register SRG, allowing READ/WRITE access to all audio registers SRG (SP35). As a result of this process, the necessary setting processes can be executed in the subsequent audio processor initialization process (SP26).

以上、ステップSP23の割込み許可設定に対応するMaskable Interruptの一例について説明したが、発振器OSC2の発振停止に基づくマスク不能割込み(Non Maskable Interrupt)は、任意のタイミングで起動可能である。先に説明した通り、内蔵CPU(演出制御CPU63)以外の回路の動作クロック(CPUシステムクロック)は、発振器OSC2の出力クロックをPLL(Phase Locked Loop )で周波数逓倍して生成されており、発振器OSC2の発振が停止されれば、その後のVDP回路52の正常動作は不可能である。 The above describes an example of a Maskable Interrupt that corresponds to the interrupt permission setting of step SP23, but a non-maskable interrupt based on the oscillation of oscillator OSC2 stopping can be activated at any time. As explained above, the operating clock (CPU system clock) of circuits other than the built-in CPU (performance control CPU 63) is generated by multiplying the frequency of the output clock of oscillator OSC2 using a PLL (Phase Locked Loop), and if the oscillation of oscillator OSC2 stops, normal operation of the VDP circuit 52 is impossible thereafter.

一方、演出制御CPU63の動作クロックは、発振器OSC1の出力クロックをPLLで逓倍して生成されており、プログラム処理は継続可能である。しかも、割込み処理プログラムは、内蔵RAM59に格納されている。そこで、演出制御CPU63は、異常事態の発生を音声やランプによって異常報知すると共に(SP28)、WDT回路58にクリア信号を出力し続ける(SP29)。異常報知は、例えば「異常事態が発生しました。至急、係員に連絡して下さい」との音声報知となる。なお、WDT回路58にクリア信号を出力し続けるのは、異常リセット動作を回避するためである。すなわち、発振器OSC1が動作を停止する重大な異常時には、仮に、異常リセット処理を繰り返しても、機器の正常復帰が望めないと考えられるからである。 Meanwhile, the operating clock of the performance control CPU 63 is generated by multiplying the output clock of the oscillator OSC1 by a PLL, so program processing can continue. Moreover, the interrupt processing program is stored in the built-in RAM 59. The performance control CPU 63 then issues an abnormality notification by sound or lamp (SP28), and continues to output a clear signal to the WDT circuit 58 (SP29). The abnormality notification is, for example, an audio notification saying "An abnormality has occurred. Please contact a staff member immediately." The reason for continuing to output the clear signal to the WDT circuit 58 is to avoid an abnormal reset operation. In other words, in the event of a serious abnormality in which the oscillator OSC1 stops operating, it is considered that the device cannot be expected to return to normal even if the abnormality reset process is repeated.

以上、図17(b)と、図17(c)について説明したので、図17(a)に戻って説明を続ける。ステップSP24では、外付けDRAMのプログラム領域を保護するため、必要領域を書込み禁止に設定する。次に、電源遮断時に電池で駆動されている時計回路38について、電源遮断時の正常動作を確認すると共に、念のためアラーム割込みについて再設定する(SP25)。 As above, we have explained Figures 17(b) and 17(c), so we will return to Figure 17(a) and continue the explanation. In step SP24, in order to protect the program area of the external DRAM, necessary areas are set to be write-protected. Next, the clock circuit 38, which is battery-powered when the power is cut off, is checked for normal operation when the power is cut off, and the alarm interrupt is reset just to be sure (SP25).

そして、エラーフラグERR=1であることを条件に、音声プロセッサ27の内蔵レジスタ(音声レジスタSRG)に、必要な設定値を書込んで初期化処理を実行する(SP26)。なお、エラーフラグERR=0の場合は、所定時間、エラーフラグERR=1となるまで待機するが、限界時間を超える場合には、WDT回路58を起動させるべく無限ループ処理に移行する。 Then, on condition that the error flag ERR = 1, the necessary setting values are written to the built-in register (audio register SRG) of the audio processor 27 to execute initialization processing (SP26). Note that if the error flag ERR = 0, a predetermined time is waited until the error flag ERR = 1, but if the time limit is exceeded, an infinite loop process is started to start the WDT circuit 58.

次に、VDPレジスタRGijに、必要な設定値を書込むことで、VDP回路52の初期化処理を実行する(SP27)。なお、ステップSP27の処理には、図20のST1~ST3の処理が含まれている。 Next, the necessary setting values are written to the VDP register RGij to execute the initialization process for the VDP circuit 52 (SP27). Note that the process of step SP27 includes the processes of ST1 to ST3 in FIG. 20.

以上、音声プロセッサから終了割込み信号IRQ_SND を受ける実施例について説明したが、図17(c)の割込み処理を省略するのも好適である。図19は、変形実施例を示しており、終了割込み信号IRQ_SND に代えて、マルチファンクションタイマユニットMTUが生成する1msタイマ割込信号を活用している。 The above describes an embodiment in which the end interrupt signal IRQ_SND is received from the audio processor, but it is also preferable to omit the interrupt process in FIG. 17(c). FIG. 19 shows a modified embodiment in which a 1 ms timer interrupt signal generated by the multifunction timer unit MTU is used instead of the end interrupt signal IRQ_SND.

図19は、1msタイマ割込処理の一部を図示したものであり、初期状態がゼロである動作管理フラグFLGの値(0/1/2/3)に基づいて、4段階の動作を実現している。なお、音声プロセッサ27のIRQ_SND 出力端子は、開放状態とし、CPU回路51のIRQ_SND 入力端子は、Hレベルに固定されている。 Figure 19 illustrates part of the 1 ms timer interrupt process, which realizes four stages of operation based on the value (0/1/2/3) of the operation management flag FLG, which is initially set to zero. Note that the IRQ_SND output terminal of the audio processor 27 is open, and the IRQ_SND input terminal of the CPU circuit 51 is fixed to the H level.

1mSタイマ割込み処理において、先ず、ステップSP42の処理で、動作管理フラグFLG=0と判定される場合には、音声プロセッサ27の初期化シーケンスが正常終了していることを確認する(SP43)。そして、正常終了している場合には、所定の音声レジスタSRGに所定値を書込むことで割込み信号(IRQ_SND )をクリアさせ(SP46)、動作管理フラグFLGを1にする(SP47)。なお、ステップSP43とSP46の処理は、図17(c)のステップSP31とSP34の処理と同じである。 In the 1 ms timer interrupt process, first, if the operation management flag FLG = 0 is determined in the process of step SP42, it is confirmed that the initialization sequence of the audio processor 27 has ended normally (SP43). If it has ended normally, a predetermined value is written to a predetermined audio register SRG to clear the interrupt signal (IRQ_SND) (SP46), and the operation management flag FLG is set to 1 (SP47). Note that the processes of steps SP43 and SP46 are the same as the processes of steps SP31 and SP34 in FIG. 17(c).

一方、初期化シーケンスが正常終了していない場合には、所定の音声レジスタSRGにリセットコマンドを書込むことで、音声プロセッサ27に初期化シーケンスを起動させ(SP44)、動作管理フラグFLGをゼロに戻す(SP45)。なお、ステップSP44の処理は、図17(c)のステップSP32の処理に対応している。 On the other hand, if the initialization sequence has not ended normally, a reset command is written to a specific voice register SRG to cause the voice processor 27 to start the initialization sequence (SP44) and to reset the operation management flag FLG to zero (SP45). Note that the processing in step SP44 corresponds to the processing in step SP32 in FIG. 17(c).

通常は、ステップSP47の処理を経て動作管理フラグFLG=1となるので、次の1msタイマ割込みでは、所定の音声レジスタに所定値を書込むことで全ての音声レジスタへのアクセスを許可し(SP48)、動作管理フラグFLG=2に設定する(SP49)。ステップSP48の処理は、図17(c)のステップSP35の処理に対応している。 Normally, the operation management flag FLG = 1 after the processing of step SP47, so at the next 1 ms timer interrupt, a specified value is written to a specified voice register to allow access to all voice registers (SP48), and the operation management flag FLG = 2 is set (SP49). The processing of step SP48 corresponds to the processing of step SP35 in FIG. 17(c).

次に、動作管理フラグFLG=2の1msタイマ割込みでは、図17(a)のステップSP26の場合と同様に、音声プロセッサ27の内蔵レジスタ(音声レジスタSRG)に、必要な設定値を書込んで初期化処理を実行し(SP50)、動作管理フラグFLG=3に設定する。 Next, in the 1 ms timer interrupt with the operation management flag FLG = 2, similar to step SP26 in FIG. 17(a), the necessary setting values are written to the built-in register (audio register SRG) of the voice processor 27 to execute initialization processing (SP50), and the operation management flag FLG = 3 is set.

動作管理フラグFLG=3は、通常の音声制御状態を意味し、必要な音声レジスタSRGに、必要な動作パラメータを設定することで、音声制御を進行させる(SP52)。 Operation management flag FLG = 3 indicates the normal voice control state, and voice control is progressed by setting the necessary operation parameters in the necessary voice registers SRG (SP52).

以上、音声プロセッサ27の初期化シーケンスの正常終了を、割込み信号(IRQ_SND )に起因する割込み処理で確認する方法(図17(c)のSP31)と、1mSタイマ割込み処理で確認する方法(図19のSP43)について説明したが、これらの方法に、何ら限定されるものではない。例えば、図17のステップSP26の処理の一部として、音声プロセッサ27の初期化シーケンスが正常に終了したか否かを判定するのも好適である。 The above describes a method for checking whether the initialization sequence of the audio processor 27 has ended normally by using an interrupt process caused by an interrupt signal (IRQ_SND) (SP31 in FIG. 17(c)) and a method for checking using a 1 ms timer interrupt process (SP43 in FIG. 19), but the present invention is not limited to these methods. For example, it is also preferable to determine whether the initialization sequence of the audio processor 27 has ended normally as part of the process of step SP26 in FIG. 17.

以上、メイン制御処理の導入部(図17のSP20~SP27)について説明したので、以下、図20に基づいて、メイン制御処理の本体部の動作を説明する。図20に示す通り、演出制御CPU63の動作は、メイン制御処理(a)と、1mS毎に起動するタイマ割込み処理(b)と、制御コマンドCMDを受けて起動する受信割込み処理(不図示)と、表示装置DS1のVブランク(垂直帰線期間)の開始タイミングに生じるVBLANK信号を受けて起動するVBLANK割込み処理(c)と、動作フリーズ時や不合理な指示コマンド検出時に生じる描画異常割込み処理(d)と、を含んで構成されている。なお、20μS割込み処理については説明を省略する。 The introductory part of the main control process (SP20 to SP27 in FIG. 17) has been explained above, so below, the operation of the main part of the main control process will be explained based on FIG. 20. As shown in FIG. 20, the operation of the performance control CPU 63 is composed of a main control process (a), a timer interrupt process (b) that starts every 1 ms, a reception interrupt process (not shown) that starts in response to a control command CMD, a VBLANK interrupt process (c) that starts in response to a VBLANK signal generated at the start of the V blank (vertical blanking period) of the display device DS1, and a drawing abnormality interrupt process (d) that occurs when the operation freezes or an irrational instruction command is detected. Note that an explanation of the 20 μS interrupt process will be omitted.

受信割込み処理では、主制御部21から受けた制御コマンドCMDを、メイン制御処理(ST13)において参照できるよう、所定の受信バッファに記憶して処理を終える。また、VBLANK割込み処理(図20(b))では、VBLANK割込み毎に、割込みカウンタVCNTをインクリメントし(ST15)、メイン制御処理の開始タイミングでは、割込みカウンタVCNTの値に基づいて、1/30秒の動作開始タイミングを把握した上で、割込みカウンタVCNTをゼロクリアしている(ST4)。 In the reception interrupt process, the control command CMD received from the main control unit 21 is stored in a specified reception buffer so that it can be referenced in the main control process (ST13), and the process ends. In addition, in the VBLANK interrupt process (FIG. 20(b)), the interrupt counter VCNT is incremented for each VBLANK interrupt (ST15), and at the start of the main control process, the interrupt counter VCNT is cleared to zero after determining the operation start timing of 1/30 seconds based on the value of the interrupt counter VCNT (ST4).

一方、タイマ割込み処理には、図20(b)に示す通り、ランプ演出やモータ演出の進行処理(ST18)と、原点センサ信号SN0~SNn信号や、チャンスボタン信号などを取得するセンサ信号取得処理(ST19)とが含まれている。ランプ演出やモータ演出は、全ての演出動作を一元管理する演出シナリオに基づいて制御されており、演出カウンタENが管理する演出開始時に達すれば、演出シナリオ更新処理(ST11)において、モータ駆動テーブルやランプ駆動テーブルが特定されるようになっている。 On the other hand, as shown in FIG. 20(b), the timer interrupt process includes a lamp performance and motor performance progress process (ST18), and a sensor signal acquisition process (ST19) that acquires the origin sensor signals SN0 to SNn and the chance button signal. The lamp performance and motor performance are controlled based on a performance scenario that centrally manages all performance operations, and when the performance start time managed by the performance counter EN is reached, the motor drive table and lamp drive table are identified in the performance scenario update process (ST11).

そして、その後は、特定されたモータ駆動テーブルに基づいてモータ演出が進行し、特定されたモータ駆動テーブルに基づいてランプ演出が進行することになる。先に説明した通り、ステップST18の動作時に、DMAC回路(第1と第2のDMAチャンネル)60が機能する実施例もある。なお、モータ演出は、1mS毎に進行するが、ランプ演出は、1mSより長い適宜なタイミングで進行する。 Then, the motor performance proceeds based on the identified motor drive table, and the lamp performance proceeds based on the identified motor drive table. As explained above, there are also embodiments in which the DMAC circuit (first and second DMA channels) 60 functions during the operation of step ST18. Note that the motor performance proceeds every 1 mS, but the lamp performance proceeds at appropriate timings longer than 1 mS.

一方、図20(d)に示す通り、描画異常割込み処理では、描画回路76の動作状態を示すステイタスレジスタRGijをREADアクセスして、割込み原因を特定する。具体的には、(1) 異常な指示コマンドの検出(ビット化け)による描画異常割込みか、(2) 描画回路76の動作異常(フリーズ)による描画異常割込みかを特定する(ST16a)。そして、異常な指示コマンドの検出に基づく描画異常割込みである場合には、所定のシステム制御レジスタRGijに、所定値を書き込むことで、描画回路76を初期化する(ST16b)。この動作は、図6(b)に示すリセット経路4Bの個別リセット動作に他ならない。 On the other hand, as shown in FIG. 20(d), in the drawing abnormality interrupt process, the status register RGij, which indicates the operating state of the drawing circuit 76, is accessed for READ to identify the cause of the interrupt. Specifically, it is identified whether the drawing abnormality interrupt is due to (1) the detection of an abnormal command (bit corruption) or (2) the operation abnormality (freezing) of the drawing circuit 76 (ST16a). Then, if the drawing abnormality interrupt is due to the detection of an abnormal command, a predetermined value is written to a predetermined system control register RGij, thereby initializing the drawing circuit 76 (ST16b). This operation is nothing more than an individual reset operation of the reset path 4B shown in FIG. 6(b).

次に、個別リセット動作の正常終了を、所定のステイタスレジスタRGijで確認した後、描画回路76の動作を規定する一群の動作パラメータを所定の描画レジスタRGijに再設定して処理を終える(ST16c)。そして、戻り先アドレスを記憶するスタック領域を調整した後(割込み処理後の戻り先アドレスを消去する開放処理)、ステップST13の処理に移行させる(ST16c)。 Next, after the normal end of the individual reset operation is confirmed by a specific status register RGij, a group of operating parameters that define the operation of the drawing circuit 76 are reset in the specific drawing register RGij, and the process is terminated (ST16c). Then, after adjusting the stack area that stores the return address (release process that erases the return address after the interrupt process), the process proceeds to step ST13 (ST16c).

一方、描画回路76の動作異常に基づく描画異常割込みの場合には、無限ループ処理に移行させることで(ST16d)、WDT回路58を起動させ、複合チップ50全体をリセットする。なお、CPU回路51をリセットしたくない場合には、所定のキーワード列をパターンチェック回路CHKに出力して、リセット信号RSTによってVDP回路52だけをリセットしても良い(図6(b)参照)。この場合には、VDP回路52のリセット動作の正常終了を確認した後、ステップST4やST13の処理に移行させる。なお、可能な限り制御コマンドCMDの読み落しを回避するためには、他の場合も含め、ステップST4より、ステップST13に移行される方が良い。 On the other hand, in the case of a drawing abnormality interrupt based on an operational abnormality of the drawing circuit 76, the process transitions to an infinite loop process (ST16d), which activates the WDT circuit 58 and resets the entire composite chip 50. If it is not desired to reset the CPU circuit 51, a predetermined keyword string may be output to the pattern check circuit CHK and only the VDP circuit 52 may be reset by the reset signal RST (see FIG. 6(b)). In this case, after confirming that the reset operation of the VDP circuit 52 has been completed successfully, the process transitions to steps ST4 and ST13. In order to avoid overlooking the control command CMD as much as possible, it is better to transition to step ST13 from step ST4, including other cases.

複合チップ50全体をリセットすると、それまでの演出が消滅して、演出制御が完全に初期状態(電源投入状態)に戻るが、VDP回路52だけをリセットする場合には、VDP回路52のリセット動作が完了するまで、所定の待機時間は生じるものの、一連の演出制御を継続させることができる。なお、演出制御CPU63は、画像演出、ランプ演出、及び、音声演出を統一的に制御しているので、各演出に不自然なズレが生じることもない。 When the entire composite chip 50 is reset, all previous effects are erased and the effect control is returned to the initial state (power-on state). However, when only the VDP circuit 52 is reset, the series of effect control can be continued, although there is a certain waiting time until the reset operation of the VDP circuit 52 is complete. Furthermore, since the effect control CPU 63 controls the image effect, lamp effect, and sound effect in a unified manner, there is no unnatural discrepancy between the effects.

続いて、プリローダを機能しない実施例について、メイン制御処理(a)について説明する。図20(a)に示す通り、メイン制御処理は、CPUリセット後に実行される導入初期処理(ST1~ST3)と、その後、1/30秒毎に繰り返し実行される定常処理(ST4~ST14)とに区分される。なお、初期処理(ST1~ST3)は、メイン制御処理の導入部の一部であり、定常処理がメイン制御処理の本体部を意味する。 Next, the main control process (a) will be described for an embodiment in which the preloader does not function. As shown in FIG. 20(a), the main control process is divided into introductory initial processing (ST1 to ST3) that is executed after the CPU is reset, and regular processing (ST4 to ST14) that is repeatedly executed every 1/30th of a second thereafter. Note that the initial processing (ST1 to ST3) is part of the introductory part of the main control process, and the regular processing represents the main body of the main control process.

そして、定常処理は、割込みカウンタVCNTが、VCNT≧2となったタイミングで開始されるので(ST4)、定常処理の動作周期δは、1/30秒となる。この動作周期δは、演出制御CPU63の制御に基づいて間欠動作するVDP回路52について、その実質的な動作周期δに他ならない。なお、判定条件を、VCNT≧2とするのは、定常処理(ST4~ST14)が異常に長引いて、VCNT=2のタイミングを見逃す可能性を考慮したものであるが、VCNT=3となる事態が発生しないよう設計されている。 The steady-state processing starts when the interrupt counter VCNT becomes VCNT≧2 (ST4), so the operating period δ of the steady-state processing is 1/30 seconds. This operating period δ is nothing but the actual operating period δ of the VDP circuit 52, which operates intermittently under the control of the performance control CPU 63. The reason for setting the judgment condition as VCNT≧2 is to take into consideration the possibility that the steady-state processing (ST4 to ST14) may be abnormally prolonged and the timing of VCNT=2 may be missed, but it is designed to prevent a situation in which VCNT=3 occurs.

以上を踏まえてメイン制御処理(図20(a))の説明を続けると、本実施例では、初期処理において、記憶容量48Mバイトの内蔵VRAM71を、適切な記憶容量を有するACC領域(a) と、ページ領域(b) と、任意領域(c) と、に適宜に切り分ける(ST1)。具体的には、ACC領域(a1,a2) と、ページ領域(b) について、各々の領域先頭アドレスと必要な総データサイズを、所定のインデックステーブルレジスタRGijに設定する(ST1)。すると、確保されたACC領域(a1,a2) と、ページ領域(b) には含まれない残余領域が任意領域(c) となる。 Continuing with the explanation of the main control process (Figure 20 (a)) based on the above, in this embodiment, in the initial process, the built-in VRAM 71 with a storage capacity of 48 MB is appropriately divided into an ACC area (a) with appropriate storage capacity, a page area (b), and an arbitrary area (c) (ST1). Specifically, for the ACC area (a1, a2) and the page area (b), the start addresses of each area and the total required data size are set in a specified index table register RGij (ST1). Then, the secured ACC area (a1, a2) and the remaining area not included in the page area (b) become the arbitrary area (c).

ここで、第一と第二のACC領域(a1,a2) と、ページ領域(b) の領域先頭アドレスは、各々の下位11bitが0でなくてはならないが、2048bit単位で任意に選択可能である(1番地=1バイトとして、256番地ごとの選択)。また、総データサイズも、単位サイズの整数倍の範囲で任意に選択される。特に限定されないが、ACC領域(a) の単位サイズは、2048bit、ページ領域(b) の単位サイズは、512kbitである。 Here, the lowest 11 bits of the area start addresses of the first and second ACC areas (a1, a2) and the page area (b) must each be 0, but can be selected arbitrarily in units of 2048 bits (1 address = 1 byte, selection in increments of 256 addresses). The total data size can also be selected arbitrarily within the range of an integer multiple of the unit size. Although not particularly limited, the unit size of the ACC area (a) is 2048 bits, and the unit size of the page area (b) is 512 kbits.

このように本実施例では、ACC領域(a1,a2) と、ページ領域(b) の領域設定に一定の条件を設けるが、それは、メモリ容量が限られている内蔵VRAM71について、可能な限り無駄領域を排除する一方で、VDP回路52の内部動作の円滑化を図るためである。すなわち、内蔵VRAM71の記憶容量を無闇に増加させると、製造コストの高騰やチップ面積の大型化が懸念される一方、無駄領域を完全に排除するような自由な領域設定を認めると、内部処理が煩雑化して、VRAMアクセスの処理時間を短縮化できないためである。なお、以下に説明するインデックス空間の確保に、一定の制約を設けるのも同じ理由による。 In this embodiment, certain conditions are set for the area settings of the ACC area (a1, a2) and the page area (b), in order to eliminate as much wasted area as possible from the built-in VRAM 71, which has a limited memory capacity, while facilitating the internal operation of the VDP circuit 52. In other words, while increasing the memory capacity of the built-in VRAM 71 unnecessarily raises concerns about rising manufacturing costs and increasing the chip area, allowing free area settings that completely eliminate wasted area complicates internal processing and makes it difficult to shorten the processing time for VRAM access. The same reason is also why certain restrictions are set for securing the index space, which will be explained below.

以上を踏まえて説明を続けると、ステップST1の処理に続いて、ページ領域(b) と、任意領域(c) について、必要なインデックス空間IDXiを確保する(ST2)。具体的には、所定のインデックステーブルレジスタRGijに、必要な情報を設定することで、各領域(b)(c)のインデックス空間IDXiを確保する。 Continuing with the above, following the processing of step ST1, the necessary index space IDXi is secured for the page area (b) and the arbitrary area (c) (ST2). Specifically, the necessary information is set in a specified index table register RGij to secure the index space IDXi for each area (b) and (c).

例えば、ページ領域(b) にインデックス空間IDXiを設ける場合には、任意のインデックス番号iに対応して、任意の水平サイズHxと、任意の垂直サイズWxの倍数情報(単位空間に対する縦横の倍数情報)が、所定のインデックステーブルレジスタRGijに設定される(ST2)。 For example, when an index space IDXi is provided in the page area (b), multiple information of an arbitrary horizontal size Hx and an arbitrary vertical size Wx (multiple information of length and width for the unit space) corresponding to an arbitrary index number i is set in a predetermined index table register RGij (ST2).

先に説明した通り、ページ領域(b) のインデックス空間IDXiは、水平サイズ128×垂直サイズ128ラインを単位空間としており、また、1ピクセルは32bitの情報で特定されるので、水平サイズHxと垂直サイズWxの設定に基づいて、データサイズ(bit長)=32×128×Hx×128×Wxのインデックス空間IDXiが確保されたことになる。なお、ページ領域(b) のインデックス空間IDXiの先頭アドレス(空間先頭アドレス)は、内部的に自動付与される。 As explained above, the index space IDXi of the page area (b) has a unit space of 128 lines horizontally x 128 lines vertically, and one pixel is specified by 32 bits of information, so based on the horizontal size Hx and vertical size Wx settings, an index space IDXi with a data size (bit length) = 32 x 128 x Hx x 128 x Wx is secured. The top address (space top address) of the index space IDXi of the page area (b) is automatically assigned internally.

また、任意領域(c) にインデックス空間IDXiを設ける場合には、任意のインデックス番号iに対応して、任意の先頭アドレス(空間先頭アドレス)STxと、任意の水平サイズHxの倍数情報が、所定のインデックステーブルレジスタRGijに設定される(ST2)。ここで、任意とは、所定条件を前提とするもので、水平サイズHxは256bit単位で任意決定され、先頭アドレスSTxの下位11bitは0であって、2048bit単位で任意決定される。先に説明した通り、任意領域の垂直サイズは、2048ラインに固定化されるので、水平サイズHxの設定に基づいて、先頭アドレスSTx以降には、データサイズ(bit長)=2048×Hxのインデックス空間が確保されたことになる。 When an index space IDXi is provided in the arbitrary area (c), an arbitrary start address (space start address) STx and multiple information of an arbitrary horizontal size Hx are set in a predetermined index table register RGij corresponding to an arbitrary index number i (ST2). Here, "arbitrary" means that a predetermined condition is assumed, and the horizontal size Hx is arbitrarily determined in units of 256 bits, the lowest 11 bits of the start address STx are 0, and the horizontal size Hx is arbitrarily determined in units of 2048 bits. As explained above, the vertical size of the arbitrary area is fixed to 2048 lines, so that an index space of data size (bit length) = 2048 x Hx is secured after the start address STx based on the setting of the horizontal size Hx.

具体的には、メイン表示装置DS1のフレームバッファFBaとして、水平サイズ1280×垂直ライン2048の一対のインデックス空間が、各々インデックス番号を特定して、一又は複数の所定のインデックステーブルレジスタRGijに設定され、サブ表示装置DS2のフレームバッファFBbとして、水平サイズ480×垂直ライン2048の一対のインデックス空間が、各々インデックス番号を特定して、一又は複数の所定のインデックステーブルレジスタRGijに設定される。なお、もし、表示装置の水平ピクセル数が、256bit/32bitの整数倍に一致しない場合には、各インデックス空間の水平サイズを、その表示装置の水平ピクセル数より大きく、且つ、256/32=8の整数倍となる値に設定して、無駄なメモリ領域の発生を最小限に抑制する。 Specifically, as the frame buffer FBa of the main display device DS1, a pair of index spaces with a horizontal size of 1280 x vertical lines 2048 are set in one or more predetermined index table registers RGij with a specified index number for each, and as the frame buffer FBb of the sub display device DS2, a pair of index spaces with a horizontal size of 480 x vertical lines 2048 are set in one or more predetermined index table registers RGij with a specified index number for each. Note that if the number of horizontal pixels of the display device does not match an integer multiple of 256 bits/32 bits, the horizontal size of each index space is set to a value larger than the number of horizontal pixels of the display device and which is an integer multiple of 256/32=8, thereby minimizing the generation of wasted memory area.

以上のように、ページ領域(b) と、任意領域(c) について、必要なサイズ情報やアドレス情報を所定のインデックステーブルレジスタRGijに各々設定することで、必要個数のインデックス空間IDXiが生成される(ST2)。そして、この設定処理(ST2)に対応して、各インデックス空間IDXiのアドレス情報やサイズ情報を特定するインデックステーブルIDXTBLが自動的に構築される。図11(a)に示す通り、インデックステーブルIDXTBLには、各インデックス空間IDXiの先頭アドレスが、その他の必要情報と共に記憶されており、VDP回路52内部でのデータ転送時や、外部記憶リソース(Resource)からのデータ取得時に参照される(図12参照)。なお、AAC領域(a) のインデックス空間IDXiは、必要時に自動生成され、自動消滅するので、ステップST2の設定処理は不要である。 As described above, the required size information and address information for the page area (b) and the arbitrary area (c) are set in the specified index table register RGij, respectively, to generate the required number of index spaces IDXi (ST2). Then, in response to this setting process (ST2), an index table IDXTBL that specifies the address information and size information of each index space IDXi is automatically constructed. As shown in FIG. 11(a), the index table IDXTBL stores the top address of each index space IDXi together with other necessary information, and is referenced when transferring data within the VDP circuit 52 or when acquiring data from an external storage resource (see FIG. 12). Note that the index space IDXi of the AAC area (a) is automatically generated and automatically deleted when necessary, so the setting process of step ST2 is not necessary.

図11(a)(b)に示す通り、任意領域(c) には、各一対のフレームバッファFBaとFBbが確保され、各々、インデックス番号が付与されている。Zバッファを使用しない実施例では、フレームバッファFBaとして、インデックス番号255,254が付与された、一対のインデックス空間255,254が確保される。また、フレームバッファFBbとして、インデックス番号252,251が付与された、一対のインデックス空間252,251が確保される。なお、本実施例では、任意領域(c) に、インデックス番号0の作業領域(インデックス空間0)も確保されている。 As shown in Figures 11(a) and (b), a pair of frame buffers FBa and FBb are secured in the arbitrary area (c), and each is assigned an index number. In an embodiment that does not use a Z-buffer, a pair of index spaces 255 and 254, assigned with index numbers 255 and 254, are secured as the frame buffer FBa. Also, a pair of index spaces 252 and 251, assigned with index numbers 252 and 251, are secured as the frame buffer FBb. Note that in this embodiment, a working area with index number 0 (index space 0) is also secured in the arbitrary area (c).

また、本実施例では、ページ領域(a) に、IPストリーム動画のデコード領域となる必要個数のインデックス空間IDXiを確保し、インデックス番号iを付与することにしている。但し、初期的には、背景動画(IPストリーム動画)のためのインデックス空間IDXだけを確保している。そして、画像演出(変動演出や予告演出)における必要性に応じて、インデックステーブルレジスタRGijへの設定処理や、ディスプレイリストDLの指示コマンドに基づいて、ページ領域(a) のインデックス空間IDXjを増やし、その後、不要になれば、そのインデックス空間IDXjを開放するようにしている。すなわち、図11(a)は、定常動作時のインデックステーブルIDXTBLを示している。 In addition, in this embodiment, the required number of index spaces IDXi to be the decoded area of the IP stream video are secured in the page area (a), and the index number i is assigned. However, initially, only the index space IDX0 for the background video (IP stream video) is secured. Then, depending on the necessity of the image performance (variation performance or notice performance), the index space IDXj of the page area (a) is increased based on the setting process to the index table register RGij and the instruction command of the display list DL, and then, when it becomes unnecessary, the index space IDXj is released. That is, FIG. 11 (a) shows the index table IDXTBL during normal operation.

なお、ACC領域(a) のインデックス空間は、ディスプレイリストDLに記載されている指示コマンドに基づいて、必要時に自動的に生成され、インデックステーブルIDXTBLには、自動生成されたインデックス空間IDXjの先頭アドレスや、その他の必要情報が自動設定される。本実施例では、このAAC領域(a) を、静止画その他のテクスチャのデコード領域として使用している。 The index space of the ACC area (a) is automatically generated when necessary based on the instruction command written in the display list DL, and the top address of the automatically generated index space IDXj and other necessary information are automatically set in the index table IDXTBL. In this embodiment, this AAC area (a) is used as a decoding area for still images and other textures.

インデックス空間を確保する上記の動作は、もっぱら、制御レジスタ群70に含まれるインデックステーブルレジスタRGijへの設定動作によって実現されるが、ステップST1~ST2の処理に続いて、他のVDPレジスタRGijに、必要な設定動作(ST3)を実行することで、図28~図29に示すVDP回路52の定常動作(間欠動作)を可能にしている。 The above operation of reserving index space is realized mainly by the setting operation to the index table register RGij included in the control register group 70, but by executing the necessary setting operation (ST3) to the other VDP register RGij following the processing of steps ST1 to ST2, steady operation (intermittent operation) of the VDP circuit 52 shown in Figures 28 to 29 is made possible.

本実施例において、必要な設定処理(ST3)には、少なくとも表1に示す処理(SS30~SS43)が含まれている。なお、ステップSS30~SS43は、何ら処理の順番を限定せず、以下の説明順序に拘わらず、任意の順番で実行することができる。

Figure 0007489788000001
In this embodiment, the necessary setting process (ST3) includes at least the processes (SS30 to SS43) shown in Table 1. Note that the order of the processes in steps SS30 to SS43 is not limited, and they can be executed in any order regardless of the order described below.
Figure 0007489788000001

本実施例では、先ず、メイン表示装置DS1に関して、デュアルリンク伝送路を構築することを、所定のシステム制御レジスタRGijに設定する(SS30)。この設定の結果、表示回路74Aの出力は、ドットクロックDCKが2分周されたODD信号とEVEN信号に二分された状態で、LVDS部80aと、LVDS部80bに供給されることになる。 In this embodiment, first, a specific system control register RGij is set to construct a dual link transmission path for the main display device DS1 (SS30). As a result of this setting, the output of the display circuit 74A is supplied to the LVDS unit 80a and the LVDS unit 80b in a state in which the dot clock DCK is divided into an ODD signal and an EVEN signal, which are obtained by dividing the dot clock DCK by two.

次に、表示回路74Aと表示回路74Bについて、40MHzのリファレンスクロック(発振器OSC2の出力)を基礎にして、ドットクロックDCKやDCKを生成することを、各々、所定のシステム制御レジスタRGijに設定し(SS31)、このリファレンスクロックに対する逓倍比と分周比を表示回路毎に適宜に規定する(SS32)。 Next, for display circuits 74A and 74B, a predetermined system control register RGij is set to generate dot clocks DCK A and DCK B based on the 40 MHz reference clock (output of oscillator OSC2) (SS31), and the multiplication ratio and division ratio for this reference clock are appropriately specified for each display circuit (SS32).

ドットクロックDCKは、表示回路74Aと表示回路74Bについて別々に設定され、表示回路74Aに適用されるメイン表示装置DS1用のドットクロックDCKの周波数は、先に説明した通り、108MHzに設定される。一方、表示回路74Bに適用されるサブ表示装置DS2用のドットクロックDCKの周波数は、横480×縦800ピクセルに対応して、27MHzに設定される。 The dot clock DCK is set separately for the display circuits 74A and 74B, and the frequency of the dot clock DCK A for the main display device DS1 applied to the display circuit 74A is set to 108 MHz as described above, while the frequency of the dot clock DCK B for the sub-display device DS2 applied to the display circuit 74B is set to 27 MHz, corresponding to 480 horizontal x 800 vertical pixels.

また、表示回路74Bの動作開始を、表示回路74Aの動作開始に同期させるべく所定のシステム制御レジスタRGijに設定する(SS33)。 In addition, a specific system control register RGij is set so that the start of operation of the display circuit 74B is synchronized with the start of operation of the display circuit 74A (SS33).

続いて、表示回路74の動作を規定する所定の表示レジスタRGijに、所定の動作パラメータ(ライン数と画素数)を書込むことで、各表示装置DS1,SD2について表示ライン数と水平画素数を設定する(SS34)。本実施例の場合、メイン表示装置DS1の水平画素数は、1280ドットであり、表示ライン数は1024行である。また、サブ表示装置DS2の水平画素数は、480ドットであり、表示ライン数は80行である。ステップSS34の設定処理の結果、各フレームバッファFBa,FBbにおいて、表示回路74A,74BがREADアクセスすべき有効データ領域(図20(e)の破線部)の縦横寸法が、特定されることになる。 Next, the number of display lines and the number of horizontal pixels are set for each display device DS1, SD2 by writing predetermined operating parameters (number of lines and number of pixels) to a predetermined display register RGij that specifies the operation of the display circuit 74 (SS34). In this embodiment, the number of horizontal pixels of the main display device DS1 is 1280 dots, and the number of display lines is 1024 rows. The number of horizontal pixels of the sub-display device DS2 is 480 dots, and the number of display lines is 80 rows. As a result of the setting process of step SS34, the vertical and horizontal dimensions of the effective data area (dashed line area in FIG. 20(e)) to which the display circuits 74A, 74B should access for READ are specified in each frame buffer FBa, FBb.

次に、表示回路74の動作を規定する所定の表示レジスタRGijに、所定の動作パラメータ(THc,WTh)を書込むことで、各表示装置DS1,SD2について、水平周期THのサイクル数THcと、水平待機時間WThを設定する(SS35)。また、所定の表示レジスタRGijに、所定の動作パラメータ(TVl,WTv)を書込むことで、各表示装置DS1,SD2について、垂直周期TVのライン数TVlと、垂直待機時間WTvを設定する(SS36)。 Next, the number of cycles THc of the horizontal period TH and the horizontal waiting time WTh are set for each display device DS1, SD2 by writing predetermined operating parameters (THc, WTh) to a predetermined display register RGij that specifies the operation of the display circuit 74 (SS35). In addition, the number of lines TVl of the vertical period TV and the vertical waiting time WTv are set for each display device DS1, SD2 by writing predetermined operating parameters (TVl, WTv) to a predetermined display register RGij (SS36).

図14に関して説明した通り、メイン表示装置DS1については、水平周期THのサイクル数THc=1662、垂直周期TVのライン数TVl=1083と設定される。また、水平待機時間WTh=382、垂直待機時間WTv=59ラインと設定される。一方、サブ表示装置DS2については、例えば、水平周期THのサイクル数THc=519、垂直周期TVのライン数TVl=867と設定され、水平待機時間WTh=39、垂直待機時間WTv=67ラインと設定される。なお、THc-WTh=519-39=480、TVl-WTv=867-67=800であり、サブ表示装置のピクセル数(横480×縦800)に整合する。 As explained with reference to FIG. 14, for the main display device DS1, the number of cycles of the horizontal period TH is set to THc = 1662, and the number of lines of the vertical period TV is set to TVl = 1083. In addition, the horizontal waiting time WTh is set to 382, and the vertical waiting time WTv is set to 59 lines. On the other hand, for the sub-display device DS2, for example, the number of cycles of the horizontal period TH is set to THc = 519, the number of lines of the vertical period TV is set to TVl = 867, and the horizontal waiting time WTh is set to 39, and the vertical waiting time WTv is set to 67 lines. Note that THc-WTh = 519-39 = 480, and TVl-WTv = 867-67 = 800, which matches the number of pixels of the sub-display device (480 horizontal x 800 vertical).

何れにしても、ステップSS32の処理によってドットクロックDCKの周波数Fdot(=108MHz)が決定され、また、ステップSS35~SS36の処理によって、メイン表示装置DS1について、水平周期THのサイクル数THc(=1662)と、垂直周期TVのライン数TVl(=1083)が規定された結果、一フレームの表示期間が、THc×TVl/Fdotと確定されることになる。具体的には、一フレームの表示期間は、1083×1662/108MHz=16.667mSであり、フレームレートFRが1/60秒であると確定される。 In any case, the frequency F dot (=108 MHz) of the dot clock DCK is determined by the process of step SS32, and the number of cycles THc (=1662) of the horizontal period TH and the number of lines TVl (=1083) of the vertical period TV are specified for the main display device DS1 by the processes of steps SS35 to SS36, so that the display period of one frame is determined to be THc x TVl/F dot . Specifically, the display period of one frame is determined to be 1083 x 1662/108 MHz = 16.667 mS, and the frame rate FR is determined to be 1/60 seconds.

なお、サブ表示装置DS2についても、例えば、ドットクロックDCKの周波数Fdot=27MHz、水平周期THのサイクル数THc=519、及び、垂直周期TVのライン数TVl=867に基づいて、519×867/27MHz=16.66mSと確定される。 For the sub-display device DS2, for example, the frequency F dot of the dot clock DCK is determined to be 27 MHz, the number of cycles of the horizontal period THc is 519, and the number of lines of the vertical period TVl is 867, so that 519×867/27 MHz is determined to be 16.66 mS.

本実施例では、上記の確定処理に対応して、表示回路74は、1/60秒ごとVブランク開始状態となり、図14に示す表示動作が繰り返されることになる。なお、図14において、〇印で示す表示動作の開始タイミング、及び表示動作の終了タイミングは、Vブランク開始タイミングを示している。 In this embodiment, in response to the above-mentioned confirmation process, the display circuit 74 enters a V blank start state every 1/60th of a second, and the display operation shown in FIG. 14 is repeated. Note that in FIG. 14, the start timing of the display operation and the end timing of the display operation indicated by circles indicate the V blank start timing.

そして、このVブランク開始タイミングに基づいて、表示回路74の動作における水平基準点TH0(=水平基準時刻)と、垂直基準点(=垂直基準時刻)TV0が規定されることになり、表示回路74は、水平基準点TH0から水平待機時間WThを経過するまで、表示装置の各ピクセルに対応する画像データを出力しないで待機する。同様に、表示回路74は、垂直基準点TV0から、垂直待機時間WTvを経過するまで、表示装置の各ピクセルに対応する画像データを出力しないで待機するよう構成されている。 Then, based on this V-blank start timing, the horizontal reference point TH0 (= horizontal reference time) and the vertical reference point (= vertical reference time) TV0 in the operation of the display circuit 74 are defined, and the display circuit 74 waits from the horizontal reference point TH0 until the horizontal waiting time WTh has elapsed without outputting image data corresponding to each pixel of the display device. Similarly, the display circuit 74 is configured to wait from the vertical reference point TV0 until the vertical waiting time WTv has elapsed without outputting image data corresponding to each pixel of the display device.

また、表示回路74Bは、表示装置74Aに同期して動作するので(SS33)、サブ表示装置DS2についての表示動作の開始と終了タイミングも、メイン表示装置DS1のタイミングと同じである。したがって、サブ表示装置DS2に対するフレーム周期(519×867/27)は、サブ表示装置DS2に対するフレーム周期(1083×1662/108)より短く設定されることで、Vブランク開始時には、サブ表示装置DS2の更新処理が完了しているよう設定される。 In addition, since the display circuit 74B operates in synchronization with the display device 74A (SS33), the start and end timing of the display operation for the sub-display device DS2 is also the same as that of the main display device DS1. Therefore, the frame period (519 x 867/27) for the sub-display device DS2 is set shorter than the frame period (1083 x 1662/108) for the sub-display device DS2, so that the update process for the sub-display device DS2 is set to be completed when the V blank starts.

次に、本実施例では、サブ表示装置DS2に関して、所定の表示レジスタRGijに、水平周期信号HSのパルス幅と、パルス立上りエッジのVブランク開始タイミングからのサイクル数の設定する(SS37)。また、サブ表示装置DS2に関して、垂直周期信号VSのパルス幅と、パルス立上りエッジのVブランク開始タイミングからのサイクル数の設定する(SS38)。 Next, in this embodiment, for the sub-display device DS2, the pulse width of the horizontal cycle signal HS and the number of cycles from the V blank start timing of the pulse rising edge are set in a specific display register RGij (SS37). Also, for the sub-display device DS2, the pulse width of the vertical cycle signal VS and the number of cycles from the V blank start timing of the pulse rising edge are set (SS38).

先に説明した通り、メイン表示装置DS1は、水平同期信号HSや垂直同期信号VSを必要としないので、メイン表示装置DS1に対する上記の処理(SS37~SS38)は不要である。但し、ステップSS37~SS38の設定処理を省略した場合には、電源リセット時に設定されたデフォルト値が機能するので、実際には、表示装置74Aも、水平同期信号HSや垂直同期信号VSを出力することになる。 As explained above, the main display device DS1 does not require a horizontal synchronization signal HS or a vertical synchronization signal VS, so the above processing (SS37 to SS38) for the main display device DS1 is not necessary. However, if the setting processing of steps SS37 to SS38 is omitted, the default values set at the time of power reset will function, so in reality, the display device 74A will also output a horizontal synchronization signal HS and a vertical synchronization signal VS.

デフォルト値によれば、例えば、Vブランク開始タイミングから16クロック後にアクティブレベルとなる、パルス幅40クロック分の水平同期信号HSが出力され、Vブランク開始タイミングに同期してアクティブレベルとなる、パルス幅3ライン分の垂直同期信号VSが出力される。 According to the default value, for example, a horizontal synchronization signal HS with a pulse width of 40 clocks is output, which becomes active 16 clocks after the V blank start timing, and a vertical synchronization signal VS with a pulse width of 3 lines is output, which becomes active in synchronization with the V blank start timing.

この動作は、メイン表示装置DS1に対して、水平待機時間WTh=382クロックの間に、水平フロントポーチHPv=16、パルス幅PWh=40、水平バックポーチBPv=326の水平同期信号HSが出力され、また、垂直待機時間WTv=59ラインの間に、垂直フロントポーチHPv=0、パルス幅PWv=3、垂直バックポーチBPv=56の垂直同期信号VSが出力されることを意味する。但し、メイン表示装置において、これらの同期信号が無視されることは前記した通りである。 This operation means that a horizontal synchronization signal HS with a horizontal front porch HPv = 16, pulse width PWh = 40, and horizontal back porch BPv = 326 is output to the main display device DS1 during the horizontal wait time WTh = 382 clocks, and a vertical synchronization signal VS with a vertical front porch HPv = 0, pulse width PWv = 3, and vertical back porch BPv = 56 is output during the vertical wait time WTv = 59 lines. However, as mentioned above, these synchronization signals are ignored in the main display device.

なお、デフォルト値に基づく同期信号HS,VSが出力されるのを防ぐため、水平同期信号HSや垂直同期信号VSを出力しないよう、所定のシステム制御レジスタRGijに設定する構成を採っても良い。このようなマスク設定を設けた場合には、VDP回路52の水平同期信号HSの出力端子や、垂直同期信号VSの出力端子は、Hレベル又はLレベルの固定値を維持することができる。 In order to prevent the synchronization signals HS and VS based on the default values from being output, a configuration may be adopted in which a specified system control register RGij is set so that the horizontal synchronization signal HS and the vertical synchronization signal VS are not output. When such a mask setting is provided, the output terminal of the horizontal synchronization signal HS and the output terminal of the vertical synchronization signal VS of the VDP circuit 52 can maintain a fixed value of H level or L level.

続いて、所定のシステム制御レジスタRGijに、Vブランク割込みを許可すると設定する(SS39)。この結果、本実施例では、16.667mS=1/60秒ごとに生じるVブランク開始タイミングに対応して、図20(c)に示すVBLANK開始割込みが生じることなる。このVブランク割込みタイミングは、演出制御CPU63の定常処理(ST5~ST14)の開始タイミングを規定するとともに、表示回路74A,74Bにとっての表示期間の開始タイミング(直前の表示期間の終了タイミング)を意味する。 Next, a specific system control register RGij is set to allow V blank interrupts (SS39). As a result, in this embodiment, the VBLANK start interrupt shown in FIG. 20(c) occurs in response to the V blank start timing that occurs every 16.667 mS = 1/60 seconds. This V blank interrupt timing specifies the start timing of the regular processing (ST5 to ST14) of the performance control CPU 63, and also indicates the start timing of the display period for the display circuits 74A and 74B (the end timing of the previous display period).

次に、所定の表示レジスタRGijに、所定の動作パラメータ(アドレス値)を書込んで、各フレームバッファFBa,FBbについて、垂直表示開始位置と水平表示開始位置を特定する(SS40)。その結果、ステップSS34の処理で縦横寸法が特定された有効データ領域が、フレームバッファFBa,FBb上に確定されることになる。ここで、垂直表示開始位置と水平表示開始位置は、各インデックス空間における相対アドレス値であって、図20(e)に示す実施例では、表示開始位置は(0,0)となっている。 Next, a predetermined operating parameter (address value) is written to a predetermined display register RGij to specify the vertical display start position and horizontal display start position for each frame buffer FBa, FBb (SS40). As a result, the effective data area whose vertical and horizontal dimensions were specified in the processing of step SS34 is determined on the frame buffers FBa, FBb. Here, the vertical display start position and horizontal display start position are relative address values in each index space, and in the example shown in Figure 20 (e), the display start position is (0, 0).

ここで、「表示領域」とは、表示回路74A,74Bが、表示装置DS1,DS2を駆動するために、画像データを読み出すべきインデックス空間(フレームバッファFBa,FBb)を意味し、各々ダブルバッファ構造であるフレームバッファFBa,FBbにおけるダブルバッファの何れか一方を意味する。もっとも、表示回路74A,74Bが、実際に画像データを読み出すのは、表示領域(0)又は表示領域(1)における、ステップSS34とステップSS40で特定された「有効データ領域」に限定される。 Here, "display area" refers to the index space (frame buffers FBa, FBb) from which the display circuits 74A, 74B should read image data to drive the display devices DS1, DS2, and refers to either of the double buffers in the frame buffers FBa, FBb, which each have a double buffer structure. However, the display circuits 74A, 74B actually read image data only from the "valid data area" in the display area (0) or display area (1) identified in steps SS34 and SS40.

次に、メイン表示装置DS1を駆動する表示回路74Aに関する表示レジスタRGij(DSPAINDEX )と、サブ表示装置DS2を駆動する表示回路74Bに関する表示レジスタRGij(DSPBINDEX )に、各々、「表示領域(0)」と「表示領域(1)」を設定して、各表示領域を定義する(SS41)。 Next, "display area (0)" and "display area (1)" are set in the display register RGij (DSPAINDEX) for the display circuit 74A that drives the main display device DS1 and in the display register RGij (DSPBINDEX) for the display circuit 74B that drives the sub-display device DS2, respectively, to define each display area (SS41).

何ら限定されないが、本実施例では、フレームバッファFBaについて、VRAM任意領域(c) におけるインデックス番号254のインデックス空間254を「表示領域(0)」と定義し、VRAM任意領域(c) におけるインデックス番号255のインデックス空間255を、「表示領域(1)」と定義している(SS41)。 Although not limited in any way, in this embodiment, for frame buffer FBa, index space 254 of index number 254 in VRAM arbitrary area (c) is defined as the "display area (0)," and index space 255 of index number 255 in VRAM arbitrary area (c) is defined as the "display area (1)" (SS41).

また、フレームバッファFBbについて、VRAM任意領域(c) におけるインデックス番号251のインデックス空間251を「表示領域(0))とし、VRAM任意領域(c) におけるインデックス番号252のインデックス空間252を「表示領域(1)」としている(SS41)。なお、「表示領域」を初期処理(ST3)において定義することは、特に限定されず、動作周期δ毎に、表示回路74が画像データをREADアクセスすべきインデックス空間(表示領域)をトグル的に切換えても良い。 Furthermore, for frame buffer FBb, index space 251 of index number 251 in VRAM arbitrary area (c) is set as "display area (0)," and index space 252 of index number 252 in VRAM arbitrary area (c) is set as "display area (1)" (SS41). Note that there is no particular limitation on defining the "display area" in the initial processing (ST3), and the index space (display area) to which display circuit 74 should access image data for READ may be toggled for each operating cycle δ.

本実施例では、以上の処理(SS30~SS41)を含んだ初期設定が終われば、次に、所定のシステム制御レジスタRGijへの設定値が、その後、ノイズなどの影響で変更されないよう、第1種の禁止設定レジスタRGijに、所定の禁止値を設定している(第1の禁止設定SS42)。 In this embodiment, once the initial settings including the above processes (SS30 to SS41) are completed, a predetermined prohibited value is set in the first type of prohibited setting register RGij so that the setting value in the predetermined system control register RGij is not subsequently changed due to the influence of noise or the like (first prohibited setting SS42).

ここで、今後の書込みが禁止される設定値には、(1) 表示装置DS1,DS2の表示クロックDCKに関する設定値、(2) LVDSのサンプリングクロックに関する設定値、(3) 出力選択回路79の選択動作に関する設定値、(4) 複数の表示装置DS1,DS2の同期関係(表示回路74Bが表示回路74Aの動作周期に従属すること)などが含まれている。なお、第1の禁止設定を解除するソフトウェア処理は存在するが、本実施例では使用していない。但し、必要に応じて使用するのも好適である。 The setting values that are prohibited from being written in the future include (1) setting values related to the display clock DCK of the display devices DS1 and DS2, (2) setting values related to the sampling clock of the LVDS, (3) setting values related to the selection operation of the output selection circuit 79, and (4) the synchronization relationship between the multiple display devices DS1 and DS2 (display circuit 74B being subordinate to the operating cycle of display circuit 74A). Note that although software processing exists to release the first prohibition setting, it is not used in this embodiment. However, it is preferable to use it as necessary.

次に、第2種の禁止設定レジスタRGijに、所定の禁止値を設定することで、初期設定系のVDPレジスタRGijについて書込み禁止設定をしている(第2の禁止設定SS43)。ここで、禁止設定されるレジスタには、ステップSS30~SS42に係るVDPレジスタRGijが含まれている。 Next, a predetermined prohibited value is set in the second type of prohibition setting register RGij, thereby prohibiting writing to the VDP register RGij of the initial setting system (second prohibition setting SS43). Here, the registers that are prohibited include the VDP register RGij related to steps SS30 to SS42.

一方、第3種の禁止設定レジスタRGijに、所定の禁止値を設定することで、ステップST1~ST3の設定処理に関するVDPレジスタを含んだ、多数のVDPレジスタへの禁止設定も可能である(第3の禁止設定)。但し、本実施例では原則として使用しない。何れにしても、第2の禁止設定や、第3の禁止設定は、所定の解除レジスタRGijに、解除値を書込むことで任意に解除可能であり、定常動作中に設定値を変更することも可能となる。 On the other hand, by setting a specific prohibition value in the third type prohibition setting register RGij, it is also possible to set prohibitions on multiple VDP registers, including the VDP registers related to the setting processes of steps ST1 to ST3 (third prohibition setting). However, this is not used as a general rule in this embodiment. In any case, the second prohibition setting and the third prohibition setting can be released at will by writing a release value to a specific release register RGij, and it is also possible to change the setting value during normal operation.

なお、以上説明したステップST1~ST3の初期設定処理は、VDPレジスタRGijのレジスタアドレス値と、そのレジスタRGijへの設定値とを対応させた初期値設定テーブルSETTABLE(図34参照)に基づいて実行される。以上、初期設定処理について説明したので、次に、定常処理(ST4~ST14)を説明する前に、演出制御CPU63によって制御されるVDP回路52の定常動作(間欠動作)について図28(a)及び図29(b)に基づいて概略的に説明しておく。 The initial setting process of steps ST1 to ST3 described above is executed based on the initial value setting table SETTABLE (see FIG. 34), which associates the register address value of the VDP register RGij with the setting value for that register RGij. Having explained the initial setting process above, we will now provide a brief explanation of the steady-state operation (intermittent operation) of the VDP circuit 52 controlled by the performance control CPU 63 based on FIG. 28(a) and FIG. 29(b), before explaining the steady-state processing (ST4 to ST14).

VDP回路52の間欠動作は、図28や図29に示す通りであり、プリローダ73を使用しない実施例では、図28(a)に示すように、演出制御CPU63が完成させたディスプレイリストDLiは、その動作周期(T1)で、描画回路76に発行され、描画回路76はディスプレイリストDLiに基づく描画動作によって、フレームバッファFBa,FBbに、画像データを完成させる。そして、フレームバッファFBa,FBbに完成された画像データは、次の動作周期T1+δに、表示回路74が表示装置DS1,DS2に出力することで、その後の、表示装置DS1,DS2の描画動作に基づき、遊技者が感知する表示画面となる。 The intermittent operation of the VDP circuit 52 is as shown in Figures 28 and 29. In an embodiment that does not use the preloader 73, as shown in Figure 28(a), the display list DLi completed by the performance control CPU 63 is issued to the drawing circuit 76 in its operation cycle (T1), and the drawing circuit 76 completes image data in the frame buffers FBa, FBb by drawing operations based on the display list DLi. Then, the image data completed in the frame buffers FBa, FBb is output by the display circuit 74 to the display devices DS1, DS2 in the next operation cycle T1+δ, and the display screen sensed by the player is created based on the subsequent drawing operations of the display devices DS1, DS2.

一方、プリローダ73を使用する実施例では、図29(a)に示すように、演出制御CPU63が完成させたディスプレイリストDLiは、その動作周期(T1)で、プリローダ73に発行され、プリローダ73は、ディスプレイリストDLiを解釈して、必要な先読み動作を実行すると共に、ディスプレイリストDLiの一部を書き換えて、書換えリストDL’を完成させる。なお、先読みされたCGデータと書換えリストDL’は、DRAM54の適所に格納される。 On the other hand, in an embodiment using a preloader 73, as shown in FIG. 29(a), the display list DLi completed by the performance control CPU 63 is issued to the preloader 73 in its operating cycle (T1), and the preloader 73 interprets the display list DLi and performs the necessary pre-reading operations while rewriting a portion of the display list DLi to complete the rewrite list DL'. The pre-read CG data and the rewrite list DL' are stored in the appropriate locations in the DRAM 54.

次に、描画回路76は、その次の動作周期(T1+δ)で、DRAM54から書換えリストDL’を取得し、書換えリストDL’に基づく描画動作によって、フレームバッファFBa,FBbに、画像データを完成させる。そして、フレームバッファFBa,FBbに完成された画像データは、更にその次の動作周期(T1+2δ)で、表示回路74が表示装置DS1,DS2に出力することで、その後の表示装置DS1,DS2の描画動作に基づき、遊技者が感知する表示画面となる。 Next, in the next operating cycle (T1+δ), the drawing circuit 76 retrieves the rewrite list DL' from the DRAM 54, and completes the image data in the frame buffers FBa and FBb through drawing operations based on the rewrite list DL'. Then, in the next operating cycle (T1+2δ), the display circuit 74 outputs the completed image data in the frame buffers FBa and FBb to the display devices DS1 and DS2, and the display screen perceived by the player is created based on the subsequent drawing operations of the display devices DS1 and DS2.

以上、VDP回路52の間欠動作について概略的に説明したが、上記した図28~図29の動作を実現するため、演出制御CPU63は、初期処理(ST1~ST3)の後、割込みカウンタVCNTの値を繰り返し参照して、動作開始タイミングに達するのを待ち、動作開始タイミング(一つ飛びのVブランク開始タイミング)に達すれば、割込みカウンタVCNTをゼロクリアする(ST4)。 The intermittent operation of the VDP circuit 52 has been briefly explained above, but to realize the operation shown in Figures 28 to 29, after the initial processing (ST1 to ST3), the performance control CPU 63 repeatedly refers to the value of the interrupt counter VCNT and waits for the operation start timing to be reached, and when the operation start timing (the start timing of the next V blank) is reached, the interrupt counter VCNT is cleared to zero (ST4).

その後、定常動作を開始するが、本実施例では、最初に、定常動作を開始すべき動作開始条件を満たしているか否かを判定する(ST5)。なお、この判定タイミングは、図28~図29に記載のT1,T1+δ、T1+2δ、・・・・のタイミング、つまり、表示装置DS1の垂直帰線期間(VBLANK)の開始タイミングである。なお、表示装置DS2の表示タイミングは、表示装置DS1の表示タイミングに従属するよう、初期設定(ST3)時に設定されている。 After that, steady-state operation is started. In this embodiment, first, it is determined whether or not the operation start conditions for starting steady-state operation are met (ST5). Note that this determination timing is the timings T1, T1+δ, T1+2δ, ... shown in Figures 28 and 29, that is, the start timing of the vertical blanking period (VBLANK) of display device DS1. Note that the display timing of display device DS2 is set during initial setting (ST3) so that it is subordinate to the display timing of display device DS1.

垂直帰線期間(VBLANK)の開始タイミングで判定される動作開始条件は、プリローダ73を活用するか否かで異なるので、先ず、プリローダ73を活用しない実施例(図20)について説明する。この場合は、本来、図28(a)のタイムチャートに示す通りにVDPの内部動作が進行するよう、回路構成やプログラムが設計されている。すなわち、動作周期(T1)で完成されたディスプレイリストDL1に基づき、描画回路76は、その動作周期中(T1~T1+δ)に、描画動作を終える筈である。しかし、例えば、図28(a)の動作周期(T1+2δ)で完成されたディスプレイリストDL3のように、その動作周期中(T1+2δ~T1+3δ)に、描画動作を終わらない場合も無いとは言えない。また、表示回路74に関して、表示タイミングに対して、表示データの生成が間に合わないUnderrun異常が生じている可能性も無くはない。 The operation start condition determined at the start timing of the vertical blanking period (VBLANK) differs depending on whether or not the preloader 73 is used, so first, an embodiment (FIG. 20) that does not use the preloader 73 will be described. In this case, the circuit configuration and program are designed so that the internal operation of the VDP proceeds as shown in the time chart of FIG. 28(a). That is, based on the display list DL1 completed in the operation cycle (T1), the drawing circuit 76 should complete the drawing operation during that operation cycle (T1 to T1+δ). However, for example, as in the case of the display list DL3 completed in the operation cycle (T1+2δ) of FIG. 28(a), it cannot be said that there is no case where the drawing operation is not completed during that operation cycle (T1+2δ to T1+3δ). Also, there is a possibility that an underrun abnormality has occurred in the display circuit 74, in which the generation of display data does not keep up with the display timing.

ステップST5の判定処理は、かかる事態を考慮したのであり、演出制御CPU63は、描画回路76の動作状態を示すステイタスレジスタRGij(制御レジスタ群70の一種)をアクセスして、ステップST5のタイミングで、描画回路76が、必要な動作を終えているか否かと、Underrun異常の有無を判定する。なお、Underrun異常の有無は、アンダーランカウンタURCNTa~URCNTcに基づいて判定される。また、プリローダ73を活用しない実施例では、例えば、図28(a)のタイミングT1+δでは、描画回路76に関する描画レジスタのステイタス情報をREADアクセスして、ディスプレイリストDL1に基づく描画動作が終わっていることを確認する。 The judgment process in step ST5 takes such a situation into consideration, and the performance control CPU 63 accesses the status register RGij (a type of control register group 70) that indicates the operating state of the drawing circuit 76, and judges at the timing of step ST5 whether the drawing circuit 76 has completed the necessary operations and whether there is an underrun abnormality. The presence or absence of an underrun abnormality is judged based on the underrun counters URCNTa to URCNTc. Also, in an embodiment that does not utilize the preloader 73, for example, at timing T1+δ in FIG. 28(a), the status information of the drawing register related to the drawing circuit 76 is read and accessed to confirm that the drawing operation based on the display list DL1 has ended.

そして、動作開始条件を満たさない場合(異常/不適合)には、異常回数をカウントする異常フラグERをインクリメントして、ステップST6~ST8処理をスキップする。異常フラグERは、その他の重大異常フラグABNと共に、ステップST9やST10の処理で判定され、重大異常フラグABNがリセット状態である前提において、連続異常回数が多くない場合(ER≦2)には、正常時と同様に、演出コマンド解析処理を実行する(ST13)。 If the operation start conditions are not met (abnormal/non-conformance), the abnormality flag ER, which counts the number of abnormalities, is incremented and steps ST6 to ST8 are skipped. The abnormality flag ER, along with other serious abnormality flags ABN, is determined in the processing of steps ST9 and ST10, and assuming that the serious abnormality flag ABN is in the reset state, if the number of consecutive abnormalities is not high (ER≦2), the performance command analysis processing is executed as in the normal case (ST13).

Underrun異常時の場合も、同様に、ステップST6~ST8処理をスキップする。そして、所定のシステム制御レジスタRGijに、所定のクリア値を書込むことで、表示クロックDCK(周波数)と表示回路74を初期化する(ST10c)。そして、この初期化処理の正常終了を確認した後、表示クロックDCKの周波数や、表示回路74の動作を規定する一群のシステム制御レジスタRGijの値を、規定値に再設定した上で(ST10c)、演出コマンド解析処理を実行する(ST13)。 In the case of an underrun abnormality, steps ST6 to ST8 are similarly skipped. Then, a predetermined clear value is written to a predetermined system control register RGij to initialize the display clock DCK (frequency) and the display circuit 74 (ST10c). After confirming that this initialization process has ended normally, the frequency of the display clock DCK and the values of a group of system control registers RGij that define the operation of the display circuit 74 are reset to their specified values (ST10c), and the performance command analysis process is executed (ST13).

演出コマンド解析処理(ST13)では、主制御基板21から制御コマンドCMDを受けているか否かを判定し、制御コマンドCMDを受けた場合には、その制御コマンドCMDを解析して必要な処理を実行する(ST13)。ここで、必要な処理には、変動演出の開始を指示する制御コマンドCMDに基づく新規の変動演出の開始準備処理や、エラー発生を示す制御コマンドCMDに基づくエラー報知の開始処理が含まれる。続いて、WDT回路にクリアパルスを出力して(ST14)、ステップST4の処理に戻る。 The performance command analysis process (ST13) determines whether a control command CMD has been received from the main control board 21, and if a control command CMD has been received, analyzes the control command CMD and executes the necessary processing (ST13). The necessary processing here includes preparation processing for the start of a new variable performance based on a control command CMD that instructs the start of a variable performance, and starting an error notification based on a control command CMD that indicates the occurrence of an error. Next, a clear pulse is output to the WDT circuit (ST14), and processing returns to step ST4.

以上、軽微なUnderrun異常時や、動作開始条件が不適合の場合であって、異常フラグERがER≦2である場合について説明したが、このような場合には、その動作周期では、表示回路74が読み出す表示領域をトグル切換える処理(ST6)や、ディスプレイリストの作成処理(ST7)がスキップされ、且つ、演出シナリオが進行しないことになる(ST8~ST12参照)。これは、不完全な状態のフレームバッファFBa,FBbの画像データを出力させないためである。そのため、例えば、図28(a)の動作周期(T1+3δ)では、画像演出が進行せず、元の画面(DL2に基づく画面)が再表示されるフレーム落ちが生じる。 The above describes the case where there is a minor underrun abnormality or where the operation start conditions are not met and the abnormality flag ER is ER≦2. In such cases, in that operating cycle, the process of toggling the display area read by the display circuit 74 (ST6) and the process of creating a display list (ST7) are skipped, and the performance scenario does not progress (see ST8 to ST12). This is to prevent the output of image data from the frame buffers FBa and FBb in an incomplete state. Therefore, for example, in the operating cycle (T1+3δ) in Figure 28(a), the image performance does not progress, and a frame drop occurs in which the original screen (screen based on DL2) is redisplayed.

ここで、フレーム落ちを回避するため、動作開始条件が成立するまで待機する構成も考えられる。しかし、演出制御CPU63が実行すべき制御処理(ST6~ST12)は数多く、各々の処理時間を確保する必要があるので、本実施例では、動作開始条件を満たさない場合にフレーム落ちを生じさせている。 To avoid dropping frames, it is also possible to configure the system to wait until the operation start conditions are met. However, since there are many control processes (ST6 to ST12) that the performance control CPU 63 must execute, and each process needs to have enough time, in this embodiment, frames are dropped when the operation start conditions are not met.

但し、フレーム落ちが生じたとしても、割込み処理(図20(b))によって進行するランプ演出やモータ演出と比較して、1/30~2/30秒程度、画像演出の進行が遅れるだけであり、これに遊技者が気付くことはない。しかも、フレーム落ち時には、演出カウンタENの更新処理を含んだ演出シナリオ処理(ST11)や、音声進行処理(ST12)も合わせてスキップされるので、その後に開始されるリーチ演出や予告演出や役物演出において、画像演出、音声演出、ランプ演出、及びモータ演出などの開始タイミングがずれるおそれはない。 However, even if a frame is dropped, the image effects are only delayed by about 1/30 to 2/30 of a second compared to the lamp and motor effects that proceed through interrupt processing (Figure 20 (b)), and the player will not notice this. Furthermore, when a frame is dropped, the effect scenario processing (ST11), which includes the effect counter EN update processing, and the audio progression processing (ST12) are also skipped, so there is no risk of the start timing of the image effects, audio effects, lamp effects, and motor effects being shifted in the reach effects, preview effects, and gimmick effects that are started afterwards.

すなわち、演出シナリオでは、画像演出、音声演出、ランプ演出、モータ演出の開始タイミングと、その後に実行すべき演出内容を一元的に管理しており、正常時に限り更新される演出カウンタENによって、開始タイミングを制御しているので、各種の演出の同期が外れることはない。例えば、爆発音と、爆発画像と、役物移動と、ランプフラッシュ動作を複合した演出動作がある場合、フレーム落ちが生じた後であっても、上記した各演出動作は正しく同期して開始される。 In other words, the performance scenario centrally manages the start timing of image performance, audio performance, lamp performance, and motor performance, as well as the performance content to be executed thereafter, and the start timing is controlled by the performance counter EN, which is updated only under normal circumstances, so that various performances will not become out of sync. For example, if there is a performance action that combines the sound of an explosion, an explosion image, the movement of a reel, and a lamp flash action, each of the above performance actions will start correctly and in sync, even after a frame drop occurs.

以上、比較的軽微な異常時について説明したが、重大異常フラグABNがセット状態である場合や、連続異常回数が多い場合(ER>2)や、繰り返しUnderrun異常が生じる場合には、ステップST10の判定の後、無限ループ状態としている(ST10b)。その結果、WDT回路58の計時動作が進行して、演出制御CPU63を含んだ複合チップ50は、異常リセットされ、その後、初期処理(ST1~ST3)が再実行されることで、異常事態発生の根本原因の解消が期待される。 The above describes relatively minor abnormalities, but if the serious abnormality flag ABN is set, if there are many consecutive abnormalities (ER>2), or if an underrun abnormality occurs repeatedly, an infinite loop state is entered after the judgment in step ST10 (ST10b). As a result, the timing operation of the WDT circuit 58 progresses, and the composite chip 50 including the performance control CPU 63 is reset due to an abnormality, and then the initial processing (ST1-ST3) is re-executed, which is expected to eliminate the root cause of the abnormality.

なお、このリセット動作は、WDT回路58が起動して実行されるので、CPU回路51も含め複合チップ50全体がリセット状態となる(図6(b))。そこで、CPU回路51のリセットを回避するべく、演出制御CPU63が、所定のキーワード列(例えば1バイトデータ3個)をパターンチェック回路CHKに出力して、リセット信号RSTをVDP回路52に出力するのも好適である(図34のST100参照)。この場合も、VDP回路52のリセット動作の正常終了を確認した後(ST101)、ステップST4やST13の処理に移行させることになる。 This reset operation is performed by activating the WDT circuit 58, so the entire composite chip 50, including the CPU circuit 51, is reset (Figure 6 (b)). Therefore, in order to avoid resetting the CPU circuit 51, it is also preferable for the performance control CPU 63 to output a predetermined keyword string (e.g., three 1-byte data items) to the pattern check circuit CHK and output a reset signal RST to the VDP circuit 52 (see ST100 in Figure 34). In this case, too, after confirming that the reset operation of the VDP circuit 52 has been completed successfully (ST101), the process will move on to steps ST4 and ST13.

何れにしても、この異常時には、音声回路SNDも合わせ異常リセットされるので、画像演出、音声演出、ランプ演出、モータ演出は、全て初期状態に戻ることになる。但し、これらのリセット動作は、主制御部21や払出制御部25には、何の影響も与えなので、大当り状態の消滅や、賞球の消滅のような事態が発生するおそれはない。 In any case, in the event of this abnormality, the sound circuit SND is also reset, so the image effects, sound effects, lamp effects, and motor effects are all returned to their initial states. However, these reset operations have no effect on the main control unit 21 or the payout control unit 25, so there is no risk of the jackpot state disappearing or the prize balls disappearing.

以上、異常事態について説明したが、実際には、軽微な場合も含め上記した異常が発生することは殆どなく、ステップST5の処理の後、所定の表示レジスタRGij(DSPACTL /DSPBCTL)への設定に基づき、表示回路74Aと表示回路74Bが読み出すべき画像データを記憶するフレームバッファFBa,FBbの「表示領域」をトグル的に切り換える(ST6)。先に説明した通り、「表示領域(0)」と「表示領域(1)」は、予め初期処理において定義されているので(ST3)、ステップST6の処理では、フレームバッファFBa,FBbについて、今回の「表示領域」が、表示領域(0)/表示領域(1)の何れであるかを特定する。 Although the above has been described as an abnormal situation, in reality, the above-mentioned abnormalities rarely occur, even if they are minor. After the processing of step ST5, the "display area" of frame buffers FBa and FBb that store image data to be read by display circuit 74A and display circuit 74B is toggled (ST6) based on the setting of a predetermined display register RGij (DSPACTL/DSPBCTL). As explained above, "display area (0)" and "display area (1)" are defined in advance in the initial processing (ST3), so in the processing of step ST6, it is determined whether the current "display area" for frame buffers FBa and FBb is display area (0) or display area (1).

このステップST6が実行されることで、表示回路74Aは、インデックス空間254(表示領域(0))と、インデックス空間255(表示領域(1))から、動作周期δ毎に、交互に画像データを読み出して表示装置DS1を駆動することになる。同様に、表示回路74Bは、インデックス空間251(表示領域(0))と、インデックス空間252(表示領域(1))から、動作周期δ毎に、交互に画像データを読み出してサブ表示装置DS2を駆動することになる。なお、表示回路74が実際にREADアクセスするのは、表示領域(0)/表示領域(1)における有効データ領域に限定されるのは先に説明した通りである。 By executing this step ST6, the display circuit 74A alternately reads out image data from the index space 254 (display area (0)) and the index space 255 (display area (1)) for each operation cycle δ to drive the display device DS1. Similarly, the display circuit 74B alternately reads out image data from the index space 251 (display area (0)) and the index space 252 (display area (1)) for each operation cycle δ to drive the sub-display device DS2. As explained above, the actual READ access by the display circuit 74 is limited to the valid data area in the display area (0)/display area (1).

何れにしても、本実施例では、動作周期毎に「表示領域」が切り替わるので、表示回路74A,74Bは、直前の動作周期で描画回路76が完成させた画像データについて、表示装置DS1,DS2への出力処理を開始することになる。但し、ステップST5の処理は、メイン表示装置DS1の垂直帰線期間(Vブランク)の開始時から開始されるので、実際には、垂直帰線期間が完了してから画像データの出力処理が開始されることになる。図28(a)において、表示回路の欄に示す矢印は、この出力処理の動作周期を示している。 In any case, in this embodiment, the "display area" switches for each operating cycle, so that the display circuits 74A and 74B start output processing to the display devices DS1 and DS2 for the image data that the drawing circuit 76 completed in the previous operating cycle. However, since the processing of step ST5 starts at the start of the vertical blanking period (V blank) of the main display device DS1, the output processing of the image data actually starts after the vertical blanking period is completed. In FIG. 28(a), the arrows shown in the display circuit column indicate the operating cycle of this output processing.

以上のような意義を有するステップST6の処理が終われば、演出制御CPU63は、続いて、次の動作周期で、表示回路74が表示装置に出力するべき画像データを特定したディスプレイリストDLを完成させる(ST7)。特に限定されないが、この実施例では、RAM59のリストバッファ領域(DLバッファBUF)を確保し、そこにディスプレイリストDLを完成させている(図12参照)。 When the processing of step ST6, which has the above-mentioned significance, is completed, the performance control CPU 63 then completes a display list DL that specifies the image data that the display circuit 74 should output to the display device in the next operating cycle (ST7). Although not limited to this, in this embodiment, a list buffer area (DL buffer BUF) in RAM 59 is secured, and the display list DL is completed therein (see FIG. 12).

ディスプレイリストDLは、一連の指示コマンドを、適宜な順番で列記して構成され、EODL(End Of DL )コマンドを記載して終わるよう構成されている。そして、本実施例では、データ転送回路72、描画回路76、プリローダ73の円滑な動作を実現するべく、EODLコマンドを含む全ての指示コマンドを、コマンド長が32bitの整数N倍(N>0)の指示コマンドだけに限定している。なお、32bitの整数N倍で構成された指示コマンドに、無意ビット(Don't care bit)も含んで良いことは先に説明した通りである。 The display list DL is configured by listing a series of instruction commands in an appropriate order and is configured to end with an EODL (End Of DL) command. In this embodiment, in order to realize smooth operation of the data transfer circuit 72, the drawing circuit 76, and the preloader 73, all instruction commands including the EODL command are limited to only instruction commands whose command length is an integer multiple of 32 bits (N>0). As explained above, instruction commands consisting of an integer multiple of 32 bits may also include a don't care bit.

このように、実施例のディスプレイリストDLは、コマンド長が32bitの整数N倍(N>0)の指示コマンドだけで構成されているので、ディスプレイリストDL全体のデータボリューム値(データ総量)は、必ず、コマンド長の最小単位(32bit=4バイト)の整数倍となる。更に、本実施例では、データ転送回路72の最低データ量Dminを考慮して、ディスプレイリストDLのデータボリューム値を、最低データ量Dminの整数倍(1以上)であって、且つ、指示コマンドの最小単位(4バイト)の整数倍となるよう調整している。例えば、Dmin=256バイトであれば、ディスプレイリストDLのデータボリューム値は、256バイト、512バイト・・・の何れかの値に調整される。 In this way, since the display list DL of the embodiment is composed only of instruction commands whose command length is an integer multiple of 32 bits (N>0), the data volume value (total amount of data) of the entire display list DL is always an integer multiple of the minimum unit of the command length (32 bits = 4 bytes). Furthermore, in this embodiment, taking into account the minimum data amount Dmin of the data transfer circuit 72, the data volume value of the display list DL is adjusted to be an integer multiple (1 or more) of the minimum data amount Dmin and also an integer multiple of the minimum unit of the instruction command (4 bytes). For example, if Dmin = 256 bytes, the data volume value of the display list DL is adjusted to one of the following values: 256 bytes, 512 bytes, etc.

ここで、演出内容の複雑さに応じて、適宜に、256バイトか、又は512バイトに調整するのも好適であるが、本実施例では、表示装置が二個であり、サブ表示装置DS2はそれほど複雑な画像演出を実行させないことを考慮して、ディスプレイリストDLのデータボリューム値を、常に、256バイトに調整している。 It would be appropriate to adjust the value to 256 bytes or 512 bytes depending on the complexity of the presentation content, but in this embodiment, taking into consideration that there are two display devices and the sub-display device DS2 does not execute very complex image presentations, the data volume value of the display list DL is always adjusted to 256 bytes.

もっとも、この手法は、何ら限定されず、表示装置が三個以上になる場合や、サブ表示装置DS2も含め複雑な画像演出を実行する遊技機の場合には、512バイト又は、768バイトに調整される。また、通常の演出時は、ディスプレイリストDLのデータボリューム値を256バイトに調整し、特別な演出を実行する場合に限り、ディスプレイリストDLのデータボリューム値を、512バイト又は、768バイトに調整するのも好適である。 However, this method is not limited in any way, and in the case of three or more display devices, or in the case of a gaming machine that executes complex image effects including the sub-display device DS2, the data volume value is adjusted to 512 bytes or 768 bytes. Also, during normal effects, it is preferable to adjust the data volume value of the display list DL to 256 bytes, and only when a special effect is executed, to adjust the data volume value of the display list DL to 512 bytes or 768 bytes.

但し、本実施例の場合には、ディスプレイリストDLのデータボリューム値は、各動作周期δにおいて、予め規定された所定バイト長(256バイト)に調整される。調整手法としては、32bit長のEODLコマンドの後に、不足領域を補填する32bit長のNOP (No Operation)コマンドを埋める簡易手法(A)か、或いは、不足領域を32bit長のNOP コマンドで埋めた後、最後に32bit長のEODLコマンドを記載する標準手法(B)が考えられる。なお、ディスプレイリストDLのデータボリューム値(データ総量)を全く調整することなくEODLコマンドで終結させ、データ転送回路72の動作時に、ダミーデータを付加的に転送して、最低データ量Dminの整数倍の転送量を確保する無調整手法(C)も考えられる。 However, in this embodiment, the data volume value of the display list DL is adjusted to a predetermined byte length (256 bytes) in each operation cycle δ. The adjustment method can be a simple method (A) in which a 32-bit EODL command is followed by a 32-bit NOP (No Operation) command to fill in the missing area, or a standard method (B) in which the missing area is filled with a 32-bit NOP command and then a 32-bit EODL command is written at the end. In addition, a non-adjustment method (C) can be considered in which the data volume value (total amount of data) of the display list DL is terminated with an EODL command without any adjustment, and dummy data is additionally transferred during the operation of the data transfer circuit 72 to ensure a transfer amount that is an integer multiple of the minimum data amount Dmin.

ここで、標準手法(B)を採る場合には、最初、コマンドカウンタCNTを規定値(256バイトに対応する64-1)に初期設定し、DLバッファ領域BUFに、有意な指示コマンドを書き込むごとに、コマンドカウンタCNTを適宜に減算し、一連の有意な指示コマンドの書き込みが終われば、コマンドカウンタCNTがゼロになるまで、NOP コマンドを記載し、最後にEODLコマンドを記載する手法が考えられる。本実施例の場合、指示コマンドは、そのコマンド長が32bitの整数N倍(N>0)のものに限定されているので、上記の処理は容易であり、コマンドカウンタCNTの減算処理は、整数Nに対応した減算処理となる。 If standard method (B) is adopted, the command counter CNT is initially set to a specified value (64-1 corresponding to 256 bytes), and the command counter CNT is appropriately decremented each time a significant command is written to the DL buffer area BUF. After a series of significant commands have been written, NOP commands are written until the command counter CNT reaches zero, and finally an EODL command is written. In this embodiment, the command length is limited to an integer multiple of 32 bits (N>0), so the above process is easy, and the decrement process of the command counter CNT corresponds to the integer N.

一方、簡易手法(A)を採る場合には、ディスプレイリストDLの作成時、最初に、リストバッファ領域(DLバッファBUF)の全てをNOP コマンドで埋めれば足りるので、一見、標準手法(B)より優れているように思われる。また、簡易性の観点では、無調整手法(C)も優れているように思われる。しかし、本実施例では、基本的に標準手法(B)を採っており、ディスプレイリストDLの先頭からEODLコマンドまでの実データ量、つまり、EODLコマンドまでのデータ量が、常に、データ転送回路72の最低データ量Dminの整数倍となるよう調整している。 On the other hand, when the simplified method (A) is adopted, it is sufficient to fill the entire list buffer area (DL buffer BUF) with NOP commands at the beginning when creating the display list DL, so at first glance it appears to be superior to the standard method (B). Also, from the viewpoint of simplicity, the unadjusted method (C) also appears to be superior. However, this embodiment basically adopts the standard method (B), and adjusts so that the actual amount of data from the beginning of the display list DL to the EODL command, that is, the amount of data up to the EODL command, is always an integer multiple of the minimum data amount Dmin of the data transfer circuit 72.

これは、プリローダ73を活用する実施例を考慮したものであり、もし、簡易手法(A)や無調整手法(C)を採用すると、EODLコマンドまでのディスプレイリストDLの実データ量が、ランダムな値となり、プリローダ73が書き換えた書換えリストDL’のDRAM54への転送時や、DRAM54から描画回路76への書換えリストDL’の転送時に支障が生じるからである。なお、書換えリストDL’のDRAM54への転送時には、データ転送回路72のChA制御回路72aが機能し、書換えリストDL’の描画回路76への転送時には、ChB制御回路72bが機能するが(図26参照)、何れの場合もEODLコマンドまでの書換えリストDL’しか転送しないことになる。 This is because an embodiment utilizing the preloader 73 is taken into consideration, and if the simple method (A) or the adjustment-free method (C) is adopted, the actual data amount of the display list DL up to the EODL command becomes a random value, causing problems when the rewrite list DL' rewritten by the preloader 73 is transferred to the DRAM 54, and when the rewrite list DL' is transferred from the DRAM 54 to the drawing circuit 76. Note that when the rewrite list DL' is transferred to the DRAM 54, the ChA control circuit 72a of the data transfer circuit 72 functions, and when the rewrite list DL' is transferred to the drawing circuit 76, the ChB control circuit 72b functions (see FIG. 26), but in either case, only the rewrite list DL' up to the EODL command is transferred.

以上、ディスプレイリストDLのデータボリューム値を調整する標準手法(B)の利点を説明したが、プリローダ73を使用しない実施例では、発行されたディスプレイリストDLは、描画回路76によって処理されるだけであるので、簡易手法(A)や無調整手法(C)の使用が何ら禁止されない。 The above describes the advantages of the standard method (B) of adjusting the data volume value of the display list DL, but in an embodiment that does not use the preloader 73, the issued display list DL is simply processed by the drawing circuit 76, so there is no prohibition on using the simple method (A) or the adjustment-free method (C).

但し、以下の説明では、プリローダ73の使用の有無に拘らず、原則として標準手法(B)を採ることを前提に、図21に基づいて、ディスプレイリストDLの詳細について説明する。 However, in the following explanation, we will assume that the standard method (B) is adopted in principle, regardless of whether or not the preloader 73 is used, and will explain the details of the display list DL based on Figure 21.

特に限定されないが、本実施例では、ディスプレイリストDLに、先ず、メイン表示装置DS1に関する指示コマンド列(L11~L16)を記載し、その後、サブ表示装置DS2に関する指示コマンド列(L17~L20)を記載するようにしている。また、標準手法(B)を採用して、ディスプレイリストDLのデータボリューム値を固定長(256バイト)に調整している。なお、図21は、事実上、演出制御CPU63が、RAM59のリストバッファ領域に、指示コマンドを書き込む手順や、ディスプレイリストDLに基づく描画回路76の動作を示したものともなっている。 In this embodiment, although not limited to this, the display list DL first contains a sequence of instruction commands (L11-L16) for the main display device DS1, and then contains a sequence of instruction commands (L17-L20) for the sub-display device DS2. In addition, the standard method (B) is adopted to adjust the data volume value of the display list DL to a fixed length (256 bytes). Note that FIG. 21 also shows, in effect, the procedure by which the performance control CPU 63 writes instruction commands into the list buffer area of the RAM 59, and the operation of the drawing circuit 76 based on the display list DL.

図21に示す通り、ディスプレイリストDLの先頭では、環境設定系の指示コマンド(SETDAVR )を記載して、表示装置DS1のフレームバッファFBaについて、インデックス空間IDX上の左上基点アドレス(X,Y)を規定する(L11)。図11(a)に関して説明した通り、本実施例では、表示装置DS1用として、任意領域(c) に、一対のフレームバッファFBaが確保されている。そして、通常は、表示回路74にとっての有効データ領域に対応して、基点アドレス(X,Y)=(0,0)とすることで、フレームバッファFBaの先頭位置から描画回路76に活用される。 As shown in FIG. 21, at the beginning of the display list DL, an environment setting command (SETDAVR) is written to specify the upper left base address (X, Y) in the index space IDX for the frame buffer FBa of the display device DS1 (L11). As explained with reference to FIG. 11(a), in this embodiment, a pair of frame buffers FBa is reserved in the arbitrary area (c) for the display device DS1. Then, normally, the base address (X, Y) = (0, 0) is set to correspond to the valid data area for the display circuit 74, and the frame buffer FBa is used by the drawing circuit 76 from its beginning position.

図11(c)では、その下方左側の実描画領域にL11と付しているが、これは、指示コマンドL11によって、フレームバッファFBa上の実描画領域が、フレームバッファFBaの基点アドレス(0,0)位置から始まると特定されたことを意味している。ただし、実描画領域の縦横寸法や、その実描画領域を具体的に特定するインデックス番号は、未だ未確定であり、後述する指示コマンド(SETINDEX)L13によって確定する。なお、指示コマンドL11ではZバッファの使用の有無も指定される。 In Figure 11(c), the actual drawing area on the lower left is labeled L11, which means that the instruction command L11 has specified that the actual drawing area on frame buffer FBa begins at the base address (0,0) of frame buffer FBa. However, the vertical and horizontal dimensions of the actual drawing area and the index number that specifically specifies this actual drawing area have not yet been determined, and will be determined by instruction command (SETINDEX) L13, which will be described later. Note that instruction command L11 also specifies whether or not to use the Z buffer.

次に、環境設定系の指示コマンド(SETDAVF )によって、仮想描画空間上に、左上基点座標(Xs,Ys)と、右下対角点座標(Xe,Ye)を設定して、W×H寸法の描画領域を定義する(L12)。ここで、仮想描画空間とは、描画用の指示コマンド(SPRITEコマンドなど)によって描画可能な、X方向±8192、Y方向±8192の仮想的な二次元空間である(図11(c)参照)。 Next, the environment setting command (SETDAVF) is used to set the upper left base point coordinates (Xs, Ys) and the lower right diagonal point coordinates (Xe, Ye) in the virtual drawing space, defining a drawing area with dimensions W x H (L12). Here, the virtual drawing space is a virtual two-dimensional space of ±8192 in the X direction and ±8192 in the Y direction that can be drawn using drawing command commands (such as the SPRITE command) (see Figure 11(c)).

この指示コマンドL12(SETDAVF )によって、仮想描画空間は、描画内容が実際に表示装置DS1に反映される描画領域と、その他の非描画領域に区分される。また、指示コマンドL12(SETDAVF )は、指示コマンドL11で開始位置(基点アドレス)が規定された実描画領域と、仮想描画空間上の描画領域とを対応付けることになる。 This instruction command L12 (SETDAVF) divides the virtual drawing space into a drawing area where the drawing contents are actually reflected on the display device DS1, and the other non-drawing area. Furthermore, instruction command L12 (SETDAVF) associates the actual drawing area, whose start position (base address) is specified by instruction command L11, with the drawing area in the virtual drawing space.

この点を言い換えると、指示コマンドL12によって、(インデックス空間は未定の)フレームバッファFBaには、仮想描画空間上の描画領域に対応する、基点アドレスから始まるW×Hの実描画領域が定義されることになる。したがって、指示コマンドL12で指定する描画領域は、フレームバッファFBaの水平サイズと同一か、それ以下とする必要がある。通常、描画領域や実描画領域は、表示回路74にとっての有効データ領域(図20(e))と同寸法となるよう定義される。 In other words, the instruction command L12 defines an actual drawing area of W x H starting from the base address in the frame buffer FBa (with the index space undefined), which corresponds to the drawing area in the virtual drawing space. Therefore, the drawing area specified by the instruction command L12 must be the same as or smaller than the horizontal size of the frame buffer FBa. Normally, the drawing area and actual drawing area are defined to be the same dimensions as the effective data area (Figure 20 (e)) for the display circuit 74.

そして、描画回路76が指示コマンドL11,L12を実行した後は、仮想描画空間に描画された描画内容のうち、描画領域に含まれるものだけが、フレームバッファFBaの実描画領域に反映されることになる。したがって、描画領域からはみ出した部分や、図11(c)において作業領域と記載された部分の描画内容は、そのままでは、フレームバッファに反映されることはない。なお、仮想描画空間に作業領域を確保する場合には、仮想描画空間の非描画領域が使用される。 After the drawing circuit 76 executes the instruction commands L11 and L12, only the drawing contents drawn in the virtual drawing space that are included in the drawing area are reflected in the actual drawing area of the frame buffer FBa. Therefore, the drawing contents that extend beyond the drawing area or the part marked as the working area in Figure 11 (c) are not reflected in the frame buffer as is. Note that when reserving a working area in the virtual drawing space, the non-drawing area of the virtual drawing space is used.

次に、今回の動作周期において、描画回路76が、これから完成させるディスプレイリストDLに基づいて描画する描画内容を何処に描画すべきかを規定する(L13)。具体的には、ダブルバッファ構成の表示装置DS1のフレームバッファFBaについて、今回のディスプレイリストDLに基づく描画内容の「書込み領域」となるインデックス空間IDXが特定される(L13)。具体的には、テクスチャ設定系のコマンドであるSETINDEXコマンドによって、(1) フレームバッファFBaは、任意領域に確保されていること、及び、(2) 「書込み領域」となるインデックス空間IDXの任意領域上のインデックス番号Nが特定される。 Next, in the current operation cycle, the drawing circuit 76 specifies where to draw the drawing contents based on the display list DL to be completed (L13). Specifically, for the frame buffer FBa of the display device DS1 with a double buffer configuration, the index space IDX that will be the "write area" of the drawing contents based on the current display list DL is specified (L13). Specifically, the SETINDEX command, which is a texture setting command, specifies (1) that the frame buffer FBa is secured in an arbitrary area, and (2) the index number N in the arbitrary area of the index space IDX N that will be the "write area".

この指示コマンドL13によって、例えば、N=255と特定された場合には、仮想描画空間上に定義された描画領域に対応する実描画領域は、具体的には、ダブルバッファ構造のフレームバッファFBaにおけるインデックス空間IDX255であると定義されたことになる。 If, for example, N=255 is specified by this instruction command L13, the actual drawing area corresponding to the drawing area defined in the virtual drawing space is specifically defined as the index space IDX 255 in the frame buffer FBa having a double buffer structure.

本実施例の場合、フレームバッファFBaのインデックス番号は、255又は254であり(図11(a))、トグル的に切り換えた何れかが指定される(L13)。なお、このインデックス番号は、メイン制御処理のステップST6で指定された表示領域(0)/(1)ではない方のインデック番号である。例えば、ステップST6の処理において、表示回路74に対して、表示領域(0)が指定されている場合には、表示領域(1)が、描画回路76にとっての「書込み領域」となる。 In this embodiment, the index number of the frame buffer FBa is 255 or 254 (FIG. 11(a)), and either one is designated by toggling (L13). Note that this index number is the index number of the display area other than (0)/(1) designated in step ST6 of the main control process. For example, in the process of step ST6, if display area (0) is designated for the display circuit 74, display area (1) becomes the "write area" for the drawing circuit 76.

以上の通り、指示コマンドL11と指示コマンドL12とで、実描画領域(W×Hの論理空間)と描画領域(W×Hの仮想空間)との対応関係が、一般的に定義された後、インデックス空間IDXを具体的に特定する指示コマンドL13(SETINDEX)によって、W×Hの仮想空間が、特定のインデックス空間IDXにおけるW×Hの論理空間であると対応付けられたことになる。 As described above, the correspondence between the actual drawing area (logical space of W x H) and the drawing area (virtual space of W x H) is generally defined by instruction command L11 and instruction command L12, and then the virtual space of W x H is associated with the logical space of W x H in the specific index space IDX by instruction command L13 (SETINDEX), which specifically specifies the index space IDX.

この点を言い換えると、今後、一連の指示コマンドに基づいて、W×Hの仮想空間に仮想的に描画される内容は、仮想空間と内蔵VRAM71の実アドレスとの対応関係を規定するVDP内部の変換テーブルに基づいて、内蔵VRAM71(フレームバッファ)の画像データとなる。 In other words, from now on, the content that is virtually drawn in the W x H virtual space based on a series of instruction commands will become image data in the built-in VRAM 71 (frame buffer) based on a conversion table inside the VDP that defines the correspondence between the virtual space and the real addresses of the built-in VRAM 71.

続いて、「書込み領域」として、特定されたインデックス空間IDXを、例えば、黒色で塗りつぶすフレームバッファ・クリア処理を実行する指示コマンドが記載される(L14,L15)。これは、二動作期間前にフレームバッファFBaに書き込まれた画像データの消去処理に他ならない。 Next, an instruction command is written to execute a frame buffer clear process that fills the specified index space IDX as the "write area" with, for example, black (L14, L15). This is nothing more than a process to erase the image data that was written to the frame buffer FBa two operation periods ago.

具体的には、環境設定コマンドの一種であるSETFCOLOR コマンドによって、例えば黒色を選択し、プリミティブ描画系コマンドであるRECTANGLE コマンドによって矩形領域を塗り潰すべく規定する。なお、RECTANGLE コマンドでは、仮想描画空間に設定された描画領域(フレームバッファFBaに対応する仮想空間)について、その左上端点と、右下端点のXY座標が指定される(図11(c)参照)。 Specifically, the color black is selected using the SETFCOLOR command, which is a type of environment setting command, and the RECTANGLE command, which is a primitive drawing command, is used to specify that a rectangular area should be filled. Note that the RECTANGLE command specifies the XY coordinates of the upper left corner and lower right corner of the drawing area (the virtual space corresponding to the frame buffer FBa) set in the virtual drawing space (see Figure 11 (c)).

以上の処理によって、描画準備処理が完了するので、次に、静止画や動画一フレームなど、適宜なテクスチャを、仮想描画空間に描画するための指示コマンドを列記する。典型的には、先ず、テクスチャの展開先となるインデックス空間IDXを、テクスチャ設定系のSETINDEXコマンドで特定した上で、テクスチャロード系の指示コマンドであるTXLOADコマンドを記載して、CGROM55から読み出す所定のテクスチャを、所定のインデックス空間IDXに展開するようディスプレイリストDLに記載する。 The above process completes the rendering preparation process, so next, command instructions are listed for rendering an appropriate texture, such as a still image or a single frame of video, in the virtual rendering space. Typically, the index space IDX into which the texture will be deployed is specified using a texture setting command, and then a texture load command, the TXLOAD command, is written to enter a specific texture read from CGROM 55 in the display list DL to be deployed in the specific index space IDX.

先に説明した通り、本実施例では、背景動画が、IPストリーム動画で構成されている。そこで、例えば、背景動画について、これを展開すべきインデックス空間IDXを、テクスチャ設定系のSETINDEXコマンドで、ページ領域(b) のインデックス空間IDXと特定した上で、テクスチャロード系のTXLOADコマンドを記載する。なお、TXLOADコマンドでは、今回LOADすべき動画フレームについて、CGROM55の先頭アドレス(テクスチャのSourceアドレス)と、展開後のデータサイズ(水平×垂直)を特定する必要がある。 As explained above, in this embodiment, the background video is composed of IP stream video. Therefore, for example, the index space IDX into which the background video should be expanded is specified as index space IDX 0 of page area (b) by the texture setting SETINDEX command, and then the texture load TXLOAD command is written. Note that the TXLOAD command needs to specify the top address of the CGROM 55 (texture source address) and the expanded data size (horizontal x vertical) for the video frame to be loaded this time.

VDP回路52において、上記のTXLOADコマンドが実行されると、背景動画の一動画フレーム(テクスチャ)は、先ず、AAC領域(a) に取得され、その後、自動的に起動するGDEC75によって、ページ領域(b) のインデックス空間IDXに展開される。次に、この一動画フレームを仮想描画空間に描画することになる。この場合に、SETINDEXコマンド(テクスチャ設定系)によって、「ページ領域(b) のインデックス空間IDXが、その後の処理対象のテクスチャである」と設定しても良いが、TXLOADコマンドに連続して処理する場合には、このSETINDEXコマンドの記載を省略することができる。 When the VDP circuit 52 executes the TXLOAD command, one video frame (texture) of the background video is first acquired in the AAC area (a), and then the GDEC 75, which starts automatically, expands it into the index space IDX 0 of the page area (b). Next, this one video frame is drawn in the virtual drawing space. In this case, the SETINDEX command (texture setting system) may be set so that "the index space IDX 0 of the page area (b) is the texture to be processed thereafter," but if processing is to be performed immediately after the TXLOAD command, the description of this SETINDEX command may be omitted.

何れにしても、「ページ領域(b) のインデックス空間IDXが、その後の処理対象のテクスチャである」と特定されている状態で、次に、αブレンド処理のためのパラメータを設定するなど、適宜な描画間演算系の指示コマンドを記載する。なお、αブレンド処理とは、既に描画領域(フレームバッファFBa)に記載されている画像と、これから上書きする画像との透明化/半透明化処理に関するものある。したがって、背景動画の動画フレームのように、第一枚目の描画動作では、描画間演算系の指示コマンドの使用は不要である。 In any case, in the state where "index space IDX 0 of page area (b) is specified as the texture to be processed thereafter," next, an appropriate inter-drawing calculation instruction command is written, such as setting parameters for alpha blending. Note that alpha blending is a process for making the image already written in the drawing area (frame buffer FBa) transparent/semi-transparent with the image to be overwritten. Therefore, in the first drawing operation, such as the video frame of the background video, it is not necessary to use an inter-drawing calculation instruction command.

続いて、プリミティブ描画系の指示コマンドであるSPRITEコマンドによって、「ページ領域(b) のインデックス空間IDXのテクスチャ(背景動画の一動画フレーム)」を、仮想描画空間の適所(矩形のDestination 領域)に描画するべくSPRITEコマンドを記載する。なお、SPRITEコマンドには、仮想描画空間のDestination 領域について、その左上端点と、右下端点を特定する必要がある。 Next, a SPRITE command, which is a primitive rendering instruction command, is written to render the "texture of index space IDX 0 in page area (b) (one video frame of the background video)" in the appropriate location (rectangular destination area) in the virtual rendering space. Note that the SPRITE command requires that the upper left corner and lower right corner of the destination area in the virtual rendering space be specified.

このDestination 領域は、予め、指示コマンドL11,L12によって、実描画領域(FBa)に対応付けられた描画領域(仮想描画空間上に定義された仮想空間)の全体又はその一部である。但し、背景動画は、通常、表示画面全体に描画するので、このような場合のDestination 領域は、描画領域の全体又はそれ以上となる。なお、Destination 領域が、描画領域の全体より大きい場合とは、例えば、背景動画がズームアップされる場合である。 This destination area is the entire drawing area (virtual space defined on the virtual drawing space) that has been associated in advance with the actual drawing area (FBa) by instruction commands L11 and L12, or a portion of it. However, since the background video is usually drawn on the entire display screen, the destination area in such a case is the entire drawing area or larger. Note that a destination area that is larger than the entire drawing area would be, for example, when the background video is zoomed in.

以上の処理によって、背景動画の動画フレームの描画が終わったので、続いて、テクスチャロード系、テクスチャ設定系、描画間演算系、プリミティブ描画系コマンドなどの指示コマンドを適宜な順番で列記して、背景動画に重ねて、各種のテクスチャを描画するべくディスプレイリストDLを構成することになる。先に説明したように、変動演出時では、多数の動画が必要となるので、その場合には、内蔵VRAM71のページ領域(b) について、インデックス空間IDXを増加するべく、インデックステーブル制御系の指示コマンド(NEWPIX)を記載することになる。 The above process has completed the drawing of the video frames of the background video, so next, command commands such as texture load, texture setting, inter-drawing calculation, and primitive drawing commands are listed in an appropriate order and overlaid on the background video to construct a display list DL for drawing various textures. As explained above, a large number of videos are required for variable effects, so in that case, an index table control command (NEWPIX) is written to increase the index space IDX for the page area (b) of the built-in VRAM 71.

例えば、二つ目のIPストリーム動画に関し、NEWPIXコマンドによって、ページ領域(b) に、追加のインデックス空間IDXを確保した後、このインデックス空間IDXを特定して(SETINDEX)、二つ目の動画の一フレームの展開を指示し(TXLOAD)、展開したテクスチャを描画領域の適所に配置する(SPRITE)。通常、この場合のDestination 領域は、描画領域の一部となる。 For example, for the second IP stream video, an additional index space IDX1 is reserved in the page area (b) by the NEWPIX command, and then this index space IDX1 is specified (SETINDEX), a command is issued to render one frame of the second video (TXLOAD), and the rendered texture is placed in an appropriate location in the rendering area (SPRITE). Normally, the destination area in this case is part of the rendering area.

以下、同様であり、NEWPIXコマンドによって、次々、インデックス空間IDXを確保した後、適宜なαブレンド処理を実行しつつ、複数のIPストリームを描画領域に描画すれば、描画領域への描画内容は、実描画領域であるフレームバッファFBaに画像データとして順次蓄積されることになる。複数N個のIPストリーム動画が描画されている演出時には、ページ領域(b) において、複数N個のインデックス空間が機能している。 The same applies below, and after the index space IDX k is secured one after another by the NEWPIX command, appropriate alpha blending is performed while drawing multiple IP streams in the drawing area, and the contents drawn in the drawing area are sequentially stored as image data in the frame buffer FBa, which is the actual drawing area. When multiple N IP stream videos are drawn, multiple N index spaces are functioning in the page area (b).

そして、一連の変動演出が終了したような場合には、ページ領域(b) に確保した多数のインデックス空間IDX~IDXのうち、不要と思われるインデックス空間IDXを開放するべく、DELPIXコマンドによって不要なインデックス空間IDXを削除すれば良い。 Then, when a series of variable presentations has ended, in order to release the index spaces IDX that are deemed unnecessary among the many index spaces IDX 1 to IDX k secured in the page area (b), the unnecessary index spaces IDX can be deleted by the DELPIX command.

なお、静止画やIストリーム動画を描画する場合には、SETINDEXコマンドによって、これらのテクスチャのデコード先が、AAC領域(a) であると指定した上で、TXLOADコマンドを実行させれば、AAC領域(a) に取得されたテクスチャは、その後、自動的に起動するGDEC75によってACC領域(a) に展開される。そして、展開されたテクスチャは、SPRITEコマンドによって、描画領域の適所に描画すれば良い。なお、キャッシュヒット機能を活用するか否かに応じて、第一AAC領域(a1)か、第二AAC領域(a2)が使用される。 When drawing still images or I-stream videos, if you specify with the SETINDEX command that the AAC area (a) is to be the decoded destination for these textures and then execute the TXLOAD command, the texture acquired in the AAC area (a) will then be expanded in the ACC area (a) by the automatically started GDEC75. The expanded texture can then be drawn in the appropriate location in the drawing area with the SPRITE command. Depending on whether or not the cache hit function is used, either the first AAC area (a1) or the second AAC area (a2) will be used.

ここまでの説明では、各テクスチャは、直接的に、メイン表示装置用DS1の描画領域に描画されるが、必ずしも、このような動作に限定されない。例えば、既に表示装置DS1用に確保されている描画領域に重複しない状態で、適宜な描画領域を設け(図11(c))、この描画領域を内蔵VRAM71の作業領域に対応付ければ、中間的な描画領域を構築して、適宜な演出画像を完成させることができる。ここで、表示装置DS1用の描画領域と重複しない状態とするのは、重複領域については、後の対応付け設定が優先され、その領域への描画内容がフレームバッファFBaに反映されないからである。 In the explanation so far, each texture is drawn directly in the drawing area of the main display device DS1, but this is not necessarily the only way to do it. For example, if an appropriate drawing area is provided (Figure 11(c)) that does not overlap with the drawing area already reserved for the display device DS1, and this drawing area is associated with the working area of the built-in VRAM 71, an intermediate drawing area can be constructed and an appropriate performance image can be completed. The reason for not overlapping with the drawing area for the display device DS1 here is that for overlapping areas, the later association setting takes priority, and the drawing contents in that area are not reflected in the frame buffer FBa.

図11(c)に示す通り、本実施例の作業領域は、任意領域(c) におけるインデックス空間IDXである。そして、この作業領域を使用する演出タイミングでは、先行して、演出画像用の描画領域(図11(c)参照)を、作業領域(インデックス空間IDXの実描画領域)に対応付けるための指示コマンド列(SETDAVR ,SETDAVF ,SETINDEX)を記載しておく。図11(c)に示す通り、演出画像用の描画領域は、メイン表示装置DS1用の描画領域に含まれない領域に確保される。 As shown in Fig. 11(c), the working area in this embodiment is the index space IDX 0 in the arbitrary area (c). Then, at the performance timing when this working area is used, a command sequence (SETDAVR, SETDAVF, SETINDEX) is written in advance to associate the rendering area for the performance image (see Fig. 11(c)) with the working area (the actual rendering area of the index space IDX 0 ). As shown in Fig. 11(c), the rendering area for the performance image is secured in an area not included in the rendering area for the main display device DS1.

そして、その後は、フレームバッファFBaに関する指示コマンド列L16と同様の指示コマンドを列記して、インデックス空間IDXに、適宜な演出画像を完成させれば良い。本実施例の場合、演出画像は、静止画で構成されるので、デコードデータは第一AAC領域(a1)に展開されるよう指示コマンド(SETINDEX)が記載され、次に、インデックス空間IDXの描画領域の適所をDestination とするプリミティブ描画系の指示コマンド(SPRITE)が使用されることになる。なお、このような動作は、演出内容に応じて、一回又は複数回繰り返される。 Then, by listing command sequences similar to the command sequence L16 for the frame buffer FBa, an appropriate effect image can be completed in the index space IDX 0. In the case of this embodiment, since the effect image is composed of a still image, a command (SETINDEX) is written to cause the decoded data to be expanded in the first AAC area (a1), and then a primitive drawing command (SPRITE) is used with an appropriate location in the drawing area of the index space IDX 0 as the Destination. This operation is repeated once or multiple times depending on the effect content.

そして、演出画像を完成させたインデックス空間IDXをテクスチャと位置付けた後(SETINDEX)、SPRITEコマンドによって、メイン表示装置用DS1の描画領域の適所に、インデックス空間IDXの演出画像(テクスチャ)を描画すれば良い。このような場合、インデックス空間IDXの演出画像を、三角形の描画プリミティブ(primitive )に分解し、適宜な角度に回転させた上で、描画領域に描画することが考えられる。なお、テクスチャの回転角度は、例えば、予告演出の信頼度などに対応付けられる。 Then, after positioning the index space IDX 0 in which the performance image has been completed as a texture (SETINDEX), the performance image (texture) of the index space IDX 0 can be drawn in an appropriate location in the drawing area of the main display device DS 1 by the SPRITE command. In such a case, it is conceivable that the performance image of the index space IDX 0 is decomposed into triangular drawing primitives, rotated at an appropriate angle, and then drawn in the drawing area. The rotation angle of the texture is associated with, for example, the reliability of the preview performance.

以上、メイン表示装置DS1の一フレームを完成させるための指示コマンド列(L11~L16)について説明したが、サブ表示装置DS2の一フレームを完成させるための指示コマンド列(L17~L12)についても、同様である。すなわち、フレームバッファFBbの開始XY座標を特定し(L17)を定義し(通常はX=0,Y=0)、図11(c)に示す仮想描画空間上に、サブ表示装置DS2のための描画領域を定義する(L18)。 The above describes the instruction command sequence (L11 to L16) for completing one frame on the main display device DS1, but the same is true for the instruction command sequence (L17 to L12) for completing one frame on the sub-display device DS2. That is, the starting XY coordinates of the frame buffer FBb are specified (L17) and defined (usually X=0, Y=0), and the drawing area for the sub-display device DS2 is defined in the virtual drawing space shown in FIG. 11(c) (L18).

ところで、本実施例では、メイン表示装置DS1用の画像データの生成を終えた後、サブ表示装置DS2用の生成処理に移行するので、サブ表示装置DS2用の描画領域が、メイン表示装置DS1用の描画領域と重複しても何の問題もなく、描画領域を自由に設定することができる。そのため、ディスプレイリストDLの生成プログラムの開発時、例えば、SPRITEコマンドで、新規に設定された描画領域に適宜なテクスチャを貼り付けるような場合、SPRITEコマンドの動作パラメータ(Destination 領域)の設定その他を、ある程度、定型化することができる。 In this embodiment, after the generation of image data for the main display device DS1 is completed, the process moves to the generation process for the sub-display device DS2. Therefore, even if the drawing area for the sub-display device DS2 overlaps with the drawing area for the main display device DS1, there is no problem and the drawing area can be set freely. Therefore, when developing a generation program for a display list DL, for example, when using a SPRITE command to paste an appropriate texture into a newly set drawing area, the settings of the operation parameters (Destination area) of the SPRITE command and other settings can be standardized to a certain extent.

このような任意の描画領域の定義が終われば(L18)、次に、ダブルバッファ構成の表示装置DS2のフレームバッファFBbについて、今回のディスプレイリストDLに基づく描画内容の「書込み領域」となるインデックス空間IDXを特定する(L19)。このインデックス空間IDXのインデックス番号は、フレームバッファFBbに関し、メイン制御処理のステップST6で指定された表示領域(0)/(1)に対応しない方のインデック番号である。 Once this arbitrary drawing area has been defined (L18), the index space IDX that will be the "write area" for the drawing contents based on the current display list DL is identified for the frame buffer FBb of the double-buffered display device DS2 (L19). The index number of this index space IDX is the index number for the frame buffer FBb that does not correspond to the display area (0)/(1) specified in step ST6 of the main control process.

そして、その後、サブ表示装置DS2についての指示コマンド列L20~L22が、メイン表示装置DS1に関する指示コマンド列L14~L16と同様に列記される。また、インデックス空間IDXに完成させた演出画像を使用することもできる。 Then, the instruction command sequence L20 to L22 for the sub-display device DS2 is listed in the same manner as the instruction command sequence L14 to L16 for the main display device DS1. Also, the completed performance image can be used in the index space IDX0 .

以上、ディスプレイリストDLを構成するL11~L22の指示コマンドは、本実施例では、全て、コマンド長が32ビットの整数倍のものに限定されている。そして、先に説明した通り、本実施例のディスプレイリストDLのデータボリューム値(データ総量)を、固定長(256バイト)に調整しており、ダミーコマンドたる必要数のNOP コマンド(L23)を付加した上で、EODLコマンド(L24)で終結させている。すなわち、図21の実施例では、前記した標準手法(B)を採っている。 As described above, in this embodiment, the command lengths of all of the instruction commands L11 to L22 that make up the display list DL are limited to integer multiples of 32 bits. As explained above, the data volume value (total amount of data) of the display list DL in this embodiment is adjusted to a fixed length (256 bytes), and the necessary number of NOP commands (L23) are added as dummy commands, before terminating with the EODL command (L24). In other words, the embodiment in Figure 21 employs the standard method (B) described above.

但し、標準手法(B)を採る場合でも、全ての動作周期において、ディスプレイリストDLのデータ総量を256バイトと固定化することは必ずしも必須ではない。すなわち、別の実施例では、NOP コマンドを除くディスプレイリストDLのデータ総量が、256バイトを超える場合(例えば、特別な演出期間)には、ディスプレイリストDLのデータ総量は、NOP コマンドを付加することで、512バイト又はそれ以上のN×256バイトに調整される。なお、標準手法(B)を採る場合、N×256バイトの最後はEODLコマンドで終端されることは先に説明した通りである。 However, even when standard method (B) is used, it is not necessarily required to fix the total amount of data in the display list DL to 256 bytes in all operation cycles. That is, in another embodiment, when the total amount of data in the display list DL excluding NOP commands exceeds 256 bytes (for example, during a special performance period), the total amount of data in the display list DL is adjusted to 512 bytes or more, that is, N x 256 bytes, by adding NOP commands. As explained above, when standard method (B) is used, the end of the N x 256 bytes is terminated with an EODL command.

以上、ディスプレイリストDLの構成について詳細に説明したが、演出制御CPU63は、完成させた固定バイト長のディスプレイリストDLをVDP回路に発行することになる(ST7~ST8)。図22は、演出制御CPU63が、転送回路72の転送ポートレジスタTR_PORT を直接WRITE アクセスして、描画回路76にディスプレイリストDLを発行するDL発行処理(図20のST8)を説明するフローチャートである。なお、転送ポートレジスタTR_PORT は、データ転送回路72の動作内容を規定するデータ転送レジスタRGijの一種である。 The configuration of the display list DL has been explained in detail above, but the performance control CPU 63 issues the completed display list DL of fixed byte length to the VDP circuit (ST7 to ST8). Figure 22 is a flowchart explaining the DL issuing process (ST8 in Figure 20) in which the performance control CPU 63 directly WRITE accesses the transfer port register TR_PORT of the transfer circuit 72 and issues a display list DL to the drawing circuit 76. The transfer port register TR_PORT is a type of data transfer register RGij that specifies the operation content of the data transfer circuit 72.

DL発行処理を実現するには、先ず、データ転送回路72の動作内容を規定する複数のデータ転送レジスタRGijに、必要な設定値を設定する必要がある。具体的には、データ転送回路72の転送動作態様と、データ転送回路72内部の伝送経由と、を所定のデータ転送レジスタRGijに特定する。設定内容は、特に限定されないが、ここでは、CPUIF部56からChB制御回路72bを経由すること、及び、CPUバス制御部72dに関し、そのFIFOバッファの残量をチェックしながらデータ転送動作を実行すると設定する(ST20)。なお、以下の説明では、ChB制御回路72bを、便宜上、「転送回路ChB」と略すことがある。 To realize the DL issuing process, first, it is necessary to set the necessary setting values in the multiple data transfer registers RGij that define the operation contents of the data transfer circuit 72. Specifically, the transfer operation mode of the data transfer circuit 72 and the transmission route inside the data transfer circuit 72 are specified in a predetermined data transfer register RGij. The setting contents are not particularly limited, but here, it is set that the data is transferred from the CPUIF unit 56 via the ChB control circuit 72b, and that the data transfer operation is performed while checking the remaining capacity of the FIFO buffer of the CPU bus control unit 72d (ST20). In the following description, the ChB control circuit 72b may be abbreviated as "transfer circuit ChB" for convenience.

次に、転送総サイズを、所定のデータ転送レジスタRGijに設定する。先に説明した通り、本実施例では、ディスプレイリストDLのデータ総量を256バイトの整数倍に調整しているので、その値を設定する。なお、データ総量=256×Nは、データ転送回路72の最低データ量Dminの整数N倍にもなっている。通常、倍数Nは、1又は2であるが、以下の説明では、N=1として説明することにする。 Next, the total transfer size is set in a specified data transfer register RGij. As explained above, in this embodiment, the total amount of data in the display list DL is adjusted to an integer multiple of 256 bytes, so that value is set. Note that the total amount of data = 256 x N is also an integer multiple N of the minimum data amount Dmin of the data transfer circuit 72. Normally, the multiple N is 1 or 2, but in the following explanation, N = 1 will be used.

ここで、転送ポートレジスタTR_PORT (以下、転送ポートと略すことがある)は、32bit長のレジスタであるので、演出制御CPU63は、32bit毎に、転送ポートTR_PORT に対して、レジスタWRITE 動作を実行することになる。そこで、レジスタWRITE 回数を管理する管理カウンタCNの値を64の初期設定する(ST21)。なお、無調整手法(C)を採る場合は、このタイミングで、最低データ量Dminの整数倍のデータ転送量を決定して、管理カウンタCNを設定することになる。 Here, since the transfer port register TR_PORT (hereafter sometimes abbreviated as transfer port) is a 32-bit register, the performance control CPU 63 executes a register WRITE operation on the transfer port TR_PORT for every 32 bits. Therefore, the value of the management counter CN, which manages the number of register WRITEs, is initially set to 64 (ST21). Note that if the non-adjustment method (C) is adopted, at this timing, the data transfer amount that is an integer multiple of the minimum data amount Dmin is determined and the management counter CN is set.

以上の処理で初期設定が完了するので、次に、転送回路ChBを経由するデータ転送動作を開始状態に設定すると共に(ST22)、描画回路76の動作を規定する所定の描画レジスタRGijへの設定値に基づいて、描画動作を開始させる(ST23)。この結果、その後、演出制御CPU63が、転送ポートTR_PORT にレジスタWRITE 動作する指示コマンド列について、描画回路76(ディスプレイリストアナライザ)による迅速かつ円滑なAnalyze 処理が担保される。 The above process completes the initial settings, and next, data transfer operation via the transfer circuit ChB is set to the start state (ST22), and drawing operation is started based on the set value of a specific drawing register RGij that specifies the operation of the drawing circuit 76 (ST23). As a result, the performance control CPU 63 then ensures that the drawing circuit 76 (display list analyzer) can perform a quick and smooth analysis process on the instruction command sequence that the performance control CPU 63 writes to the transfer port TR_PORT.

なお、迅速かつ円滑なAnalyze 処理には、ディスプレイリストDLに列記する指示コマンドが、コマンド長32bit整数倍の指示コマンドに限定されている点も有効に寄与する。図28(a)におけるタイミングt1,t2,t3,t4は、ステップST23の動作タイミングを示している。なお、ディスプレイリストDLの発行処理(ST8)は、素早く終わるので、図28~図29では発行処理の要する時間幅を記載していない。 Note that the fact that the command lengths listed in the display list DL are limited to those that are integer multiples of 32 bits also contributes effectively to a fast and smooth analyze process. Timings t1, t2, t3, and t4 in FIG. 28(a) indicate the operation timing of step ST23. Note that since the display list DL issuance process (ST8) is completed quickly, the time required for the issuance process is not shown in FIGS. 28 and 29.

続いて、ステップST22の設定が機能したか否かを確認する(ST24)。これは、データ転送回路72の各部の初期設定は、演出制御CPU63によるレジスタWRITE 動作(設定動作)より処理時間がかかるので、不完全な状態のデータ転送回路72に対して、その後の指示を与えないためである。そして、万一、所定時間、待機しても動作開始状態にならない場合には、重大異常フラグABNをセットしてDL発行処理を終える(ST25)。その結果、その後、WDT回路58が機能して、複合チップ50は異常リセットされる(ST10)。 Next, it is confirmed whether the settings in step ST22 have worked (ST24). This is because the initial settings of each part of the data transfer circuit 72 take longer to process than the register WRITE operation (setting operation) by the performance control CPU 63, so no further instructions are given to the data transfer circuit 72 in an incomplete state. Then, in the unlikely event that the circuit does not enter an operational start state even after waiting for a predetermined period of time, the serious abnormality flag ABN is set and the DL issuance process is terminated (ST25). As a result, the WDT circuit 58 then functions and the composite chip 50 is abnormally reset (ST10).

なお、演出制御CPU63は、CPU回路51のリセットを回避するべく、所定のキーワード列をパターンチェック回路CHKに出力して、リセット信号RSTに基づいてVDP回路52だけを異常リセットしても良いのは前述した通りである。 As mentioned above, the performance control CPU 63 may output a predetermined keyword sequence to the pattern check circuit CHK to abnormally reset only the VDP circuit 52 based on the reset signal RST in order to avoid resetting the CPU circuit 51.

但し、通常は、ステップST22の設定は、迅速に完了するので、続いて、CPUバス制御部72dのFIFOバッファ(32bit×130段)について、FIFOバッファが満杯でないことを確認した上で(ST26)、ディスプレイリストDLを構成する先頭行から順番に、一行ごとに転送ポートTR_PORT に指示コマンドを書込む(ST28)。 However, since the setting in step ST22 is usually completed quickly, the CPU bus control unit 72d next checks to see if the FIFO buffer (32 bits x 130 stages) is full (ST26), and then writes instruction commands to the transfer port TR_PORT for each line in the display list DL, starting from the first line (ST28).

そして、管理カウンタCNをデクリメントしつつ(ST29)、管理カウンタCNがゼロになるまで、ステップST26~ST29の処理を繰り返す(ST30)。この実施例の場合、データ転送回路72には、最低データ量Dminが規定されているので、FIFOバッファに最低データ量Dminが蓄積されたタイミングで、データ転送動作が実行されることになり、間欠的な転送動作となる。 Then, while decrementing the management counter CN (ST29), the processing of steps ST26 to ST29 is repeated until the management counter CN becomes zero (ST30). In this embodiment, since a minimum data amount Dmin is specified for the data transfer circuit 72, the data transfer operation is executed when the minimum data amount Dmin is accumulated in the FIFO buffer, resulting in an intermittent transfer operation.

何れにしても、本実施例では、迅速にDL発行処理(ST28)が完了するが、万一、ノイズなどの影響でVDPレジスタRGijへの設定内容が矛盾したような場合には、ステップST26の判定において、所定時間待機してもFIFOバッファFullの状態が解消されない場合もあり得る。そして、そのような場合には、所定のVDPレジスタRGijに初期化データをセットして、描画回路76とデータ転送回路72を初期化した上で、重大異常フラグABNをセットしてDL発行処理を終える(ST27)。 In any case, in this embodiment, the DL issuance process (ST28) is completed quickly, but in the unlikely event that the settings in the VDP register RGij become inconsistent due to the effects of noise or the like, it is possible that the FIFO buffer full state will not be resolved even after waiting for a specified time in the judgment of step ST26. In such a case, initialization data is set in a specified VDP register RGij, the drawing circuit 76 and data transfer circuit 72 are initialized, and the serious abnormality flag ABN is set to end the DL issuance process (ST27).

ところで、このタイミングでは、データ転送回路72や、描画回路76は、既に動作を開始しており、ある程度の処理を終えているので、描画回路76の初期化処理には、描画レジスタRGijの内容を維持した状態で、(1) ディスプレイリストDLによって設定される可能性のある全ての内部パラメータを初期値に設定すること、(2) 全ての内部制御回路を初期状態に設定すること、(3) GDEC75を初期化すること、(4) AAC領域のキャッシュ状態を初期化することが含まれている。同様に、データ転送回路72の初期化処理には、FIFOバッファのクリアなど、それまでのデータ転送全体の初期化処理が含まれている。この結果、データ転送回路72の動作状態を示すステイタス情報が所定値(データ転送全体初期化中を示す値)に変化する。 By the way, at this timing, the data transfer circuit 72 and the drawing circuit 76 have already started operating and completed a certain amount of processing, so the initialization process of the drawing circuit 76 includes (1) setting all internal parameters that may be set by the display list DL to their initial values, (2) setting all internal control circuits to their initial states, (3) initializing the GDEC 75, and (4) initializing the cache state of the AAC area, while maintaining the contents of the drawing register RGij. Similarly, the initialization process of the data transfer circuit 72 includes initialization of the entire data transfer up to that point, such as clearing the FIFO buffer. As a result, the status information indicating the operating state of the data transfer circuit 72 changes to a predetermined value (a value indicating that the entire data transfer is being initialized).

なお、上記したステップST27の初期化処理では、描画レジスタRGijの内容を維持したが、所定の描画レジスタについては、その内容を初期化しても良い。初期値にクリアされる所定の描画レジスタには、(a) 描画実行開始を設定する実行制御レジスタ(図22のST23参照)、(b) 描画回路76の実行状況を示すステイタスレジスタ、及び、(c) 現在処理しているディスプレイリストの位置を特定するステイタスレジスタが含まれる。 In the initialization process of step ST27 described above, the contents of the drawing register RGij are maintained, but the contents of certain drawing registers may be initialized. The certain drawing registers that are cleared to their initial values include (a) an execution control register (see ST23 in FIG. 22) that sets the start of drawing execution, (b) a status register that indicates the execution status of the drawing circuit 76, and (c) a status register that specifies the position of the display list currently being processed.

何れにしても、重大異常フラグABNをセットした結果、その後、WDT回路58や演出制御CPU63が機能して、複合チップ50か、又はVDP回路52が異常リセットされるので(ST10a)、描画回路76やデータ転送回路72を初期化する処理は必ずしも必須ではない。一方、描画回路76やデータ転送回路72を初期化する場合には、その結果、異常回復が期待できるので、重大異常フラグABNをセットすることなく、ステップST20の処理に戻ってDL発行処理を再実行するのも好適である。 In any case, as a result of setting the serious abnormality flag ABN, the WDT circuit 58 and the performance control CPU 63 then function and the composite chip 50 or the VDP circuit 52 undergoes an abnormal reset (ST10a), so the process of initializing the drawing circuit 76 and the data transfer circuit 72 is not necessarily required. On the other hand, if the drawing circuit 76 and the data transfer circuit 72 are initialized, it is expected that the result will be a recovery from the abnormality, so it is also preferable to return to the process of step ST20 and re-execute the DL issuance process without setting the serious abnormality flag ABN.

この点は、ステップST25の処理においても同様であり、データ転送回路72や描画回路76を初期化した上で、重大異常フラグABNをセットすることなく、ステップST20の処理に戻るもの好適である。但し、このような場合には、DL発行処理の再実行回数をカウントし、再実行回数が限界値を越えれば、重大異常フラグABNをセットしてDL発行処理を終えることになる。 The same applies to the processing of step ST25, and it is preferable to initialize the data transfer circuit 72 and drawing circuit 76, and then return to the processing of step ST20 without setting the serious abnormality flag ABN. In such a case, however, the number of times the DL issuance process is retried is counted, and if the number of retries exceeds a limit value, the serious abnormality flag ABN is set and the DL issuance process is terminated.

図22(b)は、正常な動作状態について、確認的に図示したものである。図示の通り、発行されたディスプレイリストDLは、列記された指示コマンドの順番に、描画回路76(ディスプレイリストアナライザ)によって解析され、各指示コマンドに基づく動作が実行される。この動作は、ディスプレイリストDLの発行処理や、データ転送回路72のデータ転送動作(ST26~ST30)に並行して実行される。 Figure 22 (b) is a confirmation diagram of a normal operating state. As shown in the figure, the issued display list DL is analyzed by the drawing circuit 76 (display list analyzer) in the order of the command commands listed, and operations based on each command are executed. This operation is executed in parallel with the process of issuing the display list DL and the data transfer operation (ST26 to ST30) of the data transfer circuit 72.

例えば、指示コマンド(TXLOAD)が実行されることで、CGROM55から必要なテクスチャが読み出されてAAC領域(a) に取得され、その後、GDEC75が自動的に起動してデコード動作が実行され、デコード後のデータが所定のインデックス空間に展開される。また、指示コマンドによっては、ジオメトリエンジン77その他が機能するが、何れにしても、描画回路76の各部が協働することで、ディスプレイリストDLに対応する画像データがフレームバッファFBa,FBbに完成されることになる。 For example, when the instruction command (TXLOAD) is executed, the necessary texture is read from the CGROM 55 and acquired in the AAC area (a), after which the GDEC 75 is automatically started and a decoding operation is performed, and the decoded data is expanded in a specified index space. Also, depending on the instruction command, the geometry engine 77 and others function, but in any case, the various parts of the drawing circuit 76 work together to complete the image data corresponding to the display list DL in the frame buffers FBa and FBb.

続いて、DMAC回路60を介在させてディスプレイリストDLを発行する場合を、図23に基づいて説明する。何ら限定されないが、DMAC回路60に内蔵された第1~第4のDMAチャンネルのうち、第3のDMAチャンネルを使用することにする。 Next, a case where a display list DL is issued via the DMAC circuit 60 will be described with reference to FIG. 23. Although not limited in any way, the third DMA channel will be used out of the first to fourth DMA channels built into the DMAC circuit 60.

図23の実施例では、先ず、所定のデータ転送レジスタRGijと、所定の描画レジスタRGijに各々クリア値を設定して、データ転送回路72と、描画回路76を初期化する(ST20)。この処理は、図22のステップST27のエラー処理と同じであり、FIFOバッファを含んだデータ転送回路72の内部回路が初期化され、データ転送の進行状態を示すデータ転送レジスタのステイタスビットが初期値となり、データ転送全体を初期化中であることを示すビットが所定値となる。 In the embodiment of FIG. 23, first, a clear value is set to a specific data transfer register RGij and a specific drawing register RGij, respectively, to initialize the data transfer circuit 72 and drawing circuit 76 (ST20). This process is the same as the error processing in step ST27 of FIG. 22, and the internal circuitry of the data transfer circuit 72 including the FIFO buffer is initialized, the status bit of the data transfer register indicating the progress of the data transfer is set to the initial value, and the bit indicating that the entire data transfer is being initialized is set to a specific value.

描画回路76についても同様であり、上記した(1) 内部パラメータを初期値に設定すること、(2) 内部制御回路を初期状態に設定すること、(3) GDEC75を初期化すること、(4) AAC領域のキャッシュ状態を初期化する処理が含まれている。また、描画回路の初期化処理(図23のST20)においても、前記した所定の描画レジスタRGijを初期化しても良い。なお、図22の処理において、このような初期化処理を最初に実行しても良い。 The same applies to the drawing circuit 76, and includes the above-mentioned (1) setting the internal parameters to initial values, (2) setting the internal control circuit to an initial state, (3) initializing the GDEC 75, and (4) initializing the cache state of the AAC area. Also, in the initialization process of the drawing circuit (ST20 in FIG. 23), the above-mentioned predetermined drawing register RGij may also be initialized. Note that such initialization process may be executed first in the process of FIG. 22.

図23の処理では、次に、初期化処理が正常に完了したことを、データ転送回路72と描画回路76の動作状態を特定する所定のステイタスレジスタRGijをREADして確認する(ST21)。そして、万一、初期化できない場合には、重大異常フラグABNをセットして処理を終える(ST22)。但し、このような事態は、実際にはほぼ発生しない。 In the process of FIG. 23, the system then reads a specific status register RGij that specifies the operating state of the data transfer circuit 72 and the drawing circuit 76 to confirm that the initialization process has been completed successfully (ST21). If the initialization is not successful, the system sets a serious abnormality flag ABN and ends the process (ST22). However, this situation almost never actually occurs.

次に、データ転送回路72の転送動作態様と、データ転送回路72内部の伝送経由とを、所定のデータ転送レジスタRGijに設定する。設定内容は、特に限定されないが、ここでは、CPUIF部56からChB制御回路72bを経由すること、及び、CPUバス制御部72dへの転送プロトコルに関し、DMAC回路60への設定に従うと設定する(ST23)。 Next, the transfer operation mode of the data transfer circuit 72 and the transmission route within the data transfer circuit 72 are set in a specified data transfer register RGij. The setting contents are not particularly limited, but here, it is set to pass from the CPUIF unit 56 through the ChB control circuit 72b, and the transfer protocol to the CPU bus control unit 72d follows the setting in the DMAC circuit 60 (ST23).

次に、転送総サイズを、所定のデータ転送レジスタRGijに設定する。図22の場合と同様、データ総量=256となる。なお、無調整手法(C)を採る場合は、このタイミングで、最低データ量Dminの整数倍の転送総サイズを決定して設定することになる。次に、所定の描画レジスタRGijへの設定値に基づいて、描画回路76の描画動作を開始させる(ST25)。図28(a)におけるタイミングt1,t2,t3,t4は、ステップST25の動作タイミングでもある。そして次に、DMAC回路60の動作を開始させた上で(ST26)、データ転送回路72のデータ転送動作を開始させる(ST27)。 Next, the total transfer size is set in a specified data transfer register RGij. As in the case of FIG. 22, the total amount of data = 256. If the non-adjustment method (C) is used, the total transfer size is determined and set at this timing as an integer multiple of the minimum data amount Dmin. Next, the drawing operation of the drawing circuit 76 is started based on the setting value in the specified drawing register RGij (ST25). The timings t1, t2, t3, and t4 in FIG. 28(a) are also the operation timings of step ST25. Next, the operation of the DMAC circuit 60 is started (ST26), and then the data transfer operation of the data transfer circuit 72 is started (ST27).

DMAC回路60の動作を開始処理は、図23(b)に示す通りであり、先ず、DMAC転送を禁止した状態で、一サイクルのデータ転送単位(1オペランド)の転送が完了するのを待つ(ST40)。詳細な動作内容は、図24に示す処理と同じであり、DMAC転送を禁止設定する処理(ST53)と、その後の待機処理(ST54)に区分される。 The process for starting the operation of the DMAC circuit 60 is as shown in FIG. 23(b), and first, with DMAC transfers prohibited, the process waits for the transfer of one cycle of data transfer units (one operand) to be completed (ST40). The detailed operation is the same as the process shown in FIG. 24, and is divided into a process for setting DMAC transfers to be prohibited (ST53) and a subsequent wait process (ST54).

このような処理を設けるのは、(1) 他の実施例では、メイン制御処理やタイマ割込み処理(図20)で、DMAC回路60(第3のDMAチャンネル)を使用する可能性があること、及び、(2) 図20のステップST5の処理を設けない他の実施例において、ディスプレイリストDLの発行を開始したDMAC回路60が、その動作周期(δ)内ではDL発行動作を終了できない場合もあり得ることなどを考慮したものである。 The reason for providing such processing is that (1) in other embodiments, the DMAC circuit 60 (third DMA channel) may be used in the main control processing or timer interrupt processing (FIG. 20), and (2) in other embodiments that do not provide the processing of step ST5 in FIG. 20, the DMAC circuit 60 that has started issuing a display list DL may not be able to finish the DL issuing operation within its operating period (δ).

上記のような例外事態において、動作中のDMAC回路60に対して、新規の設定値(矛盾する設定値など)を追加的に設定すると、正常なDMA動作が全く担保されず、深刻なトラブルが懸念されるが、ステップST40の処理を設けることで、その後の設定値に基づく正常動作が担保される。すなわち、本実施例を一部変更した変更実施例でも、先行するトラブルに拘らず、その後の正常なDMA動作を実現することができる。 In the above-mentioned exceptional situation, if new setting values (such as contradictory setting values) are additionally set to the operating DMAC circuit 60, normal DMA operation is not guaranteed at all, and serious trouble is a concern, but by providing the processing of step ST40, normal operation based on the subsequent setting values is guaranteed. In other words, even in a modified embodiment that is a partial modification of this embodiment, normal subsequent DMA operation can be achieved regardless of the preceding trouble.

以上のような意義を有するステップST40の処理を実行すれば、次に、DMAC回路60の動作条件を設定する(ST41)。具体的には、図8に示す通り、サイクルスチール転送モードを選択し、一オペランド転送を32bit転送×2回とする。また、Sourceアドレスは、RAM59のリストバッファ領域(DLバッファBUF)のアドレスであるので順次増加と認識すべきこと、一方、Destination アドレスは、転送ポートTR_PORT であるため固定値とすべきことを規定する。 After executing the processing of step ST40 having the above significance, the operating conditions of the DMAC circuit 60 are set (ST41). Specifically, as shown in FIG. 8, the cycle steal transfer mode is selected, and one operand transfer is set to 32-bit transfer x 2 times. In addition, it is specified that the source address is an address of the list buffer area (DL buffer BUF) of RAM 59 and should be recognized as sequentially increasing, while the destination address is the transfer port TR_PORT and should be a fixed value.

次に、RAM59のDLバッファBUFの先頭アドレスを、DMAC回路60の動作を規定する所定の動作制御レジスタREGに設定すると共に(ST42)、転送先アドレスである転送ポートTR_PORT のアドレスを設定する(ST43)。また、転送総サイズ、つまり、ディスプレイリストDLのデータ総量を256バイトに設定した上で(ST44)、DMAC回路60のDMA動作を開始させる(ST45)。 Next, the top address of the DL buffer BUF in RAM 59 is set in a predetermined operation control register REG that specifies the operation of the DMAC circuit 60 (ST42), and the address of the transfer port TR_PORT, which is the transfer destination address, is set (ST43). In addition, the total transfer size, that is, the total amount of data in the display list DL, is set to 256 bytes (ST44), and the DMA operation of the DMAC circuit 60 is started (ST45).

ところで、ここまでの説明は、指示コマンドの実質ビット長が、全て32bitの整数倍であることを前提にした。しかし、ディスプレイリストDLや指示コマンドの構成は必ずしも限定されないので、以下、このような場合について説明する。 The explanation so far has been based on the assumption that the effective bit length of the instruction commands is an integer multiple of 32 bits. However, the configuration of the display list DL and instruction commands is not necessarily limited, so the following explanation will focus on such a case.

例えば、前記した無調整手法(C)を採る場合も含め、ディスプレイリストDLのデータ総量Xが、32bitの整数倍ではない任意値Xである場合には、ステップST44の処理では、この任意値Xを、適切な転送量MODに調整した上で、転送総サイズの設定処理を実行する。ここで、適切な転送量MODは、一オペランド転送についての設定内容と、データ転送回路72の最低データ量Dmin(バイト)とに基づいて規定される。 For example, including the case where the non-adjustment method (C) described above is used, if the total data amount X of the display list DL is an arbitrary value X that is not an integer multiple of 32 bits, in the processing of step ST44, this arbitrary value X is adjusted to an appropriate transfer amount MOD, and then the processing for setting the total transfer size is executed. Here, the appropriate transfer amount MOD is determined based on the setting contents for one operand transfer and the minimum data amount Dmin (bytes) of the data transfer circuit 72.

具体的には、一オペランド転送設定がNバイト×M回であれば、転送量MODは、N×M(バイト)の整数倍であって、且つ、Dmin(バイト)の整数倍の値に調整される。例えば、N×M=8×4、Dmin=256であれば、任意値X(=300)バイトは、転送量MOD(=512)バイトに調整される。 Specifically, if the one-operand transfer setting is N bytes x M times, the transfer amount MOD is adjusted to a value that is an integer multiple of N x M (bytes) and also an integer multiple of Dmin (bytes). For example, if N x M = 8 x 4 and Dmin = 256, the arbitrary value X (= 300) bytes is adjusted to the transfer amount MOD (= 512) bytes.

以上、一般論も含め説明したが、DMAC回路60のDMA動作は、図8に示すようなサイクルスチール転送動作が開始され、CPUの動作を特に阻害することなく、ディスプレイリストDLが、実施例の場合には32ビット毎に、転送ポートTR_PORT に転送される。そして、転送されたデータは、転送回路ChBを経由して、描画回路76に転送される。 As explained above, including general theory, the DMA operation of the DMAC circuit 60 starts with a cycle steal transfer operation as shown in FIG. 8, and the display list DL is transferred to the transfer port TR_PORT in units of 32 bits in this embodiment, without interfering with the operation of the CPU. The transferred data is then transferred to the drawing circuit 76 via the transfer circuit ChB.

このような動作を実現するため、本実施例では、ステップST45の処理に続いて、データ転送回路72の転送動作を開始させて処理を終える(ST27)。その後、データ転送回路72は、DMAC回路60から最低データ量Dminを一単位として、ディスプレイリストDLの指示コマンド列を受け、これを描画回路76に転送する。そして、描画回路76は、ディスプレイリストDLの指示コマンドに基づいて描画動作を実行する。したがって、ステップST27の処理の後、演出制御CPU63は、図20のステップST11の処理を開始することができ、VDP回路52による描画動作(DMAC回路60によるDL発行処理)と並行して、音声演出やランプ演出やモータ演出を制御することができる。 To achieve this operation, in this embodiment, following the processing of step ST45, the data transfer circuit 72 starts its transfer operation and ends the processing (ST27). The data transfer circuit 72 then receives a series of instruction commands for the display list DL from the DMAC circuit 60, with the minimum data amount Dmin as one unit, and transfers this to the drawing circuit 76. The drawing circuit 76 then executes drawing operations based on the instruction commands in the display list DL. Therefore, after the processing of step ST27, the performance control CPU 63 can start the processing of step ST11 in FIG. 20, and can control sound performances, lamp performances, and motor performances in parallel with the drawing operation by the VDP circuit 52 (DL issuance processing by the DMAC circuit 60).

図23(c)は、この動作内容を図示したものである。DMA転送に先行して、描画回路の動作を開始しており(ST25)、描画回路76のディスプレイリストアナライザは、迅速かつ円滑にAnalyze 処理を実行し、その他、GDEC75やジオメトリエンジン77などの動作に基づき、フレームバッファFBa,FBbには、各表示装置DS1,DS2について、各一フレーム分の画像データが生成される。 Figure 23(c) illustrates this operation. Prior to the DMA transfer, the drawing circuit starts operating (ST25), and the display list analyzer of the drawing circuit 76 performs the analysis process quickly and smoothly. Based on the operations of the GDEC 75 and the geometry engine 77, one frame's worth of image data is generated in the frame buffers FBa and FBb for each of the display devices DS1 and DS2.

ところで、DL発行処理をステップST27の処理で終える図23の構成は、必ずしも、限定されない。例えば、図30~図31のように、音声演出、ランプ演出、及びモータ演出を、他のCPUが制御する場合には、ステップST27の処理の後、DMAC回路60やデータ転送回路72の正常動作を確認するのが好ましい。図24は、図23のステップST27に続く動作であり、正常動作の確認処理を説明するフローチャートである。 However, the configuration of FIG. 23, in which the DL issuance process ends with the process of step ST27, is not necessarily limited. For example, as in FIG. 30 to FIG. 31, when the audio effects, lamp effects, and motor effects are controlled by another CPU, it is preferable to check the normal operation of the DMAC circuit 60 and data transfer circuit 72 after the process of step ST27. FIG. 24 is a flowchart explaining the process of checking normal operation, which is the operation following step ST27 in FIG. 23.

先ず、所定のステイタスレジスタを参照して、DMAC回路60の転送動作が正常に終了していることを確認する(ST50)。また、データ転送回路72が転送動作を終了していることを確認する(ST51)。通常、このような経路で、図23のDL発行処理が完了する。 First, a specific status register is referenced to confirm that the transfer operation of the DMAC circuit 60 has been completed normally (ST50). Also, it is confirmed that the data transfer circuit 72 has completed the transfer operation (ST51). Normally, the DL issuance process in FIG. 23 is completed through this process.

一方、所定時間待機しても.DMAC回路60の動作が完了していない場合、或いは、データ転送回路72が転送動作を完了していない場合には、描画回路76とデータ転送回路72について、所定のVDPレジスタRGijにクリア値を設定して、DL発行処理を初期化する(ST52)。これは、ディスプレイリストDLの発行処理が正常に終了していないことに基づく動作であり、具体的には、図22のステップST27のエラー処理や、図23のステップST20の初期処理と同じ内容である。 On the other hand, if the operation of the DMAC circuit 60 is not completed even after waiting for a predetermined time, or if the data transfer circuit 72 has not completed its transfer operation, a clear value is set in a predetermined VDP register RGij for the drawing circuit 76 and the data transfer circuit 72, and the DL issuance process is initialized (ST52). This is an operation based on the fact that the display list DL issuance process has not ended normally, and specifically, it is the same as the error process in step ST27 in FIG. 22 and the initial process in step ST20 in FIG. 23.

すなわち、この場合も、描画回路76は、既に動作を開始しており、ある程度の処理を終えているので、描画回路76の初期化処理には、(1) ディスプレイリストDLによって設定される可能性のある全ての内部パラメータを初期値に設定すること、(2) 全ての内部制御回路を初期状態に設定すること、(3) GDEC75を初期化すること、(4) AAC領域のキャッシュ状態を初期化することが含まれる。 In other words, in this case too, the drawing circuit 76 has already started operating and has already completed a certain amount of processing, so the initialization process of the drawing circuit 76 includes (1) setting all internal parameters that may be set by the display list DL to their initial values, (2) setting all internal control circuits to their initial states, (3) initializing the GDEC 75, and (4) initializing the cache state of the AAC area.

次に、新規のDMA転送動作を禁止した上で(ST53)、実行中の一オペランドの転送動作が終わるのを待つ(ST54)。先に説明した通り、本実施例では、32bit転送×2回を一オペランドとしており、動作中のDMAC回路60をいきなり初期化することを避けるためである。 Next, new DMA transfer operations are prohibited (ST53), and the process waits for the transfer operation of one operand that is currently being performed to finish (ST54). As explained above, in this embodiment, one operand is a 32-bit transfer x 2 times, and this is to avoid abruptly initializing the DMAC circuit 60 that is currently in operation.

そして、この準備作業が終われば、DMAC回路60の動作を規定する所定の動作制御レジスタREGにクリア値を設定して、DMAC回路60を初期化する(ST52)。そして、重大異常フラグABNをセットしてDL発行処理を終える。なお、この場合、ステップST52やST55の処理によって、異常回復が期待できるので、重大異常フラグABNをセットすることなく、図23のステップST20に戻って、DL発行処理を再実行するのも好適である。但し、DL発行処理(ST23~ST27)の再実行回数をカウントし、再実行回数が限界値を越えれば、重大異常フラグABNをセットしてDL発行処理を終える必要がある。 Once this preparation work is complete, a clear value is set in a specific operation control register REG that specifies the operation of the DMAC circuit 60, and the DMAC circuit 60 is initialized (ST52). The serious abnormality flag ABN is then set and the DL issuance process is terminated. In this case, since the abnormality can be expected to be recovered from by the processing of steps ST52 and ST55, it is also preferable to return to step ST20 in FIG. 23 and re-execute the DL issuance process without setting the serious abnormality flag ABN. However, it is necessary to count the number of re-executions of the DL issuance process (ST23 to ST27), and if the number of re-executions exceeds a limit value, to set the serious abnormality flag ABN and terminate the DL issuance process.

続いて、プリローダ73を使用する場合のメイン制御処理について、図25に基づいて説明する。図25の処理は、図20の処理に類似しているが、先ず、開始条件判定(ST5’)の内容が相違する。すなわち、プリローダを使用する実施例では、各動作周期の開始時に、描画回路76とプリローダ73のステイタス情報をREADアクセスして、ディスプレイリストDL1に基づく描画動作が終わっていること、及び、ディスプレイリストDL2に基づくプリロード動作が終わっていること確認する(ST5’)。 Next, the main control process when the preloader 73 is used will be described with reference to FIG. 25. The process in FIG. 25 is similar to the process in FIG. 20, but first the content of the start condition determination (ST5') is different. That is, in an embodiment using a preloader, at the start of each operation cycle, status information of the drawing circuit 76 and the preloader 73 is read and accessed to confirm that the drawing operation based on the display list DL1 has ended, and that the preload operation based on the display list DL2 has ended (ST5').

図29(a)のタイムチャートに示す通り、プリローダ76は、例えば、動作周期(T1)に発行されたディスプレイリストDL1に基づき、その動作周期中(T1~T1+δ)に、先読み動作(プリロード動作)を終えている筈である。また、描画回路76は、例えば、動作周期(T1+δ)で指示された動作開始指令に基づき、その動作周期中(T1+δ~T1+2δ)に、ディスプレイリストDL1に基づく描画動作を終えている筈である。 As shown in the time chart of FIG. 29(a), the preloader 76 should have completed the preload operation during an operation cycle (T1) (T1 to T1+δ) based on the display list DL1 issued during that operation cycle. The drawing circuit 76 should have completed the drawing operation during that operation cycle (T1+δ to T1+2δ) based on the operation start command issued during that operation cycle (T1+δ).

そこで、(ST5’)では、描画回路76とプリローダ73に関するVDPレジスタRGijのステイタス情報をREADアクセスして、上記の正常動作を確認するのである。図29(a)には、動作周期T1,T1+δ,T1+2δ,T1+4δの判定タイミングでは正常動作が確認されるが、動作周期T1+3δの判定タイミングでは、プリロード動作が終了していない状態が示されている。 Therefore, in (ST5'), the status information of the VDP register RGij related to the drawing circuit 76 and the preloader 73 is read and accessed to confirm the above-mentioned normal operation. In FIG. 29(a), normal operation is confirmed at the judgment timings of the operation cycles T1, T1+δ, T1+2δ, and T1+4δ, but at the judgment timing of the operation cycle T1+3δ, the preload operation is not completed.

そして、このような異常時には、異常フラグERをインクリメントした上で(ER=ER+1)、ステップST9の処理に移行させている。そのため、図20の実施例の場合と同様に、フレーム落ちが生じる。すなわち、表示領域の切換え処理(ST6)がスキップされるので、同じ画面が再表示される。図28(a)に示す動作期間(T1+3δ~T1+4δ)は、その動作状態を示している。 In the event of such an abnormality, the abnormality flag ER is incremented (ER = ER + 1) and the process proceeds to step ST9. Therefore, as in the embodiment of FIG. 20, a frame is dropped. In other words, the display area switching process (ST6) is skipped, and the same screen is redisplayed. The operating period (T1 + 3δ to T1 + 4δ) shown in FIG. 28(a) shows this operating state.

また、ステップST5’の判定において、開始条件を満たさない場合には、描画回路76に対して、書換えリストDL’に基づく描画動作の開始指示(PT10)が実行されないので、描画回路76は非動作状態であり、また、新規のディスプレイリストが生成されることもない。なお、図29(a)において、タイミングt0,t2,t4は、描画動作の開始指示(PT10)の動作タイミング、より正確には、図26のステップST26のタイミングを示している。 If the start condition is not satisfied in the determination of step ST5', the drawing circuit 76 is not instructed to start the drawing operation (PT10) based on the rewrite list DL', so the drawing circuit 76 is in a non-operating state and a new display list is not generated. In FIG. 29(a), timings t0, t2, and t4 indicate the operation timing of the drawing operation start instruction (PT10), or more precisely, the timing of step ST26 in FIG. 26.

以上、ステップST5’の判定が不適合の場合を説明したが、通常の場合は、フレームバッファFBa,FBbの表示領域をトグル的に切換えた後(ST6)、描画回路76に対して、書換えリストDL’に基づく描画動作を開始させる(PT10)。具体的な内容は、図26に示す通りであり、描画回路76は、演出制御CPU63の制御に基づき、データ転送回路72(転送回路ChB)を経由して、外付けDRAM54のDLバッファBUF’から書換えリストDL’を取得して描画動作を実行することになる。 The above describes the case where the judgment in step ST5' is non-compliant, but in the normal case, after toggling between the display areas of the frame buffers FBa and FBb (ST6), the drawing circuit 76 is made to start drawing operations based on the rewrite list DL' (PT10). The specific contents are as shown in FIG. 26, and under the control of the performance control CPU 63, the drawing circuit 76 obtains the rewrite list DL' from the DL buffer BUF' in the external DRAM 54 via the data transfer circuit 72 (transfer circuit ChB) and executes the drawing operation.

この動作を実現する図26のフローチャートを説明することに先行して、プリローダ73の動作を確認すると、プリローダ73は、一動作周期前に取得したディスプレイリストDLに基づき、CGROM55の先読み動作(プリロード)を完了しており、先読みされたデータは、外付けDRAM54に確保されたプリロード領域に既に格納済みである。また、ディスプレイリストDLに記載されているテクスチャロード系のコマンド(TXLOAD)については、そのSourceアドレスがプリロード領域のアドレスに書換えられ、書換えリストDL’として、外付けDRAM54のDLバッファBUF’に格納されている。 Prior to explaining the flowchart in Figure 26 which realizes this operation, let us check the operation of the preloader 73. The preloader 73 has completed the look-ahead operation (preload) of the CGROM 55 based on the display list DL acquired one operation cycle ago, and the look-ahead data has already been stored in the preload area secured in the external DRAM 54. In addition, for the texture load command (TXLOAD) written in the display list DL, its source address is rewritten to an address in the preload area, and is stored in the DL buffer BUF' of the external DRAM 54 as a rewrite list DL'.

なお、この書換え処理において、ディスプレイリストDLのデータ総量に変化はなく、書換えリストDL’のデータ総量は、ディスプレイリストDLと同じである。また、ディスプレイリストDLは、標準手法(B)で作成されており、書換えリストDL’の最後は、ディスプレイリストDLの場合と同様にEODLコマンドである。 In addition, in this rewrite process, the total amount of data in the display list DL does not change, and the total amount of data in the rewrite list DL' is the same as that of the display list DL. In addition, the display list DL is created using the standard method (B), and the end of the rewrite list DL' is an EODL command, just like in the case of the display list DL.

以上を踏まえて、図26について説明すると、演出制御CPU63は、先ず、所定のデータ転送レジスタRGijと、所定の描画レジスタRGijに各々クリア値を設定して、データ転送回路72と、描画回路76を初期化する(ST20)。この処理は、図23のST20の処理と同一内容である。次に、この初期化処理が正常に終了したことを確認し(ST21)、万一、所定時間経過しても初期化が完了しない場合には、重大異常フラグABNをセットして処理を終える(ST22)。 With the above in mind, referring to FIG. 26, the performance control CPU 63 first sets a clear value to a specified data transfer register RGij and a specified drawing register RGij, respectively, to initialize the data transfer circuit 72 and the drawing circuit 76 (ST20). This process is the same as the process of ST20 in FIG. 23. Next, it is confirmed that this initialization process has ended normally (ST21), and in the unlikely event that the initialization is not completed after a specified time has elapsed, the major abnormality flag ABN is set and the process ends (ST22).

通常は、データ転送回路72と描画回路76の初期化は正常に終了するので、続いて、データ転送回路72内部の伝送経由を、所定のデータ転送レジスタRGijに設定する(ST23)。具体的には、外付けDRAM54から、ChB制御回路72bを経由して描画回路76にデータを転送すると設定する(ST23)。次に、書換えリストDL’が格納されている外付けDRAM54のDLバッファBUF’について、その先頭アドレスを、所定のデータ転送レジスタRGijに設定する(ST24)。 Normally, the initialization of the data transfer circuit 72 and drawing circuit 76 ends normally, so the transmission route within the data transfer circuit 72 is then set to a specified data transfer register RGij (ST23). Specifically, it is set to transfer data from the external DRAM 54 to the drawing circuit 76 via the ChB control circuit 72b (ST23). Next, the top address of the DL buffer BUF' in the external DRAM 54, in which the rewrite list DL' is stored, is set to the specified data transfer register RGij (ST24).

また、この書換えリストDL’について、転送総サイズを、所定のデータ転送レジスタRGijに設定する(ST25)。先に説明した通り、書換えリストDL’のデータ総量は、ディスプレイリストDLのデータ総量と同じであり、具体的には、例えば、256バイトである。 The total transfer size of this rewrite list DL' is also set in a predetermined data transfer register RGij (ST25). As explained above, the total amount of data in the rewrite list DL' is the same as the total amount of data in the display list DL, and is, for example, 256 bytes.

次に、所定の描画レジスタRGijへの設定値に基づいて、描画回路76の描画動作を開始させる(ST26)。図28(a)におけるタイミングt1,t2,t3,t4は、ステップST26の動作タイミングでもある。そして、次に、所定のデータ転送レジスタRGijへの設定値に基づいて、データ転送回路60の動作を開始させて処理を終える(ST27)。その後、演出制御CPU63は、データ転送回路72や描画回路の動作に特に関与せず、次回の動作周期で実効化されるディスプレイリストの生成処理(ST7)に移行する。 Next, the drawing operation of the drawing circuit 76 is started based on the set value of a specified drawing register RGij (ST26). Timings t1, t2, t3, and t4 in FIG. 28(a) are also the operation timings of step ST26. Next, the operation of the data transfer circuit 60 is started based on the set value of a specified data transfer register RGij, and the process ends (ST27). After that, the performance control CPU 63 is not particularly involved in the operation of the data transfer circuit 72 or the drawing circuit, and proceeds to the process of generating a display list (ST7) that will be executed in the next operating cycle.

一方、ステップST26のタイミングで動作を開始する描画回路76は、書換えリストDL’に基づいた描画動作を実行して、フレームバッファFBa,FBbに、書換えリストDL’に基づいた画像データを生成する。なお、この動作において、描画回路76は、CGROM55をREADアクセスすることなく、もっぱら、プリロード領域をREADアクセスするので、一連の描画動作を迅速に完了することができる。 Meanwhile, the drawing circuit 76, which starts operating at the timing of step ST26, executes drawing operations based on the rewrite list DL' and generates image data based on the rewrite list DL' in the frame buffers FBa and FBb. Note that in this operation, the drawing circuit 76 does not perform a READ access to the CGROM 55, but only performs a READ access to the preload area, so that a series of drawing operations can be completed quickly.

以上、ステップPT10の処理内容を説明したので、図25に戻って説明を続けると、ステップPT11の処理の後、プリローダ73を活用する実施例では、次サイクルで実効化されるディスプレイリストDLを、標準手法(B)に基づいて作成する(ST7)。例えば、図29(a)に示す動作周期(T1)では、次サイクルである動作周期(T1+δ)において、描画回路76に参照されるディスプレイリストDLを作成する。 Having explained the processing contents of step PT10 above, let us return to FIG. 25 to continue the explanation. After the processing of step PT11, in an embodiment that utilizes the preloader 73, a display list DL to be executed in the next cycle is created based on the standard method (B) (ST7). For example, in the operation cycle (T1) shown in FIG. 29(a), a display list DL to be referenced by the drawing circuit 76 is created in the operation cycle (T1+δ), which is the next cycle.

次に、演出制御CPU63は、作成後のディスプレイリストDLを、描画回路76ではなく、プリローダ73に発行する(PT11)。具体的な動作内容は、図27に示す通りである。先に、プリローダ73を使用しない実施例(図20)に関し、演出制御CPU63が、ディスプレイリストDLを、直接的に、描画回路76に発行する場合(図22)と、DMAC回路60を経由して発行する場合(図23)を示しているが、図27には、発行先がプリローダ73である点を除いて、ほぼ同じ動作が図27(b)と図27(c)に示されている。 Next, the performance control CPU 63 issues the created display list DL to the preloader 73, not to the drawing circuit 76 (PT11). The specific operation is as shown in FIG. 27. Previously, in the embodiment (FIG. 20) in which the preloader 73 is not used, the performance control CPU 63 has been shown issuing the display list DL directly to the drawing circuit 76 (FIG. 22) and via the DMAC circuit 60 (FIG. 23). In FIG. 27, almost the same operation is shown in FIG. 27(b) and FIG. 27(c), except that the issuing destination is the preloader 73.

図27(a)は、図27(b)の動作を説明するフローチャートであり、図22のフローチャートとほぼ同じである。但し、CPUIF部56からChC制御回路72cを経由すること、及び、CPUバス制御部72dに関し、そのFIFOバッファの残量をチェックしながらデータ転送動作を実行すると設定する(ST20)。なお、以下の説明では、ChC制御回路72cを、便宜上、「転送回路ChC」と略すことがある。 Figure 27(a) is a flowchart explaining the operation of Figure 27(b), and is almost the same as the flowchart of Figure 22. However, it is set so that data is transferred from the CPUIF unit 56 via the ChC control circuit 72c, and the data transfer operation is performed while checking the remaining capacity of the FIFO buffer of the CPU bus control unit 72d (ST20). In the following description, the ChC control circuit 72c may be abbreviated to "transfer circuit ChC" for convenience.

次に、転送総サイズ(標準手法(B)で調整された例えば256バイト)を、所定のデータ転送レジスタRGij設定し、管理カウンタCNを64に初期設定する(ST21)。次に、転送回路ChCを経由するデータ転送動作を開始状態に設定すると共に(ST22)、プリローダ73の動作を規定するプリロードレジスタRGijへの設定値に基づいて、プリロード動作を開始させる(ST23)。 Next, the total transfer size (for example, 256 bytes adjusted using the standard method (B)) is set in a specified data transfer register RGij, and the management counter CN is initialized to 64 (ST21). Next, the data transfer operation via the transfer circuit ChC is set to a start state (ST22), and the preload operation is started based on the setting value in the preload register RGij that specifies the operation of the preloader 73 (ST23).

この結果、その後、プリローダ73は、演出制御CPU63が、転送ポートTR_PORT に書込む指示コマンド毎に、必要な解析(Analyze )処理を実行し、CGROM55をREADアクセスすべき指示コマンド(TXLOAD)を検出すると、そのテクスチャをプリロードして、DRAM54のプリロード領域に保存する。また、テクスチャのSourceアドレスを変更した書換えリストDL’をDRAM54のDLバッファ領域BUF’に保存する。 As a result, the preloader 73 subsequently executes the necessary analysis (Analyze) process for each instruction command that the performance control CPU 63 writes to the transfer port TR_PORT, and when it detects an instruction command (TXLOAD) that requires READ access to the CGROM 55, it preloads the texture and saves it in the preload area of the DRAM 54. It also saves the rewrite list DL' with the changed texture source address in the DL buffer area BUF' of the DRAM 54.

なお、図29(a)におけるタイミングt1,t3,t5は、事実上、図27のステップST23の動作タイミングを示している。但し、この実施例においても、ディスプレイリストDLの発行処理の途中で、何らかの異常が発生すれば、ステップST25やステップST27の処理を実行する。具体的には、データ転送回路72や、プリローダ73の動作を初期化して、可能な範囲でディスプレイリストDLの発行処理(ST20~ST30)を再実行する。プリローダ73の初期化処理には、未完成状態の書き換えリストDL’の消去や、新規にプリロードデータを記憶したプリロード領域のクリア処理が含まれる。 Note that timings t1, t3, and t5 in FIG. 29(a) actually indicate the operation timing of step ST23 in FIG. 27. However, even in this embodiment, if any abnormality occurs during the process of issuing the display list DL, the processes of steps ST25 and ST27 are executed. Specifically, the operation of the data transfer circuit 72 and the preloader 73 are initialized, and the process of issuing the display list DL (ST20 to ST30) is executed again to the extent possible. The initialization process of the preloader 73 includes erasing the incomplete rewrite list DL' and clearing the preload area in which new preload data has been stored.

以上、プリローダ73を使用する場合と、使用しない場合について詳細に説明したが、具体的な動作内容は、特に限定されない。図28(b)は、演出制御CPU63が生成したディスプレイリストを、生成したその動作周期ではなく、一動作周期δ遅れて描画回路76に発行する実施例を示している。このような実施例の場合には、描画回路76は、一動作周期(δ)のほぼ全時間を使用できるので、フレーム落ちの可能性が低減される。 The above provides a detailed explanation of the cases where the preloader 73 is used and where it is not used, but the specific operation is not particularly limited. Figure 28(b) shows an embodiment in which the display list generated by the performance control CPU 63 is issued to the drawing circuit 76 with a delay of one operation cycle δ, rather than the same operation cycle in which it was generated. In such an embodiment, the drawing circuit 76 can use almost the entire time of one operation cycle (δ), reducing the possibility of frame dropping.

また、図29(b)は、演出制御CPU63が生成したディスプレイリストを、生成したその動作周期ではなく、一動作周期遅れてプリローダ73に発行する実施例を示している。この場合は、プリローダ73は、一動作周期(δ)のほぼ全時間を使用してプリドード動作を実行することができるので、この場合も、フレーム落ちの可能性が低減される。 Figure 29 (b) shows an example in which the display list generated by the performance control CPU 63 is issued to the preloader 73 one operation cycle later than the operation cycle in which it was generated. In this case, the preloader 73 can use almost the entire time of one operation cycle (δ) to perform the preloading operation, so the possibility of frame dropping is also reduced in this case.

なお、ここまでの説明では、複合チップ50を使用することにしているが、必ずしも、演出制御CPU63とVDP回路52を、一素子に集積化する必要はない。更にまた、上記の実施例では、演出制御全体を、単一のCPU(演出制御CPU63)で制御しているが、上流側のCPUと、下流側の演出制御CPU63が互いに協働して、演出制御動作を実行しても良い。 In the explanation so far, it has been assumed that a composite chip 50 is used, but it is not necessary that the performance control CPU 63 and the VDP circuit 52 are integrated into a single element. Furthermore, in the above embodiment, the entire performance control is controlled by a single CPU (performance control CPU 63), but the upstream CPU and the downstream performance control CPU 63 may cooperate with each other to execute the performance control operation.

図30~図31は、このような実施例を示すブロック図である。図示の通り、この実施例では、上流側の演出制御CPUが、音声演出と、ランプ演出と、モータ演出を制御している。一方、下流側のCPU回路51は、演出制御CPUから受ける制御コマンドCMD’に基づいて、画像演出だけを制御している。 Figures 30 and 31 are block diagrams showing such an embodiment. As shown in the figures, in this embodiment, the upstream performance control CPU controls the audio performance, the lamp performance, and the motor performance. Meanwhile, the downstream CPU circuit 51 controls only the image performance based on the control command CMD' received from the performance control CPU.

このような構成を採る場合には、CPU回路51は、図20(a)のステップST12の処理と、図20(b)の処理を実行する必要がなく、十分に時間をかけて複雑なディスプレイリストDLを生成することができ、より複雑で高度な3D(Dimension )などの画像演出を実現することができる。このような場合には、ディスプレイリストが大型化するが、その場合には、ディスプレイリストDLのデータ総量は、ダミーコマンドを付加することで、512バイト又はそれ以上のN×256バイトに調整される。 When such a configuration is adopted, the CPU circuit 51 does not need to execute the process of step ST12 in FIG. 20(a) and the process of FIG. 20(b), and can take a sufficient amount of time to generate a complex display list DL, making it possible to realize more complex and advanced image presentations such as 3D (Dimension). In such a case, the display list becomes larger, but in that case, the total amount of data in the display list DL is adjusted to 512 bytes or more, N×256 bytes, by adding a dummy command.

また、下流側のCPU回路51の動作は、画像演出制御に特化されるので、ディスプレイリストDLの発行後、描画動作が完了するのを確認することもできる。図22の下方は、この場合の動作制御例を示しており、限界時間を超えても描画動作が完了しない場合には、重大異常フラグABNをセットして処理を終える(ST32)。なお、下流側のCPU回路51の処理は、画像演出制御だけであるので、簡易的には、描画動作の完了を無限ループ状に待機するのでも良い。 In addition, since the operation of the downstream CPU circuit 51 is specialized for image presentation control, it is also possible to confirm that the drawing operation is completed after the display list DL is issued. The lower part of Figure 22 shows an example of operation control in this case, and if the drawing operation is not completed even after the limit time has elapsed, the major abnormality flag ABN is set and processing ends (ST32). Note that since the processing of the downstream CPU circuit 51 is limited to image presentation control, it is also possible to simply wait for the drawing operation to be completed in an infinite loop.

このような構成を採る場合、図20(a)の開始条件判定(ST5)を所定時間繰り返すことができる。このように構成しても、描画動作完了の遅れが、それほど長くなければ、表示領域(0)と表示領域(1)の切り換えが遅れるだけの問題しか生じない。すなわち、図32(a)に示す動作周期T1+3δのように、表示動作が二回繰り返される一動作周期の中で、前半だけ、フレーム落ち状態となり、後半は、正常なフレームが表示される。 When this configuration is adopted, the start condition determination (ST5) in FIG. 20(a) can be repeated for a predetermined time. Even with this configuration, so long as the delay in completing the drawing operation is not too long, the only problem that occurs is a delay in switching between display area (0) and display area (1). In other words, as in the operation cycle T1+3δ shown in FIG. 32(a), in one operation cycle in which the display operation is repeated twice, only the first half experiences a frame drop state, and the second half displays normal frames.

この点は、プリローダを使用する場合も同様であり、図25(a)の開始条件判定(ST5’)を所定時間繰り返すことができる。そして、多少の遅れであれば、図32(b)に示す動作周期T1+3δのように、前半だけ、フレーム落ち状態となり、後半は、正常なフレームが表示される。但し、描画動作の完了が大幅に遅れると、図28(a)の動作周期T1+3δと同様に、完全なフレーム落ちが生じることになり、万一、このような事態が継続すると、WDT回路58が起動することになる。この点は、プリローダを使用しない場合も同様である。 This is also the case when a preloader is used, and the start condition determination (ST5') in FIG. 25(a) can be repeated for a predetermined time. If there is a slight delay, then only the first half of the operation cycle T1+3δ shown in FIG. 32(b) will experience frame drop, and normal frames will be displayed in the second half. However, if the completion of the drawing operation is significantly delayed, then complete frame drop will occur, as in the operation cycle T1+3δ in FIG. 28(a), and if this situation continues, the WDT circuit 58 will be activated. This is also the case when a preloader is not used.

また、CPU回路51の制御動作が画像演出制御に特化される場合、DMA転送を採用する実施例では、図24の下方に示す通り、描画回路76の描画動作の完了と、データ転送回路72の動作完了と、DMAC回路60の動作完了が判定される(ST50’~ST52’)。そして、何れかの動作が正常に終了しない場合には、データ転送回路72と、描画回路76の動作を初期化し、ステップST53~ST55の処理と同様の処理(ST55’~ST57’)が実行される。なお、この場合も、所定回数だけ、DL発行処理を再実行するのが好適である。 In addition, when the control operation of the CPU circuit 51 is specialized for image rendering control, in an embodiment employing DMA transfer, as shown at the bottom of FIG. 24, the completion of the drawing operation of the drawing circuit 76, the completion of the operation of the data transfer circuit 72, and the completion of the operation of the DMAC circuit 60 are determined (ST50'-ST52'). If any operation does not end normally, the operation of the data transfer circuit 72 and the drawing circuit 76 is initialized, and processing similar to the processing of steps ST53-ST55 (ST55'-ST57') is executed. Note that in this case as well, it is preferable to re-execute the DL issuance process a predetermined number of times.

以上、メイン表示装置DS1及びサブ表示装置DS2のフレームバッファFBa,FBbとして、各表示装置の水平ピクセル数に完全一致する水平サイズのインデックス空間を構築する実施例について説明した。図33(a)は、この関係を確認的に図示したものであり、仮想描画空間上の描画領域(W×H)と、インデックス空間上の有効データ領域(実描画領域W×H)とが、何れも、表示装置の水平/垂直ピクセル数に一致する場合を示している。 The above describes an embodiment in which an index space with a horizontal size that perfectly matches the number of horizontal pixels of each display device is constructed as the frame buffers FBa and FBb of the main display device DS1 and the sub display device DS2. Figure 33(a) clearly illustrates this relationship, showing a case in which the drawing area (W x H) in the virtual drawing space and the effective data area (actual drawing area W x H) in the index space both match the number of horizontal/vertical pixels of the display devices.

このような対応関係において、ディスプレイリストDLによる仮想描画空間への描画動作は、必ずしも、描画領域(W×H)に限定されないので、例えば、図33(a)上部の左傾斜線で示すように、描画領域(W×H)を超える描画画像(W’×H’)について、その描画位置を時間的に移動させることで、図33(a)下部の右傾斜線で示す実描画領域W×Hへの描画内容を、縦/横/斜めに適宜に移動させることが可能となる。 In such a correspondence relationship, the drawing operation into the virtual drawing space by the display list DL is not necessarily limited to the drawing area (W x H). For example, as shown by the left sloping line at the top of Figure 33(a), by moving the drawing position in time for a drawing image (W' x H') that exceeds the drawing area (W x H), it is possible to appropriately move the drawing contents into the actual drawing area W x H, shown by the right sloping line at the bottom of Figure 33(a), vertically/horizontally/diagonally.

また、このような演出を実行するため、例えば、図33(b)に示すように、表示装置の水平ピクセル数より大きい水平サイズWのインデックス空間を設けても良い。この場合には、ディスプレイリストDLの指示コマンドL12(SETDAVF )で定義される仮想描画空間上の描画領域W×Hは、表示装置の水平/垂直ピクセル数に対応する実描画領域w×hより大きく設定される。なお、図33(b)の下部には、実描画領域w×hが、右傾斜線で示されている。 To achieve this kind of effect, for example, an index space with a horizontal size W larger than the number of horizontal pixels of the display device may be provided, as shown in Figure 33(b). In this case, the drawing area WxH in the virtual drawing space defined by instruction command L12 (SETDAVF) in the display list DL is set to be larger than the actual drawing area wxh corresponding to the number of horizontal/vertical pixels of the display device. Note that the actual drawing area wxh is indicated by a right-sloping line at the bottom of Figure 33(b).

そして、実描画領域w×hの縦横寸法は、図20のステップSS30の処理で、表示装置の表示ライン数と水平画素数として特定され、また、実描画領域w×hの左上端点は、図20のステップSS31の処理で、垂直/水平表示開始位置として、所定の表示レジスタに設定される。 The vertical and horizontal dimensions of the actual drawing area w×h are then specified as the number of display lines and the number of horizontal pixels of the display device in step SS30 of FIG. 20, and the upper left corner point of the actual drawing area w×h is set in a specified display register as the vertical/horizontal display start position in step SS31 of FIG. 20.

一方、インデックス空間における基点アドレス(X,Y)は、ディスプレイリストの指示コマンドL11によって、所定の描画レジスタに設定される。先に説明した通り、具体的には、環境設定系の指示コマンドL11(SETDAVR )によって、インデックス空間IDX上の左上基点アドレスが、例えば(0,0)と規定される。そして、実描画領域w×hの左上端点を、定常処理において適宜に移動させれば、図33(b)下部の右傾斜線で示す実描画領域W×Hの描画内容は、縦/横/斜めに適宜に移動することになる。 Meanwhile, the base address (X, Y) in the index space is set in a specified drawing register by the display list instruction command L11. As explained above, specifically, the top left base address in the index space IDX is specified as (0, 0), for example, by the environment setting instruction command L11 (SETDAVR). Then, if the top left corner point of the actual drawing area w×h is moved appropriately during normal processing, the drawing contents of the actual drawing area W×H, indicated by the right sloping line at the bottom of Figure 33(b), will move vertically/horizontally/diagonally as appropriate.

図20に関して説明した通り、ステップSS30~SS32に係るVDPレジスタRGijについては、初期設定後に、書込み禁止設定がされているが(第2の禁止設定SS34)、上記の演出を実行するタイミングでは、所定のVDPレジスタRGijに解除値を書込むことで、この禁止設定が解除される。 As explained with reference to FIG. 20, the VDP register RGij related to steps SS30 to SS32 is write-prohibited after initial setting (second prohibition setting SS34), but at the timing of executing the above-mentioned performance, this prohibition is released by writing a release value to a specific VDP register RGij.

ところで、上記の実施例では、第1種や第2種の禁止設定レジスタを活用して、所定のシステム制御レジスタRGijや初期設定系の所定のVDPレジスタRGijを、画一的に書込み禁止状態に設定して(図20や図25のSS33,SS34参照)、これらのレジスタへの設定値が、その後、ノイズなどの影響で変更されないようにした。しかし、このような書込み禁止設定をすることなく、重要なシステム制御レジスタRGijの設定値については、所定時間毎に設定処理を繰り返すのも好適である。 In the above embodiment, the first and second type of inhibit setting registers are utilized to uniformly set the specified system control register RGij and the specified VDP register RGij of the initial setting system to a write inhibit state (see SS33 and SS34 in FIG. 20 and FIG. 25), so that the set values of these registers are not subsequently changed due to the influence of noise, etc. However, it is also preferable to repeat the setting process for the set values of important system control registers RGij at predetermined time intervals without setting them to such a write inhibit state.

図34は、このような場合の処理を説明する図面であり、初期設定処理(ST3)において設定すべき設定値は、制御メモリ53(PROGMROM)に記憶された設定値テーブルSETTABLEに纏められている。なお、図20のステップST3では、説明を省略しているが、(a) 初期値設定テーブルSETTABLEに基づいて初期設定処理を実行すること、及び、(b) 初期値設定テーブルSETTABLEの内容については、図20の実施例も、以下に説明する内容と実質的に同じである。 Figure 34 is a diagram explaining the processing in such a case, where the setting values to be set in the initial setting processing (ST3) are collected in a setting value table SETTABLE stored in the control memory 53 (PROGMROM). Note that although explanation is omitted for step ST3 in Figure 20, the embodiment in Figure 20 is substantially the same as that explained below with regard to (a) executing the initial setting processing based on the initial value setting table SETTABLE, and (b) the contents of the initial value setting table SETTABLE.

そして、何れの実施例でも、設定値テーブルSETTABLEは、VDPレジスタRGijのレジスタアドレス値と、そのレジスタRGijへの設定値を一組みとした複数組(N組)で構成されている。特に限定されないが、レジスタアドレス値は16bit長、設定値は32bit長に固定化されており、各々が固定長であることで、初期値設定テーブルSETTABLEのデータ容量は、6×Nバイト(=48t×Nbit)長、VDPレジスタRGijはN個となっている。 In any embodiment, the setting value table SETTABLE is composed of multiple sets (N sets), each set being the register address value of the VDP register RGij and the setting value for that register RGij. Although not particularly limited, the register address value is fixed to 16 bits in length, and the setting value is fixed to 32 bits in length, and since each is a fixed length, the data capacity of the initial value setting table SETTABLE is 6 x N bytes (= 48t x N bits) in length, and there are N VDP registers RGij.

但し、図20の実施例では、初期値設定テーブルSETTABLEが一回だけREADアクセスされ、全N個のVDPレジスタRGijが一回だけ初期設定されるのに対して、図34の実施例では、全N個のVDPレジスタRGijは、一回だけ初期設定されるN1個のVDPレジスタRGijと、一回目の初期設定の後、1/30秒毎に繰り返し初期設定されるN2個のVDPレジスタRGijとに区分される。 However, in the embodiment of FIG. 20, the initial value setting table SETTABLE is accessed for READ only once, and all N VDP registers RGij are initialized only once, whereas in the embodiment of FIG. 34, all N VDP registers RGij are divided into N1 VDP registers RGij that are initialized only once, and N2 VDP registers RGij that are repeatedly initialized every 1/30 seconds after the first initialization.

そして、図34の実施例では、繰り返し初期設定される設定値には、(1)DMA転送動作についての設定値、(2)VRAMに対する設定値、(3)割込みに関する設定値、(4)表示回路74に関する設定値、及び、(5)描画回路76に関する設定値が含まれている。 In the embodiment of FIG. 34, the setting values that are repeatedly initialized include (1) setting values for DMA transfer operations, (2) setting values for the VRAM, (3) setting values for interrupts, (4) setting values for the display circuit 74, and (5) setting values for the drawing circuit 76.

(1)DMA転送動作に関する設定値は、例えば、ステップST41で規定する動作条件の前提条件となる設定値であり、図23(c)や図27(c)における動作条件の違いに拘わらず固定的に適用される基本設定値である。具体的には、(a) DAMC回路60に内蔵されたFIFOバッファ(N段)がどれだけ開放されると、転送元に転送要求をするかの閾値(例えば全体の1/2段)、(b) 転送先や転送元とハンドシェイク動作をするか否か(例えばNo)などの設定値が含まれる。 (1) The setting values for DMA transfer operation are, for example, setting values that are prerequisites for the operating conditions specified in step ST41, and are basic setting values that are fixedly applied regardless of differences in the operating conditions in FIG. 23(c) and FIG. 27(c). Specifically, they include setting values such as (a) a threshold value for how much of the FIFO buffer (N stages) built into the DMA transfer circuit 60 must be released before a transfer request is made to the transfer source (e.g., 1/2 of the total stages), and (b) whether or not to perform a handshake operation with the transfer destination and transfer source (e.g., No).

また、(2)VRAMの設定値には、リフレッシュ動作のリフレッシュ周期が含まれている。内蔵VRAM71は、このリフレッシュ周期で動作することで、記憶データの自然放電が防止される。次に、(3)割込みに関する設定値には、割込み要求要因となるエラー種別や、割込み信号の出力端子(内蔵CPUの内部端子)を特定する値であり、例えば、(a) 描画回路76がフリーズすればCPU回路51に対して描画異常割込みが発生すること(割込み許可状態、図20(d)参照)、(b) 表示装置DS1のVBLANK開始時に、CPU回路51に対してVBLANK開始割込みが発生すること(図20(c)参照)などの設定値が含まれている。 (2) The VRAM setting value includes the refresh cycle of the refresh operation. The built-in VRAM 71 operates at this refresh cycle to prevent natural discharge of stored data. Next, (3) the interrupt setting value is a value that specifies the type of error that causes an interrupt request and the output terminal of the interrupt signal (internal terminal of the built-in CPU), and includes, for example, setting values such as (a) that if the drawing circuit 76 freezes, a drawing abnormality interrupt is generated for the CPU circuit 51 (interrupt enabled state, see FIG. 20(d)), and (b) that when VBLANK starts on the display device DS1, a VBLANK start interrupt is generated for the CPU circuit 51 (see FIG. 20(c)).

なお、本実施例は、CPU回路51とVDP回路52とが統合された複合チップ50を使用するが、別チップとする場合には、VDP回路52が割込み信号を出力する出力端子は、CPU回路51の外部割込み入力端子に接続される。 In this embodiment, a composite chip 50 is used in which the CPU circuit 51 and the VDP circuit 52 are integrated, but if they are separate chips, the output terminal from which the VDP circuit 52 outputs an interrupt signal is connected to the external interrupt input terminal of the CPU circuit 51.

また、(4)表示回路に関する設定値には、(a) 各フレームバッファの水平/垂直開始位置(SS31参照)、(b) 各表示装置の水平同期信号に関する設定値、(c) 各表示装置の垂直同期信号に関する設定値、(d) スケーラについての設定値、(e) 各表示装置の水平画素数と表示ライン数の設定値(SS30)などが含まれている。 In addition, (4) the display circuit settings include (a) the horizontal/vertical start position of each frame buffer (see SS31), (b) the horizontal sync signal settings of each display device, (c) the vertical sync signal settings of each display device, (d) the scaler settings, and (e) the number of horizontal pixels and the number of display lines settings of each display device (SS30).

(5)描画回路76に関する設定値には、描画異常割込みが発生するまでのフリーズ時間の設定値が含まれている。この設定値は、例えば、垂直同期信号の周期の整数倍として設定される。図20(d)において説明した通り、ここで規定されたフリーズ期間、描画回路76がVRAMをアクセスしない場合には、描画回路76が個別的にリセットされ(ST16b)、描画回路76に対する動作パラメータが再設定される(ST16c)。 (5) The settings for the drawing circuit 76 include a setting value for the freeze time until a drawing abnormality interrupt occurs. This setting value is set, for example, as an integer multiple of the period of the vertical synchronization signal. As explained in FIG. 20(d), if the drawing circuit 76 does not access the VRAM during the freeze period specified here, the drawing circuit 76 is individually reset (ST16b), and the operating parameters for the drawing circuit 76 are reconfigured (ST16c).

上記の通り、この実施例では、重要な設定値については、所定時間毎に繰り返し再設定されるので、ノイズなどの影響で、万一、設定値のビット化けが生じても、その異常が直ちに回復される。また、この実施例では、図20の実施例の場合のように、第1種や第2種の禁止設定レジスタRGijを書込み禁止状態に禁止設定しないので、やや煩雑な禁止解除処理を経ることなく、自由に書換え処理を実行することができる。 As described above, in this embodiment, important setting values are repeatedly reset at predetermined time intervals, so that even if the setting values are corrupted due to noise or other factors, the abnormality is immediately corrected. Also, in this embodiment, unlike the embodiment in FIG. 20, the first and second type inhibition setting registers RGij are not set to a write-prohibited state, so rewriting can be performed freely without going through the somewhat complicated inhibition release process.

以上、ここまで実施例では、(1a)所定のフリーズ時間を経過する描画回路76の動作フリーズ状態か、(1b)描画回路76が、ディスプレイリストDLに不合理な指示コマンドを検出した場合には、VDP回路52の描画回路76からCPU回路51に対して、描画異常割込みが生じる構成について説明した(図20(d)参照)。そして、描画異常割込み時には、割込み原因を判定した上で(図20(d)のST16a)、その判定結果に応じた処理を実行する構成(ST16c~ST16d)を採った。 So far, in the embodiment, a configuration has been described in which a drawing abnormality interrupt is generated from the drawing circuit 76 of the VDP circuit 52 to the CPU circuit 51 when (1a) the operation of the drawing circuit 76 freezes after a predetermined freeze time has elapsed, or (1b) the drawing circuit 76 detects an irrational instruction command in the display list DL (see FIG. 20(d)). When a drawing abnormality interrupt occurs, the cause of the interrupt is determined (ST16a in FIG. 20(d)), and processing is executed according to the determination result (ST16c to ST16d).

しかし、本発明者の実験によれば、ノイズの多い過酷な動作条件下でも、描画異常割込みが生じることは殆ど無い。そこで、制御負担を軽減化するためには、割込み原因判定処理(ST16a)を設けることなく、画一的に無限ループ処理に移行させるか(図25(b)参照)、パターンチェック回路CHK(図6(b)参照)を機能させるのも好適である(図25(c)のST17a参照)。 However, according to the inventor's experiments, even under harsh operating conditions with a lot of noise, drawing abnormality interrupts rarely occur. Therefore, in order to reduce the control burden, it is preferable to either move to an infinite loop process (see FIG. 25(b)) without providing an interrupt cause determination process (ST16a), or to activate the pattern check circuit CHK (see FIG. 6(b)) (see ST17a in FIG. 25(c)).

この場合には、その後、所定時間後にWDT回路58が起動して、複合チップ50全体がリセットされるか、或いは、その後、直ちにVDP回路52だけがリセットされることになる(図6(b)参照)。なお、リセットキーワードの出力処理(ST17a)に基づき、VDP回路52がリセットされた場合には、そのリセット動作の正常終了を確認すると共に、戻り番地を記憶するスタック領域を整理した後(ST17b)、例えば、ステップST4かST13の処理に移行させることになる。 In this case, the WDT circuit 58 will then be activated after a predetermined time, and the entire composite chip 50 will be reset, or just the VDP circuit 52 will be reset immediately thereafter (see FIG. 6(b)). If the VDP circuit 52 is reset based on the reset keyword output process (ST17a), the normal completion of the reset operation will be confirmed, and the stack area that stores the return address will be organized (ST17b), after which the process will proceed to, for example, step ST4 or ST13.

また、本実施例では、異常判定処理(図20や図25のST5)を設けて描画回路76の動作完了を1/30秒毎に判定しているので、更に制御負担を軽減するべく、実質的に何も実行しない描画異常割込み処理(図25(d))を設けても良い。図25(d)に示す通り、この構成では、描画異常割込み時、直ちにIRET(Interrupt Return)命令を実行してメイン制御処理に戻るので、描画回路76のフリーズ状態などは、そのまま継続されることになる。しかし、本実施例では、図20や図25のステップST5の処理で、フレーム落ち回数を、異常フラグERでカウントしており、いずれWDT回路58か、パターンチェック回路CHKが起動するので、図25(d)の構成は、図25(b)や図25(c)の構成と実質的に同じである。 In addition, in this embodiment, since the abnormality determination process (ST5 in FIG. 20 and FIG. 25) is provided to determine the completion of the operation of the drawing circuit 76 every 1/30 seconds, a drawing abnormality interrupt process (FIG. 25(d)) that essentially does nothing may be provided to further reduce the control burden. As shown in FIG. 25(d), in this configuration, when a drawing abnormality interrupt occurs, an IRET (Interrupt Return) command is immediately executed to return to the main control process, so the frozen state of the drawing circuit 76 will continue as is. However, in this embodiment, the number of frame drops is counted by the abnormality flag ER in the process of step ST5 in FIG. 20 and FIG. 25, and either the WDT circuit 58 or the pattern check circuit CHK will be activated at some point, so the configuration of FIG. 25(d) is essentially the same as the configuration of FIG. 25(b) and FIG. 25(c).

また、制御負担を更に軽減化するため、初期設定時(図20や図25のステップST3参照)に、VDP回路52を描画異常割込み禁止状態に設定するのも好適である。なお、電源投入時のデフォルト状態が、描画異常割込み禁止状態である構成を採る場合には、(a) 異常割込みの許可/禁止を規定する許否値を設定すべき所定のシステム制御レジスタRGijを書込み禁止状態に設定するか、或いは、(b) 所定時間毎に、前記のシステム制御レジスタRGijに禁止値を繰り返し書込むことになる。 In addition, in order to further reduce the control burden, it is also preferable to set the VDP circuit 52 to a drawing abnormality interruption disabled state during initialization (see step ST3 in FIG. 20 and FIG. 25). If the default state at power-on is a drawing abnormality interruption disabled state, (a) a specific system control register RGij in which a permission/prohibition value that specifies whether an abnormality interrupt is permitted/prohibited should be set is set to a write-prohibited state, or (b) a prohibition value is repeatedly written to the system control register RGij at predetermined time intervals.

この構成は、一見、図25(b)や図25(b)の構成より優れているようにも思われる。しかし、この種の遊技機の全機種について、(a) 描画異常割込みを、画一的に禁止状態に設定する構成より、(b) 画一的に許可状態に設定した上で、機種毎に図20(d)の構成を採るか、図25(b)~(d)の何れかの構成を採るかを選択する方が、制御プログラムの汎用化の観点からは優れている。なお、前者の構成(a) では、機種毎に、初期設定ルーチン(図20や図25のステップST3参照)などを変える必要性(煩雑さ)が生じる。 At first glance, this configuration seems superior to the configurations in Fig. 25(b) and Fig. 25(b). However, from the perspective of versatility of the control program, it is better to (b) set the drawing abnormality interrupt to a uniformly permitted state for all models of gaming machines of this type, rather than (a) setting it to a uniformly prohibited state for all models of gaming machines of this type, and then select for each model whether to adopt the configuration in Fig. 20(d) or one of the configurations in Fig. 25(b) to (d). Note that with the former configuration (a), it becomes necessary (complexity) to change the initial setting routine (see step ST3 in Fig. 20 and Fig. 25) for each model.

なお、更なる変更実施例として、複合チップ50に内蔵された音声回路SNDを活用するのも好適である。図35は、このような実施例を示すブロック図である。図35を、図6と対比すれば明らかな通り、この実施例では、音声プロセッサ27と、音声メモリ28が不要となり、且つ、CPU回路51のデータバス(8bit分)とアドレスバス(2bit分)について、音声回路への外部配線が不要となる。また、アンダーフロー信号UFの伝送線も存在しないので、このUF伝送線に重畳するノイズによって、複合チップが誤って異常リセットされるおそれも回避される。 As a further modified embodiment, it is also preferable to utilize the audio circuit SND built into the combined chip 50. FIG. 35 is a block diagram showing such an embodiment. As is clear from comparing FIG. 35 with FIG. 6, in this embodiment, the audio processor 27 and audio memory 28 are not required, and external wiring to the audio circuit is not required for the data bus (8 bits) and address bus (2 bits) of the CPU circuit 51. In addition, since there is no transmission line for the underflow signal UF, the risk of the combined chip being erroneously reset due to noise superimposed on this UF transmission line is also avoided.

また、この実施例では、音声メモリ28を排除することに対応して、音声メモリ28に記憶すべき音声データを、CGROM53に格納している。図36(d)は、CGROM53の記憶内容を図示したものであり、CGROM53には、サウンドROMヘッダ情報と、フレーズヘッダ情報HDと、一群の音声データを圧縮した多数のフレーズデータPHと、音声回路SNDの動作を規定する多数のサウンドコマンドSCMDと、が固定的に記憶されている。 In addition, in this embodiment, in response to the elimination of the audio memory 28, the audio data to be stored in the audio memory 28 is stored in the CGROM 53. Figure 36(d) illustrates the storage contents of the CGROM 53, which permanently stores sound ROM header information, phrase header information HD, a large number of phrase data PH compressed from a group of audio data, and a large number of sound commands SCMD that dictate the operation of the audio circuit SND.

図示の通り、サウンドROMヘッダ情報は、先頭番地SNDstから記憶されており、これに続いて、データサイズHDvlのフレーズヘッダ情報HDが、先頭番地HDstから記憶されている。また、データサイズPHvlのフレーズデータPHが、先頭番地PHstから記憶され、データサイズSCMDvlのサウンドコマンドSCMDが、先頭番地SCMDstから記憶されている。 As shown in the figure, sound ROM header information is stored from the starting address SNDst, followed by phrase header information HD of data size HDvl stored from the starting address HDst. In addition, phrase data PH of data size PHvl is stored from the starting address PHst, and sound command SCMD of data size SCMDvl is stored from the starting address SCMDst.

ここで、サウンドROMヘッダ情報とは、具体的には、フレーズヘッダHD領域の先頭アドレスHDstと、フレーズヘッダHD領域のデータサイズHDvlと、フレーズデータ領域PHの先頭アドレスPHstと、フレーズデータ領域PHのデータサイズPHvlと、サウンドコマンド領域SCMの先頭アドレスSCMDstと、サウンドコマンド領域SCMDのデータサイズSCMDvlと、を意味する。そして、これらの情報は、電源投入時に音声回路SNDの内部回路に取得されるようになっている(ステップSD4参照)。 Here, the sound ROM header information specifically means the start address HDst of the phrase header HD area, the data size HDvl of the phrase header HD area, the start address PHst of the phrase data area PH, the data size PHvl of the phrase data area PH, the start address SCMDst of the sound command area SCM, and the data size SCMDvl of the sound command area SCMD. This information is acquired by the internal circuitry of the sound circuit SND when the power is turned on (see step SD4).

また、フレーズヘッダ情報HDとフレーズデータPHは、電源投入時に、外付けDRAM54に転送することで、その後のREADアクセスの迅速化を図っている(ステップSD6)。このように、本実施例では、音声プロセッサ27と、音声メモリ28を排除して、小型化と製造コストの抑制を図ると共に、安価で大容量化が容易である一方、アクセス速度の遅いCGROM53の弱点を克服している。 The phrase header information HD and phrase data PH are also transferred to the external DRAM 54 when the power is turned on, thereby speeding up subsequent READ access (step SD6). In this way, in this embodiment, the voice processor 27 and voice memory 28 are eliminated, thereby reducing size and manufacturing costs, and overcoming the weakness of the CGROM 53, which is cheap and easy to increase in capacity, but has a slow access speed.

以上を踏まえて、電源投入時の初期設定処理について図36(a)に基づいて説明する。なお、これらの処理は、図20や図25のステップST3の処理の一部として実行される。 Based on the above, the initial setting process at power-on will be explained with reference to FIG. 36(a). Note that this process is executed as part of the process of step ST3 in FIG. 20 or FIG. 25.

図6(b)に関して説明した通り、電源投入時やWDT58が起動する異常リセット時には、リセット経路2の経路で音声回路SNDがハードウェアリセットされる(ステップSD1)。また、演出制御CPU63が、音声回路SNDの異常を検出した場合には、リセット経路4B又は4Cの経路で音声回路SNDがハードウェアリセットされる(ステップSD1)。なお、演出制御CPU63がパターンチェック回路CHKを機能させることで、音声回路SNDが、他の回路(72,73,74・・)と共にハードウェアリセットされる場合もある(ステップSD1)。 As explained with respect to FIG. 6(b), when the power is turned on or when an abnormal reset occurs in which the WDT 58 is activated, the audio circuit SND is hardware reset via reset path 2 (step SD1). Also, if the performance control CPU 63 detects an abnormality in the audio circuit SND, the audio circuit SND is hardware reset via reset path 4B or 4C (step SD1). Note that the performance control CPU 63 may also activate the pattern check circuit CHK to hardware reset the audio circuit SND together with the other circuits (72, 73, 74, etc.) (step SD1).

これら何れの場合でも、次に、演出制御CPU63は、リセット動作が正常に完了したことを確認した上で(ステップSD2)、最初に、サウンドデータ領域の先頭アドレスSNDstを、音声回路SNDのシステム制御レジスタRGijに設定する(ステップSD3)。次に、所定のシステム制御レジスタに所定値を設定することで、サウンドROMヘッダ情報HDを内部回路に記憶させる。なお、サウンドROMヘッダ情報HDは、前記した6要素(HDst,HDvl,PHst,PHvl,SCMDst,SCMDvl)であり、図36(c)に記載の通りである。 In either of these cases, the performance control CPU 63 then confirms that the reset operation has been completed normally (step SD2), and first sets the top address SNDst of the sound data area to the system control register RGij of the audio circuit SND (step SD3). Next, a predetermined value is set in a predetermined system control register, causing the sound ROM header information HD to be stored in the internal circuit. The sound ROM header information HD is the six elements mentioned above (HDst, HDvl, PHst, PHvl, SCMDst, SCMDvl), as shown in Figure 36 (c).

そして、ここまでの処理が正常に動作したことを確認し、万一、正常に終了できない場合には、リセット経路4B又は4Cの経路で、音声回路を個別的にリセットする。但し、通常は、正常終了を確認できるので、続いて、データ転送回路72を利用して、フレーズヘッダ情報HDと、フレーズデータPHを外付けDRAM54に転送する(ステップSD6)。なお、データ転送回路72には、転送先の先頭アドレスBGNと、転送元の先頭アドレスHDstと、転送データ総量HDvl+FDvlなどが適宜に指定される。 Then, it is confirmed that the processing up to this point has been normal, and if it has not ended normally, the audio circuits are individually reset via reset path 4B or 4C. However, since normal end can usually be confirmed, the phrase header information HD and phrase data PH are then transferred to the external DRAM 54 using the data transfer circuit 72 (step SD6). Note that the destination start address BGN, the source start address HDst, the total amount of data to be transferred HDvl+FDvl, etc. are appropriately specified in the data transfer circuit 72.

次に、フレーズヘッダ情報HDとフレーズデータPHは、CGROM55ではなく、外付けDRAM54に存在することを、所定のシステム制御レジスタRGijに設定した上で(ステップSD7)、外付けDRAM54に転送した一群のデータの先頭アドレスBGN(サウンドRAM先頭アドレス)を、所定のシステム制御レジスタに設定する(ステップSD8)。その後、その他の初期設定処理を終えることで(ステップSD9)、音声制御動作が可能となる。 Next, the phrase header information HD and phrase data PH are stored in the external DRAM 54, not in the CGROM 55, by setting a specific system control register RGij (step SD7), and then the start address BGN (sound RAM start address) of the group of data transferred to the external DRAM 54 is set in a specific system control register (step SD8). After that, other initial setting processes are completed (step SD9), enabling voice control operation.

先に説明した通り、サウンドROMヘッダ情報、つまり、6個の情報(HDst,HDvl,PHst,PHvl,SCMDst,SCMDvl)は、音声回路SNDの内部回路に保存されているので(ステップSD4)、その後、演出制御CPU63は、フレーズデータなどの必要な情報を、サウンドRAM先頭アドレスBGNとの相対値で指示することができ、この指示を受けた音声回路SNDは、相対アドレス値を絶対アドレス値に変換して、必要な音声処理を実行することになる。フレーズデータなどの音声データは、CGROM55ではなく、外付けDRAM54からREADアクセスされるので、複雑高度な音声演出であっても、これを円滑に実現することができる。 As explained above, the sound ROM header information, i.e., the six pieces of information (HDst, HDvl, PHst, PHvl, SCMDst, SCMDvl), are stored in the internal circuitry of the sound circuit SND (step SD4), so the performance control CPU 63 can then specify the necessary information such as phrase data as a relative value to the sound RAM start address BGN, and the sound circuit SND, upon receiving this instruction, will convert the relative address value into an absolute address value and execute the necessary sound processing. Since sound data such as phrase data is accessed for reading from the external DRAM 54 rather than from the CGROM 55, even complex and advanced sound performances can be smoothly realized.

以上、各種の実施例について詳細に説明したが、弾球遊技機や回胴遊技機などに限定されないだけでなく、具体的な記載内容についても、何ら本発明を限定しない。例えば、図15に示すパワーオンリセット動作は、制御メモリ53の0x00000000番地以降に確保されたベクタテーブルVECTの情報に基づいて起動されたが、HBTSL 端子=Hレベルに設定すると共に、CGROM55の先頭領域にベクタテーブルVECTを配置するのも好適である。図37(a)や図37(b)は、このような場合のアドレスマップを図示したものであり、演出制御CPU63のアドレス空間CS0は、CGROM55の一部(先頭領域)に確保されている。 Although various embodiments have been described in detail above, the present invention is not limited to pinball machines or reel machines, and the specific description does not limit the present invention in any way. For example, the power-on reset operation shown in FIG. 15 is started based on the information in the vector table VECT secured at address 0x00000000 in the control memory 53, but it is also preferable to set the HBTSL terminal to the H level and to place the vector table VECT in the leading area of the CGROM 55. FIG. 37(a) and FIG. 37(b) show address maps in such a case, and the address space CS0 of the performance control CPU 63 is secured in a part (leading area) of the CGROM 55.

なお、CGROM55の本体部は、演出制御CPU63からアクセスされることはなく(アクセス不可)、専らVDP回路52からアクセスされるので、アドレス空間CSiに位置付けられることない。先に説明した通り、CGROM55の本体部を、複数のメモリデバイスで構成することもでき、このような場合には、図17(a)のステップSP20の処理によって、SPA0~SPA1のデバイス区間に区分することで、メモリデバイスの特性に適合した最適なREADアクセスが可能となる。 The main body of CGROM 55 is not accessed (cannot be accessed) by the performance control CPU 63, but is accessed exclusively by the VDP circuit 52, and is therefore not positioned in the address space CSi. As explained above, the main body of CGROM 55 can be configured with multiple memory devices, and in such a case, by dividing it into device sections SPA0 to SPA1 by the processing of step SP20 in Figure 17(a), optimal READ access suited to the characteristics of the memory devices becomes possible.

何れにしても、HBTSL 端子=Hレベルに設定されている場合には、これに対応して、CGROM55のメモリ種別と、バス幅(64/32/16bit)とが、2bit長のHBTBWD端子と、4bit長のHBTRMSL 端子への固定的な入力値に基づいて予め特定されている必要がある。 In any case, when the HBTSL terminal is set to the H level, the memory type and bus width (64/32/16 bits) of the CGROM 55 must be specified in advance based on the fixed input values to the 2-bit HBTBWD terminal and the 4-bit HBTRMSL terminal.

そして、この実施例では、ベクタテーブルVECTに続いて、CGROM55からのREADアクセスを最適化するためのバスパラメータをCGROM55の先頭領域に記憶されておく必要がある。なお、必須ではないが、演出制御プログラムの違法解析を困難にするため難読化した場合に、それを解読するための難読化パラメータを記憶させておくのも好適である。 In this embodiment, following the vector table VECT, bus parameters for optimizing READ access from CGROM 55 must be stored in the leading area of CGROM 55. Although not essential, it is also preferable to store obfuscation parameters for deciphering the performance control program if it has been obfuscated to make illegal analysis of the program difficult.

このような構成を採った場合には、電源リセット後、リセットアサート期間に、以下の動作1~動作4がプログラム処理を経ることなく自動的に実行される。先ず、HBTRMSL 端子への入力値に基づいてアドレス空間CS0のバス幅が特定され、また、BTBWD 端子への入力値に基づいてメモリ種別が自動的に特定され、所定のVDPレジスタRGijに各々設定される(動作1)。この場合のメモリ種別は、パラレルI/F(Interface )形式を採るメモリ素子、シーケンシャルI/F形式を採るメモリ素子に大別される。 When this configuration is adopted, after the power is reset, during the reset assertion period, the following operations 1 to 4 are automatically executed without going through program processing. First, the bus width of the address space CS0 is specified based on the input value to the HBTRMSL terminal, and the memory type is automatically specified based on the input value to the BTBWD terminal and set in a predetermined VDP register RGij (operation 1). In this case, the memory type is broadly divided into memory elements that use a parallel I/F (Interface) format and memory elements that use a sequential I/F format.

次に、CGROM55に記憶されている難読化パラメータをロードし、難読化を解除するために必要な情報が内部回路内に自動設定される(動作2)。また、CGROM55に記憶されているバスパラメータが自動的にVDPレジスタRGijに取得される(動作3)。なお、この動作3は、図18のステップSP63のプログラム処理に対応する動作であり、内部回路によって自動的に実行される。 Next, the obfuscation parameters stored in CGROM 55 are loaded, and the information required to remove the obfuscation is automatically set in the internal circuit (operation 2). In addition, the bus parameters stored in CGROM 55 are automatically acquired in the VDP register RGij (operation 3). Note that this operation 3 corresponds to the program processing of step SP63 in FIG. 18, and is automatically executed by the internal circuit.

そして最後に、動作1~3で設定されたバスパラメータを実効化するべく、図18のステップSP64のプログラム処理に対応する動作が内部回路によって、自動的に実行される(動作4)。そして、バスパラメータの設定が実効化されたタイミングで、ベクタテーブルの情報に基づいてプログラムカウンタPCと、スタックポインタSPの値が自動的に設定され、ブートプログラム(初期設定プログラム)の実行が開始される。 Finally, to put into effect the bus parameters set in operations 1 to 3, an operation corresponding to the program processing in step SP64 in FIG. 18 is automatically executed by the internal circuit (operation 4). Then, when the bus parameter settings are put into effect, the values of the program counter PC and stack pointer SP are automatically set based on the information in the vector table, and execution of the boot program (initial setting program) begins.

この図37(a)に示す構成によれば、図15(a)のステップSP1のプログラム処理も不要となり、自動的に動作1~動作4が実行されるので、プログラム処理負担が大きく軽減される。そして、この場合も、初期設定プログラムPinitの動作に基づいて、ベクタハンドラVopt以降のプログラムやデータが適宜なRAM領域に転送される。 With the configuration shown in FIG. 37(a), the program processing in step SP1 in FIG. 15(a) is also unnecessary, and operations 1 to 4 are executed automatically, greatly reducing the program processing burden. Also in this case, programs and data following the vector handler Vopt are transferred to an appropriate RAM area based on the operation of the initial setting program Pinit.

なお、ベクタハンドラVopt以降のプログラムやデータは、必ずしもCGROM55の先頭領域に記憶させておく必要はなく、例えば、制御メモリ53に記憶させておくのでも良い(図37(b))。また、ベクタハンドラVopt以降のプログラムやデータは、必ずしもRAM領域に転送する必要はなく、転送しない場合には、初期化設定プログラムにおけるメモリセクション初期化処理(図15のSP8)が不要となる。 The programs and data following the vector handler Vopt do not necessarily need to be stored in the head area of the CGROM 55, and may be stored in the control memory 53, for example (Figure 37 (b)). Also, the programs and data following the vector handler Vopt do not necessarily need to be transferred to the RAM area, and if they are not transferred, the memory section initialization process (SP8 in Figure 15) in the initialization setting program is not necessary.

また、Vブランクタイミングと、有意な画像データの送信終了タイミングとを必ずしも一致させる必要はない。すなわち、図14(f)に示す表示領域の左下端点(〇印)のタイミングで、画像データの送信を終了させることは何ら必要ない。要するに、表示装置側から要求される待機時間WTh/WRvの仕様や、水平/垂直同期信号HS/Vsの仕様を満たせば、それで足りる。 Furthermore, it is not necessary to match the V blank timing with the timing at which the transmission of significant image data ends. In other words, there is no need to end the transmission of image data at the timing of the lower left corner (circle) of the display area shown in FIG. 14(f). In short, it is sufficient to satisfy the specifications of the waiting time WTh/WRv and the horizontal/vertical synchronization signals HS/Vs required by the display device.

図39(a)は、このような実施例を説明する図面であり、例えば、表示回路74Aの動作を示している。この実施例でも、メイン表示装置DS1の仕様に対応して、ドットクロックDCKの周波数Fdotは、108MHzと規定される。また、フレームレートFRを1/60秒に一致させるために、THc×TVl/Fdot=1/60とする必要があり、ここでも、図14(f)の場合と同様に、水平同期のサイクル数THcを1662クロック、垂直同期のライン数TVlを1083ラインとしている。 Fig. 39(a) is a diagram for explaining such an embodiment, and shows, for example, the operation of the display circuit 74A. In this embodiment, the frequency F dot of the dot clock DCK is specified as 108 MHz in accordance with the specifications of the main display device DS1. In addition, in order to make the frame rate FR coincident with 1/60 seconds, it is necessary to make THc x TVl / F dot = 1/60, and here, as in the case of Fig. 14(f), the number of cycles THc of horizontal synchronization is set to 1662 clocks, and the number of lines TVl of vertical synchronization is set to 1083 lines.

また、図示の実施例では、一般の表示装置にも対応できるよう、表示装置の仕様に対応して、水平同期信号HSと垂直同期信号VSを出力している。図示例では、水平同期信号HSのパルス幅が100クロック分であり、水平フロントポーチFPhは、110(=10+100)クロック、水平バックポーチBPhは172クロックに設計されている。また、垂直同期信号VSのパルス幅は、10ライン分であり、垂直フロントポーチFPvは20(=10+10)ライン、垂直バックポーチBPvは291ラインに設計されている。 In addition, in the illustrated embodiment, the horizontal synchronization signal HS and vertical synchronization signal VS are output in accordance with the specifications of the display device so as to be compatible with general display devices. In the illustrated example, the pulse width of the horizontal synchronization signal HS is 100 clocks, the horizontal front porch FPh is designed to be 110 (=10+100) clocks, and the horizontal back porch BPh is designed to be 172 clocks. In addition, the pulse width of the vertical synchronization signal VS is 10 lines, the vertical front porch FPv is designed to be 20 (=10+10) lines, and the vertical back porch BPv is designed to be 291 lines.

但し、図39(a)(b)に示す実施例では、〇印で示すVブランク開始タイミングより先に出力動作を終えるため、垂直待機時間WTvを49ライン、水平待機時間WThを372クロックとしている。したがって、この実施例によれば、一フレームの画像更新処理が終わった後、10ライン分の時間(154μS)経過後にVブランク開始タイミングが到来することになり、如何なる動作条件でも画像更新処理が確実化される(図39(b)参照)。 However, in the embodiment shown in Figures 39(a) and (b), the vertical wait time WTv is set to 49 lines and the horizontal wait time WTh is set to 372 clocks in order to complete the output operation before the V blank start timing indicated by the circle. Therefore, according to this embodiment, after the image update process for one frame is completed, the V blank start timing arrives after a time equivalent to 10 lines (154 μS), ensuring image update process under any operating conditions (see Figure 39(b)).

このような動作は、特に、他の表示回路に同期して付随的に動作する表示回路、例えば、表示回路74Aの動作に付随する表示回路74Bや表示回路74Cにおいて、好適に機能する。図39(c)~図39(e)は、この点を説明する図面であり、表示回路74BにおけるVブランク周期T2が、表示回路74AにおけるVブランク周期T1より長い場合を図示している(T1<T2)。 This type of operation works particularly well in display circuits that operate in synchronization with other display circuits, such as display circuits 74B and 74C that accompany the operation of display circuit 74A. Figures 39(c) to 39(e) are diagrams that explain this point, and show a case where the V blank period T2 in display circuit 74B is longer than the V blank period T1 in display circuit 74A (T1<T2).

このような場合に、表示回路74AにおけるVブランク周期T1を表示回路74Aに付随させて動作させると、表示回路74Bにおける画像データの出力の完了前に、Vブランクが開始されることになり、画像欠損や不自然な表示動作が生じるおそれがある(図39(d))。一方、表示回路74Bを独立的に動作させたのでは、表示回路74Aの動作と同期する描画回路の動作タイミングと整合が取れなくなる。 In such a case, if the V blank period T1 in the display circuit 74A is operated in conjunction with the display circuit 74A, the V blank will start before the completion of the output of image data in the display circuit 74B, which may result in image loss or unnatural display behavior (Figure 39 (d)). On the other hand, if the display circuit 74B is operated independently, it will not be possible to achieve consistency with the operation timing of the drawing circuit, which is synchronized with the operation of the display circuit 74A.

そこで、表示回路74Aの動作に付随する表示回路74BのVブランク周期T2が、表示回路74AのVブランク周期T1より長い場合には、図39(a)(b)の場合と同様に、表示装置Bにおいて画像データの出力後に、十分な余裕時間が生じるよう、待機時間(垂直ブランク期間)を短く設定すればよい。この場合、待機時間を極端に短く設定しない限り、通常の液晶表示装置では、問題なく表示動作が実現される。 Therefore, if the V blank period T2 of display circuit 74B accompanying the operation of display circuit 74A is longer than the V blank period T1 of display circuit 74A, the wait time (vertical blank period) should be set short so that there is sufficient margin of time after the output of image data in display device B, as in the case of Figures 39(a) and (b). In this case, unless the wait time is set extremely short, a normal liquid crystal display device will be able to achieve display operation without any problems.

なお、例えば、表示回路74Aの動作に付随する表示回路74BのVブランク周期T3が、表示回路74AのVブランク周期T1より短い場合にも、Vブランク周期T3の後に余分の待機期間が生じるが、全体としての待機時間を極端に長くならない限り、問題なく表示動作が実現される。 For example, even if the V blank period T3 of the display circuit 74B accompanying the operation of the display circuit 74A is shorter than the V blank period T1 of the display circuit 74A, an extra waiting period occurs after the V blank period T3, but the display operation is realized without any problem as long as the overall waiting time is not extremely long.

以上、本発明の実施例について詳細に説明したが、具体的な記載内容は何ら本発明を限定しない。例えば、実施例では、もっぱらデュアルリンク伝送路について説明したが、機器構成を簡略化するには、シングルリンク伝送路を採用するのも好適である。 Although the embodiments of the present invention have been described in detail above, the specific description does not limit the present invention in any way. For example, the embodiments have been described primarily with respect to dual link transmission paths, but in order to simplify the device configuration, it is also preferable to employ a single link transmission path.

シングルリンク伝送路の場合、ドットクロックDCKの周波数が、108MHzであれば、LVDSクロックCLKの周波数も108MHzとなる。なお、この場合も、ドットクロックDCKとLVDSクロックCLKは、発振器OSC2を共通の供給元とし、且つ、同一生成過程で生成するのが好適である。 In the case of a single-link transmission line, if the frequency of the dot clock DCK is 108 MHz, the frequency of the LVDS clock CLK will also be 108 MHz. In this case, too, it is preferable that the dot clock DCK and the LVDS clock CLK share a common supply source, the oscillator OSC2, and are generated by the same generation process.

また、前記の実施例とは相違して、VDP回路52のシステムクロックと、CPU回路51のCPU動作クロックの供給元を、単一の発振器OSC2に共通化するのも回路構成の簡素化する上で好適である。そして、共通の設定端子(3bit のPLLMD 端子)の設定値に基づいて、PLL回路の逓倍比を共通設定する構成を採れば、周波数設定処理が不要となり更に効果的である。 Also, unlike the above embodiment, it is preferable to use a single oscillator OSC2 as the common source for the system clock of the VDP circuit 52 and the CPU operating clock of the CPU circuit 51 in order to simplify the circuit configuration. If the multiplication ratio of the PLL circuit is commonly set based on the setting value of a common setting terminal (3-bit PLLMD terminal), frequency setting processing becomes unnecessary, which is even more effective.

この場合、CPU動作クロックを高速化したい要請にはやや反するが、VDP回路52の内部回路が許容する最高周波数のシステムクロックを採用し、これと同じ周波数のCPU動作クロックとするのが好適である。 In this case, although it goes against the desire to speed up the CPU operating clock, it is preferable to adopt a system clock with the highest frequency allowed by the internal circuitry of the VDP circuit 52 and set the CPU operating clock to the same frequency.

例えば、発振器OSC2の発振周波数が40MHzの場合、設定端子(3bit のPLLMD 端子)への設定値を5にすることで、システムクロックとCPU動作クロックを共通的に200MHz(=40MHz×5)に設定できる。この構成によれば、発振器OSC1が不要となり、回路構成を簡素化できだけでなく、やや煩雑なVDPレジスタへの設定処理も不要となる。なお、VDP回路52と、CPU回路51の動作周期が一致するメリットもある。 For example, if the oscillation frequency of oscillator OSC2 is 40 MHz, the system clock and CPU operating clock can be set to a common 200 MHz (= 40 MHz x 5) by setting the setting terminal (3-bit PLLMD terminal) to 5. With this configuration, oscillator OSC1 is not required, and not only can the circuit configuration be simplified, but the somewhat complicated setting process for the VDP register is also unnecessary. Another advantage is that the operating cycles of VDP circuit 52 and CPU circuit 51 are the same.

GM 遊技機
DS1,DS2 表示装置
52 画像生成手段
51 演出制御手段
DL 描画リスト
76 描画回路
74 表示回路
DCK 表示クロック
dot 表示クロックの周波数

SS33 第1手段
SS35 第2手段
SS36 第3手段
TH ライン動作時間
THc 水平サイクル数
TVl 垂直ライン数
TH0 水平基準点
WTh 所定のサイクル数の間
GM gaming machines DS1, DS2 display device 52 image generating means 51 performance control means DL drawing list 76 drawing circuit 74 display circuit DCK display clock F dot display clock frequency

SS33 First means SS35 Second means SS36 Third means TH Line operation time THc Number of horizontal cycles TVl Number of vertical lines TH0 Horizontal reference point WTh For a predetermined number of cycles

Claims (1)

表示装置の画面に表示すべき表示内容を特定するディスプレイリストを発行して、画像生成手段の動作を制御する演出制御手段と、
前記演出制御手段が発行するディスプレイリストに記載された指示コマンドに基づいて、前記表示内容を実現する画像データを生成する描画回路を有して、縦方向ピクセル数V×横方向ピクセル数Hの前記表示装置による画像演出を実現する前記画像生成手段と、を有する遊技機であって、
前記画像生成手段は、前記演出制御手段から所定の取得ビット単位で受けるディスプレイリストの構成データを、所定の転送ビット単位で下流側の回路に転送するデータ転送回路を有して構成され、前記演出制御手段は、ディスプレイリストの全ビット長が、前記所定の転送ビット単位の整数N倍(N≧1)となるよう作成する構成を有し、
前記画像生成手段に内蔵された表示回路の内部動作を規定する表示クロックの周波数Fdotを規定する第1手段と、
前記表示装置の水平方向一ラインに対応する前記表示回路のライン動作時間を、前記表示クロックの水平サイクル数THcで規定する第2手段と、
前記ライン動作時間の繰り返し動作回数である垂直ライン数TVlを規定する第3手段と、を設け、
前記水平サイクル数THcと、前記垂直ライン数TVlと、前記表示クロックの周波数Fdotの値に基づいて規定される表示動作周期の水平基準点を起点とする所定のサイクル数の間は、前記表示回路が、前記表示装置の各一ラインのH個のピクセルに対応する画像データを出力しないよう構成されていることを特徴とする遊技機。
a performance control means for issuing a display list that specifies the display contents to be displayed on the screen of the display device and controlling the operation of the image generating means;
A game machine having an image generating means for generating image data for realizing the display contents based on an instruction command written in a display list issued by the effect control means, and realizing an image effect by the display device having a number of vertical pixels V x a number of horizontal pixels H,
the image generating means is configured to have a data transfer circuit that transfers the configuration data of the display list received from the performance control means in a predetermined acquisition bit unit to a downstream circuit in a predetermined transfer bit unit, and the performance control means is configured to create a display list such that the total bit length is an integer N times (N≧1) the predetermined transfer bit unit;
A first means for defining a frequency Fdot of a display clock that defines an internal operation of a display circuit built into the image generating means;
a second means for defining a line operation time of the display circuit corresponding to one horizontal line of the display device by a horizontal cycle number THc of the display clock;
a third means for defining a vertical line number TVl, which is the number of times the line operation time is repeated;
A gaming machine characterized in that the display circuit is configured not to output image data corresponding to H pixels of each line of the display device for a predetermined number of cycles starting from a horizontal reference point of a display operation period defined based on the horizontal cycle number THc, the vertical line number TVl, and the value of the frequency Fdot of the display clock.
JP2020037021A 2020-03-04 2020-03-04 Gaming Machines Active JP7489788B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020037021A JP7489788B2 (en) 2020-03-04 2020-03-04 Gaming Machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020037021A JP7489788B2 (en) 2020-03-04 2020-03-04 Gaming Machines

Publications (2)

Publication Number Publication Date
JP2021137280A JP2021137280A (en) 2021-09-16
JP7489788B2 true JP7489788B2 (en) 2024-05-24

Family

ID=77666955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020037021A Active JP7489788B2 (en) 2020-03-04 2020-03-04 Gaming Machines

Country Status (1)

Country Link
JP (1) JP7489788B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005052422A (en) 2003-08-05 2005-03-03 Daiman:Kk Display controller for game machine, and the game machine
JP2011161044A (en) 2010-02-10 2011-08-25 Daito Giken:Kk Game machine
JP2017225492A (en) 2016-06-20 2017-12-28 京楽産業.株式会社 Game machine
JP2019047916A (en) 2017-09-08 2019-03-28 株式会社藤商事 Game machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005052422A (en) 2003-08-05 2005-03-03 Daiman:Kk Display controller for game machine, and the game machine
JP2011161044A (en) 2010-02-10 2011-08-25 Daito Giken:Kk Game machine
JP2017225492A (en) 2016-06-20 2017-12-28 京楽産業.株式会社 Game machine
JP2019047916A (en) 2017-09-08 2019-03-28 株式会社藤商事 Game machine

Also Published As

Publication number Publication date
JP2021137280A (en) 2021-09-16

Similar Documents

Publication Publication Date Title
JP7101648B2 (en) Pachinko machine
JP7489788B2 (en) Gaming Machines
JP7479181B2 (en) Gaming Machines
JP7489790B2 (en) Gaming Machines
JP7489791B2 (en) Gaming Machines
JP7479182B2 (en) Gaming Machines
JP7489789B2 (en) Gaming Machines
JP7489792B2 (en) Gaming Machines
JP7489787B2 (en) Gaming Machines
JP7426890B2 (en) gaming machine
JP7446506B2 (en) gaming machine
JP7426891B2 (en) gaming machine
JP7426889B2 (en) gaming machine
JP7426892B2 (en) gaming machine
JP7341924B2 (en) gaming machine
JP7341923B2 (en) gaming machine
JP7437977B2 (en) gaming machine
JP7437978B2 (en) gaming machine
JP7437979B2 (en) gaming machine
JP7237411B2 (en) game machine
JP7012690B2 (en) Pachinko machine
JP7091298B2 (en) Pachinko machine
JP2021137292A (en) Game machine
JP2021137291A (en) Game machine
JP2021166609A (en) Game machine

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200305

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231024

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240116

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240313

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240514

R150 Certificate of patent or registration of utility model

Ref document number: 7489788

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150