JP2021186577A - Game machine - Google Patents

Game machine Download PDF

Info

Publication number
JP2021186577A
JP2021186577A JP2020098095A JP2020098095A JP2021186577A JP 2021186577 A JP2021186577 A JP 2021186577A JP 2020098095 A JP2020098095 A JP 2020098095A JP 2020098095 A JP2020098095 A JP 2020098095A JP 2021186577 A JP2021186577 A JP 2021186577A
Authority
JP
Japan
Prior art keywords
circuit
signal
data
output
display
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.)
Granted
Application number
JP2020098095A
Other languages
Japanese (ja)
Other versions
JP7191062B2 (en
Inventor
曜漢 成田
Yokan Narita
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Shoji Co Ltd
Original Assignee
Fuji Shoji Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Shoji Co Ltd filed Critical Fuji Shoji Co Ltd
Priority to JP2020098095A priority Critical patent/JP7191062B2/en
Publication of JP2021186577A publication Critical patent/JP2021186577A/en
Priority to JP2022194626A priority patent/JP7455936B2/en
Application granted granted Critical
Publication of JP7191062B2 publication Critical patent/JP7191062B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Pinball Game Machines (AREA)

Abstract

To provide a game machine equipped with a circuit configuration and a control method that have an improved audio presentation control.SOLUTION: A digital amplifier element that outputs audio/analog signals is configured with built-in amplifier circuits having a plurality of channels that can be operated with a standard output/input ratio to be defined fixedly. The standard output/input ratio is configured such that any of a plurality of options can be selected depending on a set value for an input terminal GAIN.SELECTED DRAWING: Figure 5

Description

本発明は、遊技動作に起因する抽選処理を行い、その抽選結果に対応する画像演出を実行する遊技機に関し、特に、迫力ある画像演出を安定して実行できる遊技機に関する。 The present invention relates to a gaming machine that performs a lottery process due to a gaming operation and executes an image effect corresponding to the lottery result, and more particularly to a gaming machine that can stably execute a powerful image effect.

パチンコ機などの弾球遊技機は、遊技盤に設けた図柄始動口と、複数の表示図柄による一連の図柄変動態様を表示する図柄表示部と、開閉板が開閉される大入賞口などを備えて構成されている。そして、図柄始動口に設けられた検出スイッチが遊技球の通過を検出すると入賞状態となり、遊技球が賞球として払出された後、図柄表示部では表示図柄が所定時間変動される。その後、7・7・7などの所定の態様で図柄が停止すると大当り状態となり、大入賞口が繰返し開放されて、遊技者に有利な遊技状態を発生させている。 A ball game machine such as a pachinko machine is equipped with a symbol start opening provided on the game board, a symbol display unit that displays a series of symbol variation modes by a plurality of display symbols, and a large winning opening for opening and closing the opening / closing plate. It is composed of. Then, when the detection switch provided at the symbol start port detects the passage of the game ball, the winning state is set, and after the game ball is paid out as the prize ball, the displayed symbol is changed for a predetermined time on the symbol display unit. After that, when the symbol is stopped in a predetermined mode such as 7, 7, 7, a big hit state is set, and the big winning opening is repeatedly opened to generate a game state advantageous to the player.

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

特開2009−077922号公報Japanese Unexamined Patent Publication No. 2009-07922 特開2010−213747号公報Japanese Unexamined Patent Publication No. 2010-23747

ところで、この種の遊技機では、各種の演出を複雑化かつ豊富化したいところ、特に、液晶ディスプレイを使用する画像演出については、その要請が高い。また、音声演出についても、高度な画像演出に相応しい不備のない迫力ある動作が望まれる。 By the way, in this kind of gaming machine, there is a high demand for complicated and abundant various effects, especially for image effects using a liquid crystal display. Also, for audio production, it is desirable to have a powerful operation without any defects suitable for advanced image production.

具体的には、大音量時にも音質が劣化しない構成や、大音量の演出を継続しても不備が生じない構成や、電源リセット後の初期設定動作が確実化され音声演出の不備が未然防止される構成が望まれる。 Specifically, the configuration does not deteriorate the sound quality even at high volume, the configuration does not cause any deficiencies even if the high volume production is continued, and the initial setting operation after power reset is ensured to prevent deficiencies in the audio production. The configuration to be reset is desired.

ここで、大音量の音声演出を効果的に実行可能な構成は知られているが(特許文献1、特許文献2)、対策として十分とは言えない。先ず、特許文献1の構成は、デジタルアンプの出力側のフィルタ構成に無駄があるだけでなく、サージ電圧吸収用のツェナーダイオードが配置されているに過ぎず(段落0055)、過電流保護の思想はない。また、特許文献2にはフィルタレスで動作可能なデジタルアンプの構成が開示されているが、フルブリッジタイプの出力回路には適用できない。また、何れの文献にも、最適な増幅率を選択できる構成や、増幅態様を変更できる構成が開示も示唆もされていない。 Here, although a configuration that can effectively execute a loud sound effect is known (Patent Document 1 and Patent Document 2), it cannot be said that it is sufficient as a countermeasure. First, in the configuration of Patent Document 1, not only is the filter configuration on the output side of the digital amplifier wasteful, but also a Zener diode for absorbing surge voltage is arranged (paragraph 0055), and the idea of overcurrent protection is provided. There is no. Further, although Patent Document 2 discloses a configuration of a digital amplifier that can operate without a filter, it cannot be applied to a full bridge type output circuit. Further, neither document nor any document discloses or suggests a configuration in which the optimum amplification factor can be selected or a configuration in which the amplification mode can be changed.

本発明は、上記の課題に鑑みてなされたものであり、音声演出制御を改善した回路構成や制御手法を具備する遊技機を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a gaming machine provided with a circuit configuration and a control method having improved voice effect control.

上記の目的を達成するため、音声演出を実現する音声デジタル信号を出力する音声プロセッサと、シリアルデータ化された音声デジタル信号を受けて、適宜なレベルの音声アナログ信号を出力するデジタルアンプ素子とを有して構成され、前記デジタルアンプ素子は、固定的に規定される標準入出力比で動作可能で、ステレオ信号を増幅可能な複数2*Nチャンネルの増幅回路を内蔵して構成され、前記増幅回路は、高電位側に配置されるPch型MOSトランジスタと、低電位側に配置されるNch型MOSトランジスタを各2個使用したフルブリッジ型の出力回路を有して構成され、前記標準入出力比は、所定の入力端子への設定値によって、複数選択肢の何れかが選択可能に構成されている。 In order to achieve the above objectives, a voice processor that outputs a voice digital signal that realizes voice production and a digital amplifier element that receives a voice digital signal converted into serial data and outputs a voice analog signal of an appropriate level are provided. The digital amplifier element is configured to have and is configured to have a built-in amplifier circuit of a plurality of 2 * N channels capable of operating at a fixed standard input / output ratio and amplifying a stereo signal. The circuit is configured to have a full bridge type output circuit using two Pch type MOS transistors arranged on the high potential side and two Nch type MOS transistors arranged on the low potential side, and the standard input / output is described. The ratio is configured so that any of a plurality of options can be selected depending on the set value for the predetermined input terminal.

上記した本発明によれば、音声演出制御を改善した回路構成や制御手法を具備する遊技機を実現できる。 According to the above-described invention, it is possible to realize a gaming machine provided with a circuit configuration and a control method having improved voice effect control.

本実施例のパチンコ機を示す斜視図である。It is a perspective view which shows the pachinko machine of this Example. 遊技機の遊技領域を示す正面図と、音声プロセッサとデジタルアンプとスピーカの接続完成を示す図面である。It is a front view which shows the game area of a game machine, and the drawing which shows the completion of connection of a voice processor, a digital amplifier, and a speaker. 図1の遊技機の全体回路構成を示すブロック図である。It is a block diagram which shows the whole circuit composition of the gaming machine of FIG. 図1の遊技機について、演出制御部の回路構成をやや詳細に示すブロック図である。It is a block diagram which shows the circuit structure of the effect control part in a little detail about the gaming machine of FIG. デジタルアンプの内部構成と動作を説明する図面である。It is a drawing explaining the internal structure and operation of a digital amplifier. デジタルアンプのゲイン特性を説明する図面図である。It is a drawing diagram explaining the gain characteristic of a digital amplifier. デジタルアンプのノンクリップ特性を説明する図面図である。It is a drawing diagram explaining the non-clip characteristic of a digital amplifier. デジタルアンプのDRC特性を説明する図面図である。It is a drawing drawing explaining the DRC characteristic of a digital amplifier. デジタルアンプの過電流時の動作を説明する図面図である。It is a drawing diagram explaining the operation at the time of overcurrent of a digital amplifier. 演出制御部を構成する複合チップを説明する図面である。It is a drawing explaining the composite chip which constitutes the effect control part. 図10に示すCPU回路の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the CPU circuit shown in FIG. CPU回路の内蔵CPU(演出制御CPU)のメモリマップを図示したものである。The memory map of the built-in CPU (effect control CPU) of the CPU circuit is illustrated. DMACについて、各種の転送動作モード(a)〜(b)と、転送動作手順(c)〜(e)を説明する図面である。It is a drawing explaining various transfer operation modes (a)-(b) and transfer operation procedure (c)-(e) about DMAC. インデックス空間、インデックステーブル、仮想描画空間、及び、描画領域について説明する図面である。It is a drawing explaining an index space, an index table, a virtual drawing space, and a drawing area. データ転送回路の内部構成を、関連する回路構成と共に記載したブロック図である。It is a block diagram which described the internal structure of a data transfer circuit together with the related circuit structure. 表示回路の内部構成を、関連する回路構成と共に記載したブロック図である。It is a block diagram which described the internal structure of a display circuit together with the related circuit structure. CPUリセット後のパワーリセット動作を説明するフローチャートである。It is a flowchart explaining the power reset operation after the CPU reset. 図17の一部であるメモリセクション初期化処理を説明するフローチャートである。It is a flowchart explaining the memory section initialization process which is a part of FIG. 図17の一部であるメイン制御処理と、割込み処理を説明するフローチャートである。It is a flowchart explaining the main control processing and interrupt processing which are a part of FIG. メイン制御処理の一部であるCGROMの初期化処理を説明するフローチャートである。It is a flowchart explaining the initialization process of CGROM which is a part of the main control process. 別の割込み処理について、処理内容の一部を説明するフローチャートである。It is a flowchart explaining a part of the processing contents about another interrupt processing. プリローダを使用しない場合について、演出制御CPU63の制御動作を説明するフローチャートである。It is a flowchart explaining the control operation of the effect control CPU 63 when the preloader is not used. ディスプレイリストの構成を説明する図面である。It is a drawing explaining the structure of a display list. ディスプレイリストDLを発行するDL発行処理を示すフローチャートである。It is a flowchart which shows the DL issue process which issues a display list DL. 図24の動作にDMACが関与する場合の動作を説明するフローチャートである。It is a flowchart explaining the operation when DMAC is involved in the operation of FIG. 24. 図25の処理に続く動作を説明するフローチャートである。It is a flowchart explaining the operation following the process of FIG. プリローダを使用する場合について、演出制御CPU63の制御動作を説明するフローチャートである。It is a flowchart explaining the control operation of the effect control CPU 63 about the case of using a preloader. 図27の一部を説明するフローチャートである。It is a flowchart explaining a part of FIG. 27. 図27の別の一部を説明するフローチャートである。It is a flowchart explaining another part of FIG. プリローダを使用しない実施例について、VDP各部の動作を示すタイムチャートである。It is a time chart which shows the operation of each part of VDP about the Example which does not use a preloader. プリローダを使用する実施例について、VDP各部の動作を示すタイムチャートである。It is a time chart which shows the operation of each part of VDP about the Example which uses a preloader. 別の実施例について全体回路構成を示すブロック図である。It is a block diagram which shows the whole circuit composition about another Example. 図32の一部をやや詳細に示すブロック図である。It is a block diagram which shows a part of FIG. 32 in a little detail. 別の実施例について、動作内容を説明するフローチャートである。It is a flowchart explaining the operation content about another Example. 更に別の実施例を説明する図面である。It is a drawing explaining still another embodiment. 設定値を繰り返し設定する実施例を説明する図面である。It is a figure explaining an embodiment which sets a setting value repeatedly. 内蔵された音声回路を使用する実施例の回路構成を説明する図面である。It is a drawing explaining the circuit structure of the Example which uses the built-in voice circuit. 音声回路の初期設定動作を説明するフローチャートである。It is a flowchart explaining the initial setting operation of a voice circuit. CPUリセット後のパワーリセット動作について別の実施例を説明する図面である。It is a figure explaining another embodiment about the power reset operation after a CPU reset. メモリREAD動作とメモリWRITE 動作の一例を示すタイムチャートである。It is a time chart which shows an example of a memory READ operation and a memory WRITE operation. ディスプレイリストを説明する図面である。It is a drawing explaining a display list. ズーム予告を説明する図面である。It is a drawing explaining a zoom notice. 回転動作を実現するためのCPUの処理を説明する図面である。It is a drawing explaining the processing of the CPU for realizing the rotation operation. 計算式の根拠を示す図面である。It is a drawing which shows the basis of the calculation formula.

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

ガラス扉6の外周には、LEDランプなどによる電飾ランプが、略C字状に配置されている。一方、ガラス扉6の上部左右位置と下側には、全3個のスピーカが配置されている。上部に配置された2個のスピーカSP,SPは、各々、左右チャンネルL,Rのステレオ音声を出力し、下側のスピーカSPは低音を出力するよう構成されている。 Illuminations lamps such as LED lamps are arranged in a substantially C shape on the outer periphery of the glass door 6. On the other hand, a total of three speakers are arranged at the upper left and right positions and the lower side of the glass door 6. Two speakers SP L placed on top, SP R are each, left and right channels L, and outputs the stereo sound R, the speaker SP M of the lower side is configured to output bass.

前面板7には、発射用の遊技球を貯留する上皿8が装着され、内枠3の下部には、上皿8から溢れ出し又は抜き取った遊技球を貯留する下皿9と、発射ハンドル10とが設けられている。発射ハンドル10は発射モータと連動しており、発射ハンドル10の回動角度に応じて動作する打撃槌によって遊技球が発射される。 An upper plate 8 for storing a game ball for launch is mounted on the front plate 7, and a lower plate 9 for storing a game ball overflowing or extracted from the upper plate 8 and a launch handle are at the lower part of the inner frame 3. 10 is provided. The launch handle 10 is interlocked with the launch motor, and the game ball is launched by a striking mallet 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 peripheral surface of the upper plate 8. The chance button 11 is provided at a position where it can be operated by the player's left hand, and the player can operate the chance button 11 without releasing the right hand from the firing handle 10. The chance button 11 does not function normally, but when the game state becomes the button chance state, the built-in lamp is turned on and the operation is possible. The button chance state is a game state provided as needed.

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

上皿8の右部には、カード式球貸し機に対する球貸し操作用の操作パネル12が設けられ、カード残額を3桁の数字で表示する度数表示部と、所定金額分の遊技球の球貸しを指示する球貸しスイッチと、ゲーム終了時にカードの返却を指令する返却スイッチとが設けられている。 On the right side of the upper plate 8, an operation panel 12 for ball lending operation for a card-type ball lending machine is provided, a frequency display unit for displaying the remaining amount of the card with a three-digit number, and a game ball for a predetermined amount. A ball lending switch for instructing lending and a return switch for instructing the return of the card at the end of the game are provided.

図2(a)に示すように、遊技盤5の表面には、金属製の外レールと内レールとからなるガイドレール13が環状に設けられ、その略中央には、中央開口HOが設けられている。そして、中央開口HOの下方には、不図示の可動演出体が隠蔽状態で収納されており、可動予告演出時には、その可動演出体が上昇して露出状態となることで、所定の信頼度の予告演出を実現している。ここで、予告演出とは、遊技者に有利な大当り状態が招来することを不確定に報知する演出であり、予告演出の信頼度とは、大当り状態が招来する確率を意味している。 As shown in FIG. 2A, a guide rail 13 composed of an outer rail and an inner rail made of metal is provided in an annular shape on the surface of the game board 5, and a central opening HO is provided in the substantially center thereof. ing. A movable effect body (not shown) is stored in a concealed state below the central opening HO, and at the time of the movable notice effect, the movable effect body rises and becomes an exposed state, so that the predetermined reliability is achieved. The notice production is realized. Here, the advance notice effect is an effect of uncertainly notifying the player that a jackpot state advantageous to the player will be invited, and the reliability of the advance notice effect means the probability that the big hit state will be invited.

中央開口HOには、大型(例えば、横1280×縦1024ピクセル)の液晶カラーディスプレイ(LCD)で構成されたメイン表示装置DS1が配置され、メイン表示装置DS1の右側には、小型(例えば、横480×縦800ピクセル)の液晶カラーディスプレイで構成された可動式のサブ表示装置DS2が配置されている。メイン表示装置DS1は、大当り状態に係わる特定図柄を変動表示すると共に背景画像や各種のキャラクタなどをアニメーション的に表示する装置である。この表示装置DS1は、中央部に特別図柄表示部Da〜Dcと右上部に普通図柄表示部19とを有している。そして、特別図柄表示部Da〜Dcでは、大当り状態の招来を期待させるリーチ演出が実行されることがあり、特別図柄表示部Da〜Dc及びその周りでは、適宜な予告演出などが実行される。 A main display device DS1 composed of a large (for example, 1280 horizontal × 1024 vertical pixels) liquid crystal color display (LCD) is arranged in the central opening HO, and a small size (for example, horizontal) is arranged on the right side of the main display device DS1. A movable sub-display device DS2 composed of a liquid crystal color display (480 × 800 pixels in height) is arranged. The main display device DS1 is a device that displays a specific symbol related to a jackpot state in a variable manner and displays a background image, various characters, and the like in an animation manner. The display device DS1 has special symbol display units Da to Dc in the central portion and a normal symbol display unit 19 in the upper right portion. Then, in the special symbol display units Da to Dc, a reach effect that is expected to invite a big hit state may be executed, and an appropriate advance notice effect or the like is executed in the special symbol display units Da to Dc and its surroundings.

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

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

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

第1図柄始動口15aの上部には、導入口INから進入した遊技球がシーソー状又はルーレット状に移動した後に、第1図柄始動口15に入賞可能に構成された演出ステージ14が配置されている。そして、第1図柄始動口15に遊技球が入賞すると、特別図柄表示部Da〜Dcの変動動作が開始されるよう構成されている。 At the upper part of the first symbol start port 15a, an effect stage 14 configured to be able to win a prize in the first symbol start port 15 is arranged after the game ball entering from the introduction port IN moves in a seesaw shape or a roulette shape. There is. Then, when the game ball wins a prize in the first symbol start opening 15, the special symbol display units Da to Dc are configured to start the variable operation.

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

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

第1大入賞口16aは、前後方向に進退するスライド盤を有して構成され、第2大入賞口16bは、下端が軸支されて前方に開放する開閉板を有して構成されている。第1大入賞口16aや第2大入賞口16bの動作は、特に限定されないが、この実施例では、第1大入賞口16aは、第1図柄始動口15aに対応し、第2大入賞口16bは、第1図柄始動口15bに対応するよう構成されている。 The first big winning opening 16a is configured to have a slide board that advances and retreats in the front-rear direction, and the second big winning opening 16b is configured to have an opening / closing plate whose lower end is pivotally supported and opened forward. .. The operation of the first big winning opening 16a and the second big winning opening 16b is not particularly limited, but in this embodiment, the first big winning opening 16a corresponds to the first symbol starting opening 15a and the second big winning opening. 16b is configured to correspond to the first symbol start port 15b.

すなわち、第1図柄始動口15aに遊技球が入賞すると、特別図柄表示部Da〜Dcの変動動作が開始され、その後、所定の大当り図柄が特別図柄表示部Da〜Dcに整列すると、第1大当りたる特別遊技が開始され、第1大入賞口16aのスライド盤が、前方に開放されて遊技球の入賞が容易化される。 That is, when the game ball wins the first symbol start port 15a, the variable operation of the special symbol display units Da to Dc is started, and then when the predetermined jackpot symbols are aligned with the special symbol display portions Da to Dc, the first jackpot The barrel special game is started, and the slide board of the first large winning opening 16a is opened forward to facilitate the winning of the game ball.

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

典型的な大当り状態では、大入賞口16の開閉板が開放された後、所定時間が経過し、又は所定数(例えば10個)の遊技球が入賞すると開閉板が閉じる。このような動作は、最大で例えば15回まで継続され、遊技者に有利な状態に制御される。なお、特別図柄表示部Da〜Dcの変動後の停止図柄が特別図柄のうちの特定図柄であった場合には、特別遊技の終了後のゲームが高確率状態(確変状態)となるという特典が付与される。 In a typical big hit state, the opening / closing plate closes when a predetermined time elapses after the opening / closing plate of the large winning opening 16 is opened, or when a predetermined number (for example, 10) of game balls win a prize. Such an operation is continued up to, for example, 15 times, and is controlled in a state advantageous to the player. If the stop symbol after the change of the special symbol display units Da to Dc is a specific symbol among the special symbols, there is a privilege that the game after the end of the special game is in a high probability state (probability change state). Granted.

図2(b)は、合計3個のスピーカSP,SP,SPを駆動するデジタルアンプ29と、デジタルアンプ29に供給すべき音声信号を生成する音声プロセッサ27の接続完成を図示している。図示の通り、デジタルアンプ29は、左上スピーカSPへの左チャンネル信号L0を再生するL0再生増幅部と、右上スピーカSPへの右チャンネル信号R0を再生するR0再生増幅部と、下部スピーカSPへの左右チャンネル信号SUB0/SUB1を各々再生するSUB0再生増幅部/SUB1再生増幅部と、を有して構成されている。 2 (b) is a total of three speakers SP L, SP R, a digital amplifier 29 for driving the SP M, illustrates the connection completion of the audio processor 27 to generate a sound signal to be supplied to the digital amplifier 29 There is. As shown in the figure, the digital amplifier 29 has an L0 reproduction amplification unit that reproduces the left channel signal L0 to the upper left speaker SP L , an R0 reproduction amplification unit that reproduces the right channel signal R0 to the upper right speaker SP R, and a lower speaker SP. It is configured to have a SUB0 reproduction amplification unit / SUB1 reproduction amplification unit that reproduces the left and right channel signals SUB0 / SUB1 to M, respectively.

本実施例では、下部スピーカSPへの左右チャンネル信号SUB0/SUB1は、互いに同一のモノラル信号であり、SUB0再生増幅部/SUB1再生増幅部で再生された左右チャンネル信号は、単一の下部スピーカSPにモノラル信号として供給されている。このように、本実施例では、SUB0再生増幅部とSUB1再生増幅部が、単一の下部スピーカSPに並列接続されているので(並列駆動)、先行文献1で本出願人が説明した通り、何れか一方の再生増幅部のみで駆動する単一駆動に比べて、下部スピーカSPの出力パワーを増加させることができる。 In this embodiment, the left and right channel signals SUB0 / SUB1 to lower speaker SP M is the same monaural signal together, the left and right channel signals reproduced by the SUB0 regenerative amplification unit / SUB1 reproducing amplifier section, a single lower speaker It is supplied to the SP M as a monaural signal. As such, in the present embodiment, SUB0 reproducing amplifier portion and SUB1 playback amplifying unit, since it is connected in parallel to a single lower speaker SP M (the parallel drive), the applicant in the prior document 1 has been described , as compared to a single drive for driving only one of the playback amplifying unit, it is possible to increase the output power of the lower speaker SP M.

次に、図2(b)に示す通り、デジタルアンプ29は、音声プロセッサ27から、シリアル伝送クロックSCLKと、ワードクロックLRCLKと、左右シリアル信号SD0,SD2とを受けている。ここで、左右シリアル信号SD0は、左チャンネル信号L0と右チャンネル信号R0とを含んだ重複シリアル信号であり、左右シリアル信号SD2は、左チャンネル信号SUB0と右チャンネル信号SUB1とを含んだ重複シリアル信号である。 Next, as shown in FIG. 2B, the digital amplifier 29 receives the serial transmission clock SCLK, the word clock LRCLK, and the left and right serial signals SD0 and SD2 from the audio processor 27. Here, the left and right serial signal SD0 is an overlapping serial signal including the left channel signal L0 and the right channel signal R0, and the left and right serial signal SD2 is an overlapping serial signal including the left channel signal SUB0 and the right channel signal SUB1. Is.

これらの重複シリアル信号(左チャンネル信号+右チャンネル信号)は、シリアル伝送クロックSCLKに同期して1bitずつ伝送される。このとき、ワードクロックLRCLKは、伝送中の重複シリアル信号が、左チャンネル信号か、右チャンネル信号かを特定するレベル信号として機能する。すなわち、ワードクロックLRCLKは、1サンプルデータ(実施例では16bit長)が伝送されるごとに、H/Lレベルが切り替わることで、H区間又はL区間に伝送した複数ビットデータが、左チャンネル信号L0/SUB0であるか、右チャンネル信号R0/SUB1であるかを特定している。 These duplicate serial signals (left channel signal + right channel signal) are transmitted one bit at a time in synchronization with the serial transmission clock SCLK. At this time, the word clock LRCLK functions as a level signal for identifying whether the duplicate serial signal being transmitted is a left channel signal or a right channel signal. That is, in the word clock LRCLK, the H / L level is switched every time one sample data (16 bit length in the embodiment) is transmitted, so that the plurality of bit data transmitted in the H section or the L section is the left channel signal L0. It specifies whether it is / SUB0 or the right channel signal R0 / SUB1.

但し、下部スピーカSPへの左右チャンネル信号SUB0/SUB1は、互いに同一であるので、左右シリアル信号SD2としては、音声モノラル信号の1サンプルデータが、ワードクロックLRCLKのH/Lレベルに対応して、重複して二回伝送されることになる。なお、本実施例では、スピーカ個数が3個であるので、左右シリアル信号SD1は使用していない。 However, since the left and right channel signals SUB0 / SUB1 to the lower speaker SP M are the same as each other, as the left and right serial signal SD2, one sample data of the audio monaural signal corresponds to the H / L level of the word clock LRCLK. , Will be transmitted twice in duplicate. In this embodiment, since the number of speakers is 3, the left and right serial signal SD1 is not used.

実施例の音声プロセッサ27は、1サンプルデータを、最高24bitで出力可能に構成されているが、本実施例では、上位8ビットを[0]に設定することで、各サンプルデータの音量レベルを、実質16bit長で表現している。したがって、各サンプルデータは、0レベルから、216−1レベルまで、216−1=65535段階に区別される。 The audio processor 27 of the embodiment is configured to be able to output one sample data with a maximum of 24 bits, but in this embodiment, the volume level of each sample data is set by setting the upper 8 bits to [0]. , It is expressed by a real 16-bit length. Therefore, each sample data is divided into 2 16 -1 = 65535 stages from 0 level to 2 16 -1 level.

この65535段階を、交流信号たる音声信号の振幅(交流入力電圧)で評価すると、区別可能な音量最小幅としての音量分解能は、MAX/(215−1)=MAX/32767(=MAX/INT[65535/2])程度となる。ここで、MAXは音声信号の最大振幅、INTは整数化演算を意味する。 The 65535 steps, as assessed by the amplitude of the AC signal serving as the audio signal (AC input voltage), the volume resolution of the distinct minimum volume width, MAX / (2 15 -1) = MAX / 32767 (= MAX / INT [65535/2]). Here, MAX means the maximum amplitude of the audio signal, and INT means an integerization operation.

一方、実施例のデジタルアンプ29は、1サンプルデータとして、最高18bit長を受信可能であるが、上記の通り、音声プロセッサ27は、各サンプルデータを16bit長で伝送するので、デジタルアンプ29は、これに対応して、65535段階に区別される音量のサンプルデータを取得することになる。先に説明した通り、交流信号たる音声信号の振幅(交流入力電圧)で評価すると、その音量分解能は、最大振幅MAXに対してMAX/(215−1)となる。 On the other hand, the digital amplifier 29 of the embodiment can receive a maximum length of 18 bits as one sample data, but as described above, the audio processor 27 transmits each sample data with a length of 16 bits, so that the digital amplifier 29 can receive the digital amplifier 29. Correspondingly, the sample data of the volume which is distinguished in 65535 steps is acquired. As described above, as assessed by the amplitude of the AC signal serving as the audio signal (AC input voltage), the volume resolution becomes MAX / (2 15 -1) with respect to the maximum amplitude MAX.

図3(a)は、上記した各動作を実現するパチンコ機GMの全体回路構成を示すブロック図である。また、図3(b)は、払出制御基板25に配置された電源モニタ部MNIの回路構成を示す回路図であり、図3(c)は、図2(b)に関して説明した音声プロセッサ27の内部構成を示すブロック図である。 FIG. 3A is a block diagram showing an overall circuit configuration of the pachinko machine GM that realizes each of the above operations. Further, FIG. 3B is a circuit diagram showing a circuit configuration of the power supply monitor unit MNI arranged on the payout control board 25, and FIG. 3C is a circuit diagram of the voice processor 27 described with respect to FIG. 2B. It is a block diagram which shows the internal structure.

最初に、パチンコ機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と、を中心に構成されている。 First, the overall circuit configuration of the pachinko machine GM will be described. As shown in FIG. 3A, this pachinko machine GM has a power supply board 20 that receives AC24V and outputs various DC voltages (35V, 12V, 5V) together with AC24V, and mainly plays a game control operation. The lamp effect, the sound effect, and the image effect are uniformly executed based on the control board 21, the effect interface board 22 equipped with the circuit element SND for the sound effect, and the control command CMD received from the main control board 21. A game in which the payout motor M is controlled based on the effect control board 23, the liquid crystal interface board 24 located between the effect control board 23 and the display devices DS1 and DS2, and the control command CMD'received from the main control board 21. It is mainly composed of a payout control board 25 for paying out balls and a launch control board 26 for firing a game ball in response to a player's operation.

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

図示の通り、主制御基板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 effect control board 23 via the effect interface board 22. Here, the control commands CMD and CMD'are both 16-bit length, but are transmitted in parallel in two steps every 8-bit length.

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

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

図3(a)の破線枠に示す通り、枠側部材GM1には、電源基板20と、バックアップ電源基板33と、払出制御基板25と、発射制御基板26と、枠中継基板36と、モータ/ランプ駆動基板37と、が含まれており、これらの回路基板が、内枠3の適所に各々固定されている。一方、遊技盤5の背面には、主制御基板21、演出制御基板23が、表示装置DS1,DS2やその他の回路基板と共に固定されている。そして、枠側部材GM1と盤側部材GM2とは、一箇所に集中配置された集中接続コネクタC1〜C3によって電気的に接続されている。 As shown in the broken line frame of FIG. 3A, the frame side member GM 1 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 /. A lamp drive board 37 and a lamp drive board 37 are included, and these circuit boards are fixed in appropriate places in the inner frame 3. On the other hand, on the back surface of the game board 5, a main control board 21 and an effect control board 23 are fixed together with display devices DS1 and DS2 and other circuit boards. The frame-side member GM1 and the board-side member GM2 are electrically connected by centralized connection connectors C1 to C3 centrally arranged at one location.

電源基板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 game hall, and each DC voltage is transmitted via the centralized connector C2. Power is distributed to the face substrate 22. Further, the three types of DC voltages (35V, 12V, 5V) are distributed to the payout control board 25 together with the AC voltage AC24V. The DC voltage (35V, 12V, 5V) distributed to the payout control board 25 is configured to be distributed to the main control board 21 via the centralized connector C1 together with the backup power supply BAK.

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

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

一方、電源遮断後は、バックアップ電源BAKが、主制御部21と払出制御部25のワンチップマイコンの内蔵RAMのデータを保持するので、主制御部21と払出制御部25は、電源遮断前の遊技動作を電源投入後に再開できることになる。なお、バックアップ電源基板33には、少なくとも数日は、各ワンチップマイコンの内蔵RAMの記憶内容を保持可能な電気二重層コンデンサが配置されている。 On the other hand, after the power is cut off, the backup power supply BAK holds the data in the built-in RAM of the one-chip microcomputer of the main control unit 21 and the payout control unit 25. The game operation can be restarted after the power is turned on. An electric double layer capacitor capable of holding the storage contents of the built-in RAM of each one-chip microcomputer is arranged on the backup power supply board 33 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を構成している。 By the way, in this embodiment, unlike the conventional device configuration, the power supply abnormality signal ABN indicating an abnormal decrease in the AC voltage AC24V is configured to be generated not by the power supply board 20 but by the power supply monitor unit MNT of the payout control board 25. Has been done. As shown in FIG. 3B, the power supply monitor unit MNT includes a full-wave rectifier circuit that rectifies AC24V received from the power supply board 20, a photodiode D that receives the output of the full-wave rectifier circuit and emits light, and a power supply board 20. A phototransition TR that operates ON based on the light emission of the photodiode D using a DC voltage of 5V received from the power supply, and an output unit that outputs an H-level detection signal ABN (power supply abnormality signal) based on the ON operation of the phototransition TR. And, it is configured to have. The photodiode D and the phototransition TR form a photocoupler PH.

上記の構成において、電源投入後、フォトカプラPHが速やかにON状態になることで、電源異常信号ABNが正常レベル(H)となる。しかし、その後、交流電源が何らかの理由(正常には電源遮断)で異常降下すると、フォトカプラPHがOFF状態に変化することで、電源異常信号ABNが異常レベル(L)に変化する。この電源異常信号ABNは、払出制御基板25のワンチップマイコンに伝送されると共に、集中接続コネクタC1を経由して、主制御基板21のワンチップマイコンにも伝送されるよう構成されている。 In the above configuration, the photocoupler PH is immediately turned on after the power is turned on, so that the power supply abnormality signal ABN becomes the normal level (H). However, after that, when the AC power supply abnormally drops for some reason (normally, the power supply is cut off), the photocoupler PH changes to the OFF state, and the power supply abnormality signal ABN changes to the abnormal level (L). The power supply abnormality signal ABN is configured to be transmitted to the one-chip microcomputer of the payout control board 25 and also to the one-chip microcomputer of the main control board 21 via the centralized connector C1.

したがって、異常レベルの電源異常信号ABNを受けた各ワンチップマイコンは、必要な情報を、各々の内蔵RAMに記憶するバックアップ処理を実行することになる。先に説明した通り、内蔵RAMの情報は、バックアップ電源BAKによって維持されるので、電源遮断前の遊技動作が電源投入後に再開可能となる。 Therefore, each one-chip microcomputer that receives the abnormal level power supply abnormality signal ABN executes a backup process for storing necessary information in each built-in RAM. As described above, since the information of the built-in RAM is maintained by the backup power supply BAK, the game operation before the power is cut off can be restarted after the power is turned on.

図3(a)に示す通り、演出制御基板23には、VDP回路52や内蔵CPU回路(以下、CPU回路と略称)51などのコンピュータ回路が内蔵された複合チップ50が搭載されている。一方、演出インタフェイス基板22には、音声プロセッサ27と、音声メモリ(ROM)28と、デジタルアンプ(AMP)29などで構成された音声回路SNDが搭載されている。ここで、音声プロセッサ27は、内部回路の異常動作時に、内部回路の設定値を自動的にデフォルト値(初期値)にリセットするWDT回路と、音声制御レジスタSRGとを内蔵して構成されている。そして、音声プロセッサ27は、演出制御CPU63から音声制御レジスタSRGに受ける動作パラメータ(音声コマンドによる設定値)に基づいて、音声メモリ28をアクセスして、必要な音声信号を再生して出力している。 As shown in FIG. 3A, the effect control board 23 is equipped with a composite chip 50 having a built-in computer circuit such as a VDP circuit 52 and a built-in CPU circuit (hereinafter, abbreviated as CPU circuit) 51. On the other hand, the effect interface board 22 is equipped with an audio circuit SND composed of an audio processor 27, an audio memory (ROM) 28, a digital amplifier (AMP) 29, and the like. Here, the voice processor 27 is configured by incorporating a WDT circuit that automatically resets the set value of the internal circuit to a default value (initial value) and a voice control register SRG when the internal circuit operates abnormally. .. Then, the voice processor 27 accesses the voice memory 28 based on the operation parameter (set value by the voice command) received from the effect control CPU 63 to the voice control register SRG, and reproduces and outputs the necessary voice signal. ..

また、この音声プロセッサ27は、図3(c)に略記する通り、音声メモリ28のフレーズ圧縮データを並列的にデコード可能なフレーズ再生チャンネルCH0〜CH31と、各フレーズ再生チャンネルCH0〜CH31でデコードされた音声データを適宜に増幅する一次ボリュームV1及び二次ボリュームV2/V3と、二次ボリュームV2で処理された音声データを適宜に音量分配して2チャンネルの左右ステレオ信号LO/R0を生成するパン処理部PANと、左右ステレオ信号LO/R0と二次ボリュームV3で処理されたモノラル信号SUBとを混合するミキサ部MIXと、ミキサ部MIXの出力L0,R0,SUBを最終増幅するトータルボリュームTVと、トータルボリュームTVで処理された後の音声信号L0,R0,SUBをシリアル信号に変換して出力する出力部OUTと、を有して構成されている。 Further, as abbreviated in FIG. 3C, the audio processor 27 is decoded by the phrase reproduction channels CH0 to CH31 and the phrase reproduction channels CH0 to CH31, which can decode the phrase compressed data of the audio memory 28 in parallel. The pan that generates the left and right stereo signals LO / R0 of 2 channels by appropriately distributing the volume of the primary volume V1 and the secondary volume V2 / V3 that appropriately amplify the generated audio data and the audio data processed by the secondary volume V2. A mixer unit MIX that mixes the processing unit PAN, the left and right stereo signal LO / R0 and the monaural signal SUB processed by the secondary volume V3, and a total volume TV that finally amplifies the outputs L0, R0, SUB of the mixer unit MIX. The output unit OUT, which converts the audio signals L0, R0, and SUB after being processed by the total volume TV into serial signals and outputs them, is configured.

フレーズ再生データは、例えば、サンプリング周波数44.1kHzでサンプリングされた音声演出用の音声データ(楽曲やセリフなど)を圧縮したものであって、各サンプルデータは、16bit長で表現されるので、音声信号(交流信号)の振幅で評価した音量分解能、つまり、区別可能な音量最小幅は、最大振幅MAXに対して、MAX/(215−1)となる。 The phrase reproduction data is, for example, compressed audio data (music, dialogue, etc.) for audio production sampled at a sampling frequency of 44.1 kHz, and each sample data is represented by a 16-bit length. volume resolution was evaluated by the amplitude of the signal (alternating current signal), that is, distinct volume minimum width, to the maximum amplitude MAX, the MAX / (2 15 -1).

図2(b)に関して説明した通り、出力部OUTは、ステレオ音声信号L0/R0を伝送するシリアル信号SDATA0と、モノラル信号SUBを伝送するシリアル信号SDATA2とを、クロック信号SCLK,LROと共に出力している。先に説明したとおり、本実施例では、ステレオ信号R1/L1を使用しないので、シリアル信号SDATA1についても使用されない。 As described with respect to FIG. 2B, the output unit OUT outputs the serial signal SDAT0 for transmitting the stereo audio signal L0 / R0 and the serial signal SDATA2 for transmitting the monaural signal SUB together with the clock signals SCLK and LRO. There is. As described above, in this embodiment, since the stereo signal R1 / L1 is not used, the serial signal SDAT1 is also not used.

同様に、パン処理部PANでは、入力信号を4分割して二系統のステレオ信号R0/L0,R1/L1を出力可能であるが、本実施例では、左右スピーカSP/SPに対応して、ステレオ信号R0/L0だけを使用しているので、ステレオ信号R1/L1は、全ての再生チャンネルCH0〜CH31において常にゼロとなる。 Similarly, the pan processor PAN, but by 4 dividing the input signal can output stereo signal R0 / L0, R1 / L1 of two systems, in the present embodiment, corresponding to the right and left speakers SP L / SP R Since only the stereo signals R0 / L0 are used, the stereo signals R1 / L1 are always zero in all the reproduction channels CH0 to CH31.

このパン処理部PANは、再生チャンネルCH0〜CH31毎に存在するが、左側スピーカSPへのステレオ信号を再生するチャンネルCHiのパン処理部PANiでは、左右パン比を0dB:−∞dBに設定して、ステレオ信号R0をゼロにして、ステレオ信号L0だけを出力している。一方、右側スピーカSPへのステレオ信号を再生するチャンネルCHjのパン処理部PANjでは、左右パン比を−∞dB:0dBに設定して、ステレオ信号L0をゼロにして、ステレオ信号R0だけを出力している。 The bread processor PAN are present in each playback channel CH0~CH31, the pan section of the channel CHi PANi for reproducing a stereo signal to the left speaker SP L, left and right pan ratio 0 dB: Set -∞dB Therefore, the stereo signal R0 is set to zero, and only the stereo signal L0 is output. On the other hand, the pan section of the channel CHj PANj for reproducing a stereo signal to the right speaker SP R, -∞dB left and right pan ratio: set to 0 dB, and the stereo signal L0 to zero, the output only stereo signal R0 is doing.

この結果、フレーズ再生チャンネルCHiで再生された左側ステレオ信号が、ステレオ信号L0として出力され、フレーズ再生チャンネルCHjで再生された右側ステレオ信号が、ステレオ信号R0として出力されることになる。一方、二次ボリュームV3で処理された信号は、モノラル信号SUBとして、そのままMIXに伝送される。 As a result, the left stereo signal reproduced on the phrase reproduction channel CHi is output as the stereo signal L0, and the right stereo signal reproduced on the phrase reproduction channel CHj is output as the stereo signal R0. On the other hand, the signal processed by the secondary volume V3 is directly transmitted to the MIX as a monaural signal SUB.

そして、この動作は、動作中のフレーズ再生チャンネルCHi・・・に対応する全チャンネルCHi・・・で実行され、ミキシングされたステレオ信号L0,R0と、モノラル信号SUBが、デジタルアンプ29に伝送される。なお、ステレオ信号L0,R0と表現するが、実際には、ステレオ音とモノラル信号の混合音であり、典型的には、BGM音以外は、モノラル信号である。 Then, this operation is executed on all channels CHi ... Corresponding to the operating phrase reproduction channel CHi ..., And the mixed stereo signals L0 and R0 and the monaural signal SUB are transmitted to the digital amplifier 29. To. Although expressed as stereo signals L0 and R0, they are actually a mixed sound of a stereo sound and a monaural signal, and are typically monaural signals other than the BGM sound.

以上の通り、音声プロセッサ27は、音声メモリ28から読み出したフレーズ圧縮データを、一次ボリュームV1と、二次ボリュームV2/V3で増幅し、適宜にパン設定した上でミキシングして、トータルボリュームTVを経て出力されるが、各ボリューム値V1〜V3,TVや左右パン設定比は、演出制御CPU51が音声制御レジスタSRGに設定する設定値によって規定される。また、本実施例は、音声プロセッサ27の出力を受けるデジタルアンプの回路構成にも特徴があるが、この点については、図5〜8に基づいて後述する。 As described above, the audio processor 27 amplifies the phrase compressed data read from the audio memory 28 by the primary volume V1 and the secondary volume V2 / V3, sets the pan appropriately, and then mixes the total volume TV. The volume values V1 to V3 and the left / right pan setting ratio are defined by the setting values set in the voice control register SRG by the effect control CPU 51. Further, this embodiment is also characterized in the circuit configuration of the digital amplifier that receives the output of the voice processor 27, and this point will be described later based on FIGS. 5 to 8.

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

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

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

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

一方、リセット回路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 5V distributed from the power supply board 20. This reset signal RT4 power-resets the voice processor 27 as a power-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 effect control board 23, so that when the CPU circuit 51 or the VDP circuit 52 is abnormally reset, it synchronizes with the abnormal reset of these circuits. Then, the voice processor 27 is also abnormally reset. As a result, the sound effect returns to the initial state together with the image effect and the lamp effect, and there is no possibility that the unnatural sound effect will continue.

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

このように、本実施例では、主制御部21と、払出制御部25と、演出インタフェイス基板22に、各々、リセット回路RST1〜RST4を配置しており、システムリセット信号SYSが回路基板間で伝送されることがない。すなわち、システムリセット信号SYSを伝送する配線ケーブルが存在しないので、配線ケーブルに重畳するノイズによって、コンピュータ回路が異常リセットされるおそれが解消される。 As described above, in this embodiment, the reset circuits RST1 to RST4 are arranged on the main control unit 21, the payout control unit 25, and the effect interface board 22, respectively, and the system reset signal SYS is transmitted between the circuit boards. Not transmitted. That is, since there is no wiring cable for transmitting the system reset signal SYS, the possibility that the computer circuit is abnormally reset due to the 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 do not receive a regular clear pulse from the CPUs of the control units 21 and 25. In that case, each CPU is forcibly reset.

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

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

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

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

先に説明した通り、演出インタフェイス基板22は、集中接続コネクタC2を経由して、電源基板20から各レベルの直流電圧(5V,12V,35V)を受けている(図3(a)及び図4(a)参照)。直流電圧12Vは、デジタルアンプ29の電源電圧であると共に、LEDランプなどの駆動電圧として使用される。また、直流電圧35Vは、遊技枠の適所に配電されて可動物を往復移動させるソレノイドの駆動電圧として使用される。 As described above, the effect interface board 22 receives each level of DC voltage (5V, 12V, 35V) from the power supply board 20 via the centralized connector C2 (FIGS. 3A and 3A). 4 (a)). The DC voltage of 12V is a power supply voltage of the digital amplifier 29 and is used as a driving voltage of an LED lamp or the like. Further, the DC voltage 35V is used as a driving voltage of a solenoid that is distributed to a suitable place in the game frame to reciprocate a movable object.

一方、直流電圧5Vは、演出インタフェイス基板22各所の回路素子の電源電圧として供給されると共に、2つのDC/DCコンバータDC1,DC2に供給されて3.3Vと1.0Vが生成される(図4(a)参照)。生成された直流電圧3.3Vと1.0Vは、各々、I/O(入出力)用と、チップコア用の電源電圧として音声プロセッサ27に供給される。また、直流電圧3.3Vは、リセット回路RST4が生成する電源リセット信号RT4の基礎電圧となる。 On the other hand, the DC voltage of 5V is supplied as the power supply voltage of the circuit elements of the effect interface board 22 and is supplied to the two DC / DC converters DC1 and DC2 to generate 3.3V and 1.0V (). See FIG. 4 (a)). The generated direct current voltages of 3.3 V and 1.0 V are supplied to the voice processor 27 as power supply voltages for I / O (input / output) and for the chip core, respectively. Further, the DC voltage 3.3V is the basic voltage of 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 DC voltage of 5V distributed to the effect interface board 22 is distributed to the effect control board 23 together with 3.3V generated by the DC / DC converter DC1. Then, the DC voltage 3.3V distributed on the effect control board 23 is supplied to the composite chip 50, the PROM 53, and the CGROM 55 as a power supply voltage.

図4(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. 4A, two DC / DC converters DC3 and DC4 are arranged on the effect control board 23, and 1.5V and 1.05V are arranged based on the DC voltage 5V supplied to each. Is being generated. Here, the DC voltage of 1.05 V is the power supply voltage for the chip core of the composite chip 50, and the DC voltage of 1.5 V 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 a power supply voltage.

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

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

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

ランプ駆動基板30、モータランプ駆動基板31、及び、ランプ駆動基板37には、同種のドライバICが搭載されており、演出インタフェイス基板22は、演出制御基板23から受けるシリアル信号を、各ドライバICに転送している。シリアル信号は、具体的には、ランプ(モータ)駆動信号SDATAとクロック信号CKであり、駆動信号SDATAがクロック同期方式で各ドライバICに伝送され、多数のLEDランプや電飾ランプによるランプ演出や、演出モータM1〜Mnによる役物演出が実行される。 The same type of driver IC is mounted on the lamp drive board 30, the motor lamp drive board 31, and the lamp drive board 37, and the effect interface board 22 receives the serial signal received from the effect control board 23 for each driver IC. Transferring to. Specifically, the serial signal is a lamp (motor) drive signal SDAT and a clock signal CK, and the drive signal SDAT is transmitted to each driver IC by a clock synchronization method, and a large number of LED lamps and illuminated lamps are used for lamp production. , The effect effect is executed by the effect motors M1 to Mn.

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

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

一方、モータランプ駆動基板31に搭載されたドライバICは、クロック同期式で伝送されるランプ駆動信号を受けてランプ群CH2を駆動すると共に、クロック同期式で伝送されるモータ駆動信号を受けて、複数のステッピングモータで構成された演出モータ群M1〜Mnを駆動している。なお、ランプ駆動信号とモータ駆動信号は、一連のシリアル信号SDATA2であって、クロック信号CK1に同期してシリアル伝送され、これを受けたドライバICは、動作制御信号ENABLE2がアクティブレベルに変化するタイミングで、ランプ群CH2やモータ群M1〜Mnの駆動状態を更新する。 On the other hand, the driver IC mounted on the motor lamp drive board 31 receives the lamp drive signal transmitted in the clock synchronous manner to drive the lamp group CH2, and also receives the motor drive signal transmitted in the clock synchronous manner to drive the lamp group CH2. It drives the effect motor groups M1 to Mn composed of a plurality of stepping motors. The lamp drive signal and the motor drive signal are a series of serial signals SDAT2, which are serially transmitted in synchronization with the clock signal CK1. Then, the drive states of the lamp group CH2 and the motor groups M1 to Mn are updated.

図4(a)に示す通り、音声プロセッサ27と、音声メモリ28とは、26bit長の音声アドレスバスと、16bit長の音声データバスで接続されている。そのため、音声メモリ28には、1Gbit(=226×16)のデータが記憶可能となる。なお、音声データバスが16bit長であることは、各サンプルデータ(音声フレーズデータ)の音量レベルを、16bit長で表現していることに関連する。 As shown in FIG. 4A, the voice processor 27 and the voice memory 28 are connected by a voice address bus having a length of 26 bits and a voice data bus having a length of 16 bits. Therefore, the speech memory 28, data of 1Gbit (= 2 26 × 16) is capable of storing. The fact that the voice data bus has a length of 16 bits is related to the fact that the volume level of each sample data (voice phrase data) is expressed by the length of 16 bits.

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

本実施例の場合、音声制御レジスタSRGのレジスタ番号(00H〜FFH)は、演出制御CPU63のアドレス空間CS3に対応しており、例えば、レジスタ番号XXHの音声制御レジスタSRGに、動作パラメータYYHを設定する場合には、演出制御CPU63は、アドレス空間CS3のゼロ番地にXXHを書込み、次に、1番地にYYHを書込むことになる。すなわち、演出制御CPU63は、そのデータバスにXXHとYYHを、この順番に書き出すことになる。なお、本明細書において、添え字Hや、0X/0xの接頭記号は、数値が16進数表示であることを示している。 In the case of this embodiment, the register numbers (00H to FFH) of the voice control register SRG correspond to the address space CS3 of the effect control CPU 63. For example, the operation parameter YYH is set in the voice control register SRG of the register number XXH. In this case, the effect control CPU 63 writes XXH at address zero in the address space CS3, and then writes YYH at address 1. That is, the effect control CPU 63 writes XXH and YYH to the data bus in this order. In the present specification, the subscript H and the prefix of 0X / 0x indicate that the numerical value is displayed in hexadecimal.

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

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

何れにしても、本実施例の場合、音声メモリ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 the phrase compressed data specified by the phrase number NUM (000H to 1FFFH) having a length of 13 bits, and is a series of backgrounds. A maximum of 8192 types (= 2 13 ) of music songs (BGM) and a set of directing sounds (notice sounds) are stored corresponding to the phrase number NUM. The phrase number NUM is specified by a set value (operation parameter) of a voice command transmitted from the effect control CPU 63 to the voice control register SRG of the voice processor 27.

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

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

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

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

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

図4(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 FIG. 4A, the effect control board 23 includes a composite chip 50 incorporating a CPU circuit 51 and a VDP circuit 52, a control memory (PROM) 53 for storing a control program of the CPU circuit 51, and a control memory (PROM) 53. It is equipped with a DRAM (Dynamic Random Access Memory) 54 that can access a large amount of data at high speed, and a CGROM 55 that stores a large amount of CG data required for effect control.

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

以上、図3と図4に基づいて、演出インタフェイス基板22と演出制御基板23の全体構成を説明したので、次に、本実施例で特徴的なデジタルアンプ29について、図5〜図9に基づいて説明する。 Since the overall configuration of the effect interface board 22 and the effect control board 23 has been described above based on FIGS. 3 and 4, the digital amplifier 29 characteristic of this embodiment is shown in FIGS. 5 to 9. It will be explained based on.

図5は、デジタルアンプ29の内部構成を示すブロック図である。図示の通り、デジタルアンプ29は、音声プロセッサ27が出力するシリアル信号SCLK,LRCLK,SD0,SD2や、ハードウェア設定されているゲイン設定値GAINなどを受けるインタフェイスブロックIFBlockと、無音制御信号MUTENや増幅特性設定値NCDRCを、演出制御CPU63から受ける中央制御部Control と、出力電力の上限値(パワーリミット)PLTの設定値を受ける上限制御部Limitと、再生増幅部(L0/R0/SUB0/SUB1)などを有して構成されている。 FIG. 5 is a block diagram showing an internal configuration of the digital amplifier 29. As shown in the figure, the digital amplifier 29 includes an interface block IFBlock that receives serial signals SCLK, LRCLK, SD0, SD2 output by the voice processor 27, a gain setting value GAIN set by hardware, and a silent control signal MUTEN. The central control unit Control that receives the amplification characteristic set value NCDRC from the effect control CPU 63, the upper limit control unit Limit that receives the upper limit value (power limit) PLT setting value of the output power, and the reproduction amplification unit (L0 / R0 / SUB0 / SUB1). ) And so on.

ここで、再生増幅部(L0/R0/SUB0/SUB1)は、全て同一構成であるので、図4(a)には、L0再生増幅部の全体構成と、R0再生増幅部R0の一部構成だけを図示している。すなわち、再生増幅部(L0/R0/SUB0/SUB1)は、各々、シリアル伝送されたデジタル信号をアナログ信号に変換するDAコンバータDACと、アナログ交流信号(音声信号)を所定ゲインで増幅する増幅部GAINと、上限制御部Limitからの信号に基づいて、アナログ信号の振幅調整をするレベル制限部Limiterと、内部生成した250kHz〜1.5MHz程度の三角波に基づいてPWM信号を生成するパルス幅制御部PWMと、PWM信号に対応する適正レベルの駆動制御信号Q1HG,Q2HG,Q1LG,Q2LGを生成するレベルシフト回路Shiftと、フルブリッジ型(Hブリッジ)の出力回路を有して構成されている。 Here, since the reproduction amplification unit (L0 / R0 / SUB0 / SUB1) all have the same configuration, FIG. 4A shows the overall configuration of the L0 reproduction amplification unit and a partial configuration of the R0 reproduction amplification unit R0. Only illustrated. That is, the reproduction amplification unit (L0 / R0 / SUB0 / SUB1) is a DA converter DAC that converts a serially transmitted digital signal into an analog signal and an amplification unit that amplifies an analog AC signal (voice signal) with a predetermined gain, respectively. GAIN, a level limiting unit Limiter that adjusts the amplitude of the analog signal based on the signal from the upper limit control unit Limit, and a pulse width control unit that generates a PWM signal based on the internally generated triangular wave of about 250 kHz to 1.5 MHz. It includes PWM, a level shift circuit Shift that generates drive control signals Q1HG, Q2HG, Q1LG, and Q2LG corresponding to PWM signals, and a full bridge type (H bridge) output circuit.

本実施例の場合、フルブリッジ型の出力回路は、高圧側のPchMOSトランジスタQ1H,Q2Hと、低圧側のNchMOSトランジスタQ1L,Q2Lとで構成されており、高圧側のPchMOSトランジスタQ1H,Q2Hのドレイン端子Dと、低圧側のNchMOSトランジスタQ1L,Q2Lのドレイン端子が互いに接続されて、各々、出力端子OUT+と、出力端子OUT−に接続されている。 In the case of this embodiment, the full bridge type output circuit is composed of PchMOS transistors Q1H and Q2H on the high voltage side and NchMOS transistors Q1L and Q2L on the low voltage side, and the drain terminals of the PchMOS transistors Q1H and Q2H on the high voltage side. D and the drain terminals of the NchMOS transistors Q1L and Q2L on the low voltage side are connected to each other, and are connected to the output terminal OUT + and the output terminal OUT-, respectively.

そして、高圧側のPchMOSトランジスタQ1H,Q2Hのソース端子Sは、電源電圧12Vを受けており、低圧側のNchMOSトランジスタQ1L,Q2Lのソース端子Sはグランドに接続されている。また、各トランジスタQ1H,Q2H,Q1L,Q2Lのゲート端子Gには、レベルシフト回路Shiftから、駆動制御信号Q1HG,Q2HG,Q1LG,Q2LGが各々供給されている。 The source terminals S of the PchMOS transistors Q1H and Q2H on the high voltage side receive a power supply voltage of 12V, and the source terminals S of the NchMOS transistors Q1L and Q2L on the low voltage side are connected to the ground. Further, drive control signals Q1HG, Q2HG, Q1LG, and Q2LG are supplied from the level shift circuit Shift to the gate terminals G of the transistors Q1H, Q2H, Q1L, and Q2L, respectively.

このように、本実施例では、高圧側のトランジスタとして、PchMOSを使用するので、ON/OFF制御が容易であり、NchMOSを使用する場合のようなブートストラップ回路が不要となる。但し、Nチャネル型に比べてPchMOSは、ON抵抗が大きい欠点があり、過電流時の対策が必要となる。なお、ボディダイオードは、NchMOSトランジスタは、ソース端子Sからドレイン端子Dに向けて形成され、PchMOSトランジスタでは、ドレイン端子Dからソース端子Sに向けて生成されるので、全てのトランジスタについて、ボディダイオードに流れる過電流も考慮する必要がある。 As described above, in this embodiment, since PchMOS is used as the transistor on the high voltage side, ON / OFF control is easy, and a bootstrap circuit as in the case of using NchMOS becomes unnecessary. However, the PchMOS has a drawback that the ON resistance is larger than that of the N-channel type, and it is necessary to take measures against an overcurrent. In the body diode, the NchMOS transistor is formed from the source terminal S toward the drain terminal D, and the PchMOS transistor is generated from the drain terminal D toward the source terminal S. Therefore, all the transistors are used as body diodes. It is also necessary to consider the overcurrent that flows.

また、このデジタルアンプ29は、素子温度が規定以上に上昇すると動作を停止する過温度保護(OTP:Over Temperature Protection )機能と、過電流を検出すると動作を停止する過電流保護(OCP:Over Current Protection )機能と、動作中に電源電圧の低下を検出するとスタンバイ状態に移行して誤動作を未然防止する低電圧誤動作防止(UVLO:Under Voltage Lock Out)機能と、を有している。 Further, this digital amplifier 29 has an over temperature protection (OTP: Over Temperature Protection) function that stops the operation when the element temperature rises above a specified value, and an overcurrent protection (OCP: Over Current) that stops the operation when an overcurrent is detected. It has a Protection) function and a low voltage malfunction prevention (UVLO: Under Voltage Lock Out) function that shifts to the standby state and prevents malfunctions when a drop in power supply voltage is detected during operation.

すなわち、中央制御部Control は、各部のセンサOTP,OCP,UVLOからのセンサ信号に基づいて、上記の保護動作を実行している。なお、実施例の場合、デジタルアンプ29を、電源電圧12Vで機能させているが、他の電源電圧を採用した場合にも、中央制御部Control の電源電圧を、規定値3.4Vで機能させるべく、定電圧回路REGが設けられている。 That is, the central control unit Control executes the above protection operation based on the sensor signals from the sensors OTP, OCP, and UVLO of each unit. In the case of the embodiment, the digital amplifier 29 is operated at a power supply voltage of 12V, but even when another power supply voltage is adopted, the power supply voltage of the central control unit Control is made to function at a specified value of 3.4V. Therefore, a constant voltage circuit REG is provided.

図4(a)に示す通り、上限制御部Limitは、外付け抵抗の抵抗比で決まる2種類の設定電圧PLIMIT1、PLIMT2を受けている。ここで、第1の設定電圧PLIMIT1は、L0再生増幅部及びR0再生増幅部から出力可能なパワーリミット値PLTを規定し、第2の設定電圧PLIMIT2は、SUB0再生増幅部及びSUB1再生増幅部から出力可能なパワーリミット値PLTを規定するが、本実施例では、何れも10Wに設定している。 As shown in FIG. 4A, the upper limit control unit Limit receives two types of set voltages LIMITED1 and LIMIT2 determined by the resistivity ratio of the external resistor. Here, the first set voltage PLLIT1 defines the power limit value PLT that can be output from the L0 reproduction amplification unit and the R0 reproduction amplification unit, and the second set voltage PLLIT2 is from the SUB0 reproduction amplification unit and the SUB1 reproduction amplification unit. The power limit value PLT that can be output is specified, but in this embodiment, it is set to 10 W in each case.

そのため、音声プロセッサ27から過大レベルの入力信号が供給された場合でも、スピーカの過負荷状態や、デジタルアンプ素子の過大発熱が防止される。また、パワーリミット値PLTを超えない限り、出力音声信号の歪み率は、所定レベル(例えば10%)以下に維持される。このパワーリミット値PLTは、後述するノンクリップ動作時(図7)や、DRC(Dynamic Range Compression )動作時(図8)において、特に有効に機能する。 Therefore, even when an excessive level input signal is supplied from the voice processor 27, an overload state of the speaker and excessive heat generation of the digital amplifier element are prevented. Further, the distortion rate of the output audio signal is maintained at a predetermined level (for example, 10%) or less as long as the power limit value PLT is not exceeded. This power limit value PLT functions particularly effectively during non-clip operation (FIG. 7) and DRC (Dynamic Range Compression) operation (FIG. 8), which will be described later.

また、実施例のデジタルアンプでは、全ての再生増幅部(L0/R0/SUB0/SUB1)において、独特のPWM制御をしており、従来構成(特許文献1など)では必須であったローパスフィルタの配置を省略することもできる。もっとも、図4には、直列接続されたコイルLi及びコンデンサC2を、出力端子OUT+及び出力端子OUT−とグランド間に各々配置すると共に、2つのコイルLiをコンデンサC1で接続してローパスフィルタを構成している。 Further, in the digital amplifier of the embodiment, all the reproduction amplification units (L0 / R0 / SUB0 / SUB1) have unique PWM control, and the low-pass filter which is indispensable in the conventional configuration (Patent Document 1 etc.) The arrangement can be omitted. However, in FIG. 4, the coil Li and the capacitor C2 connected in series are arranged between the output terminal OUT + and the output terminal OUT− and the ground, respectively, and the two coils Li are connected by the capacitor C1 to form a low-pass filter. is doing.

そのため、高周波ノイズをより効果的に抑制できるが、このローパスフィルタを省略しても正常な増幅動作が実現される。また、LCフィルタを設けることで、デジタルアンプ外からのEMI(Electromagnetic interference)対策、及び、静電ノイズ対策としても有効である。 Therefore, high-frequency noise can be suppressed more effectively, but normal amplification operation is realized even if this low-pass filter is omitted. Further, by providing an LC filter, it is also effective as a countermeasure against EMI (Electromagnetic interference) from outside the digital amplifier and a countermeasure against electrostatic noise.

以下、本実施例の構成を従来構成と対比して説明すると、先ず、図4(b)は、一般的なPWM制御の手法を図示したものである。一般的なPWM制御では、スイッチング周波数250kHz〜1.5MHz程度の三角波が、アナログ音声信号のレベルに応じてPWM制御されるが、出力端子OUT+と出力端子OUT−の出力電圧は、常に逆位相であり、一方がHレベルのタイミングでは、他方がLレベルとなる。 Hereinafter, the configuration of this embodiment will be described in comparison with the conventional configuration. First, FIG. 4B illustrates a general PWM control method. In general PWM control, a triangular wave with a switching frequency of about 250 kHz to 1.5 MHz is PWM controlled according to the level of the analog audio signal, but the output voltages of the output terminal OUT + and the output terminal OUT- are always in opposite phase. Yes, when one is at the H level, the other is at the L level.

そのため、各出力端子の電位は、最高24V(電源電圧の2倍)程度まで瞬間的に増加するので、サージ電圧吸収用のツェナーダイオードなどの配置が必須となる(特許文献1参照)。このPWM制御の動作を、本実施例を参考に言い換えると、従来構成では、専ら、図4(d)の第1動作(HL)と、図4(e)の第2動作(LH)を繰り返すので、動作遷移時にインダクタンス素子(スピーカコイルやフィルタコイル)の逆起電力が電源電圧に重畳されることになり、サージ電圧吸収素子の配置が不可欠となる。 Therefore, since the potential of each output terminal increases instantaneously up to about 24 V (twice the power supply voltage), it is essential to arrange a Zener diode or the like for absorbing surge voltage (see Patent Document 1). In other words, the operation of this PWM control is rephrased with reference to this embodiment. In the conventional configuration, the first operation (HL) of FIG. 4 (d) and the second operation (LH) of FIG. 4 (e) are exclusively repeated. Therefore, the counter electromotive force of the inductance element (speaker coil or filter coil) is superimposed on the power supply voltage at the time of operation transition, and the arrangement of the surge voltage absorbing element is indispensable.

また、一般的なPWM制御手法を採る場合、例えば、本来、スピーカが無音状態となるデューティ比50%の動作状態では、図4(d)の第1動作と、図4(e)の第2動作が、スイッチング周波数の速度で繰り返されるので、LC回路(特にコンデンサC1)を配置しなければ、スピーカ無音状態における高周波ノイズが耐え難いレベルとなり、この意味において、ローパスフィルタの配置が不可欠となる。 Further, when a general PWM control method is adopted, for example, in an operating state with a duty ratio of 50% in which the speaker is originally in a silent state, the first operation in FIG. 4D and the second operation in FIG. 4E are shown. Since the operation is repeated at the speed of the switching frequency, if the LC circuit (particularly the capacitor C1) is not arranged, the high frequency noise in the silent state of the speaker becomes an unbearable level, and in this sense, the arrangement of the low-pass filter is indispensable.

それに対して、本実施例では、出力端子OUT+と、出力端子OUT−の出力電圧を同位相としており、図4(c)に示す通り、デューティ比50%の場合には、出力端子OUT+と出力端子OUT−間の差動電圧をゼロにしている。そのため、LCフィルタを設けない構成でも、スピーカコイルに高周波電流が流れるおそれがなく、スピーカ無音状態における高周波ノイズの問題が生じない。 On the other hand, in this embodiment, the output voltages of the output terminal OUT + and the output terminal OUT− have the same phase, and as shown in FIG. 4C, when the duty ratio is 50%, the output terminal OUT + and the output terminal OUT + are output. The differential voltage between the terminals OUT- is set to zero. Therefore, even if the LC filter is not provided, there is no possibility that a high frequency current will flow in the speaker coil, and the problem of high frequency noise in the speaker silence state does not occur.

また、本実施例では、デューティ比が50%を上回ると、出力端子OUT+側のパルス幅を広げる一方で、出力端子OUT―側のパルス幅を狭めるPWM制御を実行し、逆に、デューティ比が50%を下回ると、出力端子OUT+側のパルス幅を狭める一方で、出力端子OUT―側のパルス幅を広げるPWM制御を実行している。 Further, in this embodiment, when the duty ratio exceeds 50%, PWM control is executed in which the pulse width on the output terminal OUT + side is widened while the pulse width on the output terminal OUT− side is narrowed, and conversely, the duty ratio is increased. When it is less than 50%, PWM control is executed in which the pulse width on the output terminal OUT + side is narrowed while the pulse width on the output terminal OUT− side is widened.

図4(d)に示す第1動作(HL動作)は、出力端子OUT+側のパルス幅を広げる一方で、出力端子OUT―側のパルス幅を狭めた、デューティ比が50%を上回る場合の中心動作を示している。デューティ比が50%を上回る場合には、第1動作(HL動作)の後に、第3動作(HH動作)に移行して、高圧側のトランジスタQ1H,Q2Hを経由して回生電流が流れる。そのため、それほどの過電圧は発生せず、サージ電圧吸収用のツェナーダイオードなどが不要となる。 The first operation (HL operation) shown in FIG. 4D is centered when the pulse width on the output terminal OUT + side is widened while the pulse width on the output terminal OUT− side is narrowed, and the duty ratio exceeds 50%. It shows the operation. When the duty ratio exceeds 50%, the process shifts to the third operation (HH operation) after the first operation (HL operation), and the regenerative current flows through the high-voltage side transistors Q1H and Q2H. Therefore, not so much overvoltage is generated, and a Zener diode for absorbing surge voltage is not required.

デューティ比が50%を上回る場合、第3動作(HH動作)の後に、第1動作(HL動作)が開始されるが、その後は、第4動作(LL動作)に移行して、低圧側のトランジスタQ1L,Q2Lを経由して回生電流が流れるので、この場合も、それほどの過電圧が発生することはない。 When the duty ratio exceeds 50%, the first operation (HL operation) is started after the third operation (HH operation), but after that, the process shifts to the fourth operation (LL operation) on the low voltage side. Since the regenerative current flows through the transistors Q1L and Q2L, so much overvoltage does not occur in this case as well.

しかも、上記した第3動作(HH動作)や第4動作(LL動作)によって、インダクタンス素子(スピーカコイル)に蓄積された電磁エネルギーが急速に放電されるので、特に、LCフィルタを配置しなくても、高周波ノイズが問題になることはない。 Moreover, since the electromagnetic energy stored in the inductance element (speaker coil) is rapidly discharged by the above-mentioned third operation (HH operation) and fourth operation (LL operation), it is not necessary to arrange an LC filter in particular. However, high frequency noise is not a problem.

以上、デューティ比が50%を上回る場合を説明したが、図4(e)に示す第2動作(LH動作)は、デューティ比が50%を下回った場合の中心動作を示している。すなわち、図4(e)は、出力端子OUT+側のパルス幅を狭める一方で、出力端子OUT―側のパルス幅を広げるデューティ比が50%を下回った場合の中心動作を示している。 The case where the duty ratio exceeds 50% has been described above, but the second operation (LH operation) shown in FIG. 4 (e) shows the central operation when the duty ratio is less than 50%. That is, FIG. 4 (e) shows the central operation when the duty ratio for widening the pulse width on the output terminal OUT− side is less than 50% while narrowing the pulse width on the output terminal OUT + side.

デューティ比が50%を下回る場合には、第2動作(LH動作)の後に、第3動作(HH動作)に移行して、高圧側のトランジスタQ1H,Q2Hを経由して回生電流が流れる。次に、第3動作(HH動作)の後に、再度、第2動作(LH動作)が開始されるが、その後は、第4動作(LL動作)に移行して、低圧側のトランジスタQ1L,Q2Lを経由して回生電流が流れるので、何れのタイミングでも、それほどの過電圧が発生することはない。また、第3動作(HH動作)や第4動作(LL動作)によって、電磁エネルギーが急速に放電されることも先に説明した通りである。 When the duty ratio is less than 50%, the process shifts to the third operation (HH operation) after the second operation (LH operation), and the regenerative current flows through the high-voltage side transistors Q1H and Q2H. Next, after the third operation (HH operation), the second operation (LH operation) is started again, but after that, the process shifts to the fourth operation (LL operation), and the low-voltage side transistors Q1L and Q2L are started. Since the regenerative current flows through the above, so much overvoltage does not occur at any timing. Further, as described above, the electromagnetic energy is rapidly discharged by the third operation (HH operation) and the fourth operation (LL operation).

以上の通り、本実施例では、LCフィルタは特に不要であるが、より再生音声を向上させるべく、コイルLiとコンデンサC1,C2によるLCフィルタを配置している。LCフィルタは、スイッチング周波数250kHz〜1.5MHzに対応して、ローパスフィルタとしてのカットオフ周波数を、スイッチング周波数の1/5以下、例えば、45kHz〜50kHzに設定すべきである。そして、図4に示すLCフィルタの場合には、インダクタンス値20μH〜30μHのコイルLiと、キャパシタンス値40nF〜250nFのコンデンサC2と、キャパシタンス値200〜500nFのコンデンサC1と、を使用するのが好適である。 As described above, in this embodiment, the LC filter is not particularly required, but the LC filter by the coil Li and the capacitors C1 and C2 is arranged in order to further improve the reproduced sound. The LC filter should have a cutoff frequency as a low-pass filter set to 1/5 or less of the switching frequency, for example, 45 kHz to 50 kHz, corresponding to a switching frequency of 250 kHz to 1.5 MHz. In the case of the LC filter shown in FIG. 4, it is preferable to use a coil Li having an inductance value of 20 μH to 30 μH, a capacitor C2 having a capacitance value of 40 nF to 250 nF, and a capacitor C1 having a capacitance value of 200 to 500 nF. be.

なお、出力端子OUT+とグランド間、及び、出力端子OUT−とグランド間には、各々、ショットキーバリアダイオードSBDを配置しているが、これは、過過電流時に、低圧側のMOSトランジスタQ1L,Q2Lや、そのボディダイオードに過電流が流れないように、過電流を迅速に吸収するためである。 A Schottky barrier diode SBD is arranged between the output terminal OUT + and the ground, and between the output terminal OUT− and the ground, respectively. This is a MOS transistor Q1L on the low voltage side at the time of overcurrent. This is to quickly absorb the overcurrent so that the overcurrent does not flow through the Q2L or its body diode.

すなわち、ショットキーバリアダイオードSBDは、一般に、MOSトランジスタよりスイッチング速度が速く、且つ、順方向の電圧降下が低いので、MOSトランジスタQ1L,Q2LにショットキーバリアダイオードSBDを並列接続することで、MOSトランジスタQ1L,Q2Lへの過電流を素早く吸収することができる。なお、この動作を意義は、図9に関して、更に後述する。 That is, since the Schottky barrier diode SBD generally has a faster switching speed and a lower forward voltage drop than the MOS transistor, the Schottky barrier diode SBD is connected in parallel to the MOS transistors Q1L and Q2L to form a MOS transistor. The overcurrent to Q1L and Q2L can be quickly absorbed. The significance of this operation will be described later with reference to FIG.

次に、図6は、インタフェイスブロックIFBlockに供給されるゲイン設定値GAINを説明する図面である。ゲイン設定値GAINは、例えば、2ビット長でハードウェア設定されるが、入出力ゲイン20log(Vo/Vi)の値として、−12dB、−6dB、0dB、+6dBの何れかが選択可能になっている。 Next, FIG. 6 is a drawing for explaining the gain setting value GAIN supplied to the interface block IFBlock. The gain setting value GAIN is, for example, set by hardware with a 2-bit length, but any of -12 dB, -6 dB, 0 dB, and + 6 dB can be selected as the input / output gain 20 log (Vo / Vi) value. There is.

これは、音声プロセッサ27から伝送される音声信号Viの音量分解能に対応して、適切な音量の音声演出を実行できるようにするためである。図6(b)は、入力電圧Viの振幅レベル(入力数値範囲)が最狭の状態から、入力電圧Viの振幅レベル(入力数値範囲)が最広の状態まで、4段階について、ゲイン特性GAIN0〜GAIN3の違いを図示したものである。 This is to enable the execution of an appropriate volume of audio effect corresponding to the volume resolution of the audio signal Vi transmitted from the audio processor 27. FIG. 6B shows the gain characteristic GAIN0 in four stages from the state where the amplitude level (input numerical range) of the input voltage Vi is the narrowest to the state where the amplitude level (input numerical range) of the input voltage Vi is the widest. The difference between ~ GAIN3 is illustrated.

ここで、入出力ゲインGAIN=−12dB、−6dB、0dB、+6dBは、20*log(Vo/Vi)の関係から、各々、GAIN0=10^−0.6、GAIN1=10^−0.3、GAIN2=10^0、GAIN3=10^+0.3に対応する。なお、10^−0.6は、10の−0.6乗を意味し、この関係は、以下の記載でも同様である。 Here, the input / output gains GAIN = -12 dB, -6 dB, 0 dB, and + 6 dB are 20 * log (Vo / Vi), so GAIN0 = 10 ^ -0.6 and GAIN1 = 10 ^ -0.3, respectively. , GAIN2 = 10 ^ 0, GAIN3 = 10 ^ + 0.3. Note that 10 ^ -0.6 means 10 to the power of -0.6, and this relationship is the same in the following description.

実施例のデジタルアンプは、先に説明した通り、1サンプルデータを最高18bitで表現した音声データを受信できるので、この動作状態を想定して、GAIN0=10^−0.6のゲイン特性を用意している。これは、交流音声信号の0Vからの最大振幅MAXに対して、音量分解能が、MAX/(217−1)であることに対応する。 As described above, the digital amplifier of the embodiment can receive audio data expressing one sample data in a maximum of 18 bits, so a gain characteristic of GAIN0 = 10 ^ -0.6 is prepared assuming this operating state. is doing. This is the maximum amplitude MAX from 0V AC audio signal, sound resolution, corresponds to a MAX / (2 17 -1).

次に、GAIN1とGAIN0には、GAIN1=10^−0.3*GAIN0からGAIN1≒1/2*GAIN0の関係があり、このGAIN1は、17bitで表現された音声データ、言い換えると、音声信号の最大振幅MAXを16bitで表現する音声データに対応している。 Next, GAIN1 and GAIN0 have a relationship of GAIN1 = 10 ^ -0.3 * GAIN0 to GAIN1 ≈ 1/2 * GAIN0, and this GAIN1 is voice data expressed in 17 bits, in other words, a voice signal. It corresponds to audio data expressing the maximum amplitude MAX in 16 bits.

以下同様であり、GAIN2≒1/4*GAIN0、GAIN3≒1/8*GAIN0の関係があり、GAIN2は、16bitで表現された音声データに対応し、GAIN3は、15bitで表現された音声データに対応している。各音声データにおいて、音声信号の最大振幅MAXは、各々、15bitと、14bitで表現される。 The same applies hereinafter, and there is a relationship of GAIN2 ≈ 1/4 * GAIN0 and GAIN3 ≈ 1/8 * GAIN0, GAIN2 corresponds to audio data expressed in 16 bits, and GAIN 3 corresponds to audio data expressed in 15 bits. It corresponds. In each voice data, the maximum amplitude MAX of the voice signal is expressed by 15 bits and 14 bits, respectively.

先に説明した通り、本実施例では、1サンプルデータを16bitで表現しており、音量分解能が、交流音声信号の最大振幅MAXに対して、MAX/(215−1)である。そこで、4つの選択肢GAIN0〜GAIN3の中で、ゲイン0dBのGAIN2を選択している。音量分解能(区別可能な音量最小幅)が小さいほど、きめ細やかで繊細な音量制御ができるが、遊技機の音量制御としては、実施例が採用したMAX/(215−1)の音量分解能や、これより性能がやや劣るMAX/(214−1)の音量分解能で十分であると解される。 As described previously, in the present embodiment is to represent one sample data in 16bit, volume resolution, the maximum amplitude MAX AC audio signal, a MAX / (2 15 -1). Therefore, GAIN2 having a gain of 0 dB is selected from the four options GAIN0 to GAIN3. Louder resolution (distinct volume minimum width) is small, but it is attentive and delicate volume control, the volume control of the gaming machine, Ya volume resolution of MAX / embodiment employs (2 15 -1) is understood to be a sufficient volume resolution than this performance is slightly inferior MAX / (2 14 -1).

次に、図7と図8は、中央制御部Control に供給される増幅特性設定値NCDRCに基づいて実行されるノンクリップ動作と、DRC(Dynamic Range Compression )動作について、入出力比(増幅特性)を図示したものである。本実施例では、増幅特性設定値NCDRCは2ビット長であり、演出制御CPU63が、遊技動作中に、その値を変更するが、何ら限定されず、ハードウェア的に固定設定するのも好適である。 Next, FIGS. 7 and 8 show input / output ratios (amplification characteristics) for the non-clip operation executed based on the amplification characteristic set value NCDRC supplied to the central control unit Control and the DRC (Dynamic Range Compression) operation. Is illustrated. In this embodiment, the amplification characteristic set value NCDRC has a 2-bit length, and the effect control CPU 63 changes the value during the game operation, but it is not limited in any way, and it is also preferable to set it fixedly in terms of hardware. be.

但し、2ビット長での選択肢は、(1)ノンクリップ動作及びDRC動作を実行せず、ゲイン設定値GAINに基づく直線的な増幅動作をするか、(2)ノンクリップ動作として、非直線的な増幅動作をするか、(3)DRC動作として、非直線的な第1変則増幅動作をするか、(4)DRC動作として、非直線的な第2変則増幅動作をするかの四択である。そして、ハードウェア設定によって固定的に何れかを選択するか、或いは、本実施例のように、遊技動作に対応して何れかを選択することになる。 However, the options with a 2-bit length are either (1) non-clip operation and DRC operation are not executed, and linear amplification operation is performed based on the gain set value GAIN, or (2) non-clip operation is non-linear. There are four choices: (3) a non-linear first irregular amplification operation as a DRC operation, and (4) a non-linear second irregular amplification operation as a DRC operation. be. Then, either one is fixedly selected according to the hardware setting, or one is selected according to the game operation as in the present embodiment.

図7は、破線で示すゲイン0dBの直線的な増幅特性と、実線で示す非直線的なノンクリップ動作とを対比して図示したものである。なお、図7(a)は、均等目盛の入出力比を図示しているが、図7(b)は、理解の便宜上、片対数目盛で入出力比を示している。また、図7において、出力電圧100%は、パワーリミット値PLT(実施例では10W)に対応する出力電圧(交流振幅)を意味する。 FIG. 7 shows a comparison between the linear amplification characteristic with a gain of 0 dB shown by the broken line and the non-linear non-clip operation shown by the solid line. Note that FIG. 7 (a) illustrates the input / output ratio of the uniform scale, while FIG. 7 (b) shows the input / output ratio on the semi-logarithmic scale for convenience of understanding. Further, in FIG. 7, the output voltage of 100% means an output voltage (AC amplitude) corresponding to the power limit value PLT (10 W in the embodiment).

図7に示す通り、ノンクリップ動作では、出力電圧がパワーリミット値PLTに達するまでは、ゲイン設定値GAINで設定されたゲインを+12dB増加させる一方、出力電圧がパワーリミット値PLTに達すると、増幅率を抑制して、波形のクリップを防止している。 As shown in FIG. 7, in the non-clip operation, the gain set by the gain set value GAIN is increased by +12 dB until the output voltage reaches the power limit value PLT, while it is amplified when the output voltage reaches the power limit value PLT. The rate is suppressed to prevent waveform clipping.

本実施例では、ゲイン設定値GAINでゲイン0dBに設定しているので、ゲイン+12dBの領域の入出比は、入力電圧(音声信号の入力振幅)Viと出力電圧(音声信号の出力振幅)Voを、100%表記のXとYで表現して、20*log(Y/X)=12となり、Y[%]=10^0.6*X[%]の関係となる。先に説明した通り、10^0.6は、10の0.6乗を意味するのでY[%]≒3.98*X[%]となる。 In this embodiment, since the gain is set to 0 dB with the gain set value GAIN, the input / output ratio in the gain + 12 dB region is the input voltage (input amplitude of the audio signal) Vi and the output voltage (output amplitude of the audio signal) Vo. , Expressed by X and Y in 100% notation, 20 * log (Y / X) = 12, and Y [%] = 10 ^ 0.6 * X [%]. As described above, 10 ^ 0.6 means 10 to the 0.6th power, so Y [%] ≈ 3.98 * X [%].

そして、100%で表記の出力電圧Yがパワーリミット値PLT(100%)に達する場合の入力電圧X0は、100=10^0.6*X0から、X0≒25%となる。これは、最高入力電圧(100%)との入力電圧比に換算すると、20*log(25/100)=−12dBを意味し、入力最高レベル(100%)の−12dBまでの小音は、ゲイン+12dBの強調増幅で、Y[%]≒3.98*X[%]の増幅処理がされることになる。この結果、小音が強調されるので、例えば、セリフなどの演出音が、BGM音に紛れるおそれが回避される。 Then, when the output voltage Y expressed at 100% reaches the power limit value PLT (100%), the input voltage X0 becomes X0≈25% from 100 = 10 ^ 0.6 * X0. This means 20 * log (25/100) = -12dB when converted to the input voltage ratio with the maximum input voltage (100%), and the low-pitched sound up to -12dB of the maximum input level (100%) is With the emphasis amplification of gain + 12 dB, the amplification process of Y [%] ≈ 3.98 * X [%] is performed. As a result, since the small sound is emphasized, it is possible to avoid the possibility that the production sound such as dialogue is mixed with the BGM sound.

一方、入力最高レベルの−12dBを超える普通音量は、歪まないよう抑制増幅されることで、波形のクリップが防止されるので、音量が劣化することはない。入力最高レベル(100%)の−12dBを超える場合に、ピーク値をクリッピングするのではなく、抑制増幅して増幅波形のピーク位置をパワーリミットPLTの位置に一致させるので、歪み率を、例えば10%以下に維持することができる。 On the other hand, the normal volume exceeding -12 dB, which is the maximum input level, is suppressed and amplified so as not to be distorted, so that clipping of the waveform is prevented, so that the volume does not deteriorate. When the input maximum level (100%) exceeds -12 dB, the peak value is not clipped, but is suppressed and amplified to match the peak position of the amplified waveform with the position of the power limit PLT, so that the distortion factor is set to, for example, 10. Can be maintained below%.

以上の通り、ノンクリップ動作は、標準入出力比(実施例ではハードウェア設定されたGAIN2=0dB)を下回らない入出比であって、低レベル域(実施例では、最大入力振幅の−12dBまでの領域)と、それ以外の高レベル域では特性が異なる変則入出力比で増幅動作を実行するが、低レベル域の設定は任意である。 As described above, the non-clip operation has an input / output ratio that does not fall below the standard input / output ratio (GAIN2 = 0 dB set by hardware in the embodiment), and is in the low level range (in the embodiment, up to -12 dB of the maximum input amplitude). The amplification operation is performed with an irregular input / output ratio with different characteristics in the high-level range () and other high-level ranges, but the setting in the low-level range is optional.

次に、図8は、破線で示すゲイン0dBの直線的な増幅特性と、実線で示す非直線的なDRC動作とを対比して図示したものである。図8(a)は、均等目盛の入出力比を図示しているが、図8(b)は、理解の便宜上、片対数目盛で入出力比を示している。また、図8においても、出力電圧100%は、パワーリミット値PLT(実施例では10W)に対応する電圧レベルを意味する。 Next, FIG. 8 shows a comparison between the linear amplification characteristic with a gain of 0 dB shown by the broken line and the non-linear DRC operation shown by the solid line. FIG. 8A illustrates the input / output ratio of the uniform scale, while FIG. 8B shows the input / output ratio on the semi-logarithmic scale for convenience of understanding. Further, also in FIG. 8, the output voltage of 100% means a voltage level corresponding to the power limit value PLT (10 W in the embodiment).

図8に示す通り、DRC動作では、出力電圧(音声信号の出力振幅)がパワーリミット値PLTの−12dBに達するまでは、ゲイン設定値GAINで設定されたゲインを+12dB増加させる一方、出力電圧がパワーリミット値PLTの−12dBに達した後は、パワーリミット値PLTに至る直線的な増幅率によって波形のクリップを防止している。 As shown in FIG. 8, in the DRC operation, until the output voltage (output amplitude of the audio signal) reaches -12 dB of the power limit value PLT, the gain set by the gain set value GAIN is increased by +12 dB, while the output voltage is increased. After reaching -12 dB of the power limit value PLT, the clipping of the waveform is prevented by the linear amplification factor reaching the power limit value PLT.

本実施例では、ゲイン設定値GAINでゲイン0dBに設定しているので、ゲイン+12dBの領域の強調増幅域の入出比は、入力電圧(音声信号の入力振幅)Viと出力電圧(音声信号の出力振幅)Voを、100%表記のXとYで表現して、20*log(Y/X)=12となり、Y[%]=10^0.6*X[%]の関係となる。 In this embodiment, since the gain is set to 0 dB with the gain set value GAIN, the input / output ratio of the emphasized amplification region in the gain + 12 dB region is the input voltage (input amplitude of the audio signal) Vi and the output voltage (output of the audio signal). Amplitude) Vo is expressed by X and Y expressed in 100%, 20 * log (Y / X) = 12, and Y [%] = 10 ^ 0.6 * X [%].

そして、パワーリミット値PLTの−12dBに達する出力Y0は、%表記で20*log(Y0/100)=−12の関係があるので、Y0[%]=10^1.4≒25[%]となる。また、Y0=10^0.6*X0の関係から10^1.4=10^0.6*X0となる。算出されるX0は、具体的には、X0=10^0.8であり、最高入力レベル100と比較すると、20*log(10^0.8/10^2)=−24dBの入力レベルとなる。 The output Y0 reaching -12 dB of the power limit value PLT has a relationship of 20 * log (Y0 / 100) = -12 in% notation, so Y0 [%] = 10 ^ 1.4 ≈ 25 [%]. It becomes. Further, from the relationship of Y0 = 10 ^ 0.6 * X0, 10 ^ 1.4 = 10 ^ 0.6 * X0. Specifically, the calculated X0 is X0 = 10 ^ 0.8, and when compared with the maximum input level 100, the input level is 20 * log (10 ^ 0.8 / 10 ^ 2) = -24 dB. Become.

すなわち、DRC動作では、入力レベルが最高レベルの−24dBに至るまでの小音域では、標準増幅率(実施例は0dB)の+12dBの強調増幅を実行し、その後は、増幅率を抑制した直線的な増幅特性となる。なお、抑制された直線的な増幅率は、図8(a)に示す通り、入力電圧ViをXとし、出力電圧VoをYとすると、%表記で、Y―Y0=(100−Y0)/(100−X0)*(X−X0)となる。 That is, in the DRC operation, in the low frequency range up to the maximum input level of -24 dB, the emphasis amplification of the standard amplification factor (0 dB in the example) is performed, and then the amplification factor is suppressed linearly. Amplification characteristics. As shown in FIG. 8A, the suppressed linear amplification factor is expressed in%, where X is the input voltage Vi and Y is the output voltage Vo, and Y—Y0 = (100-Y0) /. It becomes (100-X0) * (X-X0).

このDRC動作でも小音が強調されるので、セリフなどがBGM音に紛れるおそれが回避される。しかも、小音域以外では、抑制された直線的な増幅特性を発揮するので、音量の違いを表現できる点では、画一的な音量となるノンクリップ動作より優れているといえる。 Since the small sound is emphasized even in this DRC operation, it is possible to avoid the possibility that the dialogue or the like is mixed with the BGM sound. Moreover, since it exhibits a suppressed linear amplification characteristic except in the low frequency range, it can be said that it is superior to the non-clip operation in which the volume is uniform in that the difference in volume can be expressed.

このように、DRC動作は、標準入出力比(実施例ではハードウェア設定されたGAIN2=0dB)を下回らない入出比であって、低レベル域(実施例では、出力レベルがパワーリミット値の−12dBに至るまでの領域)と、それ以外の高レベル域では特性が異なる変則入出力比で増幅動作を実行するが、低レベル域を規定する出力レベル(切り替えレベル)の設定は適宜であり、本実施例では、切り替えレベルが相違する第1変則増幅動作と第2変則増幅動作と、が用意されている。 In this way, the DRC operation is an input / output ratio that does not fall below the standard input / output ratio (GAIN2 = 0 dB set by hardware in the embodiment), and is in the low level range (in the embodiment, the output level is the power limit value-). The amplification operation is executed with an irregular input / output ratio with different characteristics in the high level range up to 12 dB), but the output level (switching level) that defines the low level range is set appropriately. In this embodiment, a first irregular amplification operation and a second irregular amplification operation having different switching levels are prepared.

ところで、上記したデジタルアンプ29から出力される音声信号は、集中接続コネクタC3を経由して、遊技機の上部に配置された左右スピーカSP,SPと、遊技機下部に配置された下部スピーカSPまで伝送される。そのため、遊技機の開閉動作などに起因して、長い信号伝送線の途中がグランドラインに接してしまう地落現象が起こる可能性も否定できない。 Meanwhile, the audio signal output from the digital amplifier 29 described above, via a centralized connector C3, the left and right speakers arranged in the upper portion of the gaming machine SP L, and SP R, lower speakers arranged in the gaming machine lower It is transmitted to SP M. Therefore, it cannot be denied that there is a possibility that a ground phenomenon may occur in which the middle of a long signal transmission line comes into contact with the ground line due to the opening / closing operation of the gaming machine.

図9(a)と、図9(b)は、この地絡状態を例示したものであり、ここでは、下部スピーカSPへの信号伝送線が地絡した場合を示している。先に説明した通り、下部スピーカSPは、SUB0再生増幅部とSUB1再生増幅部によって、並列駆動されているので(図2(b)参照)、その分だけ駆動電流が大きく、図4(d)に示す第1動作(HL動作)時に、地絡状態となった場合が特に問題となる。 9 (a) and 9 (b) exemplify this ground fault state, and here, show a case where the signal transmission line to the lower speaker SP M has a ground fault. As described above, since the lower speaker SP M is driven in parallel by the SUB0 reproduction amplification unit and the SUB1 reproduction amplification unit (see FIG. 2B), the drive current is correspondingly large, and FIG. 4D ) Is a particular problem when a ground fault occurs during the first operation (HL operation).

以下、動作内容を説明すると、図9(a)や図9(b)に示すHL動作時に、何れかの箇所が地絡状態となると、PchMOSトランジスタQ1Hに大電流が流れることになる。すると、本実施例では、過電流保護回路OCPが機能して、PchMOSトランジスタQ1HをOFF遷移させると共に、NchMOSトランジスタQ1LをON動作させて第4動作状態に移行させている(図9(c)図9(d)参照)。これは比較的ON抵抗の大きいPchMOSトランジスタに流れる過電流を阻止して、熱破壊などのトラブルを回避するためである。 Hereinafter, the operation contents will be described. If any part of the HL operation shown in FIGS. 9A and 9B is in a ground fault state, a large current will flow through the PchMOS transistor Q1H. Then, in this embodiment, the overcurrent protection circuit OCP functions to turn off the PchMOS transistor Q1H and turn on the NchMOS transistor Q1L to shift to the fourth operating state (FIG. 9 (c)). 9 (d)). This is to prevent the overcurrent flowing through the PchMOS transistor having a relatively large ON resistance and avoid troubles such as thermal destruction.

図9(c)と、図9(d)は、過電流保護回路OCPが機能した場合を示している。何れかの箇所における地絡によって、インダクタンス素子を含んだ閉回路にインダクタンスの放電電流が流れるが、それまでOFF状態であったNchMOSトランジスタQ1LがON遷移するより先に、ショトキーバリアダイオードSBDがON動作するので、過大電流は、図示の経路で流れることになり、NchMOSトランジスタQ1Lや、そのボディダイオードに過大電流が流れることが未然防止される。また、ショトキーバリアダイオードSBDは、順方向電圧降下Vfが低いので、熱破壊の恐れもない。因みに、順方向電流5Aにおける順方向電圧降下Vfは、一般に、0.5V以下に保証されている。 9 (c) and 9 (d) show the case where the overcurrent protection circuit OCP functions. Due to a ground fault at any point, the discharge current of the inductance flows in the closed circuit including the inductance element, but the short key barrier diode SBD turns ON before the NchMOS transistor Q1L, which had been in the OFF state until then, turns ON. Since it operates, the excessive current flows in the path shown in the figure, and it is possible to prevent the excessive current from flowing in the NchMOS transistor Q1L and its body diode. Further, since the short key barrier diode SBD has a low forward voltage drop Vf, there is no risk of thermal destruction. Incidentally, the forward voltage drop Vf at the forward current of 5 A is generally guaranteed to be 0.5 V or less.

一方、もし、ショトキーバリアダイオードSBDを設けない場合には、図9(e)や、図9(f)に示す通り、NchMOSトランジスタQ1Lや、そのボディダイオードに過大電流が流れることで、NchMOSトランジスタQ1Lが熱破壊する可能性がある。 On the other hand, if the short key barrier diode SBD is not provided, as shown in FIGS. 9 (e) and 9 (f), an excessive current flows through the NchMOS transistor Q1L and its body diode, so that the NchMOS transistor flows. Q1L may be thermally destroyed.

なお、ショトキーバリアダイオードSBDを配置することの効果は、図9(f)に示す通り、LCフィルタの有無に関わらない。すなわち、過大電流でスピーカコイルに蓄積された電磁エネルギーは、それが放電され終わるまで、NchMOSトランジスタQ1Lに流れ続ける。スピーカコイルのインダクタンスは、例えば、03mH〜0.5mH程度であり、LCフィルタを構成するコイルLiのインダクタンス値(20〜30μH)より遥かに大きい。 The effect of arranging the short key barrier diode SBD does not depend on the presence or absence of the LC filter, as shown in FIG. 9 (f). That is, the electromagnetic energy stored in the speaker coil due to the excessive current continues to flow in the NchMOS transistor Q1L until it is completely discharged. The inductance of the speaker coil is, for example, about 03 mH to 0.5 mH, which is much larger than the inductance value (20 to 30 μH) of the coil Li constituting the LC filter.

以上、第1動作状態であるHL動作時(図5(d))に地絡状態になった場合を説明したが、第2動作状態であるLH動作時(図5(e))に地絡が生じた場合には、図9(c)〜図9(f)を左右反転した動作が生じるので、左右一対のショトキーバリアダイオードSBDが必要となる。すなわち、一対のショトキーバリアダイオードSBDを、左右のNchMOSトランジスタQ1L/Q2Lに並列接続するのが好適である。 The case where the ground fault state occurs during the HL operation (FIG. 5 (d)), which is the first operating state, has been described above, but the ground fault occurs during the LH operation (FIG. 5 (e)), which is the second operating state. When the above occurs, the operation of inverting the left and right sides of FIGS. 9 (c) to 9 (f) occurs, so that a pair of left and right shot key barrier diodes SBDs are required. That is, it is preferable to connect the pair of short key barrier diodes SBD in parallel to the left and right NchMOS transistors Q1L / Q2L.

以上、デジタルアンプについて詳細に説明したので、続いて、本実施例の他の構成についても詳細に説明する。図10(a)は、演出制御部23を構成する複合チップ50について、関連する回路素子も含めて図示した回路ブロック図である。図示の通り、実施例の複合チップ50には、所定時間毎にディスプレイリストDLを発行するCPU回路51と、発行されたディスプレイリストDLに基づいて画像データを生成して表示装置DS1,DS2を駆動するVDP回路52とが内蔵されている。そして、CPU回路51とVDP回路52とは、互いの送受信データを中継するCPUIF回路56を通して接続されている。 Since the digital amplifier has been described in detail above, the other configurations of the present embodiment will be described in detail. FIG. 10A is a circuit block diagram showing the composite chip 50 constituting the effect control unit 23, including related circuit elements. As shown in the figure, the composite chip 50 of the embodiment is driven by a CPU circuit 51 that issues a display list DL at predetermined time intervals and display devices DS1 and DS2 that generate image data based on the issued display list DL. It has a built-in VDP circuit 52. The CPU circuit 51 and the VDP circuit 52 are connected to each other through a CPUIF circuit 56 that relays transmission / reception data to each other.

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

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

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

このような構成を採ると、内蔵CPU回路51とVDP回路52の動作周期が共通化される利点がある一方で、CPUの動作を可能な限り高速化したい要請に反する。すなわち、VDPの動作は、ある程度以上には高速化できないので、CPU動作の高速化の要請に確実に応えることはできない。そこで、本実施例では、VDP回路52とCPU回路51の各動作周期を各々最適化するべく、2つの発振器を設けている。また、別個の発振器OSC1を設けることで、上記したEMI対策の向上を図ることもできる。 Adopting such a configuration has an advantage that the operation cycle of the built-in CPU circuit 51 and the VDP circuit 52 is shared, but it goes against the demand for speeding up the operation of the CPU as much as possible. That is, since the VDP operation cannot be speeded up above a certain level, it is not possible to reliably meet the demand for speeding up the CPU operation. Therefore, in this embodiment, two oscillators are provided in order to optimize each operation cycle of the VDP circuit 52 and the CPU circuit 51. Further, by providing a separate oscillator OSC1, it is possible to improve the above-mentioned EMI countermeasures.

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

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

図16に関して後述するように、表示回路74A〜74Cは、通常、仕様の異なる表示装置を各々駆動しているので、各表示回路74A〜74Cの動作を規定するドットクロックDCK〜DCKは、駆動対象となる表示装置の仕様に対応させる必要がある。かかる必要に基づき、本実施例では、表示回路74A〜74Cは、専用発振回路DCLKA〜DCLKCの出力クロック(DCLKAI〜DCLKCI)の何れかを受けて、それをドットクロックDCK〜DCKとすることもできるよう構成されている。 As will be described later with reference to FIG. 16, since the display circuits 74A to 74C usually drive display devices having different specifications, the dot clocks DCK A to DCK C that define the operation of the display circuits 74A to 74C may be used. It is necessary to correspond to the specifications of the display device to be driven. Based consuming need, in the present embodiment, the display circuit 74A~74C is to receive one of the output clock of the dedicated oscillator DCLKA~DCLKC (DCLKAI~DCLKCI), make it a dot clock DCK A ~DCK C It is also configured to be able to.

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

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

同様に、サブ表示装置DS2を駆動する表示回路74Bについても、発振器OSC2の発振出力(40MHz)に、所定の逓倍処理(×108)と分周処理(1/160)を施すことで、周波数Fdot=27MHzのドットクロックDCKを生成している。これら逓倍比や分周比を設計することは、それなりに煩雑であり、専用の発振回路を設ける方が容易であるが、本実施例では、機器構成の簡素化を重視して、専用発振回路を設けていない。 Similarly, for the display circuit 74B that drives the sub-display device DS2, the oscillation output (40 MHz) of the oscillator OSC2 is subjected to predetermined multiplication processing (× 108) and frequency division processing (1/160) to obtain a frequency F. dot = is generating the 27MHz of the dot clock DCK B. Designing these multiplication ratios and division ratios is rather complicated, and it is easier to provide a dedicated oscillation circuit. However, in this embodiment, an emphasis is placed on simplification of the equipment configuration, and a dedicated oscillation circuit is used. 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 individually set for each of the display circuits 74A to 74C, but when these dot clocks DCK A to DCK C are generically referred to in the present specification, the "display clock" is used. It may be called "DCK". In the following description, the dot clock DCK A and DCK B, for convenience, may be abbreviated as "dot clock DCK".

なお、本実施例では、低速LVDS出力の構成を採らないので、表示回路74Aを経由して出力されるLVDS信号のLVDSクロックCLKについても、ドットクロックDCKと同一の生成過程を経て、周波数108MHzとしている。但し、本実施例では、デュアルリンク伝送路を採るので、実際のLVDSクロックCLKの周波数は、54MHzとなる。なお、シングルリンク伝送路を採用する場合、LVDSクロックCLKの周波数は、108MHzである。 In the present embodiment, since not take the configuration of a low-speed LVDS output, for the LVDS clock CLK LVDS signal output via the display circuit 74A, through the same production process and the dot clock DCK A, Frequency 108MHz It is supposed to be. However, in this embodiment, since the dual link transmission line is adopted, the actual frequency of the LVDS clock CLK is 54 MHz. When a single link transmission line 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 the oscillator OSC2 is utilized as a reference clock for the system clock, the dot clock DCK, and the DDR clock. Therefore, in consideration of this importance, the reference clock is operated on the condition that the oscillator OSC2 is operated at the same power supply voltage of 3.3V as the VDP circuit 52 and the output enable terminal OE is H level (= 3.3V). Is configured to oscillate and output. Then, in the unlikely event that the power supply voltage 3.3 V drops to a predetermined level or less, normal production operation cannot be expected thereafter, so that an unmaskable interrupt (NMI) is configured to occur.

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

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

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

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

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

次に、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 having the same performance as a general-purpose one-chip microcomputer, and the effect control CPU 63 that comprehensively controls the image effect based on the control program of the control memory 53 and the program go into a runaway state. A watchdog timer (WDT) that forcibly resets the CPU, a built-in RAM 59 that has a storage capacity of about 16 kbytes and is used as a work area of the CPU, and a DMAC (Direct Memory Access) that realizes data transfer without going through the CPU 63. Controller) 60, a serial input / output port (SIO) 61 having a plurality of input ports Si and an output port So, a parallel input / output port (PIO) 62 having a plurality of input ports Pi and an output port Po, and the above-mentioned parts. It is configured to have an operation control register REG or the like in which a set value is set to control the operation. However, in this embodiment provided with the external WDT circuit 58, the watchdog timer (WDT) built in the CPU circuit 51 is not utilized.

なお、本明細書では、便宜上、入出力ポートとの表現を使用するが、演出制御部23において、入出力ポートには、独立して動作する入力ポートと出力ポートとが含まれている。この点は、以下に説明する入出力回路64pや入出力回路64sについても同様である。 In this specification, the term “input / output port” is used for convenience, but in the effect control unit 23, the input / output port includes an input port and an output port that operate independently. This point is the same for 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 (effect interface board 22) through the input / output circuit 64p, and the production control CPU 63 has a chance with the encoder output 3 bits of the volume switch VLSW via the input circuit 64p. The switch signal of the button 11, the control command CMD, and the interrupt signal STB are received. The encoder output 3 bits and the switch signal 1 bit 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. Further, the strobe signal STB is supplied to the interrupt terminal of the effect control CPU 63 via the input / output circuit 64p to activate the reception interrupt processing. Therefore, the effect control CPU 63 that grasps the control command CMD based on the reception interrupt process uniformly controls the sound effect, the lamp effect, the motor effect, and the image effect corresponding to this control command CMD through the effect lottery and the like. Will be done.

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

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

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

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

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

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

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

但し、例えば、意図的に無限ループ処理を実行させて外付けのWDT回路58を起動させることで、複合チップ50を異常リセットすることができる。この場合、動作制御レジスタREGの値が、電源投入後と同じデフォルト値(初期値)に戻され、且つ、VDP回路52についても、VDPレジスタRGijの値が、デフォルト値(初期値)に戻されることで異常状態が解消される。 However, for example, the composite chip 50 can be abnormally reset by intentionally executing an infinite loop process to activate 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 the power is turned on, and the value of the VDP register RGij is also returned to the default value (initial value) for the VDP circuit 52. This will eliminate the abnormal condition.

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

以上を踏まえてリセット機構について説明すると、図4(b)に示す通り、複合チップ50は、論理反転されたシステムリセット信号SYSバーを受ける3個のORゲートG2〜G4を経由して、内部回路がリセット可能に構成されている。但し、本実施例では、破線で示すように、内蔵WDTを有効化しないので、ORゲートG2の入端子と出力端子は、直結状態となる。 Explaining the reset mechanism based on the above, as shown in FIG. 4B, the composite chip 50 has an internal circuit via three OR gates G2 to G4 that receive the logically inverted system reset signal SYS bar. Is configured to be resettable. However, in this embodiment, as shown by the broken line, the built-in WDT is not enabled, so that the input terminal and the output terminal of the 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 a predetermined keyword string (a code string for resetting) from the parallel input / output port (PIO) 62. ) Is received, and the reset signal RST is output.

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

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

この第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 for the effect control CPU 63 that has detected a predetermined abnormality to perform an abnormality reset of the entire VDP circuit 52 and return it to the initial state. Specifically, when it is determined that a serious abnormality has occurred based on the predetermined status register RGij indicating the internal operation of the VDP circuit 52, a reset signal RST is generated from the pattern check circuit CHK. , The entire VDP circuit 52 is abnormally reset. The display circuit 74 is abnormally reset in the second reset path → the third reset path via the OR gate G4.

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

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

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

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

また、表示回路74については、1/60秒毎の表示タイミングに、表示データの生成が間に合わないアンダーラン(Underrun)異常が続くような場合に、第4リセット経路4A又は第4リセット経路4Bを経由して、表示回路74が個別的に初期化される(図22のST10c参照)。なお、これら個別的なリセット動作については、図22以降に記載したプログラム処理に関して更に後述する。 Further, regarding the display circuit 74, when the display timing every 1/60 second is followed by an underrun abnormality in which the display data is not generated in time, the fourth reset path 4A or the fourth reset path 4B is used. Via this, the display circuit 74 is individually initialized (see ST10c in FIG. 22). It should be noted that these individual reset operations will be further described later with respect to the program processing described in FIGS. 22 and later.

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

続いて、CPU回路51の内部構成に戻って、特徴的な回路構成の説明を続ける。図11は、CPU回路51の内部構成をやや詳細に示すブロック図である。CPU回路51は、先に説明した内蔵RAM59、DMAC回路60、SIO61、PIO62、WDT以外にも、多くの特徴的な回路を含んで構成されている。 Subsequently, the process returns to the internal configuration of the CPU circuit 51, and the description of the characteristic circuit configuration is continued. FIG. 11 is a block diagram showing the internal configuration of the CPU circuit 51 in a little more detail. The CPU circuit 51 includes many characteristic circuits other than the built-in RAM 59, the DMAC circuit 60, the SIO61, the PIO62, and the WDT described above.

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

また、CPUコア63は、複数個(例えば15個)のレジスタバンクRB0〜RB14を有して構成されており、その使用の有無を選択できるよう構成されている。そして、レジスタバンクRBiの使用を許可した動作状態では、割込み処理の開始時に、CPUの内蔵レジスタ(例えば19個)のレジスタ値(各32bit長)が、空き状態のレジスタバンクRBiに自動的に退避される。 Further, the CPU core 63 is configured to have a plurality of (for example, 15) register banks RB0 to RB14, and is configured to be able to select whether or not to use the register banks RB0 to RB14. Then, in the operating state in which the use of the register bank RBi is permitted, the register values (each 32-bit length) of the CPU's built-in registers (for example, 19) are automatically saved to the free register bank RBi at the start of interrupt processing. Will be done.

また、割込み処理の終了時に所定の復帰命令を実行すると、例えば19個の退避データが、対応する内蔵レジスタに自動的に復帰される。したがって、通常の構成のように、割込み処理の開始時にPUSH命令を19回実行し、割込み処理の終了時にPOP命令を19回実行する手間が不要となり、高速処理が実現される。 Further, when a predetermined return instruction is executed at the end of the interrupt process, for example, 19 save data are automatically returned to the corresponding built-in register. Therefore, unlike a normal configuration, it is not necessary to execute the PUSH instruction 19 times at the start of interrupt processing and the POP instruction 19 times at the end of interrupt processing, and high-speed processing is realized.

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

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

READデータバスとWRITE データバスが別々に設けられているので、上記したハーバード・アーキテクチャによる高速動作が実現される。なお、本明細書では、アドレスバス(28Bit )、READデータバス(32Bit )、及び、WRITE データバス(32Bit )について、図11に示す内部バスや、周辺バス(1) 〜周辺バス(3) などと区別する意味で、外部バスと総称することがある。 Since the READ data bus and the WRITE data bus are provided separately, high-speed operation by the Harvard architecture described above is realized. In this specification, the address bus (28Bit), the READ data bus (32Bit), and the WRITE data bus (32Bit) include the internal bus shown in FIG. 11, the peripheral bus (1) to the peripheral bus (3), and the like. In the sense of distinguishing from, it may be collectively referred to as an external bus.

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

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

ところで、図12から確認される通り、アドレス空間CS0〜CS7は、アドレス値0x00000000〜0x1FFFFFFF(キャッシュ有効空間)だけでなく、アドレス値0x20000000〜0x3FFFFFFF(キャッシュ無効空間)にも確保されている。これは、アドレスビットA29=1のときには、CPU回路51の内部動作に基づいて、キャッシュ無効とする一方、アドレスビットA29=0のときにキャッシュ有効とすることで、キャッシュ機能の活用を任意選択できるようにしたものである。 By the way, as confirmed from FIG. 12, the address spaces CS0 to CS7 are secured not only in the address values 0x00000000 to 0x1FFFFFFF (cache valid space) but also in the address values 0x20000000 to 0x3FFFFFFF (cache invalid space). When the address bit A29 = 1, the cache is invalidated based on the internal operation of the CPU circuit 51, while when the address bit A29 = 0, the cache is enabled, so that the utilization of the cache function can be arbitrarily selected. It is something like that.

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

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

図12のメモリマップについて説明を続けると、0x40000000番地以降は、バスステートコントローラ66が機能しない内部メモリ空間であって、0xF0000000番地〜0xFF3FFFFF番地は、キャッシュのアドレスアレイ空間に割り当てられている。また、0xFF400000番地〜0xFFF7FFFF番地と、0xFFFC0000番地〜0xFFFFFFFF番地は、内蔵周辺モジュールに割り当てられ、具体的には、CPU回路の動作制御レジスタREGに割り当てられている。なお、内蔵RAM59のアドレス範囲は、0xFFF80000〜0xFFFBFFFFである。 Continuing the description of the memory map of FIG. 12, after address 0x40000000, the bus state controller 66 is an 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. Further, addresses 0xFF400000 to 0xFFFF7FFFF and addresses 0xFFFC0000 to 0xFFFFFFFF are assigned to the built-in peripheral module, and specifically, are assigned 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に供給される外部信号をカウントしたり、或いは、内部クロックを逓倍又は分周した計数クロックをカウントして、カウント結果が所定値に達すると、割込み信号などを発生する回路である。 Continuing to explain the internal configuration of the CPU circuit 51, the compare match timer CMT and the multifunction timer unit MTU count external signals supplied to the CPU circuit 51, or multiply or divide the internal clock. It is a circuit that counts clocks and generates an interrupt signal or the like when the count result reaches a predetermined value.

特に限定されないが、本実施例では、マルチファンクションタイマユニットMTUを活用して、1mS割込み信号と、20μS割込み信号を発生させている。また、マルチファンクションタイマユニットMTUを活用して、CPUリセット後の経過時間を計測する経時タイマTMを実現している。 Although not particularly limited, in this embodiment, the multifunction timer unit MTU is utilized to generate a 1 mS interrupt signal and a 20 μS interrupt signal. Further, by utilizing the multifunction timer unit MTU, a time-lapse timer TM that measures the elapsed time after the CPU reset is realized.

次に、割込みコントローラ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 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 is based on a predetermined priority. This is a circuit that activates interrupt processing (interrupt handler). Here, IRQ_CMD is a command reception interrupt signal to receive the control command CMD, IRQ_SND is an end interrupt signal indicating that the voice 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 の順になっている(図19(d)参照)。なお、これらは何れも、マスク可能な割込みであり、マスク不能な割込みNMIは、先に説明した通り、発振器OSC2からリファレンスクロックが出力されていない場合に演出制御CPU63に出力される。 In this embodiment, the command reception interrupt IRQ_CMD is the highest level for the interrupt priority. Hereinafter, 20 μS interrupt → 1 mS interrupt → interrupt from the VDP circuit (IRQ0, IRQ1, IRQ2, IRQ3) → DMAC interrupt → IRQ_SND → The order is IRQ_RCT (see Fig. 19 (d)). All of these are maskable interrupts, and the non-maskable interrupt NMI is output to the effect control CPU 63 when the reference clock is not output from the oscillator OSC2, as described above.

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

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

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

この点は、ディスプレイリストDLをDMAC回路60が発行する実施例(図25、図29(c))の場合もほぼ同様である。すなわち、演出制御CPU63は、CPU回路51の所定の動作制御レジスタREGに、転送元(DLバッファBUF)の先頭アドレスと、転送先(転送ポートTR_PORT )のアドレスと、DMA転送モードと、データ転送単位と、転送回数、その他の条件を設定することになる。なお、これらの点は、図25に関して更に後述する。 This point is almost the same in the case of the embodiment (FIGS. 25 and 29 (c)) in which the display list DL is issued by the DMAC circuit 60. That is, the effect 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, and the data transfer unit in the predetermined operation control register REG of the CPU circuit 51. , The number of transfers and other conditions will be set. These points will be described later with reference to FIG. 25.

ところで、一般に、DMA転送モードには、DMA転送の単位動作(R動作/W動作)の途中でバス制御権を開放するなど、DMA動作がメモリバスを占有しないサイクルスチール転送モードと、複数のR動作やW動作を連続させるなど、指定された転送回数が完了するまでバス制御権を解放しないバースト転送(パイプライン転送)モードと、他のデバイスから受けるDMA転送要求(デマンド)がアクティブの間はDMA動作を継続するデマンド転送モードなどが考えられる。しかし、本実施例のDMAC回路60は、DMA転送時のリードアクセス起動(R動作)とライトアクセス起動(W動作)の間に、少なくとも1サイクルのメモリ開放期間を設けたサイクルスチール転送モードで機能することで、演出制御CPU63の動作に支障が出ないようにしている。 By the way, in general, the DMA transfer mode includes a cycle steel transfer mode in which the DMA operation does not occupy the memory bus, such as releasing the bus control right in the middle of the unit operation (R operation / W operation) of the DMA transfer, and a plurality of Rs. Between the burst transfer (pipeline transfer) mode in which the bus control right is not released until the specified number of transfers is completed, such as continuous operation and W operation, and the DMA transfer request (demand) received from another device is active. A demand transfer mode that continues the DMA operation can be considered. However, the DMAC circuit 60 of this embodiment functions in the cycle stealing transfer mode in which a memory release period of at least one cycle is provided between the read access activation (R operation) and the write access activation (W operation) at the time of DMA transfer. By doing so, the operation of the effect control CPU 63 is not hindered.

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

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

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

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

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

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

一方、ノンストップ転送とは、チャネル調停が実行されない動作モードであって、図13(b3)に記載の通り、1回のDMA要求で、バイトカウントがゼロになるまで連続的にDMA転送が繰り返される。本実施例では、電源投入時のメモリセクション初期化処理(図17のSP8)では、ノンストップ転送でプログラムやデータをDMA転送している。 On the other hand, non-stop transfer is an operation mode in which channel arbitration is not executed, and as shown in FIG. 13 (b3), DMA transfer is continuously repeated until the byte count becomes zero with one DMA request. Is done. In this embodiment, in the memory section initialization process (SP8 in FIG. 17) when the power is turned on, the program or data is DMA-transferred by 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 )で構成される。 Since the CPU circuit 51 has been described above, the VDP circuit 52 will be described next. The VDP circuit 52 includes a CGROM 55 for storing compressed data which is a component of still images and moving images constituting an image effect, and about 4 Gbit. An external DRAM (Dynamic Random Access Memory) 54 having a storage capacity of the above, a main display device DS1 and a sub display device DS2 are connected to each other. The DRAM 54 is preferably composed of DDR3 (Double-Data-Rate3 SDRAM).

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

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

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と、を有して構成されている(図10(a)参照)。なお、音声回路SNDも内蔵されている。 In detail, the VDP circuit 52 includes a control register group 70 in which various operation parameters defining the operation of the VDP (Video Display Processor) can be set by the effect control CPU 63, and image data to be displayed on the display devices DS1 and DS2. Regarding the built-in VRAM (video RAM) 71 of about 48 Mbytes used at the time of generation, the data transfer circuit 72 that executes data transmission / reception between each part inside the chip and data transmission / reception with the outside of the chip, and the built-in VRAM 71, the Source and Destination An index table IDXTBL that can specify address information, a preloader 73 that can execute a preload operation that READ-accesses the CGROM 55 prior to the drawing operation, and a graphics decoder that decodes (decodes / decompresses / expands) the compressed data read from the CGROM 55. (GDEC) 75, the drawing circuit 76 that generates image data for each frame of the display devices DS1 and DS2 by appropriately combining the still image data and the moving image data after decoding (decompression), and the operation of the drawing circuit 76. As a part, three systems that can read the image data of the frame buffers FBa and FBb generated by the geometry engine 77 that generates a stereoscopic image by appropriate coordinate conversion and the drawing circuit 76 and execute appropriate image processing in parallel. (A / B / C) display circuits 74A to 74C, an output selection unit 79 that appropriately selects and outputs the outputs of the three systems (A / B / C) display circuits 74, and an image output by the output selection unit 79. The LVDS unit 80 that converts data into an LVDS signal, the SMC unit 78 that can transmit and receive serial data, the CPUIF unit 81 that relays data transmission and reception between the CPUIF circuit 56, and the CG bus IF unit 82 that relays data reception from the CGROM 55. A DRAMIF unit 83 that relays data transmission / reception with the external DRAM 54 and a VRAMIF unit 84 that relays data transmission / reception with the built-in VRAM 71 are provided (see FIG. 10A). The voice circuit SND is also built-in.

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

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

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

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

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

このインデックス空間は、(1) 初期処理後に追加することや、逆に、(2) 開放することも必要となる。そこで、これら追加/開放の演出制御CPU63の動作時に、追加/開放の処理が可能なタイミングか否か、また、追加/開放などの処理が実際に完了したか否か、などを判定可能なフラグ領域FGをインデックステーブルIDXTBLに設けている。なお、内蔵VRAM71は、以下に説明する2つのAAC領域(a1,a2) と、ページ領域(b) と、任意領域(c) の三種類のメモリ領域に大別され、この三種類のメモリ領域(a1,a2)(b)(c) に対応して、インデックステーブルIDXTBLが3区分されている(図14(a))。 It is also necessary to (1) add this index space after the initial processing, and conversely, (2) open it. Therefore, a flag capable of determining whether or not the addition / release processing is possible and whether or not the addition / release processing is actually completed when the addition / release effect control CPU 63 is operated. The area FG is provided in the index table IDXTBL. The built-in VRAM 71 is roughly divided into three types of memory areas, two AAC areas (a1 and a2), a page area (b), and an arbitrary area (c), which will be described below, and these three types of memory areas. Corresponding to (a1, a2) (b) (c), the index table IDXTBL is divided into three categories (FIG. 14 (a)).

図示の通り、この実施例では、AAC領域(a) として、第一AAC領域(a1)と第二AAC領域(a2)が確保されているが、特に限定されるものではなく、何れか一方だけでも良い。なお、以下の説明では、第一と第二のAAC領域(a1,a2) を総称する場合には、AAC領域(a) と称する場合がある。 As shown in the figure, in this embodiment, the first AAC region (a1) and the second AAC region (a2) are secured as the AAC region (a), but the region is not particularly limited, and only one of them is used. But it's okay. In the following description, when the first and second AAC regions (a1, a2) are collectively referred to, they may be referred to as an AAC region (a).

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

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

次に、このように確保された各領域(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) (c) secured in this way. When the arbitrary area (c) is used, the horizontal size Hx of the index space that handles two-dimensional data can be arbitrarily set as a multiple of 256 bits in order to facilitate the internal operation of the VDP circuit 52. Its vertical size is a fixed value (eg, 2048 lines).

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

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

繰り返し使用するテクスチャとして、例えば、所定の予告演出時に繰り返し出現するキャラクタや、背景画面を静止画で構築する場合の背景画などを例示することができる。このような場合、テクスチャ設定系コマンドのSETINDEXコマンドによって、デコード先を第二AAC領域(a2)に設定し、TXLOADコマンドによって、キャラクタや背景画などのテクスチャを第二AAC領域(a2)にデコードした後は、第二AAC領域(a2)を使用しないことで、デコード結果を保護する。 As the texture to be used repeatedly, for example, a character that repeatedly appears at the time of a predetermined advance notice effect, a background image when the background screen is constructed from a still image, and the like can be exemplified. In such a case, the SETINDEX command, which is a texture setting command, sets the decoding destination to the second AAC area (a2), and the TXLOAD command decodes the texture such as characters and background images to the second AAC area (a2). After that, the decoding result is protected by not using the second AAC region (a2).

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

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

なお、SPRITEコマンドの実行により、移動元のSource画像データが、形式上は、図14(c)に示す仮想描画空間に描画されるが、表示装置に実際に描画される仮想描画空間内の描画領域と、フレームバッファとなるインデックス空間との対応関係を、予め環境設定コマンド(SETDAVR ,SETDAVF )や、テクスチャ設定系コマンド(SETINDEX)によって設定しておけば、例えば、SPRITEコマンドによる仮想描画空間への描画により、所定のインデックス空間(フレームバッファ)には、移動元のSource画像データが描画されることになる(図14(c)参照)。 By executing the SPRITE command, the source image data of the movement source is formally drawn in the virtual drawing space shown in FIG. 14 (c), but the drawing in the virtual drawing space actually drawn on the display device is performed. If the correspondence between the area and the index space that serves as the frame buffer is set in advance using environment setting commands (SETDAVR, SETDAVF) or texture setting commands (SETINDEX), for example, the SPRITE command can be used to create a virtual drawing space. By drawing, the source image data of the movement source is drawn in the predetermined index space (frame buffer) (see FIG. 14 (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 are secured for each. And each index space is specified by an independent index number for each region (a) (b) (c). The index number is, for example, 1 byte long, and the page area (b) and the arbitrary area (c) (excluding the AAC area (a) automatically assigned by the internal circuit) are produced in the range of 0 to 255. The control CPU 63 can freely assign an index number.

そこで、本実施例では、図14(a)に示す通り、表示装置DS1用として、任意領域(c) に、一対のフレームバッファFBaを確保して、ダブルバッファ構造の双方に、インデックス番号255,254を付与している。すなわち、メイン表示装置DS1用のフレームバッファFBaとして、トグル的に切り換えて使用されるインデックス空間255と、インデックス空間254を確保している。 Therefore, in this embodiment, as shown in FIG. 14A, a pair of frame buffers FBa are secured in the arbitrary area (c) for the display device DS1, and the index numbers 255 and 25 are used in both of the double buffer structures. 254 is given. That is, as the frame buffer FBa for the main display device DS1, the index space 255 and the index space 254 used by switching in a toggle manner are secured.

特に限定されないが、このインデックス空間255,254は、表示装置DS1の横方向ピクセル数に対応して、水平サイズ1280としている。なお、各ピクセルは、ARGB情報32bitで特定されるので、水平サイズ1280は、32×1280=40960bit(256bitの倍数)を意味する。 Although not particularly limited, the index spaces 255 and 254 have a horizontal size of 1280 corresponding to the number of horizontal pixels of the display device DS1. Since each pixel is specified by ARGB information 32 bits, the horizontal size 1280 means 32 × 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の倍数)を意味する。 Further, for the display device DS2, another pair of frame buffers FBb is secured in the arbitrary area (c), and index numbers 252 and 251 are assigned to both of the double buffer structures. That is, the index space 252 and the index space 251 are secured as the frame buffer FBb for the sub display device DS2. The index spaces 252 and 251 have a horizontal size of 480 corresponding to the number of horizontal pixels of the display device DS2. Also in this case, since each pixel is specified by ARGB information 32 bits, the horizontal size 480 means 32 × 480 = 15360 bits (multiple of 256 bits).

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

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

上記の点は更に後述するが、何れにしても、フレームバッファFBa,FBbは、描画回路76にとっての描画領域として、各ダブルバッファ(255/254 ,252/251 )が交互に使用され、また、表示回路74A,74Bにとっての表示領域として、各ダブルバッファ(255/254 ,252/251 )が交互に使用される。 The above points will be further described later, but in any case, in the frame buffers FBa and FBb, each double buffer (255/254, 252/251) is alternately used as a drawing area for the drawing circuit 76, and the frame buffers FBa and FBb are used alternately. The double buffers (255/254, 252/251) are alternately used as the display area for the display circuits 74A and 74B.

なお、本実施例では、表示ピクセルの深度情報を記憶するZバッファを使用しないので欠番(253)が生じるが、Zバッファを使用する場合には、任意領域(c) におけるインデックス番号253,250のインデックス空間253,250が、表示装置DS1と表示装置DS2のためのZバッファとなる。 In this embodiment, since the Z buffer that stores the depth information of the display pixel is not used, a missing number (253) occurs. However, when the Z buffer is used, the index number 253, 250 in the arbitrary area (c) is used. The index space 253,250 serves as a Z buffer for the display device DS1 and the display device DS2.

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

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

ところで、本実施例では、背景画も含め動画で構成されており、画像演出は、ほぼ動画のみで実現されている。特に、変動演出時には、多数(通常10個以上)の動画が同時に描画されている。これらの動画は、何れも、一連の動画フレームとして、圧縮状態でCGROM55に格納されているが、Iフレームのみで構成されたIストリーム動画と、IフレームとPフレームとで構成されたIPストリーム動画とに区分される。 By the way, in this embodiment, the image is composed of a moving image including a background image, and the image production is realized only by the moving image. In particular, a large number (usually 10 or more) of moving images are drawn at the same time during the variable effect. All of these videos are stored in the CGROM 55 in a compressed state as a series of video frames, but an I-stream video composed of only I-frames and an IP stream video composed of I-frames and P-frames. It is divided into.

ここで、Iフレーム(Intra coded frame )とは、他画面とは独立して、入力画像をそのまま圧縮するフレームを意味する。一方、Pフレーム(Predictive coded frame)とは、前方向予測符号化を行うフレームを意味し、時間的に過去に位置するIフレームまたはPフレームが必要となる。 Here, the I frame (Intra coded frame) means a frame that compresses the input image as it is, independently of other screens. On the other hand, the P frame (Predictive coded frame) means a frame for performing forward predictive coding, and an I frame or a P frame located in the past in time is required.

そこで、本実施例では、IPストリーム動画については、旧データの破壊が懸念されるAAC領域(a) ではなく、ページ領域(b) に展開している。すなわち、水平サイズ128×垂直サイズ128の倍数寸法のインデックス空間を確保可能なページ領域(b) に、多数のインデックス空間(IDX〜IDX)を確保して、一連の動画フレームは、各動画MViに対応する、常に同一のインデックス空間IDXiを使用してデコードするようにしている。すなわち、動画MV1はインデックス空間IDX1に展開され、動画MV2はインデックス空間IDX2に展開され、以下同様に、動画MViはインデックス空間IDXiに展開されるよう構成されている。 Therefore, in this embodiment, the IP stream moving image is developed not in the AAC area (a) where there is a concern about the destruction of old data, but in the page area (b). That is, a large number of index spaces (IDX 0 to IDX N ) are secured in the page area (b) where an index space having a multiple dimension of horizontal size 128 × vertical size 128 can be secured, and a series of video frames are each video. The same index space IDXi corresponding to MVi is always used for decoding. That is, the moving image MV1 is expanded in the index space IDX1, the moving image MV2 is expanded in the index space IDX2, and similarly, the moving image MVi is configured to be expanded in the index space IDXi.

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

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

一方、本実施例では、Iストリーム動画については、静止画と同一扱いとしており、SETINDEXコマンドによって、「Iストリーム動画MVjのデコード先は、第一AAC領域(a1)である」と指定して、TXLOADコマンドを実行させる。その結果、動画フレームは第一AAC領域(a1)に取得され、その後、自動的に起動するGDEC75が、第一ACC領域(a1)にデコードデータを展開している。 On the other hand, in this embodiment, the I-stream moving image is treated the same as the still image, and the SETINDEX command is used to specify that "the decoding destination of the I-stream moving image MVj is the first AAC area (a1)". Execute the TXLOAD command. As a result, the moving image frame is acquired in the first AAC area (a1), and then the automatically activated GDEC75 expands the decoded data in the first ACC area (a1).

先に説明した通り、AAC領域(a) のインデックス空間は、自動的に生成されるので、インデックス番号を指定する必要はない。なお、インデックス空間に必要となる展開ボリューム、つまり、デコードされたテクスチャ(動画フレーム)の水平サイズと垂直サイズは、展開先がAAC領域(a) か、ページ領域(b) かに拘らず、TXLOADコマンドによって特定される。 As described above, the index space of the AAC area (a) is automatically generated, so it is not necessary to specify the index number. The expansion volume required for the index space, that is, the horizontal size and vertical size of the decoded texture (video frame), is TXLOAD regardless of whether the expansion destination is the AAC area (a) or the page area (b). Specified by the command.

ところで、IPストリーム動画MViやIストリーム動画MVjは、一般にN枚の動画フレーム(IフレームやPフレーム)で構成されている。そのため、TXLOADコマンドでは、例えば、k枚目(1≦k≦N)の動画フレームが記憶されているCGROM55のSourceアドレスと、展開後の水平・垂直サイズなどを指定することになる。 By the way, the IP stream moving image MVi and the I stream moving image MVj are generally composed of N moving image frames (I frame and P frame). Therefore, in the TXLOAD command, for example, the Source address of the CGROM 55 in which the kth (1 ≦ k ≦ N) moving image frame is stored, the horizontal / vertical size after expansion, and the like are specified.

何ら限定されないが、静止画を殆ど使用しない実施例では、内蔵VRAM71のアドレス空間48Mバイトの大部分(30Mバイト程度)をページ領域(b) に割り当てている。そして、静止画を殆ど使用しない実施例では、AAC領域として、第一AAC領域(a1)だけを確保し、第二AAC領域(a2)を確保せず、また、前記したAAC領域のキャッシュヒット機能も活用しない。 Although not limited in any way, in the embodiment in which the still image is scarcely used, most of the address space 48 Mbytes (about 30 Mbytes) of the built-in VRAM 71 is allocated to the page area (b). In the embodiment in which the still image is hardly used, only the first AAC region (a1) is secured as the AAC region, the second AAC region (a2) is not secured, and the cache hit function of the above-mentioned AAC region is secured. Do not utilize.

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

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

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

図15に示す通り、データ転送回路72は、ルータ機能を有する統合接続バスICMを経由して、CGROM55、DRAM54、及び、内蔵VRAM71とデータを送受信するよう構成されている。なお、CGROM55とDRAM54は、CGバスIF部82や、DMAMIF部83を経由してアクセスされる。 As shown in FIG. 15, the data transfer circuit 72 is configured to transmit / receive data to / from the CGROM 55, the DRAM 54, and the built-in VRAM 71 via the integrated connection bus ICM having a router function. The CGROM 55 and the 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となる。 On the other hand, the CPU circuit 51 issues a display list DL to the drawing circuit 76 and the preloader 73 via the transfer port register TR_PORT built in the data transfer circuit 72. The CPU circuit 51 and the data transfer circuit 72 are connected in both directions, but when the display list DL is issued, the transfer port register TR_PORT is used as a data write port for receiving one unit of data constituting the display list DL. Function. 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 effect control CPU 63 can access the transfer port register TR_PORT by WRITE via the CPUIF unit 81, while when the DMAC circuit 60 is utilized, the DMAC circuit 60 directly accesses the transfer port register TR_PORT. WRITE access will be made. The series of instruction commands written in the transfer port register TR_PORT (that is, the instruction command sequence constituting the display list DL) is a CPU bus having a built-in FIFO buffer having a FIFO structure (32 bits x 130 stages) in units of 32 bits. It is configured to be automatically stored in the control unit 72d.

また、このデータ転送回路72は、3チャンネルChA〜ChCの伝送経路で、データの送受信動作を実行しており、FIFO構造(64bit×N段)のFIFOバッファを有するChA制御回路72a(N=130段)と、ChB制御回路72b(N=1026段)と、ChC制御回路72c(N=130段)と、を有している。 Further, the data transfer circuit 72 executes a data transmission / reception operation on a transmission path of 3 channels ChA to ChC, and has a FIFO structure (64 bits × N stages) of a ChA control circuit 72a (N = 130). Stage), 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に転送されるよう構成されている。 The instruction command sequence (display list DL) stored in the CPU bus control unit 72d is the drawing circuit 76 or the drawing circuit 76 based on the set value in the data transfer register RGij (a type of various control registers 70) by the effect control CPU 63. It is transferred to the preloader 73. As shown by the arrow, the display list DL is transferred from the CPU bus control unit 72d to the drawing circuit 76 via the FIFO buffer of the ChB control circuit 72b, and transferred to the preloader 73 via the FIFO buffer of the ChC control circuit 72c. It is configured to be.

なお、本実施例では、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 the ChB control circuit. It is transferred to the drawing circuit 76 or the display list analyzer of the preloader 73 as a part of the display list DL, respectively, via the 72b or the FIFO buffer of the ChC control circuit 72c.

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

一方、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 arbiter circuit 72e function for data transfer between storage media such as the CGROM 55, the DRAM 54, and the built-in VRAM 71. Further, the IDXTBL access arbiter circuit 72f functions when the built-in VRAM 71, which requires the address information of the index table IDXTBL, is accessed. Specifically, the ChA control circuit 72a may, for example, (a) transfer the compressed data of the CGROM 55 to the built-in VRAM 71, or (b) preload (pre-read) the compressed data of the CGROM 55 and transfer the compressed data to the external DRAM 54. In some cases, or (c) it functions when transferring the look-ahead data in the preload area to the built-in VRAM 71.

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

なお、ChA制御回路72aの動作時に、接続バスアクセス調停回路72eは、統合接続バスICMを経由する各記憶素子(CGROM55、DRAM54)とのデータ伝送を調停(Arbitration )している。一方、IDXTBLアクセス調停回路72fは、インデックステーブルIDXTBLに基づいてChA制御回路72aを制御することで、内蔵VRAM71とのデータ交信を調停している。なお、プリローダ73が機能する実施例の場合、DRAM54のDLバッファ領域BUF’に保存された書換えリストDL’は、接続バスアクセス調停回路72eと、ChB制御回路72bを経由して描画回路76に転送されることになる(図28(b)参照)。 When the ChA control circuit 72a is operating, the connection bus access arbitration circuit 72e arbitrates data transmission with each storage element (CGROM55, DRAM54) 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 case of the embodiment in which the preloader 73 functions, 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 arbiter circuit 72e and the ChB control circuit 72b. (See FIG. 28 (b)).

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

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

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

したがって、32bit毎にCPUバス制御部72dのFIFOバッファに蓄積されたディスプレイリストDLの指示コマンド列は、その総量が最低データ量Dminに達したタイミングで、ChB制御回路72bやChC制御回路72bに転送され、各々のFIFOバッファに蓄積されることになる。 Therefore, the instruction command sequence of the display list DL stored in the FIFO buffer of the CPU bus control unit 72d every 32 bits is transferred to the ChB control circuit 72b or the ChC control circuit 72b at the timing when the total amount reaches the minimum data amount Dmin. Will be 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, the command length of the display list DL is an integer N times of 32 bits corresponding to the write unit (32 bits) of the transfer port register TR_PORT. It consists only of the instruction command (N> 0). Therefore, the drawing circuit 76 and the preloader 73 that receive the instruction command of the display list DL via the data transfer circuit 72 can start the command analysis process (DL analyze) quickly and smoothly. It should be noted that the command length of a 32-bit integer N times does not mean that all of them are significant bits, but also includes an involuntary bit (Don't care bit), which means a 32-bit integer N times.

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

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

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

但し、以下の説明では、便宜上、多重プリロードのない実施例について説明するので、実施例のプリローダ73は、一動作周期(δ)の間に、一フレーム分のプリロード動作を完了することにする。なお、図22に関し後述するように、本実施例では、VDP回路52の間欠動作時の動作周期δは、表示装置DS1の垂直同期信号の2倍周期である1/30秒である。 However, in the following description, for convenience, an embodiment without multiple preloads will be described. Therefore, the preloader 73 of the embodiments will complete the preload operation for one frame during one operation cycle (δ). As will be described later with reference to FIG. 22, in this embodiment, the operation cycle δ during the intermittent operation of the VDP circuit 52 is 1/30 second, 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 rewriting list DL'transferred via the data transfer circuit 72, and cooperates with the graphics decoder 75, the geometry engine 77, and the like. Then, it is a circuit that draws an image for one frame of each display device DS1 and DS2 in the frame buffer formed in the VRAM 71.

上記の通り、プリローダ73を機能させる実施例では、書換えリストDL’のCGデータの参照先は、CGROM55ではなく、DRAM54に設定されたプリロード領域である。そのため、描画回路76による描画の実行中に生じるCGデータへのシーケンシャルアクセスを迅速に実行することができ、動きの激しい高解像度の動画についても問題なく描画することができる。すなわち、本実施例によれば、CGROM55として、安価なSATAモジュールを活用しつつ、複雑高度な画像演出を実行することができる。 As described above, in the embodiment in which the preloader 73 is made to function, the reference destination of the CG data in the rewrite list DL'is not the CGROM 55 but the preload area set in the DRAM 54. Therefore, the sequential access to the CG data generated during the execution of drawing by the drawing circuit 76 can be quickly executed, and even a high-resolution moving image with intense movement can be drawn without any problem. That is, according to this embodiment, as the CGROM 55, it is possible to perform complicated and advanced image production while utilizing an inexpensive SATA module.

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

次に、図14に関して説明した通り、VRAM71の任意領域(c) に確保されたフレームバッファFBは、描画領域と読出領域に区分されたダブルバッファであり、2つの領域を、交互に用途を切り替えて使用する。また、本実施例では、2つの表示装置DS1,DS2が接続されているので、図14に示す通り、2区画のフレームバッファFBa/FBbが確保されている。したがって、描画回路76は、表示装置DS1用のフレームバッファFBaの描画領域(書込み領域)に、一フレーム分の画像データを描画すると共に、表示装置DS2用のフレームバッファFBaの描画領域(書込み領域)に、一フレーム分の画像データを描画することになる。なお、描画領域に、画像データが書込まれているとき、表示回路74は、他方の読出領域(表示領域)の画像データを読み出して、各表示装置DS1,DS2に出力する。 Next, as described with respect to FIG. 14, 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 reading area, and the two areas are alternately used. To use. Further, in this embodiment, since the two display devices DS1 and DS2 are connected, as shown in FIG. 14, the frame buffers FBa / FBb of two sections are secured. Therefore, the drawing circuit 76 draws image data for one frame in the drawing area (writing area) of the frame buffer FBa for the display device DS1 and draws the image data for one frame and draws the image data of the frame buffer FBa for the display device DS2 (writing area). In addition, one frame of image data will be drawn. When the image data is written in the drawing area, the display circuit 74 reads the image data in the other read area (display area) and outputs the image data to the display devices DS1 and DS2.

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

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

ここで、メイン表示装置DS1の仕様を確認すると、メイン表示装置DS1は、左右方向に隣接する奇数ピクセル(ODD)と偶数ピクセル(EVEN)を、別々のLVDS(Low Voltage Differential Signaling)伝送路を通して、受信部RV(RVa+RVb)で受ける必要がある。また、メイン表示装置DS1の動作クロックCKの周波数は、40〜70MHz程度(典型値54MHz)にする必要があり、更に、メイン表示装置DS1に対して画像データ(ODD/EVEN信号)を出力するタイミングでは、アクティブレベルのデータ有効信号ENABを出力する必要がある。 Here, when the specifications of the main display device DS1 are confirmed, the main display device DS1 passes odd pixels (ODD) and even pixels (EVEN) adjacent to each other in the left-right direction through separate LVDS (Low Voltage Differential Signaling) transmission lines. It needs to be received by the receiving unit RV (RVa + RVb). Further, the frequency of the operation clock CK of the main display device DS1 needs to be about 40 to 70 MHz (typical value 54 MHz), and further, the timing of outputting the image data (ODD / EVEN signal) to the main display device DS1. Then, it is necessary to output the active level data valid signal ENAB.

そこで、表示回路74Aは、上記した全ての仕様を満たす信号を出力する必要があり、(VDP回路52における)設計上のドットクロックDCKを、108MHz(=54×2)としている。図16(a)に示す通り、実施例の出力選択部79は、表示回路74Aの出力信号を、108MHzのドットクロックDCKを2分周するデュアルリンクに分割して、各々、LVDS部80aと、LVDS部80bに伝送している。そして、各LVDS部80a,80bは、画像データ(合計24bitのデジタルRGB信号)を、第1と第2のLVDS信号に変換し、これにクロック信号(54MHz=108/2)を伝送する一対を加えて、全五対の差動信号LVDS1,LVDS2として、2つの経路を経由して、メイン表示装置DS1に出力している。 Therefore, the display circuit 74A needs to output a signal satisfying all the above specifications, and the design dot clock DCK (in the VDP circuit 52) is set to 108 MHz (= 54 × 2). As shown in FIG. 16A, 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 the LVDS unit 80a and the LVDS unit 80a, respectively. It is transmitted to the LVDS unit 80b. Then, the LVDS units 80a and 80b convert the image data (a total of 24 bits of digital RGB signals) into the first and second LVDS signals, and transmit a pair of clock signals (54 MHz = 108/2) to the first and second LVDS signals. In addition, all five pairs of differential signals LVDS1 and LVDS2 are output to the main display device DS1 via two paths.

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

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

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

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

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

制御レジスタ群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を活用していない。 In the control register group 70 (VDP register RGij), the "system control register" in which the initial setting values related to the system operation such as interrupt operation are written, and the AAC area (a) and page area (b) are determined in the built-in VRAM. , "Index table register" related to building or changing index table IDXTBL, and "data transfer" in which setting values related to data transfer processing by the data transfer circuit 72 between the effect control CPU 63 and the internal circuit of the VDP circuit 52 are written. The "register", the "GDEC register" that specifies the execution status of the graphics decoder 75, the "drawing register" in which the setting values related to the instruction command and the drawing circuit 76 are written, and the setting values related to the operation of the preloader 73 are written. A "preloader register", 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, and a motor controller (SMC). A "motor control register" in which the setting value relating to the voice circuit SND is written and a "voice control register SRG" in which the setting value relating to the voice circuit SND is written are included. However, in this embodiment, the voice circuit SND is not utilized.

何れにしても、以下の説明では、制御レジスタ群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 above-mentioned individual names or collectively referred to as VDP register RGij. The effect control CPU 63 controls the internal operation of the VDP circuit 52 by writing an appropriate set value to the predetermined VDP register RGij. Specifically, the effect control CPU 63 realizes a predetermined image effect based on the display list DL updated at an appropriate time interval and the set value in the predetermined VDP register RGij. In this embodiment, since the effect control CPU 63 is in charge of the effect control CPU 63 including the lamp effect and the motor effect, the VDP register RGij also includes the LED control register and the motor control register.

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

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

以上を踏まえて、パワーオンリセット動作について図17(a)に基づいて説明する。電源投入時など、システムリセット信号SYSが所定の期間(アサート期間)Lレベルを維持すると、全ての動作制御レジスタREGや、全てのVDPレジスタRGijは、所定のデフォルト値に自動設定される。 Based on the above, the power-on reset operation will be described with reference to FIG. 17 (a). When the system reset signal SYS maintains the L level for a predetermined period (assert period), such as when the power is turned on, all the operation control registers REG and all VDP registers RGij are automatically set to predetermined default values.

そして、その後、システムリセット信号SYSがHレベル(ネゲートレベル)に変化すると、本実施例では、CPUリセット後の経過時間を計測するべく、経時カウンタTM(図11)の動作を開始させる。また、無音制御信号MUTENをLレベルに設定し、その後もLレベルを維持する。ここで、無音制御信号MUTENは、デジタルアンプ29の動作を制御する信号であり、Lレベルでは無音状態、Hレベルでは出力可能状態となる。 After that, when the system reset signal SYS changes to the H level (negate level), in this embodiment, the operation of the time-dependent counter TM (FIG. 11) is started in order to measure the elapsed time after the CPU reset. Further, the silence control signal MUTEN is set to the L level, and the L level is maintained thereafter. Here, the silence control signal MUTEN is a signal that controls the operation of the digital amplifier 29, and is in a silence state at the L level and an output capable state at the H level.

なお、デジタルアンプ29は、電源投入後、Hレベルの無音制御信号MUTENを受けない限り、増幅動作を開始しないが、本実施例では、念のため、電源投入後、素早く無音制御信号MUTENをLレベルにしている。同じ観点から、音声プロセッサ27へのアクセスが可能になるタイミング、具体的には、図19(c)のステップSP35の処理に先行して、再度、無音制御信号MUTENをLレベルにするのも好適である。 The digital amplifier 29 does not start the amplification operation unless it receives the H-level silence control signal MUTEN after the power is turned on. However, in this embodiment, just in case, the silence control signal MUTEN is quickly set to L after the power is turned on. I'm at the level. From the same viewpoint, it is also preferable to set the silence control signal MUTEN to the L level again prior to the timing at which the voice processor 27 can be accessed, specifically, the processing of step SP35 in FIG. 19 (c). Is.

また、本実施例では、上記の動作に続いて、アドレス空間CS0の先頭番地からの32bitデータが、演出制御CPU63のプログラムカウンタPCに設定され、これに続く32bitデータが、スタックポインタSPに設定されるよう構成されている。なお、図12や図18(c)では、プログラムカウンタPCやスタックポインタSPの初期値を記憶するメモリの先頭領域をベクタテーブルVECTと称している。 Further, in the present embodiment, following the above operation, the 32-bit data from the head address of the address space CS0 is set in the program counter PC of the effect control CPU 63, and the 32-bit data following this is set in the stack pointer SP. It is configured to. In FIGS. 12 and 18 (c), the head area of the memory for storing the initial values of the program counter PC and the stack pointer SP is referred to as a vector table VECT.

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

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

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

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

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

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

以上の設定の結果、ステップSP2以降の処理は、アドレス空間CS0に記憶されているプログラムを、最適にメモリREADして実行されることになる。そこで、次に、演出制御CPU63が、VDPレジスタRGijをアクセスする場合のREAD/WRITE アクセス動作を最適化するべく、VDPレジスタRGijに対するバスステートコントローラ66(図11)の動作を規定する所定の動作制御レジスタREGに最適値を設定する(SP2)。 As a result of the above settings, the processes after step SP2 are executed by optimally READing the memory stored in the address space CS0. Therefore, next, in order to optimize the READ / WRITE access operation when the effect control CPU 63 accesses the VDP register RGij, a predetermined operation control that defines the operation of the bus state controller 66 (FIG. 11) with respect to the VDP register RGIj. The optimum value is set in the register REG (SP2).

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

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

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

なお、本実施例では、設定値の最上位ビット(Most significant Bit)を、VDPレジスタRGijの最上位ビットに格納するビックエンディアンに設定し、データ32バス幅を32bitに設定するが、これらの設定値が、仮に、デフォルト値と同じであれば、これらの設定処理を省略することもできる(以下の処理も同様)。 In this embodiment, the most significant bit of the set value is set to the big endian stored in the most significant bit of the VDP register RGij, and the data 32 bus width is set to 32 bits. If the value is the same as the default value, 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端子(図10(a)参照)へのクロック信号(リファレンスクロック)に基づいてDDR(DRAM54)を機能させる旨を設定する(SP4)。なお、PLLREF端子に、発振器OSC2のリファレンスクロックが供給されることは図10(a)に関して説明した通りである。 Next, for the internal interrupts (VDP_IRQ0, VDP_IRQ1, VDP_IRQ2, VDP_IRQ3) from the VDP circuit to the CPU circuit, the interrupt significance level (H / L) is set, and the clock signal to the PLLREF terminal (see FIG. 10A) (see FIG. 10A). It is set to make the DDR (DRAM54) function based on the reference clock) (SP4). It should be noted that the reference clock of the oscillator OSC2 is supplied to the PLLREF terminal as described with respect to FIG. 10 (a).

続いて、図12に示すメモリマップを実現するべく、アドレス空間CS1〜CS6を定義する(SP5)。先に説明した通り、アドレス空間CS3は、音声プロセッサ27の内部レジスタに付与され、アドレス空間CS4は、RTC38の内部レジスタやSRAM39のアドレス空間に付与され、アドレス空間CS5は、外付けDRAM(DDR)54に付与され、アドレス空間CS6は、内蔵CPUのワークメモリ57に付与される。 Subsequently, the address spaces CS1 to CS6 are defined (SP5) in order to realize the memory map shown in FIG. As described above, the address space CS3 is assigned to the internal register of the voice processor 27, the address space CS4 is assigned to the internal register of the RTC 38 and the address space of the SRAM 39, and the address space CS5 is assigned to the external DRAM (DDR). The address space CS6 is assigned to 54, and the 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レベルで規定される。 Since it is fixedly specified that the VDP register RGij is assigned to the address space CS7, the definition process of the address space CS7 is unnecessary. Further, it is fixedly defined in advance that the address space CS0 is after the memory map address 0x000000000000 of the CPU circuit 51, and on the premise of this specification, the address space CS0 is secured in the CGROM 55 or other memory. Whether it is given to the device is specified by the H / L level of the HBTSL terminal.

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

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

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

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

そして、次に、レジスタバンクRBiを使用する旨の設定をする(SP9)。そのため、その後は、割込み処理時に、レジスタバンクRB0〜RB14が機能することになり、割込み処理が迅速化されると共に、スタック領域の消費が緩和される。 Then, next, the setting to use the register bank RBi is made (SP9). Therefore, after that, the register banks RB0 to RB14 function at the time of interrupt processing, the interrupt processing is speeded up, and the consumption of the stack area is alleviated.

以上の処理は、アドレス空間CS0である制御メモリ53に格納されている「初期設定プログラムPinit」の実行によって実現される(図18(c)参照)。そして、この初期設定プログラムPinitの実行が終われば、続いて、演出制御プログラムMainによるメイン制御処理を実行する(SP10)。ここで、メイン制御処理の実行とは、ステップSP8の転送処理によって、制御メモリ53から外付けDRAM54に転送された「演出制御プログラムMain」の実行を意味する(図17(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. 18C). Then, when the execution of the initial setting program Pinit is completed, the main control process by the effect control program Main is subsequently executed (SP10). Here, the execution of the main control process means the execution of the “effect control program Main” transferred from the control memory 53 to the external DRAM 54 by the transfer process of step SP8 (see FIG. 17 (b)).

メイン制御処理(演出制御プログラムMain)の具体的な内容については、図19(a)や、図22(a)に基づいて説明するが、それに先行して、メモリセクションの初期化処理(SP8)について説明する。図18(a)に示す通り、メモリセクションの初期化処理(SP8)では、最初に複数チャネルのDMACを動作停止状態に初期設定する。なお、この処理は、念のための形式的な処理に過ぎない。 The specific contents of the main control process (effect control program Main) will be described with reference to FIGS. 19 (a) and 22 (a), but prior to that, the memory section initialization process (SP8) Will be explained. As shown in FIG. 18A, in the memory section initialization process (SP8), the DMACs of a plurality of channels are first initially set to the operation stop state. Note that this process is just a formal process just in case.

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

その後の処理も同じであり、所定チャネルのDMACiを使用して、ノンストップ転送方式で実行され、エラー復帰処理プログラムPiramを内蔵RAM59にDMA転送する(SP62)。本実施例では、エラー復帰処理プログラムPiramを内蔵RAM59に転送するので、エラー復帰処理において、周辺回路を確実にリセット状態にすることができる。例えば、エラー復帰処理プログラムPiramを、内蔵RAM59以外の例えば外付けDRAM54に転送すると、エラー復帰処理時に、外付けDRAM54をリセット処理できないことになる。 Subsequent processing is also the same, and is executed by the non-stop transfer method using DMACi of a predetermined channel, and the error recovery processing program Pilam is DMA-transferred to the built-in RAM 59 (SP62). In this embodiment, since the error recovery processing program Pilam is transferred to the built-in RAM 59, the peripheral circuit can be reliably reset in the error recovery processing. For example, if the error recovery processing program Pilam is transferred to, for example, an external DRAM 54 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)。定数データには、演出抽選に使用する抽選データや、図22(b)に示す各種の駆動データテーブルにおける、ランプ駆動データやモータ駆動データが含まれる。また、初期値の有る変数Dを、外付けDRAM54にDMA転送するが(SP65)、これら何れも、所定チャネルのDMACiを使用したノンストップ転送方式で実行される。 Next, the effect 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 lottery data used for the effect lottery, lamp drive data, and motor drive data in various drive data tables shown in FIG. 22B. Further, the variable D having 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 DMACi of a predetermined channel.

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

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

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

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

続いて、メイン制御処理の動作内容について図19〜図22に基づいて説明する。先に説明した通り、メイン制御処理については、図19(a)に、その導入部(SP20〜SP27)の処理内容が記載されており、本体部(ST4〜ST14)の処理内容が図22(a)に記載されている。なお、図19のステップSP27の処理は、図22(a)のステップST1〜ST3の処理を含んでいる。 Subsequently, the operation contents of the main control process will be described with reference to FIGS. 19 to 22. As described above, regarding the main control process, the processing content of the introduction unit (SP20 to SP27) is described in FIG. 19A, and the processing content of the main body unit (ST4 to ST14) is shown in FIG. 22 (ST4 to ST14). It is described in a). The process of step SP27 in FIG. 19 includes the process of steps ST1 to ST3 in FIG. 22 (a).

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

ここで、CGバスStatusレジスタの値が1であれば、CGバスの内部回路がリセット動作中であることを意味し、VDPレジスタRGijへの設定値を受け付けることができないことを意味する。そこで、CGバスStatusレジスタの値が1から0に変化していることを確認した上で(SP81)、CGROMを構成するメモリデバイスに対応して規定可能なデバイス区間(SPA0〜SPAn)毎に(1)各デバイス区間SPAiの有効/無効、(2)ROMデバイスの種別、(3)データバス幅などの動作パラメータを、所定のVDPレジスタRGijに設定する(SP82)。 Here, if the value of the CG bus Status register is 1, it means that the internal circuit of the CG bus is in the reset operation, and it means that the set value in 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), each device section (SPA0 to SPAn) that can be specified corresponding to the memory device constituting the CGROM (SP81) ( 1) Enable / disable each device section SPAi, (2) ROM device type, (3) Data bus width and other operating parameters are set in the predetermined VDP register RGij (SP82).

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

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

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

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

したがって、その後は、CGバスStatusレジスタを繰り返しREADアクセスして(SP85)、Statusレジスタの値が1から0に戻ることを確認して処理を終える(SP86)。なお、所定回数の判定に拘らず、Statusレジスタの値が1から0に戻らない場合に、ステップSP66の処理を終えても良い。但し、その場合CGROMが正常にアクセスできない状態で遊技処理が始まるので、その後、何れかのタイミングでWDT回路58が起動して複合チップ50が異常リセット状態になる。そして、この場合は、再度、パワーオンリセット動作が実行されることになる。 Therefore, after that, the CG bus Status register is repeatedly READ-accessed (SP85), and the process is completed after confirming that the value of the Status register returns from 1 to 0 (SP86). It should be noted that the process of step SP66 may be completed when the value of the Status register does not return from 1 to 0 regardless of the determination of a predetermined number of times. However, in that case, since the game process starts in a state where the CGROM cannot be normally accessed, the WDT circuit 58 is activated at any timing thereafter, and the composite chip 50 is in an abnormal reset state. Then, in this case, the power-on reset operation is executed again.

一方、図19のステップSP20の処理が、正常に実行された後は、割込みコントローラINTCや、DMAC回路60や、マルチファンクションタイマユニットMTUなど、CPU回路51の内蔵回路をソフトウェア処理によって個々的に初期化する(SP21)。 On the other hand, after the processing of step SP20 in FIG. 19 is normally executed, the built-in 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について、既に動作している経時タイマTM以外の所定のタイマ計測動作を開始させた後(SP22)、内部割込み及び内部割込みについて、所定の動作制御レジスタREGに許可設定値を書込んで割込み許可状態に設定する(SP23)。 Next, for the multifunction timer unit MTU, after starting a predetermined timer measurement operation other than the timer TM that is already in operation (SP22), the internal interrupt and the internal interrupt are set to be permitted in the predetermined operation control register REG. Write the value and set it to the interrupt enabled state (SP23).

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

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

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

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

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

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

一方、演出制御CPU63の動作クロックは、発振器OSC1の出力クロックをPLLで逓倍して生成されており、プログラム処理は継続可能である。しかも、割込み処理プログラムは、内蔵RAM59に格納されている。そこで、演出制御CPU63は、異常事態の発生を音声やランプによって異常報知すると共に(SP28)、WDT回路58にクリア信号を出力し続ける(SP29)。 On the other hand, the operation clock of the effect control CPU 63 is generated by multiplying the output clock of the oscillator OSC1 by the PLL, and the program processing can be continued. Moreover, the interrupt processing program is stored in the built-in RAM 59. Therefore, the effect control CPU 63 notifies the occurrence of an abnormal situation by voice or a lamp (SP28), and continues to output a clear signal to the WDT circuit 58 (SP29).

異常報知は、例えば「異常事態が発生しました。至急、係員に連絡して下さい」との音声報知となる。なお、WDT回路58にクリア信号を出力し続けるのは、異常リセット動作を回避するためである。すなわち、発振器OSC1が動作を停止する重大な異常時には、仮に、異常リセット処理を繰り返しても、機器の正常復帰が望めないと考えられるからである。 The abnormality notification is, for example, a voice notification such as "An abnormal situation has occurred. Please contact the staff immediately." The reason why the clear signal is continuously output to the WDT circuit 58 is to avoid an abnormal reset operation. That is, in the case of a serious abnormality in which the oscillator OSC1 stops operating, it is considered that normal recovery of the device cannot be expected even if the abnormality reset process is repeated.

以上、図19(b)と、図19(c)について説明したので、図19(a)に戻って説明を続ける。ステップSP24では、外付けDRAMのプログラム領域を保護するため、必要領域を書込み禁止に設定する。次に、電源遮断時に電池で駆動されている時計回路38について、電源遮断時の正常動作を確認すると共に、念のためアラーム割込みについて再設定する(SP25)。 Since FIGS. 19 (b) and 19 (c) have been described above, the description will be continued by returning to FIG. 19 (a). In step SP24, the required area is set to write-protected in order to protect the program area of the external DRAM. Next, the clock circuit 38 driven by the battery when the power is cut off is confirmed to operate normally when the power is turned off, and the alarm interrupt is reset just in case (SP25).

そして、エラーフラグERR=1であることを条件に、音声プロセッサ27の内蔵レジスタ(音声レジスタSRG)に、必要な設定値を書込んで初期化処理を実行する(SP26A)。一方、エラーフラグERR=0の場合は、エラーフラグERR=1となるまで待機する。なお、これら一連の処理の詳細は、図19(d)に示す通りである。 Then, on condition that the error flag ERR = 1, a necessary setting value is written in the built-in register (voice register SRG) of the voice processor 27, and the initialization process is executed (SP26A). On the other hand, when the error flag ERR = 0, the process waits until the error flag ERR = 1. The details of these series of processes are as shown in FIG. 19 (d).

続いて、演出制御CPU63は、デジタルアンプ29に供給する2ビット長の増幅特性設定値NCDRCを適宜値に設定して、デジタルアンプ29が、直線的な標準入出力特性(ノンクリップ動作なし、DRC動作なし)で動作するべく初期設定する(SP26B)。図6に関して説明した通り、本実施例において、標準入出力特性とは、固定的にハードウェア設定されたGAIN2=0dBを意味する。 Subsequently, the effect control CPU 63 sets the 2-bit length amplification characteristic set value NCDRC supplied to the digital amplifier 29 to an appropriate value, and the digital amplifier 29 has a linear standard input / output characteristic (no non-clip operation, DRC). Initial setting to operate (SP26B). As described with respect to FIG. 6, in the present embodiment, the standard input / output characteristic means GAIN2 = 0 dB fixedly set by hardware.

なお、ノンクリップ動作とは、先に説明した通り、出力電圧がパワーリミット値PLTに達するまでは、ゲイン設定値GAINで設定された標準増幅率(0dB)を+12dB増加させる一方、出力電圧がパワーリミット値PLTに達すると、増幅率を抑制して、波形のクリップを防止する動作である。また、DRC動作とは、入力レベルが最高レベルの−24dBに至るまでの小音域では、標準増幅率(実施例は0dB)の+12dBの強調増幅を実行し、その後は、増幅率を抑制した直線的な増幅特性とする動作である。 In the non-clip operation, as described above, until the output voltage reaches the power limit value PLT, the standard amplification factor (0 dB) set by the gain set value GAIN is increased by +12 dB, while the output voltage is the power. When the limit value PLT is reached, the amplification factor is suppressed to prevent clipping of the waveform. Further, the DRC operation is a straight line in which the standard amplification factor (0 dB in the example) of +12 dB is emphasized and amplified in the low frequency range up to the maximum input level of -24 dB, and then the amplification factor is suppressed. This is an operation with a typical amplification characteristic.

但し、本実施例では、ステップSP26Bの処理で、ノンクリップ動作なし、DRC動作なしと設定されたことで、直線的な0dBの増幅動作が実行されることになる(図6参照)。もっとも、セリフ予告演出時など、小音の音声演出が、通常音量のBGM音などに平行して実行されるタイミングでは、DRC動作が選択されるが、この点については後述する。 However, in this embodiment, since no non-clip operation and no DRC operation are set in the process of step SP26B, a linear 0 dB amplification operation is executed (see FIG. 6). However, the DRC operation is selected at the timing when the low-pitched voice effect is executed in parallel with the normal volume BGM sound, such as during the dialogue advance notice effect, and this point will be described later.

次に、VDPレジスタRGijに、必要な設定値を書込むことで、VDP回路52の初期化処理を実行する(SP27)。なお、ステップSP27の処理には、図22のST1〜ST3の処理が含まれている。 Next, the initialization process of the VDP circuit 52 is executed by writing a necessary setting value to the VDP register RGij (SP27). The process of step SP27 includes the processes of ST1 to ST3 of FIG. 22.

ところで、図19(d)は、ステップSP26Aの初期化処理を確認的に説明するフローチャートである。先ず、エラーフラグERR=1であることを繰り返し確認するので(SP60)、ERR≠1の状態が、万一、限界時間を超えるとWDT回路58が起動されることになる。 By the way, FIG. 19D is a flowchart for confirming the initialization process of step SP26A. First, since it is repeatedly confirmed that the error flag ERR = 1 (SP60), if the state of ERR ≠ 1 exceeds the limit time, the WDT circuit 58 will be activated.

次に、音声レジスタSRGに必要な動作パラメータを設定する初期化処理を実行するが、この時に、全再生チャンネルの一次ボリュームV1を最小レベルに設定するのが好ましい(SP61)。これは、異音発生を防止する念のための処理であり、その後、SP63のタイミングで、デジタルアンプ29の無音制御が解除されることを考慮したものである。 Next, the initialization process for setting the operation parameters required for the audio register SRG is executed. At this time, it is preferable to set the primary volume V1 of all the reproduction channels to the minimum level (SP61). This is a process just in case to prevent the generation of abnormal noise, and is taken into consideration that the silence control of the digital amplifier 29 is subsequently released at the timing of SP63.

ステップSP61の処理に続いて、経時タイマTMを参照して、CPUリセットからの経過時間が、1.5秒以上経過していることを確認する(SP62)。これは、電源投入後、デジタルアンプ29において実行される初期処理が完了するまでの処理時間(アンプ起動時間)を確保するためである。 Following the process of step SP61, it is confirmed that the elapsed time from the CPU reset has elapsed by 1.5 seconds or more by referring to the timer TM over time (SP62). This is to secure the processing time (amplifier startup time) until the initial processing executed in the digital amplifier 29 is completed after the power is turned on.

図21(b)は、デジタルアンプ29の動作を図示しており、電源投入後は、内部処理を完了するためのアンプ起動時間として、1.5秒程度が必要であることを示している。このアンプ起動時間の間は、正常な増幅動作ができないので、仮にHレベルの無音制御信号MUTENを受けても、その信号が無視されるので(駆動禁止区間)、ステップSP62の待機処理が必要となる。 FIG. 21B illustrates the operation of the digital amplifier 29, and shows that about 1.5 seconds is required as the amplifier start-up time to complete the internal processing after the power is turned on. During this amplifier start-up time, normal amplification operation cannot be performed, so even if an H-level silence control signal MUTEN is received, that signal is ignored (drive prohibition section), so standby processing in step SP62 is required. Become.

駆動禁止区間を経過した後、デジタルアンプ29は、Hレベルの無音制御信号MUTENを受けると増幅動作を開始するが、その増幅動作が安定するまでに2.5mS程度の時間を要する。そこで、本実施例では、増幅動作が安定まで十分な時間を確保するべく3msの制御待機時間を設け、この制御待機時間後に、音声プロセッサ27が、音声データの伝送を開始するようにしている。 After passing through the drive prohibition section, the digital amplifier 29 starts the amplification operation when it receives the H level silence control signal MUTEN, but it takes about 2.5 mS for the amplification operation to stabilize. Therefore, in this embodiment, a control standby time of 3 ms is provided in order to secure a sufficient time for the amplification operation to stabilize, and the voice processor 27 starts the transmission of voice data after this control standby time.

以上を踏まえて、図19(d)の説明を続けると、CPUリセットからの経過時間が、1.5秒以上経過していることを条件に(SP62)、無音制御信号MUTENをHレベルに設定する(SP63)。なお、この設定値(Hレベル)は、その後も維持されるので、その後は、音声プロセッサ27が出力する音声データに基づいた音声演出が可能となる。 Based on the above, if the description of FIG. 19D is continued, the silence control signal MUTEN is set to the H level on condition that the elapsed time from the CPU reset is 1.5 seconds or more (SP62). (SP63). Since this set value (H level) is maintained even after that, it is possible to perform a voice effect based on the voice data output by the voice processor 27 after that.

但し、本実施例では、前記した制御待機時間を考慮して、3mS程度の待機処理を設けた上で(SP64)、その後、全再生チャンネルの一次ボリュームV1を最小レベルから通常レベルに戻している(SP65)。ここで、3mS程度の時間経過は、経時タイマTMによって計測される。ところで、ステップSP61とステップSP65において実行される一次ボリュームV1の制御は、音声プロセッサ27の異常動作の可能性を考慮したものであり必須ではない。 However, in this embodiment, in consideration of the control standby time described above, a standby process of about 3 mS is provided (SP64), and then the primary volume V1 of all playback channels is returned from the minimum level to the normal level. (SP65). Here, the passage of time of about 3 mS is measured by the timer TM over time. By the way, the control of the primary volume V1 executed in step SP61 and step SP65 takes into consideration the possibility of abnormal operation of the voice processor 27 and is not essential.

なお、ここまでの説明では、音声プロセッサ27の誤動作による異音発生を防止するため、電源投入後からステップSP63の処理まで、無音制御信号MUTENをLレベルに維持する構成を説明したが、特に限定されるものではない。すなわち、電源投入直後から無音制御信号MUTENをHレベルにすることが、特に、禁止されるわけではない。 In the above description, in order to prevent the generation of abnormal noise due to the malfunction of the voice processor 27, the configuration for maintaining the silence control signal MUTEN at the L level from the power-on to the processing of step SP63 has been described, but it is particularly limited. It is not something that will be done. That is, it is not particularly prohibited to set the silence control signal MUTEN to the H level immediately after the power is turned on.

但し、電源投入直後に設定された無音制御信号MUTEN=Hレベルが、デジタルアンプ29の動作として実効化されるのは、電源投入後、起動禁止期間(1.5秒)が経過し、更に、制御待機時間(3mS)が経過してからである。すなわち、制御待機時間(3mS)は、デジタルアンプ29の誤動作を防止し、正常動作を担保するために必須である。 However, the silence control signal MUTEN = H level set immediately after the power is turned on is effective as the operation of the digital amplifier 29 after the start prohibition period (1.5 seconds) has elapsed after the power is turned on. This is after the control standby time (3 mS) has elapsed. That is, the control standby time (3 mS) is indispensable for preventing the malfunction of the digital amplifier 29 and ensuring the normal operation.

もっとも、遊技動作が開始されるまでは、通常、音声演出が実行されないので、制御待機時間(3mS)が実際に意義を発揮するのは、遊技動作中に無音制御信号MUTENをLレベルに変化させ、その後、Hレベルに復帰させる暗転予告時や、セリフ予告時である(図21(b)参照)。 However, since the sound effect is not normally executed until the game operation is started, the control standby time (3 mS) actually exerts its significance by changing the silence control signal MUTEN to the L level during the game operation. After that, it is the time of the notice of darkening to return to the H level and the time of the notice of dialogue (see FIG. 21 (b)).

ところで、本発明者の検討によれば、実施例の構成を採る場合、ステップSP63のタイミングでは、通常、電源投入から既に1.5秒以上経過している。したがって、このような場合には、ステップSP62の待機処理を省略することもできる。 By the way, according to the study of the present inventor, in the case of adopting the configuration of the embodiment, at the timing of step SP63, usually 1.5 seconds or more have already passed from the power-on. Therefore, in such a case, the standby process in step SP62 can be omitted.

但し、デジタルアンプ29の正常動作を担保するためには、無音制御信号MUTEN=Hレベルの設定(SP63)に続いて、制御待機時間(3mS)の経過を確認するべきである。また、その後に、駆動禁止時間を経過していることを、念のため確認するのも好適である。 However, in order to ensure the normal operation of the digital amplifier 29, it is necessary to confirm the progress of the control standby time (3 mS) following the setting of the silent control signal MUTEN = H level (SP63). After that, it is also preferable to confirm that the drive prohibition time has passed, just in case.

すなわち、無音制御信号MUTENをHレベルに設定し(SP63)、⇒制御待機時間(3ms)の経過を待ち(SP64)、⇒駆動禁止区間(電源投入から1.5秒)の経過を確認した上で、⇒音声データの伝送を開始するのも好適である。 That is, the silence control signal MUTEN is set to the H level (SP63), ⇒ wait for the elapse of the control standby time (3 ms) (SP64), and ⇒ confirm the elapse of the drive prohibition section (1.5 seconds after the power is turned on). Then, it is also preferable to start the transmission of voice data.

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

図21は、1msタイマ割込処理の一部を図示したものであり、初期状態がゼロである動作管理フラグFLGの値(0/1/2/3/4/5)に基づいて、6段階の動作を実現している。なお、この場合には、音声プロセッサ27のIRQ_SND 出力端子は、開放状態とし、CPU回路51のIRQ_SND 入力端子は、Hレベルに固定されている。 FIG. 21 illustrates a part of the 1 ms timer interrupt process, and has 6 steps based on the value of the operation management flag FLG (0/1/2/3/4/5) whose initial state is zero. The operation of is realized. In this case, the IRQ_SND output terminal of the audio processor 27 is in the open state, 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の処理は、図19(c)のステップSP31とSP34の処理と同じである。 In the 1 mS timer interrupt process, first, when the operation management flag FLG = 0 is determined in the process of step SP42, it is confirmed that the initialization sequence of the voice processor 27 is normally completed (SP43). Then, when the process ends normally, the interrupt signal (IRQ_SND) is cleared (SP46) by writing a predetermined value to the predetermined voice register SRG, and the operation management flag FLG is set to 1 (SP47). The processing of steps SP43 and SP46 is the same as the processing of steps SP31 and SP34 in FIG. 19C.

なお、初期化シーケンス中であれば、そのまま処理を終えて1mS後に、再度、ステップSP43の判定を行う。一方、初期化シーケンスが正常終了していない場合には、所定の音声レジスタSRGにリセットコマンドを書込むことで、音声プロセッサ27に初期化シーケンスを起動させ(SP44)、動作管理フラグFLGをゼロに戻す(SP45)。なお、ステップSP44の処理は、図19(c)のステップSP32の処理に対応している。 If the initialization sequence is in progress, the determination in step SP43 is performed again 1 mS after the processing is completed. On the other hand, if the initialization sequence is not completed normally, the reset command is written in the predetermined voice register SRG to activate the initialization sequence in the voice processor 27 (SP44), and the operation management flag FLG is set to zero. Return (SP45). The process of step SP44 corresponds to the process of step SP32 of FIG. 19 (c).

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

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

動作管理フラグFLG=3となった後は、音声制御に移行可能であるが、本実施例では、音声制御に先行して、CPUリセットからの経過時間が1.5秒を超えているかを先ず判定する(SP52)。この処理は、図19(d)のステップSP62の処理に対応する。 After the operation management flag FLG = 3, it is possible to shift to voice control, but in this embodiment, prior to voice control, it is first checked whether the elapsed time from the CPU reset exceeds 1.5 seconds. Judgment (SP52). This process corresponds to the process of step SP62 in FIG. 19 (d).

そして、経時タイマTMの計測値に基づき、CPUリセットからの1.5秒以上の経過が確認される場合には(SP52)、無音制御信号MUTENをHレベルにすると共に、タイマ変数TMをゼロに初期設定する(SP53)。また、動作管理フラグFLGを4にする(SP54)。 Then, when the passage of 1.5 seconds or more from the CPU reset is confirmed based on the measured value of the timer TM over time (SP52), the silence control signal MUTEN is set to H level and the timer variable TM is set to zero. Initial setting (SP53). Further, the operation management flag FLG is set to 4 (SP54).

動作管理フラグFLG=4の1msタイマ割込みでは、タイマ変数TMを1mS毎にインクリメントして(SP55)、タイマ変数TMが3になれば、動作管理フラグFLGを5にする(SP57)。これらの処理は、制御待機時間(3ms)を確保するための処理に他ならない。 In the 1 ms timer interrupt with the operation management flag FLG = 4, the timer variable TM is incremented every 1 mS (SP55), and when the timer variable TM becomes 3, the operation management flag FLG is set to 5 (SP57). These processes are nothing but processes for securing the control standby time (3 ms).

そして、動作管理フラグFLG=5は、安定確実な音声制御が可能であることを意味するので、動作管理フラグFL=5の1msタイマ割込みでは、必要な音声レジスタSRGに、必要な動作パラメータを設定することで、音声制御を進行させることになる(SP58)。 Since the operation management flag FLG = 5 means that stable and reliable voice control is possible, the necessary operation parameters are set in the necessary voice register SRG in the 1 ms timer interrupt of the operation management flag FL = 5. By doing so, the voice control is advanced (SP58).

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

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

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

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

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

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

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

一方、描画回路76の動作異常に基づく描画異常割込みの場合には、無限ループ処理に移行させることで(ST16d)、WDT回路58を起動させ、複合チップ50全体をリセットする。なお、CPU回路51をリセットしたくない場合には、所定のキーワード列をパターンチェック回路CHKに出力して、リセット信号RSTによってVDP回路52だけをリセットしても良い(図4(b)参照)。この場合には、VDP回路52のリセット動作の正常終了を確認した後、ステップST4やST13の処理に移行させる。なお、可能な限り制御コマンドCMDの読み落しを回避するためには、他の場合も含め、ステップST4より、ステップST13に移行される方が良い。 On the other hand, in the case of a drawing abnormality interrupt based on an operation abnormality of the drawing circuit 76, the WDT circuit 58 is activated by shifting to the infinite loop processing (ST16d), and the entire composite chip 50 is reset. If the CPU circuit 51 is not desired to be reset, 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. 4B). .. In this case, after confirming the normal end of the reset operation of the VDP circuit 52, the process proceeds to steps ST4 and ST13. In addition, in order to avoid over-reading of the control command CMD as much as possible, it is better to shift to step ST13 rather than step ST4, including other cases.

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

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

そして、定常処理は、割込みカウンタVCNTが、VCNT≧2となったタイミングで開始されるので(ST4)、定常処理の動作周期δは、1/30秒となる。この動作周期δは、演出制御CPU63の制御に基づいて間欠動作するVDP回路52について、その実質的な動作周期δに他ならない。なお、判定条件を、VCNT≧2とするのは、定常処理(ST4〜ST14)が異常に長引いて、VCNT=2のタイミングを見逃す可能性を考慮したものであるが、VCNT=3となる事態が発生しないよう設計されている。 Since the steady processing is started at the timing when the interrupt counter VCNT becomes VCNT ≧ 2 (ST4), the operation cycle δ of the steady processing is 1/30 second. This operation cycle δ is nothing but a substantial operation cycle δ of the VDP circuit 52 that operates intermittently based on the control of the effect control CPU 63. The determination condition is VCNT ≧ 2, considering the possibility that the steady processing (ST4 to ST14) is abnormally prolonged and the timing of VCNT = 2 is overlooked, but the situation is that VCNT = 3. Is designed not to occur.

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

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

このように本実施例では、ACC領域(a1,a2) と、ページ領域(b) の領域設定に一定の条件を設けるが、それは、メモリ容量が限られている内蔵VRAM71について、可能な限り無駄領域を排除する一方で、VDP回路52の内部動作の円滑化を図るためである。すなわち、内蔵VRAM71の記憶容量を無闇に増加させると、製造コストの高騰やチップ面積の大型化が懸念される一方、無駄領域を完全に排除するような自由な領域設定を認めると、内部処理が煩雑化して、VRAMアクセスの処理時間を短縮化できないためである。なお、以下に説明するインデックス空間の確保に、一定の制約を設けるのも同じ理由による。 As described above, in this embodiment, certain conditions are set for the area settings of the ACC area (a1, a2) and the page area (b), but this is as wasteful as possible for the built-in VRAM 71 having a limited memory capacity. This is to facilitate the internal operation of the VDP circuit 52 while eliminating the region. That is, if the storage capacity of the built-in VRAM 71 is increased unnecessarily, there is a concern that the manufacturing cost will rise and the chip area will increase, but if a free area setting that completely eliminates the wasted area is allowed, the internal processing will be performed. This is because it becomes complicated and the processing time for VRAM access cannot be shortened. For the same reason, certain restrictions are placed on securing the index space described below.

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

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

先に説明した通り、ページ領域(b) のインデックス空間IDXiは、水平サイズ128×垂直サイズ128ラインを単位空間としており、また、1ピクセルは32bitの情報で特定されるので、水平サイズHxと垂直サイズWxの設定に基づいて、データサイズ(bit長)=32×128×Hx×128×Wxのインデックス空間IDXiが確保されたことになる。なお、ページ領域(b) のインデックス空間IDXiの先頭アドレス(空間先頭アドレス)は、内部的に自動付与される。 As described above, the index space IDXi in the page area (b) has a horizontal size of 128 × a vertical size of 128 lines as a unit space, and one pixel is specified by 32 bits of information, so that it is perpendicular to the horizontal size Hx. Based on the setting of the size Wx, the index space IDXi of the data size (bit length) = 32 × 128 × Hx × 128 × Wx is secured. The start address (space start address) of the index space IDXi in 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のインデックス空間が確保されたことになる。 Further, when the index space IDXi is provided in the arbitrary area (c), the arbitrary start address (space start address) STx and the multiple information of the arbitrary horizontal size Hx are predetermined corresponding to the arbitrary index number i. It is set in the index table register RGij of (ST2). Here, "arbitrary" is premised on a predetermined condition, and the horizontal size Hx is arbitrarily determined in units of 256 bits, the lower 11 bits of the head address STx is 0, and is arbitrarily determined in units of 2048 bits. As explained above, the vertical size of the arbitrary area is fixed to the 2048 line, so based on the setting of the horizontal size Hx, after the start address STx, the data size (bit length) = 2048 x Hx index. Space has been secured.

具体的には、メイン表示装置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 of horizontal size 1280 × vertical line 2048 are set in one or a plurality of predetermined index table registers RGij by specifying each index number. As the frame buffer FBb of the sub-display device DS2, a pair of index spaces of horizontal size 480 × vertical line 2048 are set in one or a plurality of predetermined index table registers RGj, each specifying an index number. If the number of horizontal pixels of the display device does not match an integral multiple of 256 bits / 32 bits, the horizontal size of each index space is larger than the number of horizontal pixels of the display device, and 256/32 = 8. Set to a value that is an integral multiple of, to minimize the occurrence of wasted memory area.

以上のように、ページ領域(b) と、任意領域(c) について、必要なサイズ情報やアドレス情報を所定のインデックステーブルレジスタRGijに各々設定することで、必要個数のインデックス空間IDXiが生成される(ST2)。そして、この設定処理(ST2)に対応して、各インデックス空間IDXiのアドレス情報やサイズ情報を特定するインデックステーブルIDXTBLが自動的に構築される。図14(a)に示す通り、インデックステーブルIDXTBLには、各インデックス空間IDXiの先頭アドレスが、その他の必要情報と共に記憶されており、VDP回路52内部でのデータ転送時や、外部記憶リソース(Resource)からのデータ取得時に参照される(図15参照)。なお、AAC領域(a) のインデックス空間IDXiは、必要時に自動生成され、自動消滅するので、ステップST2の設定処理は不要である。 As described above, the required number of index space IDXi is generated by setting the required size information and address information for the page area (b) and the arbitrary area (c) in the predetermined index table register RGij. (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. 14A, the start address of each index space IDXi is stored in the index table IDXTBL together with other necessary information, and is stored at the time of data transfer inside the VDP circuit 52 or as an external storage resource (Resource). ) (See FIG. 15). Since the index space IDXi in the AAC area (a) is automatically generated and automatically disappears when necessary, the setting process of step ST2 is unnecessary.

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

また、本実施例では、ページ領域(a) に、IPストリーム動画のデコード領域となる必要個数のインデックス空間IDXiを確保し、インデックス番号iを付与することにしている。但し、初期的には、背景動画(IPストリーム動画)のためのインデックス空間IDXだけを確保している。そして、画像演出(変動演出や予告演出)における必要性に応じて、インデックステーブルレジスタRGijへの設定処理や、ディスプレイリストDLの指示コマンドに基づいて、ページ領域(a) のインデックス空間IDXjを増やし、その後、不要になれば、そのインデックス空間IDXjを開放するようにしている。すなわち、図14(a)は、定常動作時のインデックステーブルIDXTBLを示している。 Further, in the present embodiment, the required number of index space IDXi, which is the decoding area of the IP stream moving image, is secured in the page area (a), and the index number i is assigned. However, initially, only the index space IDX 0 for the background moving image (IP stream moving image) is secured. Then, the index space IDXj in the page area (a) is increased based on the setting process in the index table register RGij and the instruction command of the display list DL according to the necessity in the image effect (variation effect or notice effect). After that, when it becomes unnecessary, the index space IDXj is released. That is, FIG. 14A shows the index table IDXTBL during steady 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 described in the display list DL, and the index table IDXTBL contains the start address of the automatically generated index space IDXj. And other necessary information is set automatically. In this embodiment, this AAC region (a) is used as a decoding region for still images and other textures.

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

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

Figure 2021186577
In this embodiment, the necessary setting process (ST3) includes at least the processes (SS30 to SS43) shown in Table 1. The steps SS30 to SS43 are not limited in the order of processing, and can be executed in any order regardless of the following description order.
Figure 2021186577

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

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

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

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

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

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

具体的には、メイン表示装置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)に整合する。 Specifically, for the main display device DS1, the number of cycles of the horizontal cycle TH is set to THc = 1662, and the number of lines of the vertical cycle TV is set to TVl = 1083. Further, the horizontal standby time WTh = 382 and the vertical standby time WTv = 59 lines are set. On the other hand, for the sub-display device DS2, for example, the number of cycles of the horizontal cycle TH is set to THc = 519, the number of lines of the vertical cycle TV is set to TVl = 867, the horizontal standby time is set to WTh = 39, and the vertical standby time is set to WTv = 67 lines. Will be done. In addition, THc-WTh = 519-39 = 480, TVl-WTv = 867-67 = 800, which matches the number of pixels of the sub-display device (horizontal 480 × vertical 800).

何れにしても、ステップ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 processing of step SS32, and the number of cycles THc (=) of the horizontal period TH is determined for the main display device DS1 by the processing of steps SS35 to SS36. As a result of defining 1662) and the number of lines TVl (= 1083) of the vertical period TV, the display period of one frame is determined as THc × TVl / F dot. Specifically, the display period of one frame is 1083 × 1662/108 MHz = 16.667 mS, and the frame rate FR is determined to be 1/60 second.

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

次に、本実施例では、サブ表示装置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 the predetermined display register RGij (SS37). Further, regarding 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を出力することになる。 By the way, when the main display device DS1 does not require the horizontal synchronization signal HS or the vertical synchronization signal VS, the above processing (SS37 to SS38) for the main display device DS1 is unnecessary. However, if the setting process of steps SS37 to SS38 is omitted, the default value set at the time of power reset functions, so that the display device 74A also outputs the horizontal synchronization signal HS and the vertical synchronization signal VS. It will be.

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

この動作は、メイン表示装置DS1に対して、水平待機時間WTh=382クロックの間に、水平フロントポーチHPv=16、パルス幅PWh=40、水平バックポーチBPv=326の水平同期信号HSが出力され、また、垂直待機時間WTv=59ラインの間に、垂直フロントポーチHPv=0、パルス幅PWv=3、垂直バックポーチBPv=56の垂直同期信号VSが出力されることを意味する。但し、メイン表示装置において、これらの同期信号が無視されることは前記した通りである。 In this operation, the horizontal synchronization signal HS of the horizontal front pouch HPv = 16, the pulse width PWh = 40, and the horizontal back pouch BPv = 326 is output to the main display device DS1 during the horizontal standby time WTh = 382 clocks. Further, it means that a vertical synchronization signal VS having a vertical front pouch HPv = 0, a pulse width PWv = 3, and a vertical back pouch BPv = 56 is output during the vertical standby time WTv = 59 lines. However, as described 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 the predetermined system control register RGij is set so as not to output the horizontal synchronization signal HS and the vertical synchronization signal VS. When such a mask setting is provided, the output terminal of the horizontal synchronization signal HS of the VDP circuit 52 and the output terminal of the vertical synchronization signal VS can maintain a fixed value of H level or L level.

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

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

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

次に、メイン表示装置DS1を駆動する表示回路74Aに関する表示レジスタRGij(DSPAINDEX )と、サブ表示装置DS2を駆動する表示回路74Bに関する表示レジスタRGij(DSPBINDEX )に、各々、「表示領域(0)」と「表示領域(1)」を設定して、各表示領域を定義する(SS41)。 Next, the display register RGij (DSPAINDEX) relating to the display circuit 74A driving the main display device DS1 and the display register RGij (DSPBINDEX) relating to the display circuit 74B driving the sub-display device DS2 are respectively "display area (0)". And "display area (1)" are set 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 the frame buffer FBa, the index space 254 of the index number 254 in the VRAM arbitrary area (c) is defined as the “display area (0)”, and the index number in the VRAM arbitrary area (c) is defined. The index space 255 of 255 is defined as a "display area (1)" (SS41).

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

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

ここで、今後の書込みが禁止される設定値には、(1) 表示装置DS1,DS2の表示クロックDCKに関する設定値、(2) LVDSのサンプリングクロックに関する設定値、(3) 出力選択回路79の選択動作に関する設定値、(4) 複数の表示装置DS1,DS2の同期関係(表示回路74Bが表示回路74Aの動作周期に従属すること)などが含まれている。なお、第1の禁止設定を解除するソフトウェア処理は存在するが、本実施例では使用していない。但し、必要に応じて使用するのも好適である。 Here, the setting values for which future writing is prohibited include (1) the setting value related to the display clock DCK of the display devices DS1 and DS2, (2) the setting value related to the sampling clock of the LVDS, and (3) the setting value of the output selection circuit 79. It includes setting values related to the selection operation, (4) synchronization relations of a plurality of display devices DS1 and DS2 (the display circuit 74B is dependent on the operation cycle of the display circuit 74A), and the like. Although there is a software process for canceling the first prohibition setting, it is not used in this embodiment. However, it is also preferable to use it as needed.

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

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

なお、以上説明したステップST1〜ST3の初期設定処理は、VDPレジスタRGijのレジスタアドレス値と、そのレジスタRGijへの設定値とを対応させた初期値設定テーブルSETTABLE(図36参照)に基づいて実行される。以上、初期設定処理について説明したので、次に、定常処理(ST4〜ST14)を説明する前に、演出制御CPU63によって制御されるVDP回路52の定常動作(間欠動作)について図30(a)及び図31(b)に基づいて概略的に説明しておく。 The initial setting process of steps ST1 to ST3 described above is executed based on the initial value setting table SETTABLE (see FIG. 36) in which the register address value of the VDP register RGij and the set value of the register RGij are associated with each other. Will be done. Since the initial setting process has been described above, next, before the steady process (ST4 to ST14) is described, the steady operation (intermittent operation) of the VDP circuit 52 controlled by the effect control CPU 63 is shown in FIGS. 30 (a) and 30 (a). A schematic description will be given based on FIG. 31 (b).

VDP回路52の間欠動作は、図30や図31に示す通りであり、プリローダ73を使用しない実施例では、図30(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 FIGS. 30 and 31, and in the embodiment in which the preloader 73 is not used, as shown in FIG. 30A, the display list DLi completed by the effect control CPU 63 is It is issued to the drawing circuit 76 in the operation cycle (T1), and the drawing circuit 76 completes the image data in the frame buffers FBa and FBb by the drawing operation based on the display list DLi. Then, the image data completed in the frame buffers FBa and FBb is output to the display devices DS1 and DS2 by the display circuit 74 in the next operation cycle T1 + δ, and based on the subsequent drawing operation of the display devices DS1 and DS2. , The display screen is detected by the player.

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

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

以上、VDP回路52の間欠動作について概略的に説明したが、上記した図30〜図31の動作を実現するため、演出制御CPU63は、初期処理(ST1〜ST3)の後、割込みカウンタVCNTの値を繰り返し参照して、動作開始タイミングに達するのを待ち、動作開始タイミング(一つ飛びのVブランク開始タイミング)に達すれば、割込みカウンタVCNTをゼロクリアする(ST4)。 Although the intermittent operation of the VDP circuit 52 has been schematically described above, in order to realize the above-mentioned operations of FIGS. 30 to 31, the effect control CPU 63 has the value of the interrupt counter VCNT after the initial processing (ST1 to ST3). Is repeatedly referred to, the operation start timing is waited to be reached, and when the operation start timing (one-step V blank start timing) is reached, the interrupt counter VCNT is cleared to zero (ST4).

その後、定常動作を開始するが、本実施例では、最初に、定常動作を開始すべき動作開始条件を満たしているか否かを判定する(ST5)。なお、この判定タイミングは、図30〜図31に記載のT1,T1+δ、T1+2δ、・・・・のタイミング、つまり、表示装置DS1の垂直帰線期間(VBLANK)の開始タイミングである。なお、表示装置DS2の表示タイミングは、表示装置DS1の表示タイミングに従属するよう、初期設定(ST3)時に設定されている。 After that, steady operation is started, but in this embodiment, it is first determined whether or not the operation start condition for starting steady operation is satisfied (ST5). The determination timing is the timing of T1, T1 + δ, T1 + 2δ, ..., That is, the start timing of the vertical blanking interval (VBLANK) of the display device DS1 shown in FIGS. 30 to 31. The display timing of the display device DS2 is set at the time of initial setting (ST3) so as to depend on the display timing of the display device DS1.

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

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

そして、動作開始条件を満たさない場合(異常/不適合)には、異常回数をカウントする異常フラグERをインクリメントして、ステップST6〜ST8処理をスキップする。異常フラグERは、その他の重大異常フラグABNと共に、ステップST9やST10の処理で判定され、重大異常フラグABNがリセット状態である前提において、連続異常回数が多くない場合(ER≦2)には、正常時と同様に、演出コマンド解析処理を実行する(ST13)。 Then, when the operation start condition is not satisfied (abnormality / nonconformity), the abnormality flag ER for counting the number of abnormalities is incremented, and the steps ST6 to ST8 processing are skipped. The abnormality flag ER is determined in the processing of steps ST9 and ST10 together with the other serious abnormality flag ABN, and if the number of continuous abnormalities is not large (ER ≦ 2) on the premise that the serious abnormality flag ABN is in the reset state, the error flag ER is determined. The effect command analysis process is executed in the same manner as in the normal state (ST13).

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

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

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

ここで、フレーム落ちを回避するため、動作開始条件が成立するまで待機する構成も考えられる。しかし、演出制御CPU63が実行すべき制御処理(ST6〜ST12)は数多く、各々の処理時間を確保する必要があるので、本実施例では、動作開始条件を満たさない場合にフレーム落ちを生じさせている。 Here, in order to avoid dropping frames, a configuration that waits until the operation start condition is satisfied is also conceivable. However, since there are many control processes (ST6 to ST12) to be executed by the effect control CPU 63 and it is necessary to secure each processing time, in this embodiment, a frame drop occurs when the operation start condition is not satisfied. There is.

但し、フレーム落ちが生じたとしても、割込み処理(図22(b))によって進行するランプ演出やモータ演出と比較して、1/30〜2/30秒程度、画像演出の進行が遅れるだけであり、これに遊技者が気付くことはない。しかも、フレーム落ち時には、演出カウンタENの更新処理を含んだ演出シナリオ処理(ST11)や、音声進行処理(ST12)も合わせてスキップされるので、その後に開始されるリーチ演出や予告演出や役物演出において、画像演出、音声演出、ランプ演出、及びモータ演出などの開始タイミングがずれるおそれはない。 However, even if a frame is dropped, the progress of the image effect is only delayed by about 1/30 to 2/30 seconds as compared with the lamp effect and the motor effect that are progressed by the interrupt processing (FIG. 22 (b)). Yes, this is not noticed by the player. Moreover, when the frame is dropped, the effect scenario processing (ST11) including the update process of the effect counter EN and the voice progress process (ST12) are also skipped, so that the reach effect, the advance notice effect, and the accessory to be started after that are also skipped. In the production, there is no possibility that the start timings of the image production, the sound production, the lamp production, the motor production, and the like are shifted.

すなわち、演出シナリオでは、画像演出、音声演出、ランプ演出、モータ演出の開始タイミングと、その後に実行すべき演出内容を一元的に管理しており(図22(f)上部参照)、正常時に限り更新される演出カウンタENによって、開始タイミングを制御しているので、各種の演出の同期が外れることはない。例えば、爆発音と、爆発画像と、役物移動と、ランプフラッシュ動作を複合した演出動作がある場合、フレーム落ちが生じた後であっても、上記した各演出動作は正しく同期して開始される。なお、図22(f)には、暗転演出時の各種演出AM0,AM1を特定する演出シナリオが記載されているが、演出シナリオについては、暗転予告(図41)に関して後述する。 That is, in the effect scenario, the start timings of the image effect, the sound effect, the lamp effect, and the motor effect and the effect contents to be executed after that are centrally managed (see the upper part of FIG. 22F), and only when normal. Since the start timing is controlled by the updated effect counter EN, the synchronization of various effects is not lost. For example, if there is an effect operation that combines an explosion sound, an explosion image, movement of an accessory, and a lamp flash operation, each of the above effect operations is started correctly in synchronization even after a frame drop occurs. To. Note that FIG. 22 (f) describes an effect scenario that specifies various effects AM0 and AM1 at the time of the darkening effect, and the effect scenario will be described later with respect to the darkening notice (FIG. 41).

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

なお、このリセット動作は、WDT回路58が起動して実行されるので、CPU回路51も含め複合チップ50全体がリセット状態となる(図4(b))。そこで、CPU回路51のリセットを回避するべく、演出制御CPU63が、所定のキーワード列(例えば1バイトデータ3個)をパターンチェック回路CHKに出力して、リセット信号RSTをVDP回路52に出力するのも好適である(図36のST100参照)。この場合も、VDP回路52のリセット動作の正常終了を確認した後(ST101)、ステップST4やST13の処理に移行させることになる。 Since this reset operation is executed by starting the WDT circuit 58, the entire composite chip 50 including the CPU circuit 51 is in the reset state (FIG. 4B). Therefore, in order to avoid resetting the CPU circuit 51, the effect control CPU 63 outputs a predetermined keyword string (for example, three 1-byte data) to the pattern check circuit CHK and outputs the reset signal RST to the VDP circuit 52. Is also suitable (see ST100 in FIG. 36). Also in this case, after confirming the normal termination of the reset operation of the VDP circuit 52 (ST101), the process proceeds to the processes of steps ST4 and ST13.

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

以上、異常事態について説明したが、実際には、軽微な場合も含め上記した異常が発生することは殆どなく、ステップST5の処理の後、所定の表示レジスタRGij(DSPACTL /DSPBCTL)への設定に基づき、表示回路74Aと表示回路74Bが読み出すべき画像データを記憶するフレームバッファFBa,FBbの「表示領域」をトグル的に切り換える(ST6)。先に説明した通り、「表示領域(0)」と「表示領域(1)」は、予め初期処理において定義されているので(ST3)、ステップST6の処理では、フレームバッファFBa,FBbについて、今回の「表示領域」が、表示領域(0)/表示領域(1)の何れであるかを特定する。 Although the abnormal situation has been described above, in reality, the above-mentioned abnormality rarely occurs even in a minor case, and after the processing of step ST5, the setting to the predetermined display register RGIj (DSPACTL / DSPBCTL) is performed. Based on this, the "display area" of the frame buffers FBa and FBb for storing the image data to be read by the display circuit 74A and the display circuit 74B is toggled (ST6). As described above, since the "display area (0)" and the "display area (1)" are defined in advance in the initial processing (ST3), in the processing of step ST6, the frame buffers FBa and FBb are used this time. It is specified whether the "display area" of the above is the display area (0) or the 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 outputs image data from the index space 254 (display area (0)) and the index space 255 (display area (1)) for each operation cycle δ. It will be read out and the display device DS1 will be driven. Similarly, the display circuit 74B alternately reads image data from the index space 251 (display area (0)) and the index space 252 (display area (1)) at each operation cycle δ to display the sub-display device DS2. It will be driven. As described above, the display circuit 74 actually performs READ access only to the effective data area in the display area (0) / display area (1).

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

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

ディスプレイリスト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. Then, in this embodiment, in order to realize smooth operation of the data transfer circuit 72, the drawing circuit 76, and the preloader 73, all the instruction commands including the EODL command are executed by an integer N times (N> 0) having a command length of 32 bits. It is limited to the instruction command of. As described above, the instruction command composed of a 32-bit integer N times may 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バイト・・・の何れかの値に調整される。 As described above, since the display list DL of the embodiment is composed of only instruction commands having a command length of 32 bits and an integer N times (N> 0), the data volume value (total amount of data) of the entire display list DL is determined. It is always an integral multiple of the minimum unit of command length (32 bits = 4 bytes). Further, in this embodiment, the data volume value of the display list DL is set to an integral multiple (1 or more) of the minimum data amount Dmin in consideration of the minimum data amount Dmin of the data transfer circuit 72, and the instruction command is used. It is adjusted to be an integral multiple of the minimum unit (4 bytes). For example, if Dmin = 256 bytes, the data volume value of the display list DL is adjusted to any value of 256 bytes, 512 bytes, and so on.

ここで、演出内容の複雑さに応じて、適宜に、256バイトか、又は512バイトに調整するのも好適であるが、本実施例では、表示装置が二個であり、サブ表示装置DS2はそれほど複雑な画像演出を実行させないことを考慮して、ディスプレイリストDLのデータボリューム値を、常に、256バイトに調整している。 Here, it is also preferable to appropriately adjust to 256 bytes or 512 bytes according to the complexity of the effect content, but in this embodiment, there are two display devices, and the sub display device DS2 is The data volume value of the display list DL is always adjusted to 256 bytes in consideration of not performing such a complicated image effect.

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

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

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

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

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

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

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

特に限定されないが、本実施例では、ディスプレイリストDLに、先ず、メイン表示装置DS1に関する指示コマンド列(L11〜L16)を記載し、その後、サブ表示装置DS2に関する指示コマンド列(L17〜L20)を記載するようにしている。また、標準手法(B)を採用して、ディスプレイリストDLのデータボリューム値を固定長(256バイト)に調整している。なお、図23は、事実上、演出制御CPU63が、RAM59のリストバッファ領域に、指示コマンドを書き込む手順や、ディスプレイリストDLに基づく描画回路76の動作を示したものともなっている。 Although not particularly limited, in the present embodiment, the instruction command sequence (L11 to L16) relating to the main display device DS1 is first described in the display list DL, and then the instruction command sequence (L17 to L20) relating to the sub display device DS2 is described. I am trying to describe it. Further, 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. 23 also shows, in effect, the procedure in which the effect control CPU 63 writes an instruction command to the list buffer area of the RAM 59, and the operation of the drawing circuit 76 based on the display list DL.

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

図14(c)では、その下方左側の実描画領域にL11と付しているが、これは、指示コマンドL11によって、フレームバッファFBa上の実描画領域が、フレームバッファFBaの基点アドレス(0,0)位置から始まると特定されたことを意味している。ただし、実描画領域の縦横寸法や、その実描画領域を具体的に特定するインデックス番号は、未だ未確定であり、後述する指示コマンド(SETINDEX)L13によって確定する。なお、指示コマンドL11ではZバッファの使用の有無も指定される。 In FIG. 14 (c), L11 is attached to the actual drawing area on the lower left side thereof, which means that the actual drawing area on the frame buffer FBa is set to the base point address (0,) of the frame buffer FBa by the instruction command L11. 0) It means that it was specified to start from the position. However, the vertical and horizontal dimensions of the actual drawing area and the index number that specifically specifies the actual drawing area are still undecided, and are determined by the instruction command (SETINDEX) L13 described later. The 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の仮想的な二次元空間である(図14(c)参照)。 Next, the upper left base point coordinates (Xs, Ys) and the lower right diagonal point coordinates (Xe, Ye) are set on the virtual drawing space by the instruction command (SETDAVF) of the environment setting system, and the W × H dimension is set. The drawing area of is defined (L12). Here, the virtual drawing space is a virtual two-dimensional space in the X direction ± 8192 and the Y direction ± 8192 that can be drawn by an instruction command for drawing (SPRITE command or the like) (see FIG. 14 (c)). ..

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

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

そして、描画回路76が指示コマンドL11,L12を実行した後は、仮想描画空間に描画された描画内容のうち、描画領域に含まれるものだけが、フレームバッファFBaの実描画領域に反映されることになる。したがって、描画領域からはみ出した部分や、図14(c)において作業領域と記載された部分の描画内容は、そのままでは、フレームバッファに反映されることはない。なお、仮想描画空間に作業領域を確保する場合には、仮想描画空間の非描画領域が使用される。 Then, after the drawing circuit 76 executes the instruction commands L11 and L12, only the drawing contents drawn in the virtual drawing space, which are included in the drawing area, are reflected in the actual drawing area of the frame buffer FBa. become. Therefore, the drawing contents of the portion protruding from the drawing area and the portion described as the work area in FIG. 14C are not reflected in the frame buffer as they are. When securing a work 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 this operation cycle, the drawing circuit 76 defines where to draw the drawing content to be drawn based on the display list DL to be completed (L13). Specifically, for the frame buffer FBa of the display device DS1 having a double buffer configuration, the index space IDX which is the "write area" of the drawing contents based on the display list DL this time is specified (L13). Specifically, by the SETINDEX command, which is a texture setting command, (1) the frame buffer FBa is secured in an arbitrary area, and (2) the index space IDX N that becomes the "write area" is arbitrary. The index number N on the area is specified.

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

本実施例の場合、フレームバッファFBaのインデックス番号は、255又は254であり(図14(a))、トグル的に切り換えた何れかが指定される(L13)。なお、このインデックス番号は、メイン制御処理のステップST6で指定された表示領域(0)/(1)ではない方のインデック番号である。例えば、ステップST6の処理において、表示回路74に対して、表示領域(0)が指定されている場合には、表示領域(1)が、描画回路76にとっての「書込み領域」となる。 In the case of this embodiment, the index number of the frame buffer FBa is 255 or 254 (FIG. 14 (a)), and either toggled switch is specified (L13). Note that this index number is an index number that is not the display area (0) / (1) specified in step ST6 of the main control process. For example, in the process of step ST6, when the display area (0) is designated for the display circuit 74, the 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, after the correspondence between the actual drawing area (W × H logical space) and the drawing area (W × H virtual space) is generally defined by the instruction command L11 and the instruction command L12, By the instruction command L13 (SETINDEX) that specifically specifies the index space IDX, the virtual space of W × H is associated with the logical space of W × H in the specific index space IDX.

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

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

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

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

先に説明した通り、本実施例では、背景動画が、IPストリーム動画で構成されている。そこで、例えば、背景動画について、これを展開すべきインデックス空間IDXを、テクスチャ設定系のSETINDEXコマンドで、ページ領域(b) のインデックス空間IDXと特定した上で、テクスチャロード系のTXLOADコマンドを記載する。なお、TXLOADコマンドでは、今回LOADすべき動画フレームについて、CGROM55の先頭アドレス(テクスチャのSourceアドレス)と、展開後のデータサイズ(水平×垂直)を特定する必要がある。 As described above, in this embodiment, the background moving image is composed of the IP stream moving image. Therefore, for example, for the background video, the index space IDX to be expanded is specified as the index space IDX 0 in the page area (b) by the SETINDEX command of the texture setting system, and then the TXLOAD command of the texture load system is described. do. In the TXLOAD command, it is necessary to specify the start address (texture source address) of the CGROM 55 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 above TXLOAD command is executed in the VDP circuit 52, one moving image frame (texture) of the background moving image is first acquired in the AAC area (a), and then the page area (page area (texture) is automatically activated by the GDEC75. b) Expands to index space IDX 0 in. Next, this one moving image frame will be drawn in the virtual drawing space. In this case, the SETINDEX command (texture setting system) may be used to set "index space IDX 0 in the page area (b) is the texture to be processed thereafter", but the TXLOAD command is continuously processed. If so, the description of this SET INDEX command can be omitted.

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

続いて、プリミティブ描画系の指示コマンドであるSPRITEコマンドによって、「ページ領域(b) のインデックス空間IDXのテクスチャ(背景動画の一動画フレーム)」を、仮想描画空間の適所(矩形のDestination 領域)に描画するべくSPRITEコマンドを記載する。なお、SPRITEコマンドには、仮想描画空間のDestination 領域について、その左上端点と、右下端点を特定する必要がある。 Then, by using the SPRITE command, which is an instruction command for primitive drawing, " texture of index space IDX 0 in page area (b) (one video frame of background video)" is set in place in the virtual drawing space (rectangular destination area). Describe the SPRITE command to draw in. For the SPRITE command, it is necessary to specify the upper left end point and the right lower end point of the Destination area of the virtual drawing space.

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

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

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

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

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

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

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

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

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

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

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

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

このような任意の描画領域の定義が終われば(L18)、次に、ダブルバッファ構成の表示装置DS2のフレームバッファFBbについて、今回のディスプレイリストDLに基づく描画内容の「書込み領域」となるインデックス空間IDXを特定する(L19)。このインデックス空間IDXのインデックス番号は、フレームバッファFBbに関し、メイン制御処理のステップST6で指定された表示領域(0)/(1)に対応しない方のインデック番号である。 After the definition of such an arbitrary drawing area is completed (L18), next, for the frame buffer FBb of the display device DS2 having a double buffer configuration, the index space becomes the "write area" of the drawing contents based on the display list DL this time. Identify the IDX (L19). The index number of the index space IDX is the index number of 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に完成させた演出画像を使用することもできる。 After that, the instruction command sequences L20 to L22 for the sub display device DS2 are listed in the same manner as the instruction command sequences L14 to L16 for the main display device DS1. It is also possible to use the effect image completed in the index space IDX 0.

以上、ディスプレイリストDLを構成するL11〜L22の指示コマンドは、本実施例では、全て、コマンド長が32ビットの整数倍のものに限定されている。そして、先に説明した通り、本実施例のディスプレイリストDLのデータボリューム値(データ総量)を、固定長(256バイト)に調整しており、ダミーコマンドたる必要数のNOP コマンド(L23)を付加した上で、EODLコマンド(L24)で終結させている。すなわち、図23の実施例では、前記した標準手法(B)を採っている。 As described above, all the instruction commands of L11 to L22 constituting the display list DL are limited to those having a command length that is an integral multiple of 32 bits in this embodiment. Then, as described above, the data volume value (total amount of data) of the display list DL of this embodiment is adjusted to a fixed length (256 bytes), and the required number of NOP commands (L23) as dummy commands are added. After that, it is terminated by the EODL command (L24). That is, in the embodiment of FIG. 23, the above-mentioned standard method (B) is adopted.

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

以上、ディスプレイリストDLの構成について詳細に説明したが、演出制御CPU63は、完成させた固定バイト長のディスプレイリストDLをVDP回路に発行することになる(ST7〜ST8)。図24は、演出制御CPU63が、転送回路72の転送ポートレジスタTR_PORT を直接WRITE アクセスして、描画回路76にディスプレイリストDLを発行するDL発行処理(図22のST8)を説明するフローチャートである。なお、転送ポートレジスタTR_PORT は、データ転送回路72の動作内容を規定するデータ転送レジスタRGijの一種である。 Although the configuration of the display list DL has been described in detail above, the effect control CPU 63 will issue the completed display list DL having a fixed byte length to the VDP circuit (ST7 to ST8). FIG. 24 is a flowchart illustrating a DL issuance process (ST8 in FIG. 22) in which the effect control CPU 63 directly accesses the transfer port register TR_PORT of the transfer circuit 72 to issue a display list DL to the drawing circuit 76. The transfer port register TR_PORT is a type of data transfer register RGij that defines 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」と略すことがある。 In order to realize the DL issuance process, it is first necessary to set necessary setting values in a plurality of 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 via the inside of the data transfer circuit 72 are specified in the predetermined data transfer register RGij. The setting contents are not particularly limited, but here, when the data transfer operation is executed while checking the remaining amount of the FIFO buffer with respect to the CPU IF unit 56 via the ChB control circuit 72b and the CPU bus control unit 72d. Set (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 the predetermined data transfer register RGij. As described above, in this embodiment, the total amount of data in the display list DL is adjusted to an integral multiple of 256 bytes, so that value is set. The total amount of data = 256 × N is also an integer N times the minimum amount of data Dmin of the data transfer circuit 72. Normally, the multiple N is 1 or 2, but in the following description, it will be described as N = 1.

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

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

なお、迅速かつ円滑なAnalyze 処理には、ディスプレイリストDLに列記する指示コマンドが、コマンド長32bit整数倍の指示コマンドに限定されている点も有効に寄与する。図30(a)におけるタイミングt1,t2,t3,t4は、ステップST23の動作タイミングを示している。なお、ディスプレイリストDLの発行処理(ST8)は、素早く終わるので、図30〜図31では発行処理の要する時間幅を記載していない。 It should be noted that the fact that the instruction commands listed in the display list DL are limited to the instruction commands having a command length of 32 bits, which is an integral multiple of the command length, also contributes effectively to the quick and smooth Analyze processing. The timings t1, t2, t3, and t4 in FIG. 30A indicate the operation timing of step ST23. Since the display list DL issuance process (ST8) is completed quickly, the time width required for the issuance process is not shown in FIGS. 30 to 31.

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

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

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

そして、管理カウンタCNをデクリメントしつつ(ST29)、管理カウンタCNがゼロになるまで、ステップST26〜ST29の処理を繰り返す(ST30)。この実施例の場合、データ転送回路72には、最低データ量Dminが規定されているので、FIFOバッファに最低データ量Dminが蓄積されたタイミングで、データ転送動作が実行されることになり、間欠的な転送動作となる。 Then, while decrementing the management counter CN (ST29), the processes of steps ST26 to ST29 are repeated until the management counter CN becomes zero (ST30). In the case of this embodiment, since the minimum data amount Dmin is specified in the data transfer circuit 72, the data transfer operation is executed at the timing when the minimum data amount Dmin is accumulated in the FIFO buffer, which is 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 if the settings to the VDP register RGIj are inconsistent due to the influence of noise or the like, step ST26 is performed. In the determination, the state of the FIFO buffer Full may not be resolved even after waiting for a predetermined time. Then, in such a case, the initialization data is set in the predetermined VDP register RGij, the drawing circuit 76 and the data transfer circuit 72 are initialized, the serious abnormality flag ABN is set, and the DL issuance process is performed. Finish (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 operation and have completed some processing. Therefore, in the initialization processing of the drawing circuit 76, the contents of the drawing register RGij are used. While maintained, (1) set all internal parameters that may be set by the display list DL to the initial values, (2) set all internal control circuits to the initial state, (3). It includes initializing the GDEC75 and (4) initializing the cache state of the AAC area. Similarly, the initialization process of the data transfer circuit 72 includes the initialization process 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) 描画実行開始を設定する実行制御レジスタ(図24の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 the predetermined drawing register may be initialized. The predetermined drawing registers that are cleared to the initial values include (a) an execution control register that sets the start of drawing execution (see ST23 in FIG. 24), (b) a status register that indicates the execution status of the drawing circuit 76, and ( c) Contains a status register that identifies the location 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 effect control CPU 63 function thereafter, and the composite chip 50 or the VDP circuit 52 is abnormally reset (ST10a), so that the drawing circuit 76 And the process of initializing the data transfer circuit 72 is not always essential. On the other hand, when the drawing circuit 76 and the data transfer circuit 72 are initialized, abnormal recovery can be expected as a result. Therefore, the DL issuance process is repeated by returning to the process of step ST20 without setting the serious abnormality flag ABN. It is also suitable to carry out.

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

図24(b)は、正常な動作状態について、確認的に図示したものである。図示の通り、発行されたディスプレイリストDLは、列記された指示コマンドの順番に、描画回路76(ディスプレイリストアナライザ)によって解析され、各指示コマンドに基づく動作が実行される。この動作は、ディスプレイリストDLの発行処理や、データ転送回路72のデータ転送動作(ST26〜ST30)に並行して実行される。 FIG. 24B is a confirmatory illustration 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 listed instruction commands, and the operation based on each instruction command is executed. This operation is executed in parallel with the display list DL issuance process 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), and then the GDEC75 is automatically started to execute the decoding operation and decode. Later data is expanded into a given index space. Further, depending on the instruction command, the geometry engine 77 and others function, but in any case, the image data corresponding to the display list DL is completed in the frame buffers FBa and FBb by the cooperation of each part of the drawing circuit 76. Will be.

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

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

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

図25の処理では、次に、初期化処理が正常に完了したことを、データ転送回路72と描画回路76の動作状態を特定する所定のステイタスレジスタRGijをREADして確認する(ST21)。そして、万一、初期化できない場合には、重大異常フラグABNをセットして処理を終える(ST22)。但し、このような事態は、実際にはほぼ発生しない。 In the process of FIG. 25, next, it is confirmed by READing the predetermined status register RGij that specifies the operating state of the data transfer circuit 72 and the drawing circuit 76 that the initialization process is completed normally (ST21). If the initialization cannot be performed, the serious abnormality flag ABN is set and the process is completed (ST22). However, such a situation rarely occurs in reality.

次に、データ転送回路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 via the inside of the data transfer circuit 72 are set in the predetermined data transfer register RGij. The setting content is not particularly limited, but here, it is set to follow the setting to the DMAC circuit 60 regarding the transfer protocol from the CPU IF unit 56 to the CPU bus control unit 72d via the ChB control circuit 72b (ST23). ).

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

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

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

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

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

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

ところで、ここまでの説明は、指示コマンドの実質ビット長が、全て32bitの整数倍であることを前提にした。しかし、ディスプレイリストDLや指示コマンドの構成は必ずしも限定されないので、以下、このような場合について説明する。 By the way, the description so far is based on the premise that the actual bit lengths of the instruction commands are all integral multiples of 32 bits. However, since the configuration of the display list DL and the instruction command is not necessarily limited, such a case will be described below.

例えば、前記した無調整手法(C)を採る場合も含め、ディスプレイリストDLのデータ総量Xが、32bitの整数倍ではない任意値Xである場合には、ステップST44の処理では、この任意値Xを、適切な転送量MODに調整した上で、転送総サイズの設定処理を実行する。ここで、適切な転送量MODは、一オペランド転送についての設定内容と、データ転送回路72の最低データ量Dmin(バイト)とに基づいて規定される。 For example, when the total data amount X of the display list DL is an arbitrary value X that is not an integral multiple of 32 bits, including the case where the above-mentioned non-adjustment method (C) is adopted, in the processing of step ST44, this arbitrary value X Is adjusted to an appropriate transfer amount MOD, and then the transfer total size setting process is executed. Here, the appropriate transfer amount MOD is defined 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 one operand transfer setting is N bytes × M times, the transfer amount MOD is adjusted to an integer multiple of N × M (bytes) and an integral multiple of Dmin (bytes). Will be done. For example, if N × M = 8 × 4 and Dmin = 256, the arbitrary value X (= 300) bytes are adjusted to the transfer amount MOD (= 512) bytes.

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

このような動作を実現するため、本実施例では、ステップST45の処理に続いて、データ転送回路72の転送動作を開始させて処理を終える(ST27)。その後、データ転送回路72は、DMAC回路60から最低データ量Dminを一単位として、ディスプレイリストDLの指示コマンド列を受け、これを描画回路76に転送する。そして、描画回路76は、ディスプレイリストDLの指示コマンドに基づいて描画動作を実行する。したがって、ステップST27の処理の後、演出制御CPU63は、図22のステップST11の処理を開始することができ、VDP回路52による描画動作(DMAC回路60によるDL発行処理)と並行して、音声演出やランプ演出やモータ演出を制御することができる。 In order to realize such an operation, in this embodiment, following the process of step ST45, the transfer operation of the data transfer circuit 72 is started and the process is completed (ST27). After that, the data transfer circuit 72 receives the instruction command sequence of 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. Then, the drawing circuit 76 executes the drawing operation based on the instruction command of the display list DL. Therefore, after the process of step ST27, the effect control CPU 63 can start the process of step ST11 of FIG. 22, and the sound effect is produced in parallel with the drawing operation by the VDP circuit 52 (DL issuance process by the DMAC circuit 60). It is possible to control the lamp effect and the motor effect.

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

ところで、DL発行処理をステップST27の処理で終える図25の構成は、必ずしも、限定されない。例えば、図32〜図33のように、音声演出、ランプ演出、及びモータ演出を、他のCPUが制御する場合には、ステップST27の処理の後、DMAC回路60やデータ転送回路72の正常動作を確認するのが好ましい。図26は、図25のステップST27に続く動作であり、正常動作の確認処理を説明するフローチャートである。 By the way, the configuration of FIG. 25 in which the DL issuance process is completed by the process of step ST27 is not necessarily limited. For example, as shown in FIGS. 32 to 33, when another CPU controls the sound effect, the lamp effect, and the motor effect, the DMAC circuit 60 and the data transfer circuit 72 normally operate after the processing of step ST27. It is preferable to confirm. FIG. 26 is an operation following step ST27 in FIG. 25, and is a flowchart illustrating a confirmation process of normal operation.

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

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

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

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

そして、この準備作業が終われば、DMAC回路60の動作を規定する所定の動作制御レジスタREGにクリア値を設定して、DMAC回路60を初期化する(ST52)。そして、重大異常フラグABNをセットしてDL発行処理を終える。なお、この場合、ステップST52やST55の処理によって、異常回復が期待できるので、重大異常フラグABNをセットすることなく、図25のステップST20に戻って、DL発行処理を再実行するのも好適である。但し、DL発行処理(ST23〜ST27)の再実行回数をカウントし、再実行回数が限界値を越えれば、重大異常フラグABNをセットしてDL発行処理を終える必要がある。 Then, when this preparatory work is completed, a clear value is set in a predetermined operation control register REG that defines the operation of the DMAC circuit 60, and the DMAC circuit 60 is initialized (ST52). Then, the serious abnormality flag ABN is set and the DL issuance process is completed. In this case, since abnormal recovery can be expected by the processing of steps ST52 and ST55, it is also preferable to return to step ST20 of FIG. 25 and re-execute the DL issuance processing without setting the serious abnormality flag ABN. be. 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 the limit value, set the serious abnormality flag ABN and finish the DL issuance process.

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

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

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

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

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

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

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

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

以上を踏まえて、図28について説明すると、演出制御CPU63は、先ず、所定のデータ転送レジスタRGijと、所定の描画レジスタRGijに各々クリア値を設定して、データ転送回路72と、描画回路76を初期化する(ST20)。この処理は、図25のST20の処理と同一内容である。次に、この初期化処理が正常に終了したことを確認し(ST21)、万一、所定時間経過しても初期化が完了しない場合には、重大異常フラグABNをセットして処理を終える(ST22)。 Based on the above, FIG. 28 will be described. First, the effect control CPU 63 sets clear values in the predetermined data transfer register RGij and the predetermined drawing register RGij, respectively, and sets the data transfer circuit 72 and the drawing circuit 76. Initialize (ST20). This process has the same contents as the process of ST20 in FIG. Next, it is confirmed that this initialization process is completed normally (ST21), and if the initialization is not completed even after a predetermined time has elapsed, the serious abnormality flag ABN is set and the process is completed (ST21). 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 the drawing circuit 76 ends normally, so that the transmission via the inside of the data transfer circuit 72 is subsequently set in the predetermined 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 start address of the DL buffer BUF'of the external DRAM 54 in which the rewrite list DL'is stored is set in the predetermined data transfer register RGij (ST24).

また、この書換えリストDL’について、転送総サイズを、所定のデータ転送レジスタRGijに設定する(ST25)。先に説明した通り、書換えリストDL’のデータ総量は、ディスプレイリストDLのデータ総量と同じであり、具体的には、例えば、256バイトである。 Further, for this rewrite list DL', the total transfer size is set in the predetermined data transfer register RGij (ST25). As described 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 specifically, for example, 256 bytes.

次に、所定の描画レジスタRGijへの設定値に基づいて、描画回路76の描画動作を開始させる(ST26)。図30(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 in the predetermined drawing register RGij (ST26). The timings t1, t2, t3, and t4 in FIG. 30A are also the operation timings of step ST26. Then, the operation of the data transfer circuit 60 is started and the process is completed based on the set value in the predetermined data transfer register RGij (ST27). After that, the effect control CPU 63 shifts to the display list generation process (ST7) that is effective in the next operation cycle without being particularly involved in the operation of the data transfer circuit 72 or the drawing circuit.

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

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

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

図29(a)は、図29(b)の動作を説明するフローチャートであり、図24のフローチャートとほぼ同じである。但し、CPUIF部56からChC制御回路72cを経由すること、及び、CPUバス制御部72dに関し、そのFIFOバッファの残量をチェックしながらデータ転送動作を実行すると設定する(ST20)。なお、以下の説明では、ChC制御回路72cを、便宜上、「転送回路ChC」と略すことがある。 29 (a) is a flowchart illustrating the operation of FIG. 29 (b), which is almost the same as the flowchart of FIG. 24. However, it is set that the data transfer operation is executed from the CPU IF unit 56 via the ChC control circuit 72c and the CPU bus control unit 72d while checking the remaining amount of the FIFO buffer (ST20). In the following description, the ChC control circuit 72c may be abbreviated as "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 by the standard method (B)) is set to the predetermined data transfer register RGij, and the management counter CN is initially set to 64 (ST21). Next, the data transfer operation via the transfer circuit ChC is set to the start state (ST22), and the preload operation is started based on the set value in the preload register RGij that defines the operation of the preloader 73 (ST23).

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

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

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

また、図31(b)は、演出制御CPU63が生成したディスプレイリストを、生成したその動作周期ではなく、一動作周期遅れてプリローダ73に発行する実施例を示している。この場合は、プリローダ73は、一動作周期(δ)のほぼ全時間を使用してプリロード動作を実行することができるので、この場合も、フレーム落ちの可能性が低減される。 Further, FIG. 31B shows an embodiment in which the display list generated by the effect control CPU 63 is issued to the preloader 73 with a delay of one operation cycle instead of the generated operation cycle. In this case, since the preloader 73 can execute the preload operation using almost the entire time of one operation cycle (δ), the possibility of frame dropping is reduced in this case as well.

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

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

このような構成を採る場合には、CPU回路51は、図22(a)のステップST12の処理と、図22(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. 22 (a) and the process of FIG. 22 (b), and takes a sufficient time to perform a complicated display. A list DL can be generated, and more complicated and advanced image effects such as 3D (Dimension) can be realized. In such a case, the display list becomes large, but in that case, the total amount of data in the display list DL is adjusted to 512 bytes or more by adding a dummy command to N × 256 bytes. ..

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

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

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

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

以上、メイン表示装置DS1及びサブ表示装置DS2のフレームバッファFBa,FBbとして、各表示装置の水平ピクセル数に完全一致する水平サイズのインデックス空間を構築する実施例について説明した。図35(a)は、この関係を確認的に図示したものであり、仮想描画空間上の描画領域(W×H)と、インデックス空間上の有効データ領域(実描画領域W×H)とが、何れも、表示装置の水平/垂直ピクセル数に一致する場合を示している。 As described above, an example of constructing a horizontally sized index space that completely matches the number of horizontal pixels of each display device as the frame buffers FBa and FBb of the main display device DS1 and the sub display device DS2 has been described. FIG. 35A is a confirmatory illustration of this relationship, in which a drawing area (W × H) on the virtual drawing space and an effective data area (actual drawing area W × H) on the index space are shown. , Both show cases that match the number of horizontal / vertical pixels of the display device.

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

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

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

一方、インデックス空間における基点アドレス(X,Y)は、ディスプレイリストの指示コマンドL11によって、所定の描画レジスタに設定される。先に説明した通り、具体的には、環境設定系の指示コマンドL11(SETDAVR )によって、インデックス空間IDX上の左上基点アドレスが、例えば(0,0)と規定される。そして、実描画領域w×hの左上端点を、定常処理において適宜に移動させれば、図35(b)下部の右傾斜線で示す実描画領域W×Hの描画内容は、縦/横/斜めに適宜に移動することになる。 On the other hand, the base point address (X, Y) in the index space is set in a predetermined drawing register by the instruction command L11 of the display list. As described above, specifically, the upper left base point address on the index space IDX is defined as (0,0) by the instruction command L11 (SETDAVR) of the environment setting system. Then, if the upper left end point of the actual drawing area w × h is appropriately moved in the steady processing, the drawing content of the actual drawing area W × H shown by the right inclined line at the lower part of FIG. Will move appropriately.

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

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

図36は、このような場合の処理を説明する図面であり、初期設定処理(ST3)において設定すべき設定値は、制御メモリ53(PROGMROM)に記憶された設定値テーブルSETTABLEに纏められている。なお、図22のステップST3では、説明を省略しているが、(a) 初期値設定テーブルSETTABLEに基づいて初期設定処理を実行すること、及び、(b) 初期値設定テーブルSETTABLEの内容については、図22の実施例も、以下に説明する内容と実質的に同じである。 FIG. 36 is a drawing for explaining the processing in such a case, and the setting values to be set in the initial setting processing (ST3) are summarized in the setting value table SET TABLE stored in the control memory 53 (PROGMROM). .. Although the description is omitted in step ST3 of FIG. 22, the contents of (a) the initial value setting table SETTABLE and (b) the initial value setting table SETTABLE are executed. , The embodiment of FIG. 22 is also substantially the same as the content described below.

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

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

そして、図36の実施例では、繰り返し初期設定される設定値には、(1)DMA転送動作についての設定値、(2)VRAMに対する設定値、(3)割込みに関する設定値、(4)表示回路74に関する設定値、及び、(5)描画回路76に関する設定値が含まれている。 Then, in the embodiment of FIG. 36, the set values that are repeatedly initially set include (1) a set value for the DMA transfer operation, (2) a set value for the VRAM, (3) a set value for an interrupt, and (4) a display. The set value related to the circuit 74 and (5) the set value related to the drawing circuit 76 are included.

(1)DMA転送動作に関する設定値は、例えば、ステップST41で規定する動作条件の前提条件となる設定値であり、図25(c)や図29(c)における動作条件の違いに拘わらず固定的に適用される基本設定値である。具体的には、(a) DAMC回路60に内蔵されたFIFOバッファ(N段)がどれだけ開放されると、転送元に転送要求をするかの閾値(例えば全体の1/2段)、(b) 転送先や転送元とハンドシェイク動作をするか否か(例えばNo)などの設定値が含まれる。 (1) The set value related to the DMA transfer operation is, for example, a set value that is a precondition for the operating condition specified in step ST41, and is fixed regardless of the difference in the operating condition in FIGS. 25 (c) and 29 (c). It is a basic setting value that is applied to the target. Specifically, (a) a threshold value (for example, 1/2 stage of the whole) of how much the FIFO buffer (N stage) built in the DAMC circuit 60 is released to make a transfer request to the transfer source, ( b) Includes settings such as whether or not to perform a handshake operation with the transfer destination or transfer source (for example, No).

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

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

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

(5)描画回路76に関する設定値には、描画異常割込みが発生するまでのフリーズ時間の設定値が含まれている。この設定値は、例えば、垂直同期信号の周期の整数倍として設定される。図22(d)において説明した通り、ここで規定されたフリーズ期間、描画回路76がVRAMをアクセスしない場合には、描画回路76が個別的にリセットされ(ST16b)、描画回路76に対する動作パラメータが再設定される(ST16c)。 (5) The setting value related to the drawing circuit 76 includes the setting value of the freeze time until the drawing abnormality interrupt occurs. This set value is set, for example, as an integral multiple of the period of the vertical synchronization signal. As described in FIG. 22D, 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 set. It is reset (ST16c).

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

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

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

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

また、本実施例では、異常判定処理(図22や図27のST5)を設けて描画回路76の動作完了を1/30秒毎に判定しているので、更に制御負担を軽減するべく、実質的に何も実行しない描画異常割込み処理(図27(d))を設けても良い。図27(d)に示す通り、この構成では、描画異常割込み時、直ちにIRET(Interrupt Return)命令を実行してメイン制御処理に戻るので、描画回路76のフリーズ状態などは、そのまま継続されることになる。しかし、本実施例では、図22や図27のステップST5の処理で、フレーム落ち回数を、異常フラグERでカウントしており、いずれWDT回路58か、パターンチェック回路CHKが起動するので、図27(d)の構成は、図27(b)や図27(c)の構成と実質的に同じである。 Further, in this embodiment, since the abnormality determination process (ST5 in FIGS. 22 and 27) is provided to determine the completion of the operation of the drawing circuit 76 every 1/30 second, the control load is substantially reduced. A drawing abnormality interrupt process (FIG. 27 (d)) that does not execute anything may be provided. As shown in FIG. 27 (d), in this configuration, the IRET (Interrupt Return) instruction is immediately executed and the process returns to the main control process at the time of a drawing abnormality interrupt, so that the freeze state of the drawing circuit 76 is continued as it is. become. However, in this embodiment, in the process of step ST5 of FIGS. 22 and 27, the number of dropped frames is counted by the abnormality flag ER, and the WDT circuit 58 or the pattern check circuit CHK will be activated eventually, so that FIG. 27 The configuration of (d) is substantially the same as the configuration of FIGS. 27 (b) and 27 (c).

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

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

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

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

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

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

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

以上を踏まえて、電源投入時の初期設定処理について図38(a)に基づいて説明する。なお、これらの処理は、図22や図27のステップST3の処理の一部として実行される。 Based on the above, the initial setting process at the time of turning on the power will be described with reference to FIG. 38 (a). It should be noted that these processes are executed as a part of the process of step ST3 of FIGS. 22 and 27.

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

これら何れの場合でも、次に、演出制御CPU63は、リセット動作が正常に完了したことを確認した上で(ステップSD2)、最初に、サウンドデータ領域の先頭アドレスSNDstを、音声回路SNDのシステム制御レジスタRGijに設定する(ステップSD3)。次に、所定のシステム制御レジスタに所定値を設定することで、サウンドROMヘッダ情報HDを内部回路に記憶させる。なお、サウンドROMヘッダ情報HDは、前記した6要素(HDst,HDvl,PHst,PHvl,SCMDst,SCMDvl)であり、図38(c)に記載の通りである。 In any of these cases, the effect control CPU 63 next confirms that the reset operation has been completed normally (step SD2), and then first controls the head address SNDst of the sound data area to the system control of the voice circuit SND. Set to the register RGij (step SD3). Next, by setting a predetermined value in a predetermined system control register, the sound ROM header information HD is stored in the internal circuit. The sound ROM header information HD is the above-mentioned 6 elements (HDst, HDvl, PHst, PHvl, SCMDst, SCMDvl), and is as shown in FIG. 38 (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 operated normally, and if it cannot be completed normally, the voice circuit is individually reset by the reset path 4B or 4C. However, since normal termination can be confirmed normally, the phrase header information HD and the phrase data PH are subsequently transferred to the external DRAM 54 using the data transfer circuit 72 (step SD6). In the data transfer circuit 72, the head address BGN of the transfer destination, the head address HDst of the transfer source, the total amount of transfer data HDvl + FDvl, and the like are appropriately designated.

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

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

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

なお、CGROM55の本体部は、演出制御CPU63からアクセスされることはなく(アクセス不可)、専らVDP回路52からアクセスされるので、アドレス空間CSiに位置付けられることない。先に説明した通り、CGROM55の本体部を、複数のメモリデバイスで構成することもでき、このような場合には、図19(a)のステップSP20の処理によって、SPA0〜SPA1のデバイス区間に区分することで、メモリデバイスの特性に適合した最適なREADアクセスが可能となる。 Since the main body of the CGROM 55 is not accessed from the effect control CPU 63 (inaccessible) and is accessed exclusively from the VDP circuit 52, it is not positioned in the address space CSi. As described above, the main body of the CGROM 55 can be configured by a plurality of memory devices. In such a case, the device section of SPA0 to SPA1 is divided by the process of step SP20 in FIG. 19A. By doing so, the optimum READ access suitable for the characteristics of the memory device becomes possible.

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

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

このような構成を採った場合には、電源リセット後、リセットアサート期間に、以下の動作1〜動作4がプログラム処理を経ることなく自動的に実行される。先ず、HBTRMSL 端子への入力値に基づいてアドレス空間CS0のバス幅が特定され、また、BTBWD 端子への入力値に基づいてメモリ種別が自動的に特定され、所定のVDPレジスタRGijに各々設定される(動作1)。この場合のメモリ種別は、パラレルI/F(Interface )形式を採るメモリ素子、シーケンシャルI/F形式を採るメモリ素子に大別される。 When such a configuration is adopted, the following operations 1 to 4 are automatically executed without going through the program processing during the reset assert period after the power supply is reset. 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 each is set in the predetermined VDP register RGIj. (Operation 1). The memory type in this case is roughly classified into a memory element that adopts the parallel I / F (Interface) format and a memory element that adopts the sequential I / F format.

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

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

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

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

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

シングルリンク伝送路の場合、ドットクロック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 is also 108 MHz. Also in this case, it is preferable that the dot clock DCK and the LVDS clock CLK are generated by using the oscillator OSC2 as a common supply source and in the same generation process.

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

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

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

最後に動画演出について整理しておく。先に説明した通り、本実施例では、変動演出の殆どは、静止画でなく、動画を使用して実現される。また、変動演出中は、暗転予告など特別な場合を除いて、複数の動画が並列的に動作している。
<初期処理>
Finally, I will summarize the video production. As described above, in this embodiment, most of the variable effects are realized by using moving images instead of still images. In addition, during the variable effect, a plurality of moving images are operating in parallel except for special cases such as a blackout notice.
<Initial processing>

動画演出を実行するため、本実施例では、電源投入後の初期処理において、AAC領域やページ領域が確保され(図22のST1)、ページ領域内に、インデックス番号で特定される一又は複数のインデックス空間が確保される。 In order to execute the moving image effect, in this embodiment, an AAC area and a page area are secured in the initial process after the power is turned on (ST1 in FIG. 22), and one or more specified by the index number in the page area. Index space is secured.

具体的には、単位空間4096ビット×128ラインの基本サイズの整数N倍のページ領域が一又は複数個確保され、各々に、一意のインデックス番号が付与される(図22のST2)。本実施例では、1ピクセルを32ビット(ARGB8888)で表現するので、ページ領域の単位空間は、128ピクセル×128ラインとなる。 Specifically, one or a plurality of page areas having an integer N times the basic size of a unit space of 4096 bits × 128 lines are secured, and a unique index number is assigned to each page area (ST2 in FIG. 22). In this embodiment, since one pixel is represented by 32 bits (ARGB8888), the unit space of the page area is 128 pixels × 128 lines.

なお、先に説明した通り、ページ領域内のインデックス空間は、必要に応じて開放することも、追加することもできるので、変動演出の必要時に、ページ領域内に新規のインデックス空間を生成しても良い。 As explained earlier, the index space in the page area can be opened or added as needed, so when a variation effect is required, a new index space is created in the page area. Is also good.

ところで、本実施例では、初期処理で確保されるAAC領域は、静止画やIストリーム動画のデコード領域として使用される。この場合、画像素材(テクスチャ)のメモリリードを指定するロードコマンドTXLOADで、テクスチャ(動画一フレームや静止画)の展開後のサイズを規定すると、デコード領域の先頭アドレスと、水平サイズが自動的にAAC領域に確保される。
<定常動作時のIPストリーム動画の再生>
By the way, in this embodiment, the AAC area secured by the initial processing is used as a decoding area for still images and I-stream moving images. In this case, if you specify the size of the texture (one frame of video or still image) after expansion with the load command TXLOAD that specifies the memory read of the image material (texture), the start address of the decode area and the horizontal size are automatically set. It is secured in the AAC area.
<Playback of IP stream video during steady operation>

上記の初期処理の後、適宜なタイミングで一又は複数の動画演出が実行される。ここで、IPストリーム動画の再生を指示するディスプレイリストDLには、以下のコマンドCM1〜CM5が、描画回路への指示コマンドとして必要となる。 After the above initial processing, one or more moving image effects are executed at appropriate timings. Here, the following commands CM1 to CM5 are required as instruction commands to the drawing circuit in the display list DL instructing the reproduction of the IP stream moving image.

図41(a)は、ディスプレイリストDLの要部を図示したものであり、図23の指示コマンド列L16を再掲したものである。以下、デコード領域として、ページ領域を使用する実施例を説明するが、任意領域を使用することもでき、この場合は、ページ領域を任意領域と読み替えれば良い。但し、ページ領域のインデックス空間は、任意の水平サイズ×垂直サイズが2048ラインであり垂直方向に無駄が生じる。
(1)テクスチャコマンドSETINDEX(CM1)
FIG. 41A is a diagram showing a main part of the display list DL, and is a reprint of the instruction command sequence L16 of FIG. 23. Hereinafter, an embodiment in which a page area is used as the decoding area will be described, but an arbitrary area can also be used. In this case, the page area may be read as an arbitrary area. However, in the index space of the page area, any horizontal size × vertical size is 2048 lines, which causes waste in the vertical direction.
(1) Texture command SETINDEX (CM1)

先ず、テクスチャコマンドSETINDEX(CM1)によって、デコード領域として、任意領域を使用するか、ページ領域を使用するかを指定するが、IPストリーム動画の場合、実施例では、ページ領域のインデックス空間iを使用する。より具体的には、必要な動作パラメータを付加したテクスチャコマンドSETINDEXをディスプレイリストDLに記載して、「ページ領域」と、「テクスチャ」と、を選択し、使用するインデックス空間を特定するインデックス番号iを規定する。 First, the texture command SETINDEX (CM1) specifies whether to use an arbitrary area or a page area as the decoding area. However, in the case of an IP stream video, the index space i of the page area is used in the embodiment. do. More specifically, the texture command SETINDEX with necessary operation parameters is described in the display list DL, "page area" and "texture" are selected, and the index number i that specifies the index space to be used is specified. Is specified.

なお、任意領域を使用する場合には、テクスチャコマンドSETINDEXで、「任意領域」と、「テクスチャ」と、を選択し、任意領域のインデックス空間を特定するインデックス番号iを規定する。
(2)ロードコマンドTXLOAD(CM2)
When using an arbitrary area, use the texture command SETINDEX to select "arbitrary area" and "texture", and specify the index number i that specifies the index space of the arbitrary area.
(2) Load command TXLOAD (CM2)

次に、素材のメモリリードを指定するロードコマンドTXLOAD(CM2)によって、必要なテクスチャ(動画を構成する単位フレーム)をCGROMからロードすることを指定する。具体的には、必要な動作パラメータを付加したロードコマンドTXLOADを、ディスプレイリストDLに記載する。すると、VDP回路52では、指定されたテクスチャを、CGROMの所定領域からロードし、これをデコードしたデコードデータを、ページ領域のインデックス空間iに展開することになる。 Next, the load command TXLOAD (CM2), which specifies the memory read of the material, specifies that the required texture (unit frame constituting the moving image) is loaded from the CGROM. Specifically, the load command TXLOAD to which the necessary operation parameters are added is described in the display list DL. Then, in the VDP circuit 52, the designated texture is loaded from the predetermined area of the CGROM, and the decoded data obtained by decoding this is expanded in the index space i of the page area.

ロードコマンドTXLOADに付加される動作パラメータには、(1) テクスチャ(動画を構成する単位フレーム)を、先頭フレームとしてデコードするか、継続フレームとしてデコードするかの区別、(2) テクスチャの展開後の水平サイズ、(3) テクスチャの展開後の垂直サイズ、(4) テクスチャのソースアドレス(テクスチャが記憶されているCGROMの先頭アドレス)、が含まれている。
(3)基本情報セットコマンドSETTXATR(CM3)
The operation parameters added to the load command TXLOAD include (1) distinction between decoding the texture (unit frame that composes the moving image) as the first frame or as the continuous frame, and (2) after expanding the texture. It includes the horizontal size, (3) the vertical size after the texture is expanded, and (4) the source address of the texture (the start address of the CGROM in which the texture is stored).
(3) Basic information set command SETTXATR (CM3)

次に、ディスプレイリストDLに、必要な動作パラメータを付加した基本情報セットコマンドSETTXATR(CM3)を記載して、テクスチャのカラーモードが、ARGB8888モード(1ピクセルが32ビット長)であるなど、このテクスチャの基本情報を設定する。 Next, the basic information set command SETTXATR (CM3) to which the necessary operation parameters are added is described in the display list DL, and the color mode of the texture is ARGB8888 mode (1 pixel is 32 bits long). Set the basic information of.

また、ピクセル間のブレンド処理についても必要な情報を設定する。ブレンド処理とは、各ピクセルの色を規定するRGB値や、透過度などを規定するα値について、フレームバッファなどへの描画済のピクセルとの混合演算を意味する。本実施例では、変動演出時、常に、複数の動画が並列動作しているので、透過度などに関するαブレンド演算が必要となる。
(4)画素間ブレンド演算系のコマンド(CM4)
Also, set the necessary information about the blending process between pixels. The blending process means a mixing operation of an RGB value that defines the color of each pixel and an α value that defines transparency and the like with pixels that have already been drawn in a frame buffer or the like. In this embodiment, since a plurality of moving images are always operating in parallel during the variable effect, an α-blending calculation related to transparency and the like is required.
(4) Pixel-to-pixel blend calculation system command (CM4)

そのため、ディスプレイリストDLには、必要な動作パラメータを付加した画素間ブレンド演算系のコマンド(CM4)が記載され、必要な動作パラメータによって、αブレンド演算式、その他が特定される。
(5)スプライトコマンドSPRITE(CM5)
Therefore, the inter-pixel blend calculation system command (CM4) to which the necessary operation parameters are added is described in the display list DL, and the α blend calculation formula and others are specified by the necessary operation parameters.
(5) Sprite command PRITE (CM5)

続いて、インデックス空間iに展開されたテクスチャを、仮想描画空間(図14(c)参照)の適所に貼り付けるべく、必要な動作パラメータを付加したスプライトコマンドSPRITE(CM5)を、ディスプレイリストDLに記載する。このスプライトコマンドSPRITEでは、テクスチャの貼り付け先を特定する仮想描画空間の左上頂点(X0、Y0)と、右下頂点(X1、Y1)と、が指定される。 Next, in order to paste the texture expanded in the index space i to the appropriate place in the virtual drawing space (see FIG. 14 (c)), the sprite command SPRITE (CM5) with the necessary operation parameters added to the display list DL. Describe. In this sprite command SPRITE, the upper left vertex (X0, Y0) and the lower right vertex (X1, Y1) of the virtual drawing space that specifies the paste destination of the texture are specified.

また、この左上頂点(X0、Y0)と右下頂点(X1、Y1)で特定される矩形領域に貼り付けるべきテクスチャについて、テクスチャUV座標空間でのUV値、つまり、(U0,V0)と(U1,V1)が指定される。なお、貼り付けるべきテクスチャは、既に、テクスチャコマンドSETINDEXで特定されているので、改めて、テクスチャそのものを特定する必要はない。 Further, regarding the texture to be pasted in the rectangular area specified by the upper left vertex (X0, Y0) and the lower right vertex (X1, Y1), the UV value in the texture UV coordinate space, that is, (U0, V0) and ( U1, V1) are specified. The texture to be pasted has already been specified by the texture command SETINDEX, so there is no need to specify the texture itself again.

また、スプライトコマンドSPRITEに代えて、三角ポリゴンコマンドTRIANGLEを使用して、テクスチャを傾斜して描画することもできる。但し、三角ポリゴンコマンドTRIANGLEについては、傾斜/回転予告演出に関して、後述する。
<定常動作時のIストリーム動画の再生>
Also, instead of the sprite command SPRITE, the triangular polygon command TRIANGLE can be used to tilt the texture and draw it. However, the triangular polygon command TRIANGLE will be described later with respect to the tilt / rotation notice effect.
<Playback of I-stream video during steady operation>

Iストリーム動画の場合は、静止画の再生の場合と同様、AAC領域にデコード対象のテクスチャ(Iストリーム動画を構成する単位フレーム)をロードすれば足りる。すなわち、テクスチャコマンドSETINDEX(CM1)は、不要であり、ディスプレイリストDLの構成は、以下の通りである。なお、通常、コマンドCM3やコマンドCM4も必要となるが、説明の冗長さを回避するため記載を省略している。(1)ロードコマンドTXLOAD(CM2) In the case of an I-stream moving image, it is sufficient to load the texture to be decoded (unit frame constituting the I-stream moving image) in the AAC area as in the case of reproducing a still image. That is, the texture command SETINDEX (CM1) is unnecessary, and the configuration of the display list DL is as follows. Normally, command CM3 and command CM4 are also required, but the description is omitted in order to avoid redundancy in the description. (1) Load command TXLOAD (CM2)

ディスプレイリストDLに、動作パラメータを付加したロードコマンドTXLOADを記載して、テクスチャ(Iストリーム動画を構成する単位フレーム)を、CGROMの所定領域からAAC領域にロードすると指定する。すると、VDP回路52は、ロードしたテクスチャを自動的にデコードして、デコードデータをAAC領域の自動確保空間に展開する。(2)スプライトコマンドSPRITE(CM5) The load command TXLOAD with the operation parameters added is described in the display list DL, and it is specified that the texture (unit frame constituting the I-stream moving image) is loaded from the predetermined area of the CGROM to the AAC area. Then, the VDP circuit 52 automatically decodes the loaded texture and expands the decoded data in the automatically secured space in the AAC region. (2) Sprite command SPRITE (CM5)

続いて、AAC領域の自動確保空間に展開されたテクスチャを、仮想描画空間の適所に貼り付けるべく、必要な動作パラメータを付加したスプライトコマンドSPRITEを、ディスプレイリストDLに記載する。先に説明した通り、スプライトコマンドSPRITEでは、テクスチャの貼り付け先を特定する仮想描画空間の左上頂点と、右下頂点と、が指定される。 Subsequently, a sprite command SPRITE to which necessary operation parameters are added in order to paste the texture expanded in the automatically secured space of the AAC area to a suitable place in the virtual drawing space is described in the display list DL. As explained earlier, the sprite command SPRITE specifies the upper left vertex and the lower right vertex of the virtual drawing space that specifies the paste destination of the texture.

なお、スプライトコマンドSPRITEに代えて、三角ポリゴンコマンドTRIANGLEを使用して、テクスチャを、傾斜姿勢で描画することもできる。 Instead of the sprite command SPRITE, the triangular polygon command TRIANGLE can be used to draw the texture in an inclined posture.

また、テクスチャを拡大縮小したい場合には、スプライトコマンドSPRITEに先行して、補完コマンドSETTXSMPLNG を記載すれば良い。補完コマンドSETTXSMPLNG によって、テクスチャのサンプリング方法(ポイントサンプリング/バイリニアフィルタリング)を特定すれば、テクスチャを拡大/縮小時の補完処理が特定される。 If you want to enlarge or reduce the texture, you can write the completion command SETTXSMPLNG before the sprite command SPRITE. If the completion command SETTXSMPLNG specifies the texture sampling method (point sampling / bilinear filtering), the completion process when enlarging / reducing the texture is specified.

拡大処理や縮小処理は、スプライトコマンドSPRITEが指定する仮想描画空間の左上頂点と、右下頂点に基づいて自動的に実行される。すなわち、左上頂点と右下頂点で規定される矩形空間の大きさに基づいて、自動的に拡大又は縮小される。そして、ポイントサンプリングを選択した場合、拡大処理は、単純に、モザイク状に実行され、縮小処理は、画素の間引きによって実行される。一方、バイリニアフィルタリングを選択した場合には、不特定のピクセルの情報は、特定済みの周囲のピクセスの情報の加重平均値となる。
<保留画像の微少変動演出や拡大/縮小演出>
The enlargement processing and reduction processing are automatically executed based on the upper left vertex and the lower right vertex of the virtual drawing space specified by the sprite command SPRITE. That is, it is automatically enlarged or reduced based on the size of the rectangular space defined by the upper left vertex and the lower right vertex. When point sampling is selected, the enlargement process is simply executed in a mosaic pattern, and the reduction process is performed by thinning out the pixels. On the other hand, when bilinear filtering is selected, the information of the unspecified pixel becomes the weighted average value of the information of the identified surrounding pixels.
<Slight fluctuation effect of reserved image and enlargement / reduction effect>

ところで、本実施例の遊技機では、図柄始動口への入賞球が4個を超えると、変動演出が保留状態となり、保留個数を示す保留画像(静止画スプライトやIストリーム又はIPストリーム動画)が表示装置に表示される。 By the way, in the gaming machine of this embodiment, when the number of winning balls to the symbol start port exceeds four, the variable effect is put on hold, and a hold image (still image sprite, I stream or IP stream moving image) showing the number of holds is displayed. It is displayed on the display device.

この場合、大当りか否かの抽選結果を示唆するように、保留画像を上下左右に微妙に変動させたり、回転させたり、拡大/縮小することが演出上好ましい。このような構成を採ると、一の静止画や動画を用意するだけで、多彩な演出が可能となり、CGデータ量を抑制することができる。 In this case, it is preferable in terms of production that the reserved image is slightly changed up, down, left, and right, rotated, and enlarged / reduced so as to suggest the lottery result of whether or not it is a big hit. If such a configuration is adopted, various effects can be produced by simply preparing one still image or moving image, and the amount of CG data can be suppressed.

保留画像(静止画スプライトやストリーム動画)の回転は、三角ポリゴンコマンドTRIANGLEによって実行される。一方、微少変動や拡大/縮小演出は、保留画像(静止画スプライトやストリーム動画)を、スプライトコマンドSPRITEによる貼り付け位置の指定や、貼り付け領域の指定によって実現される。そして、拡大/縮小時のディスプレイリストには、スプライトコマンドSPRITEに先行して、補完コマンドSETTXSMPLNG を記載される必要がある。
<セリフ予告>
Rotation of the pending image (still image sprite or stream video) is executed by the triangular polygon command TRIANGLE. On the other hand, minute fluctuations and enlargement / reduction effects are realized by specifying the pasting position or the pasting area of the reserved image (still image sprite or stream moving image) by the sprite command SPRITE. Then, in the display list at the time of enlargement / reduction, it is necessary to describe the completion command SETTXSMPLNG prior to the sprite command SPRITE.
<Serif notice>

セリフ予告演出とは、セリフ文字の表示を開始した後、所定時間遅れてセリフ音の音声演出を開始する予告演出を意味する。音声演出をあえて遅らせることで、先行して表示される文字表示のインパクトを高めることができる。 The serif notice effect means a notice effect in which the voice effect of the serif sound is started with a predetermined time delay after the display of the serif character is started. By deliberately delaying the sound production, the impact of the character display displayed in advance can be enhanced.

このセリフ動画演出において、一群のセリフ文字は、1文字ずつ、又は、一単位ずつ、順番に表示される。なお、一群のセリフ文字の表示開始に先行して、キャラクタ画像が表示される場合もある。また、セリフ文字の表示開始後、所定時間の無音期間を設けた上で、セリフ音の出力を開始するのも好適である。 In this serif moving image effect, a group of serif characters are displayed in order, one character at a time or one unit at a time. A character image may be displayed prior to the start of displaying a group of serif characters. Further, it is also preferable to start the output of the serif sound after providing a silent period of a predetermined time after the display of the serif character is started.

また、セリフ文字の表示後にキャラクタ画像を表示するようにしてもよく、その場合にはセリフ文字の表示を開始した後、所定時間遅れてセリフ音の音声演出を開始し、その後キャラクタ画像が表示されるという流れとなる。この場合、先行して行われるセリフ文字に対応する音声演出は、その後表示されるキャラクタ画像に対応したものとすることが好適である。また、音声演出の実行後、所定時間の無音期間を設けた上で、キャラクタ画像を表示するようにしてもよい。 Further, the character image may be displayed after the serif characters are displayed. In that case, after the serif characters are displayed, the serif sound is started to be produced with a delay of a predetermined time, and then the character image is displayed. It becomes a flow. In this case, it is preferable that the voice effect corresponding to the serif character performed in advance corresponds to the character image displayed after that. Further, after the sound effect is executed, the character image may be displayed after a silent period of a predetermined time is provided.

セリフ予告演出が、IPストリーム動画で実行される場合、音声演出に先行して発行されるディスプレイリストDLには、少なくとも、以下のコマンドが記載されている。 When the dialogue preview effect is executed by the IP stream moving image, at least the following command is described in the display list DL issued prior to the sound effect.

先ず、テクスチャコマンドSETINDEX(CM1)で、テクスチャ(例えば、IPストリーム動画の構成フレーム)のロード先を、例えば、ページ領域に設定する。 First, the texture command SETINDEX (CM1) is used to set the load destination of the texture (for example, the constituent frame of the IP stream video) to, for example, the page area.

次に、TXLOADコマンド(CM2)で、テクスチャ(動画を構成する単位フレーム)をCGROMからページ領域にロードし、αブレンド演算に関する必要な情報をセットし(CM3,CM4)、最後に、ページ領域にロードしたテクスチャを、スプライトコマンドSPRITE(CM5)で、仮想描画空間の所定矩形領域に貼り付ける。ここで、貼り付け先の矩形領域を適宜に移動させることで、動画再生位置を変化させるもの好適である。 Next, use the TXLOAD command (CM2) to load the texture (unit frame that composes the moving image) from the CGROM into the page area, set the necessary information related to the α blend operation (CM3, CM4), and finally in the page area. The loaded texture is pasted into a predetermined rectangular area of the virtual drawing space by the sprite command SPRITE (CM5). Here, it is suitable to change the moving image reproduction position by appropriately moving the rectangular area of the pasting destination.

なお、セリフ予告演出が、IPストリーム動画で実行される場合は、ロードコマンドTXLOADと、補完コマンドSETTXSMPLNG と、スプライトコマンドSPRITEが使用される。なお、拡大/縮小の処理がない場合には、補完コマンドSETTXSMPLNG が省略される。 When the dialogue preview effect is executed in the IP stream video, the load command TXLOAD, the completion command SETTXSMPLNG, and the sprite command SPRITE are used. If there is no enlargement / reduction processing, the completion command SETTXSMPLNG is omitted.

ところで、このセリフ予告演出時には、デジタルアンプ29に供給する2ビット長の増幅特性設定値NCDRCを変更して、デジタルアンプ29がDRC動作をするよう設定している。ここで、DRC動作とは、図8に関して説明した通り、入力レベルが最高レベルの−24dBに至るまでの小音域では、標準増幅率(実施例は0dB)の+12dBの強調増幅を実行し、その後は、増幅率を抑制した直線的な増幅特性とする動作である。このため、、1文字ずつ、又は、一単位ずつ、発声されるセリフ音声が、BGM音などに紛れるおそれがない。 By the way, at the time of this dialogue advance notice production, the 2-bit length amplification characteristic setting value NCDRC supplied to the digital amplifier 29 is changed so that the digital amplifier 29 operates as a DRC. Here, the DRC operation is, as described with respect to FIG. 8, in the low frequency range up to the maximum input level of -24 dB, the enhancement amplification of the standard amplification factor (0 dB in the example) is performed, and then the emphasis amplification is performed. Is an operation of linear amplification characteristics in which the amplification factor is suppressed. Therefore, there is no possibility that the dialogue voice uttered character by character or unit by unit is mixed with the BGM sound or the like.

但し、デジタルアンプ29に伝送する増幅特性設定値NCDRCを変更する処理は、デジタルアンプ29を非動作状態にして実行する必要がある。図21(b)の下段は、この関係を図示したものであり、無音制御信号MUTENをLレベルにして、NCDRC値を変更することを示している。 However, the process of changing the amplification characteristic set value NCDRC to be transmitted to the digital amplifier 29 needs to be executed with the digital amplifier 29 in the non-operating state. The lower part of FIG. 21B illustrates this relationship, and shows that the silence control signal MUTEN is set to the L level and the NCDRC value is changed.

演出制御CPU63が、無音制御信号MUTENをLレベルにすると、デジタルアンプ29は、自らの内部動作に110μS程度を要して、増幅動作の停止状態に移行し、その後の所定時間(0.5mS程度)は、無音制御信号MUTENのH/Lレベルに拘わらず、動作停止(無音)状態を維持するよう構成されている。 When the effect control CPU 63 sets the silence control signal MUTEN to the L level, the digital amplifier 29 takes about 110 μS for its own internal operation, shifts to the stopped state of the amplification operation, and then for a predetermined time (about 0.5 mS). ) Is configured to maintain the operation stop (silence) state regardless of the H / L level of the silence control signal MUTEN.

そこで、本実施例では、上記の動作を考慮して、定常処理(図22のST4〜ST14)の一動作周期δ=1/30秒(≒33mS)の後に、増幅特性設定値NCDRCを変化させ、更に、その一動作周期(δ)後に、無音制御信号MUTENをHレベルに戻している。このように、本実施例では、増幅特性設定値NCDRCの変更に、2*δ≒67mS程度の時間を要するが、更にその一動作周期の後に、セリフ発生の音声演出を開始している。なお、最後の一動作周期(δ)は、デジタルアンプ29に対する制御待機時間(3mS)を考慮したものである。 Therefore, in this embodiment, in consideration of the above operation, the amplification characteristic set value NCDRC is changed after one operation cycle δ = 1/30 second (≈33 mS) of the steady processing (ST4 to ST14 in FIG. 22). Further, after one operation cycle (δ), the silence control signal MUTEN is returned to the H level. As described above, in this embodiment, it takes about 2 * δ≈67 mS to change the amplification characteristic set value NCDRC, but after one operation cycle, the voice production of the dialogue generation is started. The final operation cycle (δ) takes into consideration the control standby time (3 mS) for the digital amplifier 29.

セリフ発生の音声演出は、以上の手順で開始されるが、その後、DRC動作を終了する場合も同じ手順を採ることになる。すなわち、67mS程度の無音時間を経て、GAIN2(=0dB)の標準増幅動作が再開されることになる。なお、0.1秒以下の無音期間(67mS)であるので、遊技者に違和感を与えるおそれはない。
<暗転予告>
The voice effect of generating dialogue is started by the above procedure, but the same procedure is adopted when the DRC operation is ended after that. That is, the standard amplification operation of GAIN2 (= 0 dB) is restarted after a silent time of about 67 mS. Since the silence period is 0.1 seconds or less (67 mS), there is no risk of giving the player a sense of discomfort.
<Notice of darkening>

暗転予告とは、一連の変動演出中に、表示画面全体が、突然それまでの表示態様から変化して、画面全体又はほぼ全体が真っ暗になる暗転画像が出現する演出を意味する。この予告演出には、先行する動画演出を終了させた後、所定時間、暗転画像を表示するディスプレイリストDLが発行された後、先行動画の発展予告として、後続する発展動画演出が開始される第1態様と、暗転画像を表示するディスプレイリストDLを使用することなく、発展動画演出の開始時に、その動画の一部として暗転画像が出現する第2態様とが含まれる。 The darkening notice means an effect in which the entire display screen suddenly changes from the previous display mode during a series of variable effects, and a darkened image appears in which the entire screen or almost the entire screen becomes pitch black. In this advance notice production, after the preceding video effect is finished, a display list DL that displays a darkened image is issued for a predetermined time, and then the subsequent development video effect is started as a development notice of the preceding video. One aspect includes a second aspect in which a darkened image appears as a part of the moving image at the start of the developed moving image effect without using the display list DL for displaying the darkened image.

また、暗転画像の表示中に当選期待度を示唆する所定演出を実行するように構成してもよい。更にまた、暗転画像は表示画面のほぼ全体が真っ暗になるものに限らず、それまでの表示画面の視認性を低下させる視認性低下画像であってもよい。具体的には透過性を有する黒色画像である。 Further, it may be configured to execute a predetermined effect suggesting the degree of expectation of winning while displaying the blackout image. Furthermore, the darkened image is not limited to an image in which almost the entire display screen is completely dark, and may be an image with reduced visibility that reduces the visibility of the display screen up to that point. Specifically, it is a transparent black image.

何れにしても、暗転予告は、専用の演出シナリオに基づいて実行される。図22(f)の上段は、暗転予告の演出シナリオを例示したものであり、実行すべき画像演出、音声演出、ランプ演出、及び、モータ演出が、予告演出開始からの経過時間と共に特定されている。暗転予告が開始されると、先ず、無音制御信号MUTENがLレベルに遷移され、これに合わせて、不気味な画像演出0(AM0)と、ランプ演出(AM0)と、モータ演出(AM0)が同期して開始される。 In any case, the blackout notice is executed based on a dedicated production scenario. The upper part of FIG. 22F exemplifies the effect scenario of the blackout notice, and the image effect, the sound effect, the lamp effect, and the motor effect to be executed are specified together with the elapsed time from the start of the notice effect. There is. When the blackout notice is started, the silence control signal MUTEN first shifts to the L level, and in accordance with this, the eerie image effect 0 (AM0), the lamp effect (AM0), and the motor effect (AM0) are synchronized. And start.

図21(b)の上段には、無音制御信号MUTENがLレベルに遷移される動作が記載されている。先に説明した通り、無音制御信号MUTENがLレベルになると、デジタルアンプ29は、自らの内部動作に110μS程度を要して、増幅動作の停止状態に移行し、その後の所定時間(0.5mS)は、無音制御信号MUTENのH/Lレベルに拘わらず、動作停止(無音)状態を維持するよう構成されている。 In the upper part of FIG. 21B, the operation of transitioning the silence control signal MUTEN to the L level is described. As described above, when the silence control signal MUTEN reaches the L level, the digital amplifier 29 takes about 110 μS for its own internal operation, shifts to the stopped state of the amplification operation, and then for a predetermined time (0.5 mS). ) Is configured to maintain the operation stop (silence) state regardless of the H / L level of the silence control signal MUTEN.

但し、本実施例では、暗転予告時の無音期間を、1秒以上に設定しているので、デジタルアンプ29の上記の構成が問題になることはない。そして、適当な無音期間が経過すると(タイミングXX)、演出制御CPU63は、無音制御信号MUTENをHレベルに復帰させる。 However, in this embodiment, since the silence period at the time of the blackout notice is set to 1 second or more, the above configuration of the digital amplifier 29 does not pose a problem. Then, when an appropriate silence period elapses (timing XX), the effect control CPU 63 returns the silence control signal MUTEN to the H level.

先に説明した通り、このデジタルアンプ29では、無音制御信号MUTENをHレベルに復帰させた後も、2.5mS程度の時間は、正常動作が担保されないので、本実施例では、演出シナリオに基づき、無音制御信号MUTENをHレベルに復帰させた次の動作周期(タイミングXX+1)で、暗転予告用の音声演出1(AM1)を、その他の暗転演出(AM1)と同期して開始している。本実施例の一動作周期δは、33mSであるので、制御待機時間(3mS)として十分である。 As described above, in this digital amplifier 29, even after the silence control signal MUTEN is returned to the H level, normal operation is not guaranteed for a time of about 2.5 mS. Therefore, in this embodiment, based on the production scenario. In the next operation cycle (timing XX + 1) in which the silence control signal MUTEN is returned to the H level, the voice effect 1 (AM1) for warning of darkening is started in synchronization with the other darkening effect (AM1). Since one operation cycle δ of this embodiment is 33 mS, it is sufficient as a control standby time (3 mS).

以上、暗転予告時の音声演出を説明したが、図41(b)は、第1態様の暗転画像を実現するディスプレイリストDLの構成を図示したものである。先ず、任意領域に確保したフレームバッファFBaについて、インデックス空間上の端点アドレスを特定する(L11)。表示装置DS1の描画領域を仮想描画空間に定義する(L12)。具体的には、仮想描画空間の左上基点と、右下基点の座標を所定レジスタに設定する。 Although the sound effect at the time of the blackout notice has been described above, FIG. 41B illustrates the configuration of the display list DL that realizes the blackout image of the first aspect. First, the endpoint address on the index space is specified for the frame buffer FBa secured in the arbitrary area (L11). The drawing area of the display device DS1 is defined in the virtual drawing space (L12). Specifically, the coordinates of the upper left base point and the lower right base point of the virtual drawing space are set in the predetermined registers.

次に、今サイクルで使用するフレームバッファFBaのインデックス番号をトグル的に切換えて特定する(L13)。また、SETFCOLOR コマンドにより黒色を設定し(L14)、矩形描画コマンド(RECTANGLE )を使用して、表示装置DS1の描画領域全体を黒色で塗りつぶすべく指定する(L15)。 Next, the index number of the frame buffer FBa used in the current cycle is toggled and specified (L13). In addition, black is set by the SETFCOLOR command (L14), and the entire drawing area of the display device DS1 is specified to be filled with black by using the rectangular drawing command (RECTANGLE) (L15).

これは、図23に示すL11〜L15までの指示コマンドと全く同じであり、通常なら、その後、図41(a)のコマンドが列記されるが、暗転画像の場合には、その後、必要な個数のNOP コマンドを記載した後、EODLコマンドを記載して、EODLコマンドを含んだ全データ量を4×64バイトの整数倍に調整する。 This is exactly the same as the instruction commands L11 to L15 shown in FIG. 23. Normally, the commands of FIG. 41A are listed after that, but in the case of a blackout image, the required number is thereafter. After writing the NOP command, write the EODL command to adjust the total amount of data including the EODL command to an integral multiple of 4 × 64 bytes.

なお、暗転画像に重ねて一又は複数の動画演出をするのも好適であり、この場合には、図41(a)に記載した指示コマンドCM1〜CM5が追加的に記載される。 It is also preferable to superimpose one or a plurality of moving images on the blackout image, and in this case, the instruction commands CM1 to CM5 shown in FIG. 41A are additionally described.

なお、第2態様の暗転予告の場合には、先行する動画演出も、これに継続する発展動画演出も、各演出を実現する動画フレームは、図41(a)に記載した指示コマンドCM1〜CM5によって特定される。
<ズームUP/DOWN 予告>
In the case of the darkening notice of the second aspect, the video frame that realizes each of the preceding video production and the subsequent development video production is the instruction commands CM1 to CM5 shown in FIG. 41 (a). Specified by.
<Zoom UP / DOWN notice>

ズーム予告とは、適当なキャラクタが、ズームアップ又はズームダウンされつつ、表示画面上を適宜に移動する演出を意味する(図42(a)参照)。このようなズーム予告は、キャラクタを描いた静止画でも実現できるが、本実施例では、顔の表情を変え、且つ、体全体に動きのあるキャラクタを使用するので、動画演出としている。 The zoom notice means an effect in which an appropriate character moves appropriately on the display screen while being zoomed up or down (see FIG. 42 (a)). Such a zoom notice can be realized even with a still image depicting a character, but in this embodiment, since a character that changes facial expressions and has movement throughout the body is used, a moving image is used.

なお、図42(a)では、ズーム予告に登場するキャラクタを、便宜上、静止画の如き「A」で表現しているが、実際には「A」の部分には、表情や手足に動きのある人物/動物キャラクタが描かれる。 In FIG. 42 (a), the character appearing in the zoom notice is represented by "A" like a still image for convenience, but in reality, the "A" part has facial expressions and movements in the limbs. A person / animal character is drawn.

以上を踏まえて説明を続けると、例えば、30fps(frames per second )の3秒動画は、ズーム予告キャラクタが、ズームアップされ、その後、ズームダウンされる30×3=90枚の動画フレームFR1〜FR2n−1で構成される。 Continuing the explanation based on the above, for example, in a 30 fps (frames per second) 3-second video, the zoom notice character is zoomed up and then zoomed down. 30 × 3 = 90 video frames FR1 to FR2n It is composed of -1.

そして、90枚の各動画フレームFRiを描画するディスプレイリストDLは、図23や図41(a)のように構成されるので、ロードされたテクスチャ(ズーム予告キャラクタを描いた動画フレーム)は、スプライトコマンドSPRITEよって、仮想描画空間の適所に貼り付けられる。そのため、貼り付け位置の指定を適宜に移動させるだけで、ズーム予告キャラクタを、表示画面で移動させることができる。なお、ズームアップ/ダウンの動作は、動画として実現されているので、拡大/縮小の制御は、ディスプレイリストにおいて不要である。 Since the display list DL for drawing each of the 90 video frames FRi is configured as shown in FIGS. 23 and 41 (a), the loaded texture (video frame depicting the zoom notice character) is a sprite. It is pasted in place in the virtual drawing space by the command SPRITE. Therefore, the zoom notice character can be moved on the display screen only by appropriately moving the designation of the pasting position. Since the zoom-up / down operation is realized as a moving image, the enlargement / reduction control is unnecessary in the display list.

一方、ズーム予告キャラクタを一枚の静止画で実現する場合には、スプライトコマンドSPRITEよって、仮想描画空間の左上頂点と右下頂点で規定される矩形空間を、適宜に拡大又は縮小すれば良い。
<傾斜/回転予告>
On the other hand, when the zoom notice character is realized by a single still image, the rectangular space defined by the upper left vertex and the lower right vertex of the virtual drawing space may be appropriately enlarged or reduced by the sprite command SPRITE.
<Inclination / rotation notice>

傾斜/回転予告とは、例えば、図42(a)に示すような直立状態の元画像FR1〜FR2n−1を、適宜に傾斜ないし回転させる演出を意味する。図42(b)では、例えば、ズームアップされるN枚の動画フレームFR1〜FRnを、順次、時計方向に回転させている。 The tilt / rotation notice means, for example, an effect of appropriately tilting or rotating the original images FR1 to FR2n-1 in an upright state as shown in FIG. 42 (a). In FIG. 42 (b), for example, the N moving image frames FR1 to FRn to be zoomed in are sequentially rotated in the clockwise direction.

このような傾斜/回転予告を実現するには、矩形状の画像(静止画や動画フレームFRiを構成するテクスチャ)を三角形ポリゴンに分割し、各三角形ポリゴンを、三角ポリゴンコマンドTRIANGLE(CM5)で、仮想描画空間の適所に、直立状態又は傾斜状態で、貼り付ける必要がある。 To realize such tilt / rotation notice, divide a rectangular image (texture that constitutes a still image or video frame FRi) into triangular polygons, and use the triangular polygon command TRIANGLE (CM5) to divide each triangular polygon. It is necessary to paste it in an upright state or in an inclined state in a suitable place in the virtual drawing space.

なお、以下の説明では、矩形画像(静止画や動画フレームFRi)について、便宜上、拡大/縮小を実行しない場合を説明するが、座標位置を適宜に設定することで、拡大や縮小も可能である。この場合には、CGデータ量を増加させることなく、更に多様な演出が可能となる。 In the following description, a case where enlargement / reduction is not performed for a rectangular image (still image or moving image frame FRi) will be described for convenience, but enlargement / reduction is also possible by appropriately setting the coordinate position. .. In this case, more diverse effects can be produced without increasing the amount of CG data.

さて、図43(c)には、4頂点を有する水平W×垂直Hピクセルで構成された矩形画像(静止画や動画フレームFRi)が、第1ポリゴンと第2ポリゴンに分割された状態が示されている。そして、この実施例では、単一の三角ポリゴンコマンドTRIANGLEの実行によって、4頂点をまとめて直立状態又は傾斜状態で描画する。 FIG. 43 (c) shows a state in which a rectangular image (still image or moving image frame FRi) composed of horizontal W × vertical H pixels having four vertices is divided into a first polygon and a second polygon. Has been done. Then, in this embodiment, the four vertices are drawn together in an upright state or an inclined state by executing the single triangular polygon command TRIANGLE.

但し、そのような動作を実現するため、三角ポリゴンコマンドTRIANGLEに付加すべき動作パラメータには、一の三角ポリゴンコマンドで描画すべき多角形の頂点数(情報1)、形状だけかテクスチャを含むかの設定(情報2)、三角ポリゴンのポリゴン描画方法(情報3)、仮想描画空間上での各頂点のXY座標(情報4)、情報4に対応するテクスチャのUV座標空間でのUV値(情報5)、が含まれている。 However, in order to realize such an operation, the operation parameters to be added to the triangular polygon command TRIANGLE include the number of vertices (information 1) of the polygon to be drawn by one triangular polygon command, and whether only the shape or the texture is included. Setting (information 2), polygon drawing method of triangular polygon (information 3), XY coordinates of each vertex on the virtual drawing space (information 4), UV value (information) of the texture corresponding to information 4 in the UV coordinate space. 5), is included.

本実施例では、一の三角ポリゴンコマンドで、矩形状の4頂点を描画し、これにテクスチャ(動画フレーム)を貼り付けるので、頂点数=4と特定する情報1と、テクスチャを含むことを特定する情報2と、4頂点についてのXY座標値である情報4と、UV値である情報5とが規定されることになる。 In this embodiment, four rectangular vertices are drawn with one triangular polygon command, and a texture (video frame) is pasted on the vertices. Therefore, it is specified that the information 1 that specifies the number of vertices = 4 and the texture are included. Information 2 to be used, information 4 which is an XY coordinate value for four vertices, and information 5 which is a UV value are defined.

なお、描画方法には、(1)全ての三角ポリゴンに共通の頂点を設定する三角形ファン描画と、(2)最終描画辺と、これに続いて指定された頂点で囲まれた三角形を描画する三角形ストリップ描画と、(3)三角ポリゴンを独立的に描画する三角リスト描画とが選択可能である。 The drawing methods include (1) triangle fan drawing that sets common vertices for all triangular polygons, and (2) drawing a triangle surrounded by the final drawing side and the specified vertices. You can select between drawing a triangle strip and drawing a triangle list (3) drawing a triangle polygon independently.

図43(c)に示す通り、三角形ストリップ描画手法では、頂点0→頂点1→頂点3の順番で描画され、これに続いて、頂点3→頂点1→頂点2の順番で描画される。一方、三角形ファン描画手法では、共通頂点の頂点1が選択され、頂点1→頂点3→頂点0の順番で描画され、これに続いて、頂点1→頂点2→頂点3の順番で描画される。 As shown in FIG. 43 (c), in the triangle strip drawing method, vertices 0 → vertices 1 → vertices 3 are drawn in this order, followed by vertices 3 → vertices 1 → vertices 2. On the other hand, in the triangle fan drawing method, the vertex 1 of the common vertex is selected and drawn in the order of vertex 1 → vertex 3 → vertex 0, and then drawn in the order of vertex 1 → vertex 2 → vertex 3. ..

但し、ここで問題にする矩形画像は、立体的な3D画像でなく、二次元の2D画像であるので、不要部分を消去するカリング(culling )処理が問題にならず、何れを選択しても大差はないが、本実施例では、三角形ストリップ描画を選択している。なお、本明細書では、矩形画像との用語を使用するが、透明部分を含んで矩形であって、必ずしも、画像輪郭が矩形状となるとは限らないのは言うまでもない。 However, since the rectangular image in question here is not a three-dimensional 3D image but a two-dimensional 2D image, the culling process for erasing unnecessary parts does not matter, and no matter which one is selected. Although there is no big difference, in this embodiment, the triangle strip drawing is selected. Although the term "rectangular image" is used in the present specification, it is needless to say that the image is rectangular including a transparent portion and the outline of the image is not always rectangular.

以上を踏まえて、三角ポリゴンコマンドTRIANGLEの動作パラメータを算出する演出制御CPU63の動作を図43(a)に基づいて説明する。先ず、水平W×垂直Hピクセルで構成された矩形画像の中心を、仮想描画空間の原点に配置した場合の4頂点を特定する(ST61)。 Based on the above, the operation of the effect control CPU 63 for calculating the operation parameters of the triangular polygon command TRIANGLE will be described with reference to FIG. 43 (a). First, the four vertices when the center of the rectangular image composed of horizontal W × vertical H pixels is arranged at the origin of the virtual drawing space are specified (ST61).

図14(c)に示す通り、仮想描画空間において、X座標は原点から右方向が正であり、Y座標は、原点から下方向が正であるので、4頂点の座標(x,y)は、頂点0(−W/2,−H/2)と、頂点1(W/2,−H/2)と、頂点2(W/2,H/2)と、頂点3(−W/2,H/2)となる。 As shown in FIG. 14 (c), in the virtual drawing space, the X coordinate is positive in the right direction from the origin, and the Y coordinate is positive in the downward direction from the origin. Therefore, the coordinates (x, y) of the four vertices are positive. , Coordinate 0 (-W / 2, -H / 2), Coordinate 1 (W / 2, -H / 2), Coordinate 2 (W / 2, H / 2), and Coordinate 3 (-W / 2). , H / 2).

次に、図43(b)の回転行列を使用する行列演算によって、原点位置にある矩形画像を時計方向に回転角度θだけ回転した後の4頂点を算出する(ST62)。なお、回転行列における時計方向は、仮想描画空間では、半時計方向になるので、回転角度は、実際には−θである。この回転角度は、動画進行に拘わらず、常に直立状態のテクスチャからの回転角度となる。すなわち、例え、テクスチャを回転角度θ1で定速回転させる場合でも、回転角度は、一定値θ1ではなく、例えば、θ1→2*θ1→3*θ1→4*θ1→5*θ1・・・のように順次増加させる必要がある。 Next, the four vertices after rotating the rectangular image at the origin position by the rotation angle θ in the clockwise direction are calculated by the matrix calculation using the rotation matrix of FIG. 43 (b) (ST62). Since the clockwise direction in the rotation matrix is the counterclockwise direction in the virtual drawing space, the rotation angle is actually −θ. This rotation angle is always the rotation angle from the texture in the upright state regardless of the progress of the moving image. That is, even when the texture is rotated at a constant speed at a rotation angle θ1, the rotation angle is not a constant value θ1, but is, for example, θ1 → 2 * θ1 → 3 * θ1 → 4 * θ1 → 5 * θ1 ... It is necessary to increase it sequentially.

次に、ステップST62の処理で算出した4頂点(X,Y)を、任意の移動先に移動させる(ST63)。具体的には、矩形画像の中心点の移動先の座標値が(X0,Y0)であれば、4頂点について、各々、X=X+X0、Y=Y+Y0の演算を実行して、回転後の4頂点の座標を確定する。 Next, the four vertices (X, Y) calculated in the process of step ST62 are moved to an arbitrary destination (ST63). Specifically, if the coordinate value of the destination of the movement of the center point of the rectangular image is (X0, Y0), the operations of X = X + X0 and Y = Y + Y0 are executed for each of the four vertices, and the four after rotation are executed. Determine the coordinates of the vertices.

そして、最後に、三角ポリゴンコマンドTRIANGLEの動作パラメータ(4)を付加し、これに対応して、直立状態の矩形画像(テクスチャ)について、4頂点のUV座標系の座標値である動作パラメータ(5)を付加する。情報(1)〜(4)についても同様である。 Finally, the operation parameter (4) of the triangular polygon command TRIANGLE is added, and correspondingly, the operation parameter (5) which is the coordinate value of the UV coordinate system of four vertices for the rectangular image (texture) in the upright state. ) Is added. The same applies to the information (1) to (4).

なお、仮想描画空間上での各頂点のXY座標である動作パラメータ(4)は、動画進行に応じて適宜に変化し、矩形画像(テクスチャ)の表示内容も変化するが、本実施例では、直立状態のテクスチャの縦横寸法が、変わらないので、動作パラメータ(4)は、常に同じである。 The operation parameter (4), which is the XY coordinates of each vertex on the virtual drawing space, changes appropriately according to the progress of the moving image, and the display content of the rectangular image (texture) also changes. Since the vertical and horizontal dimensions of the texture in the upright state do not change, the operation parameter (4) is always the same.

本実施例では、以上の演算が、傾斜/回転予告演出のディスプレイの発行毎に毎回実行される。この点は、演出制御CPU63にとって、やや煩雑であり、テクスチャの回転角度と配置位置だけをVDP回路52に指定することも考えられる。 In this embodiment, the above calculation is executed every time the display of the tilt / rotation notice effect is issued. This point is a little complicated for the effect control CPU 63, and it is conceivable to specify only the rotation angle and the arrangement position of the texture in the VDP circuit 52.

しかし、そのような構成を採ると、VDP回路52において、回転行列演算をする必要が生じ、計算負荷が増加する。そこで、他にも複雑な算術演算が必要であるVDP回路52の計算負担を軽減化するべく、本実施例では、演出制御CPU63が、座標位置を計算している。 However, if such a configuration is adopted, it becomes necessary to perform a rotation matrix operation in the VDP circuit 52, and the calculation load increases. Therefore, in order to reduce the calculation load of the VDP circuit 52, which requires other complicated arithmetic operations, in this embodiment, the effect control CPU 63 calculates the coordinate position.

但し、演出制御CPU63が行列計算を実行するには、三角関数の演算ルーチン(三角関数用のライブラリ)をメモリ53に配置しておく必要があるだけでなく、それなりの処理時間を要するので、計算処理を高速化する工夫を設けるのが好ましい。 However, in order for the effect control CPU 63 to execute the matrix calculation, not only the trigonometric function calculation routine (trigonometric function library) needs to be arranged in the memory 53, but also a certain amount of processing time is required, so that the calculation is performed. It is preferable to provide a device for speeding up the processing.

図43(d)は、計算負荷を軽減した実施例であり、矩形画像の中心点から各頂点までの距離(半径r)と、原点位置に配置した場合のテクスチャ4頂点の基準角度α(図43(e)参照)と、に基づいて必要な計算を実行する実施例を示している。 FIG. 43D is an example in which the calculation load is reduced, and the distance (radius r) from the center point of the rectangular image to each vertex and the reference angle α of the texture 4 vertices when placed at the origin position (FIG. 43). 43 (e)) and an embodiment of performing the necessary calculation based on.

先ず、水平W×垂直Hピクセルで構成された矩形画像の中心を、仮想描画空間の原点に配置した場合のテクスチャ4頂点の半径rと、基準角度αを特定する(ST71)。 First, the radius r of the four texture vertices and the reference angle α when the center of the rectangular image composed of horizontal W × vertical H pixels is placed at the origin of the virtual drawing space are specified (ST71).

次に、4頂点について、回転角度θだけ半時計方向に回転させた場合の座標値を図43(f)の変換式に基づいて算出する(ST72)。なお、図43(f)の変換式の算出過程は、図4に示されている。 Next, the coordinate values of the four vertices when rotated in the counterclockwise direction by the rotation angle θ are calculated based on the conversion formula of FIG. 43 (f) (ST72). The calculation process of the conversion formula in FIG. 43 (f) is shown in FIG.

次に、ステップST72の処理で算出した4頂点(X,Y)の移動先の座標値が(X0,Y0)であれば、4頂点について、各々、X=X+X0、Y=Y+Y0の演算を実行して、回転後の4頂点の座標を確定する(ST73)。 Next, if the coordinate values of the destinations of the four vertices (X, Y) calculated in the process of step ST72 are (X0, Y0), the operations of X = X + X0 and Y = Y + Y0 are executed for each of the four vertices. Then, the coordinates of the four vertices after rotation are fixed (ST73).

そして、最後に、動作パラメータ(1)〜(5)を付加して、三角ポリゴンコマンドTRIANGLEを完成し、ディスプレイリストDLに追加記載する(ST74)。 Finally, the operation parameters (1) to (5) are added to complete the triangular polygon command TRIANGLE, which is additionally described in the display list DL (ST74).

ところで、図43〜図4では、直立状態で縦長の矩形画像(テクスチャ)を例示しているが、テクスチャを正方形に形成すれば、ルート記号SQRを使用して、H=W=r*SQR(2)となり、図43(f)の変換式が簡素化される。また、Cos(θ)=Sin(90+θ)の関係があるので、図43(f)の変換式を半径rと回転角θと、Sin関数値だけで表現することができる。 By the way, in FIGS. 43 to 4, a vertically long rectangular image (texture) is illustrated in an upright state, but if the texture is formed into a square, the root symbol SQR is used and H = W = r * SQR ( 2), and the conversion formula of FIG. 43 (f) is simplified. Further, since there is a relationship of Cos (θ) = Sin (90 + θ), the conversion formula of FIG. 43 (f) can be expressed only by the radius r, the angle of rotation θ, and the Sin function value.

そこで、回転角度−180度〜0度〜180度について、各々のSin関数値を記憶するSINテーブルAngle Table (図4(c)参照)を用意しておくのが好適であり、この場合には、三角関数の演算ルーチンをメモリ53に配置しておく必要がなくなり、且つ、三角関数計算の処理速度を高速化することができる。 Therefore, it is preferable to prepare a SIN table Angle Table (see FIG. 4 (c)) for storing each Sin function value for the rotation angle −180 degrees to 0 degrees to 180 degrees. In this case, it is preferable. , It is not necessary to arrange the trigonometric function calculation routine in the memory 53, and the processing speed of the trigonometric function calculation can be increased.

GM 遊技機
27 音声プロセッサ
29 デジタルアンプ素子
Q1H,Q2H Pch型MOSトランジスタ
Q1L,Q2L Nch型MOSトランジスタ
GAIN 所定の入力端子
Li コイル
C1 コンデンサ
GM Game Machine 27 Audio Processor 29 Digital Amplifier Element Q1H, Q2H Pch Type MOS Transistor Q1L, Q2L Nch Type MOS Transistor GAIN Predetermined Input Terminal Li Coil C1 Capacitor

Claims (10)

音声演出を実現する音声デジタル信号を出力する音声プロセッサと、シリアルデータ化された音声デジタル信号を受けて、適宜なレベルの音声アナログ信号を出力するデジタルアンプ素子とを有して構成され、
前記デジタルアンプ素子は、固定的に規定される標準入出力比で動作可能で、ステレオ信号を増幅可能な複数2*Nチャンネルの増幅回路を内蔵して構成され、
前記増幅回路は、高電位側に配置されるPch型MOSトランジスタと、低電位側に配置されるNch型MOSトランジスタを各2個使用したフルブリッジ型の出力回路を有して構成され、
前記標準入出力比は、所定の入力端子への設定値によって、複数選択肢の何れかが選択可能に構成されていることを特徴とする遊技機。
It is configured to have a voice processor that outputs a voice digital signal that realizes voice production, and a digital amplifier element that receives a voice digital signal converted into serial data and outputs a voice analog signal of an appropriate level.
The digital amplifier element is configured to have a built-in amplifier circuit of a plurality of 2 * N channels capable of operating at a fixed standard input / output ratio and amplifying a stereo signal.
The amplifier circuit is configured to have a full bridge type output circuit using two Pch type MOS transistors arranged on the high potential side and two Nch type MOS transistors arranged on the low potential side.
The standard input / output ratio is a gaming machine characterized in that any one of a plurality of options can be selected according to a set value for a predetermined input terminal.
複数選択肢の中で、最高の増幅率か、又は最高より一段階低い増幅率が選択されるよう、前記所定の入力端子の電圧が固定的に規定されている請求項1に記載の遊技機。 The gaming machine according to claim 1, wherein the voltage of the predetermined input terminal is fixedly defined so that the highest amplification factor or the amplification factor one step lower than the highest is selected from the plurality of options. 前記デジタルアンプ素子は、過電流時に動作を停止する過電流保護機能を有して構成されている請求項1又は2に記載の遊技機。 The gaming machine according to claim 1 or 2, wherein the digital amplifier element has an overcurrent protection function that stops operation when an overcurrent occurs. 過電流検出時には、高電位側のトランジスタがOFF動作する一方、低電位側のトランジスタがON動作するよう制御される請求項3に記載の遊技機。 The gaming machine according to claim 3, wherein when the overcurrent is detected, the transistor on the high potential side is turned off while the transistor on the low potential side is controlled to be turned on. 前記増幅回路は、所定条件下、無音化されるよう構成されている請求項1〜4の何れかに記載の遊技機。 The gaming machine according to any one of claims 1 to 4, wherein the amplifier circuit is configured to be silenced under predetermined conditions. 前記デジタルアンプ素子は、LCフィルタを設けなくても動作可能に構成されている請求項1〜5の何れかに記載の遊技機。 The gaming machine according to any one of claims 1 to 5, wherein the digital amplifier element is configured to be operable without providing an LC filter. CPUリセット後の所定の経過時間を経過するまで、前記CPUが、前記デジタルアンプ素子をアクセスしないよう構成されている請求項1〜6何れかに記載の遊技機。 The gaming machine according to any one of claims 1 to 6, wherein the CPU does not access the digital amplifier element until a predetermined elapsed time has elapsed after the CPU reset. 前記増幅回路は、
前記標準入出力比で増幅動作する基本増幅態様か、前記標準入出力比を下回らない入出比であって、低レベル域とそれ以外の高レベル域では特性が異なる変則入出力比で増幅動作する変形増幅態様の何れかで動作するよう構成されている請求項1〜7の何れかに記載の遊技機。
The amplifier circuit is
The basic amplification mode that amplifies at the standard input / output ratio, or the input / output ratio that does not fall below the standard input / output ratio, and the amplification operation at an irregular input / output ratio that has different characteristics in the low level range and other high level ranges. The gaming machine according to any one of claims 1 to 7, which is configured to operate in any of the modified amplification modes.
前記基本増幅態様で動作するか、前記変形増幅態様で動作するかは、所定の設定端子への固定値で固定的に特定されるか、或いは、前記設定端子への可変値で非固定的に特定される請求項8に記載の遊技機。 Whether to operate in the basic amplification mode or the modified amplification mode is fixedly specified by a fixed value to a predetermined setting terminal or non-fixed by a variable value to the setting terminal. The gaming machine according to claim 8. 前記出力回路は、第1出力端子と第2出力端子を有して構成され、
第1出力端子と第2出力端子には、スピーカとの間に、インダクタンス値20μH〜30μHのコイルが各々配置され、前記スピーカに並列接続されたキャパシタンス値200〜500nFのコンデンサと共に、LCフィルタを構成している請求項1〜9の何れかに記載の遊技機。


The output circuit is configured to have a first output terminal and a second output terminal.
A coil having an inductance value of 20 μH to 30 μH is arranged between the first output terminal and the second output terminal, respectively, and constitutes an LC filter together with a capacitor having a capacitance value of 200 to 500 nF connected in parallel to the speaker. The gaming machine according to any one of claims 1 to 9.


JP2020098095A 2020-06-05 2020-06-05 game machine Active JP7191062B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020098095A JP7191062B2 (en) 2020-06-05 2020-06-05 game machine
JP2022194626A JP7455936B2 (en) 2020-06-05 2022-12-06 gaming machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020098095A JP7191062B2 (en) 2020-06-05 2020-06-05 game machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2022194626A Division JP7455936B2 (en) 2020-06-05 2022-12-06 gaming machine

Publications (2)

Publication Number Publication Date
JP2021186577A true JP2021186577A (en) 2021-12-13
JP7191062B2 JP7191062B2 (en) 2022-12-16

Family

ID=78850464

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2020098095A Active JP7191062B2 (en) 2020-06-05 2020-06-05 game machine
JP2022194626A Active JP7455936B2 (en) 2020-06-05 2022-12-06 gaming machine

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2022194626A Active JP7455936B2 (en) 2020-06-05 2022-12-06 gaming machine

Country Status (1)

Country Link
JP (2) JP7191062B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7224567B1 (en) 2022-09-01 2023-02-17 三菱電機株式会社 gas insulated equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001223536A (en) * 2000-02-14 2001-08-17 Rohm Co Ltd Mute circuit and digital audio amplifier circuit
JP2001339249A (en) * 2000-05-25 2001-12-07 Teac Corp Electronic device
JP2002035244A (en) * 2000-07-25 2002-02-05 Mrd:Kk Power feeder for pachinko machine
JP2003174693A (en) * 2001-12-07 2003-06-20 Fujitsu Ten Ltd Sound reproducing device
JP2004321277A (en) * 2003-04-22 2004-11-18 Kyoraku Sangyo Game machine
JP2006060273A (en) * 2004-08-17 2006-03-02 Nec Engineering Ltd Class d amplifier with lc filter
JP2007181149A (en) * 2005-12-28 2007-07-12 Sony Corp Digital amplifier and method for resetting digital amplifier
JP2009268013A (en) * 2008-04-30 2009-11-12 Toa Corp Amplifier for audio
JP2010213747A (en) * 2009-03-13 2010-09-30 Fujishoji Co Ltd Game machine
JP2016106912A (en) * 2014-12-09 2016-06-20 サミー株式会社 Game machine
JP2016209305A (en) * 2015-05-08 2016-12-15 株式会社藤商事 Game machine
JP2018046431A (en) * 2016-09-15 2018-03-22 ローム株式会社 Class d amplifier circuit, control method thereof, audio output device, and electronic apparatus
JP2018183250A (en) * 2017-04-24 2018-11-22 株式会社藤商事 Game machine

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5653591B2 (en) 2009-05-13 2015-01-14 京楽産業.株式会社 Game machine
JP5659434B2 (en) 2009-05-20 2015-01-28 株式会社大一商会 Pachinko machine
JP5807973B2 (en) 2013-01-31 2015-11-10 サミー株式会社 Game machine
JP2017080037A (en) 2015-10-27 2017-05-18 株式会社三共 Game machine
JP2018093892A (en) 2016-12-07 2018-06-21 株式会社平和 Game machine
JP6903628B2 (en) 2018-11-28 2021-07-14 株式会社藤商事 Pachinko machine

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001223536A (en) * 2000-02-14 2001-08-17 Rohm Co Ltd Mute circuit and digital audio amplifier circuit
JP2001339249A (en) * 2000-05-25 2001-12-07 Teac Corp Electronic device
JP2002035244A (en) * 2000-07-25 2002-02-05 Mrd:Kk Power feeder for pachinko machine
JP2003174693A (en) * 2001-12-07 2003-06-20 Fujitsu Ten Ltd Sound reproducing device
JP2004321277A (en) * 2003-04-22 2004-11-18 Kyoraku Sangyo Game machine
JP2006060273A (en) * 2004-08-17 2006-03-02 Nec Engineering Ltd Class d amplifier with lc filter
JP2007181149A (en) * 2005-12-28 2007-07-12 Sony Corp Digital amplifier and method for resetting digital amplifier
JP2009268013A (en) * 2008-04-30 2009-11-12 Toa Corp Amplifier for audio
JP2010213747A (en) * 2009-03-13 2010-09-30 Fujishoji Co Ltd Game machine
JP2016106912A (en) * 2014-12-09 2016-06-20 サミー株式会社 Game machine
JP2016209305A (en) * 2015-05-08 2016-12-15 株式会社藤商事 Game machine
JP2018046431A (en) * 2016-09-15 2018-03-22 ローム株式会社 Class d amplifier circuit, control method thereof, audio output device, and electronic apparatus
JP2018183250A (en) * 2017-04-24 2018-11-22 株式会社藤商事 Game machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YDA171アプリケーションマニュアル, vol. CATALOG No. LSI-5DA171A20, JPN6022021804, August 2010 (2010-08-01), JP, ISSN: 0004862002 *

Also Published As

Publication number Publication date
JP7455936B2 (en) 2024-03-26
JP7191062B2 (en) 2022-12-16
JP2023022272A (en) 2023-02-14

Similar Documents

Publication Publication Date Title
JP7455937B2 (en) gaming machine
JP7455936B2 (en) gaming machine
JP7262424B2 (en) game machine
JP2021040890A (en) Game machine
JP7191064B2 (en) game machine
JP7012690B2 (en) Pachinko machine
JP7101649B2 (en) Pachinko machine
JP2021168831A (en) Game machine
JP2021168836A (en) Game machine
JP2021168839A (en) Game machine
JP2021168837A (en) Game machine
JP2021168840A (en) Game machine
JP2021168832A (en) Game machine
JP2021168833A (en) Game machine
JP2021168834A (en) Game machine
JP2021168838A (en) Game machine
JP2021168835A (en) Game machine
JP2022097605A (en) Game machine
JP2022097606A (en) Game machine
JP2021137286A (en) Game machine
JP2021137280A (en) Game machine
JP2021137282A (en) Game machine
JP2021137281A (en) Game machine
JP2021137287A (en) Game machine
JP2021137283A (en) Game machine

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200605

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210726

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220525

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220531

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220727

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220830

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221025

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221206

R150 Certificate of patent or registration of utility model

Ref document number: 7191062

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150