JP7121455B2 - game machine - Google Patents

game machine Download PDF

Info

Publication number
JP7121455B2
JP7121455B2 JP2019164662A JP2019164662A JP7121455B2 JP 7121455 B2 JP7121455 B2 JP 7121455B2 JP 2019164662 A JP2019164662 A JP 2019164662A JP 2019164662 A JP2019164662 A JP 2019164662A JP 7121455 B2 JP7121455 B2 JP 7121455B2
Authority
JP
Japan
Prior art keywords
circuit
data
area
cpu
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.)
Active
Application number
JP2019164662A
Other languages
Japanese (ja)
Other versions
JP2021040883A (en
Inventor
伸美 柴田
Original Assignee
株式会社藤商事
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社藤商事 filed Critical 株式会社藤商事
Priority to JP2019164662A priority Critical patent/JP7121455B2/en
Publication of JP2021040883A publication Critical patent/JP2021040883A/en
Priority to JP2022123719A priority patent/JP2022153614A/en
Application granted granted Critical
Publication of JP7121455B2 publication Critical patent/JP7121455B2/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)
  • Display Devices Of Pinball Game Machines (AREA)

Description

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

パチンコ機などの弾球遊技機は、遊技盤に設けた図柄始動口と、複数の表示図柄による一連の図柄変動態様を表示する図柄表示部と、開閉板が開閉される大入賞口などを備えて構成されている。そして、図柄始動口に設けられた検出スイッチが遊技球の通過を検出すると入賞状態となり、遊技球が賞球として払出された後、図柄表示部では表示図柄が所定時間変動される。その後、7・7・7などの所定の態様で図柄が停止すると大当り状態となり、大入賞口が繰返し開放されて、遊技者に有利な遊技状態を発生させている。 A pinball game machine such as a pachinko machine is equipped with a pattern starting port provided on a game board, a pattern display section for displaying a series of pattern variations by a plurality of display patterns, and a prize winning port in which an opening/closing plate is opened and closed. configured as follows. When the detection switch provided at the symbol start port detects the passage of the game ball, the winning state is entered, and after the game ball is paid out as a prize ball, the displayed symbols are changed in the symbol display unit for a predetermined period of time. After that, when the symbols stop in a predetermined manner such as 7, 7, 7, etc., a big hit state is entered, 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 jackpot lottery that is executed on the condition that a game ball has entered the symbol start opening, and the above-described symbol variation operation is based on the results of this lottery. It is a thing. For example, when the lottery result is a winning state, a performance operation called reach action is executed for about 20 seconds, and then the special symbols are arranged. On the other hand, a similar ready-to-win action may be executed even in the case of a losing state, and in this case, the player will pay attention to the transition of the performance action while strongly hoping for a big win state. Then, when the predetermined symbols are aligned on the stop line at the end of the symbol variation operation, the player is guaranteed a big hit state.

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

この種の遊技機では、各種の演出を複雑化かつ豊富化したいところ、特に、画像演出については、その要請が高い。そこで、出願人は、各種の提案をしているが(引用文献1~引用文献4)、画像演出の更なる高度化や、画像演出制御を中心とした各種の演出制御動作の更なる改善が望まれるところである。 In this type of game machine, there is a desire to make various effects more complex and rich, and there is a high demand for image effects in particular. Therefore, the applicant has made various proposals (cited documents 1 to 4), but further enhancement of image effects and further improvement of various effect control operations centering on image effect control are needed. This is desired.

本発明は、上記の課題に鑑みてなされたものであり、画像演出制御を中心とした各種の演出制御動作が更に改善された遊技機を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a gaming machine in which various effects control operations centered on image effect control are further improved.

上記の目的を達成するため、本発明に係る遊技機は、VDP(Video Display Processor )と、前記VDPにディスプレイリストを発行するCPUが機能して、画像演出を含んだ各種の演出動作が実行される遊技機であって、前記CPUがアクセス可能なメモリ空間には、前記CPUを含むCPU回路の外部に位置して、データバス幅を各々規定可能な複数の外部アドレス空間が含まれる一方前記VDPがアクセス可能なメモリ空間には、CG圧縮データを記憶するCGメモリと、画像演出用の画像データ生成に使用されるビデオRAMと、が含まれ、前記複数の外部アドレス空間のうち、所定のROM空間には、該外部アドレス空間に属する第1アドレス情報と、何れの外部アドレス空間にも属さない第2アドレス情報が不揮的に記憶され、前記CPUのリセット後、前記第2アドレス情報が、前記CPUのスタックポインタに設定され、前記第1アドレス情報が、前記CPUのプログラムカウンタに設定されることで、所定の初期プログラムの実行が開始されるよう構成されると共に前記ビデオRAMには、所定ビット位置以下の下位ビットが全て0となる基点アドレスに基づいて複数のメモリ領域が確保され、所定のメモリ領域における前記CG圧縮データの展開先は、前記VDPによって規定されるよう構成されている。なお、実施例では、VDP(Video Display Processor )の動作は、VDP回路52を構成する各種の内部回路(72~77など)によって実現される。 In order to achieve the above object, in the gaming machine according to the present invention, a VDP (Video Display Processor) and a CPU that issues a display list to the VDP function to execute various effects including image effects. a gaming machine, wherein the memory space accessible by the CPU includes a plurality of external address spaces located outside a CPU circuit including the CPU and each capable of defining a data bus width; The memory space accessible by the VDP includes a CG memory for storing CG compressed data and a video RAM used for generating image data for image presentation . The first address information belonging to the external address space and the second address information not belonging to any external address space are stored in the ROM space in a non- volatile manner. Information is set in the stack pointer of the CPU, and the first address information is set in the program counter of the CPU to start execution of a predetermined initial program , and the video RAM , a plurality of memory areas are secured based on a base address in which the lower bits below a predetermined bit position are all 0, and the expansion destination of the CG compressed data in the predetermined memory area is defined by the VDP. It is Incidentally, in the embodiment, the operation of the VDP (Video Display Processor) is realized by various internal circuits (72 to 77, etc.) forming the VDP circuit 52. FIG.

上記した本発明によれば、初期プログラム(ブートプログラム)を任意のメモリデバイスの任意の位置に配置できるので、電源投入後のブート処理が円滑化される。また、スタックポインタによって特定されるスタック領域が、CPU回路51の内部に確保されるので、サブルーチンコールなどの処理が迅速化される。 According to the above-described present invention, the initial program (boot program) can be placed in an arbitrary position in an arbitrary memory device, thereby facilitating boot processing after power-on. Also, since the stack area specified by the stack pointer is secured inside the CPU circuit 51, processing such as subroutine calls can be speeded up.

本実施例のパチンコ機を示す斜視図である。It is a perspective view showing the pachinko machine of the present embodiment. 図1の遊技機の遊技領域を示す正面図である。2 is a front view showing a game area of the gaming machine of FIG. 1; FIG. 図1の遊技機の全体回路構成を示すブロック図である。2 is a block diagram showing the overall circuit configuration of the gaming machine of FIG. 1; FIG. 図1の遊技機について、演出制御部の回路構成をやや詳細に示すブロック図である。2 is a block diagram showing in some detail the circuit configuration of an effect control unit in the gaming machine of FIG. 1; FIG. 演出制御部を構成する複合チップを説明する図面である。It is drawing explaining the composite chip|tip which comprises a production|presentation control part. 図4に示すCPU回路の内部構成を示すブロック図である。5 is a block diagram showing an internal configuration of a CPU circuit shown in FIG. 4; FIG. CPU回路の内蔵CPU(演出制御CPU)のメモリマップを図示したものである。The memory map of built-in CPU (production control CPU) of the CPU circuit is illustrated. DMACについて、各種の転送動作モード(a)~(b)と、転送動作手順(c)~(e)を説明する図面である。4 is a drawing for explaining various transfer operation modes (a) to (b) and transfer operation procedures (c) to (e) for the DMAC; インデックス空間、インデックステーブル、仮想描画空間、及び、描画領域について説明する図面である。4A and 4B are diagrams for explaining an index space, an index table, a virtual drawing space, and a drawing area; データ転送回路の内部構成を、関連する回路構成と共に記載したブロック図である。2 is a block diagram describing the internal configuration of a data transfer circuit together with related circuit configurations; FIG. 表示回路の内部構成を、関連する回路構成と共に記載したブロック図である。2 is a block diagram describing the internal configuration of a display circuit together with related circuit configurations; FIG. CPUリセット後のパワーリセット動作を説明するフローチャートである。4 is a flowchart for explaining power reset operation after CPU reset; 図12の一部であるメモリセクション初期化処理を説明するフローチャートである。13 is a flowchart illustrating memory section initialization processing, which is a part of FIG. 12; 図12の一部であるメイン制御処理と、割込み処理を説明するフローチャートである。13 is a flowchart illustrating main control processing and interrupt processing that are part of FIG. 12; メイン制御処理の一部であるCGROMの初期化処理を説明するフローチャートである。10 is a flowchart for explaining CGROM initialization processing, which is part of the main control processing; 別の割込み処理について、処理内容の一部を説明するフローチャートである。FIG. 11 is a flowchart for explaining a part of processing contents of another interrupt processing; FIG. プリローダを使用しない場合について、演出制御CPU63の制御動作を説明するフローチャートである。It is a flowchart explaining the control operation of production|presentation control CPU63 about the case where a preloader is not used. ディスプレイリストの構成を説明する図面である。4 is a diagram for explaining the configuration of a display list; FIG. ディスプレイリストDLを発行するDL発行処理を示すフローチャートである。FIG. 10 is a flowchart showing DL issuing processing for issuing a display list DL; FIG. 図19の動作にDMACが関与する場合の動作を説明するフローチャートである。FIG. 20 is a flowchart for explaining the operation when the DMAC is involved in the operation of FIG. 19; FIG. 図20の処理に続く動作を説明するフローチャートである。FIG. 21 is a flowchart for explaining an operation following the processing in FIG. 20; FIG. プリローダを使用する場合について、演出制御CPU63の制御動作を説明するフローチャートである。It is a flowchart explaining the control operation of production|presentation control CPU63 about the case where a preloader is used. 図22の一部を説明するフローチャートである。FIG. 23 is a flow chart explaining a part of FIG. 22; FIG. 図22の別の一部を説明するフローチャートである。FIG. 23 is a flowchart illustrating another part of FIG. 22; FIG. プリローダを使用しない実施例について、VDP各部の動作を示すタイムチャートである。5 is a time chart showing the operation of each part of the VDP in an example that does not use a preloader; プリローダを使用する実施例について、VDP各部の動作を示すタイムチャートである。4 is a time chart showing the operation of each part of the VDP in an example using a preloader; 別の実施例について全体回路構成を示すブロック図である。FIG. 11 is a block diagram showing the overall circuit configuration of another embodiment; 図27の一部をやや詳細に示すブロック図である。Figure 28 is a block diagram showing a portion of Figure 27 in slightly more detail; 別の実施例について、動作内容を説明するフローチャートである。9 is a flow chart for explaining the operation content of another embodiment. 更に別の実施例を説明する図面である。It is drawing explaining another Example. 設定値を繰り返し設定する実施例を説明する図面である。It is drawing explaining the Example which sets a setting value repeatedly. 内蔵された音声回路を使用する実施例の回路構成を説明する図面である。It is a drawing explaining a circuit configuration of an embodiment using a built-in audio circuit. 音声回路の初期設定動作を説明するフローチャートである。4 is a flowchart for explaining the initial setting operation of the audio circuit; CPUリセット後のパワーリセット動作について別の実施例を説明する図面である。FIG. 10 is a diagram for explaining another embodiment of the power reset operation after CPU reset; メモリREAD動作とメモリWRITE 動作の一例を示すタイムチャートである。4 is a time chart showing an example of memory READ operation and memory WRITE operation;

以下、実施例に基づいて本発明を詳細に説明する。図1は、本実施例のパチンコ機GMを示す斜視図である。このパチンコ機GMは、島構造体に着脱可能に装着される矩形枠状の木製外枠1と、外枠1に固着されたヒンジ2を介して開閉可能に枢着される前枠3とで構成されている。この前枠3には、遊技盤5が、裏側からではなく、表側から着脱自在に装着され、その前側には、ガラス扉6と前面板7とが夫々開閉自在に枢着されている。 The present invention will be described in detail below based on examples. FIG. 1 is a perspective view showing the pachinko machine GM of this embodiment. This pachinko machine GM comprises a rectangular wooden outer frame 1 detachably attached to an island structure, and a front frame 3 pivotally attached to the outer frame 1 through hinges 2 so as to be openable and closable. It is configured. A game board 5 is detachably attached to the front 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 freely opened and closed.

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

前面板7には、発射用の遊技球を貯留する上皿8が装着され、前枠3の下部には、上皿8から溢れ出し又は抜き取った遊技球を貯留する下皿9と、発射ハンドル10とが設けられている。発射ハンドル10は発射モータと連動しており、発射ハンドル10の回動角度に応じて動作する打撃槌によって遊技球が発射される。 An upper plate 8 for storing game balls to be shot is attached to the front plate 7, and a lower plate 9 for storing game balls overflowing or extracted from the upper plate 8 and a shooting handle are provided at the lower part of the front frame 3. 10 are provided. A shooting handle 10 is interlocked with a shooting motor, and a game ball is shot by a hitting mallet that operates according to the rotation angle of the shooting 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 with the player's left hand, and the player can operate the chance button 11 without releasing the right hand from the shooting handle 10.例文帳に追加The chance button 11 does not function normally, but when the game state becomes the button chance state, the built-in lamp lights up and becomes operable. Note that the button chance state is a game state provided as necessary.

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

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

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

中央開口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 liquid crystal color display (LCD) (for example, 1280 pixels wide by 1024 pixels long) is arranged in the central opening HO. A movable sub-display device DS2 composed of a liquid crystal color display of 480×800 pixels is arranged. The main display device DS1 is a device that variably displays specific symbols related to a big win state and also displays a background image, various characters, and the like in an animated manner. This display device DS1 has special symbol display portions Da to Dc in the central portion and a normal symbol display portion 19 in the upper right portion. Then, in the special pattern display parts Da to Dc, a ready-to-win performance to expect the arrival of a big hit state is sometimes executed, and in and around the special pattern display parts Da to Dc, an appropriate advance notice performance is executed.

サブ表示装置DS2は、通常時には、その表示画面が遊技者に見やすい角度に傾斜した静止状態で画像情報を表示している。但し、所定の予告演出時には、遊技者に見やすい角度に傾斜角度を変えながら、図示の左側に移動する共に、所定の予告画像を表示するようになっている。 The sub-display device DS2 normally 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, during a predetermined notice effect, it moves to the left side of the drawing while changing the tilt angle to an angle that is easy for the player to see, and displays a predetermined notice image.

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

ところで、遊技球が落下移動する遊技領域には、第1図柄始動口15a、第2図柄始動口15b、第1大入賞口16a、第2大入賞口16b、普通入賞口17、及び、ゲート18が配設されている。これらの入賞口15~18は、それぞれ内部に検出スイッチを有しており、遊技球の通過を検出できるようになっている。 By the way, the game area where the game ball falls and moves includes the first symbol starting port 15a, the second symbol starting port 15b, the first big winning port 16a, the second big winning port 16b, the normal winning port 17, and the gate 18. are arranged. Each of these winning holes 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の変動動作が開始されるよう構成されている。 Above the first symbol starting port 15a, a production stage 14 is arranged so that the first symbol starting port 15 can win after the game ball entering from the introduction port IN moves in a seesaw or roulette shape. there is Then, when a game ball wins the first symbol starting port 15, the special symbol display portions Da to Dc are configured to start varying operations.

第2図柄始動口15bは、左右一対の開閉爪を備えた電動式チューリップで開閉されるように構成され、普通図柄表示部19の変動後の停止図柄が当り図柄を表示した場合には、所定時間だけ、若しくは、所定個数の遊技球を検出するまで、開閉爪が開放されるようになっている。 The second symbol start port 15b is configured to be opened and closed by an electric tulip provided with a pair of left and right opening and closing claws, and when the stop symbol after the change of the normal symbol display unit 19 is displayed as a winning symbol, a predetermined The opening/closing claw is opened 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 normal symbols, and when a game ball that has passed through the gate 18 is detected, the normal symbol changes for a predetermined period of time, and is extracted when the game ball passes through the gate 18. A stop pattern determined by the selected random number for lottery is displayed and stopped.

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

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

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

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

図3は、上記した各動作を実現するパチンコ機GMの全体回路構成を示すブロック図であり、図4(a)はその一部を詳細に図示したものである。 FIG. 3 is a block diagram showing the overall circuit configuration of the pachinko machine GM that implements the operations described above, and FIG. 4(a) shows a portion thereof in detail.

図3に示す通り、このパチンコ機GMは、AC24Vを受けて各種の直流電圧や、電源異常信号ABN1、ABN2を出力する電源基板20と、遊技制御動作を中心統括的に担う主制御基板21と、音声演出用の回路素子SNDを搭載した演出インタフェイス基板22と、主制御基板21から受けた制御コマンドCMDに基づいてランプ演出、音声演出、及び画像演出を統一的に実行する演出制御基板23と、演出制御基板23と表示装置DS1,DS2の間に位置する液晶インタフェイス基板24と、主制御基板21から受けた制御コマンドCMD’に基づいて払出モータMを制御して遊技球を払い出す払出制御基板25と、遊技者の操作に応答して遊技球を発射させる発射制御基板26と、を中心に構成されている。 As shown in FIG. 3, the pachinko machine GM includes a power board 20 that receives AC24V and outputs various DC voltages and power failure signals ABN1 and ABN2, and a main control board 21 that centrally and centrally performs game control operations. , an effect interface board 22 on which a circuit element SND for sound effect is mounted, and an effect control board 23 for uniformly executing lamp effect, sound effect, and image effect based on the control command CMD received from the main control board 21. Then, based on the control command CMD' received from the main control board 21 and the liquid crystal interface board 24 located between the performance control board 23 and the display devices DS1 and DS2, the payout motor M is controlled to pay out the game balls. It is mainly composed of a payout control board 25 and a shooting control board 26 for shooting game balls in response to player's operation.

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

図示の通り、主制御基板21が出力する制御コマンドCMD’は、主基板中継基板33を経由して、払出制御基板25に伝送される。一方、主制御基板21が出力する制御コマンドCMDは、演出インタフェイス基板22を経由して演出制御基板23に伝送される。制御コマンドCMD,CMD’は、何れも16bit長であるが、8bit長毎に2回に分けてパラレル送信される。 As shown, the control command CMD' output by the main control board 21 is transmitted to the payout control board 25 via the main board relay board 33. 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 . Each of the control commands CMD and CMD' has a 16-bit length, but is divided into two 8-bit lengths and transmitted in parallel.

主制御基板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 . Also, the performance control board 23 is equipped with a composite chip 50 in which computer circuits such as a VDP circuit (Video Display Processor) 52 and a built-in CPU circuit 51 are built. 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 these circuits are collectively functionally referred to in this specification as , the main control unit 21, the performance control unit 23, and the payout control unit 25. Note that the effect control unit 23 and the payout control unit 25 are sub-control units for the main control unit 21 .

また、このパチンコ機GMは、図3の破線で囲む枠側部材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 dashed line in FIG. The frame-side member GM1 includes a front frame 3 to which a glass door 6 and a front plate 7 are pivotally attached, and a wooden outer frame 1 on the outside thereof, so that the game hall can be used for a long time regardless of model changes. fixedly installed in the On the other hand, the board-side member GM2 is replaced in response to the model change, and the 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の破線枠に示す通り、枠側部材GM1には、電源基板20と、払出制御基板25と、発射制御基板26と、枠中継基板36とが含まれており、これらの回路基板が、前枠3の適所に各々固定されている。一方、遊技盤5の背面には、主制御基板21、演出制御基板23が、表示装置DS1,DS2やその他の回路基板と共に固定されている。そして、枠側部材GM1と盤側部材GM2とは、一箇所に集中配置された接続コネクタC1~C4によって電気的に接続されている。 3, the frame-side member GM1 includes a power supply board 20, a payout control board 25, a firing control board 26, and a frame relay board 36. These circuit boards are Each is fixed to the proper place of the front 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 the display devices DS1, DS2 and other circuit boards. The frame-side member GM1 and the board-side member GM2 are electrically connected by connectors C1 to C4 centrally arranged in one place.

電源基板20は、接続コネクタC2を通して、主基板中継基板33に接続され、接続コネクタC3を通して、電源中継基板34に接続されている。そして、電源基板20には、交流電源の投入と遮断とを監視する電源監視部MNTが設けられている。電源監視部MNTは、交流電源の遮断を検知すると、電源異常信号ABN1,ABN2を、直ちにLレベルに遷移させる。なお、電源異常信号ABN1,ABN2は、電源投入後に速やかにHレベルとなる。 The power board 20 is connected to the main board relay board 33 through the connector C2, and is connected to the power relay board 34 through the connector C3. The power supply substrate 20 is provided with a power monitoring unit MNT for monitoring whether the AC power is turned on or off. When the power monitoring unit MNT detects the interruption of the AC power, it immediately changes the power failure signals ABN1 and ABN2 to the L level. The power failure signals ABN1 and ABN2 quickly become H level after the power is turned on.

主基板中継基板33は、電源基板20から出力される電源異常信号ABN1、バックアップ電源BAK、及びDC5V,DC12V,DC35Vを、そのまま主制御部21に出力している。また、電源中継基板34は、電源基板20から受けた交流及び直流の電源電圧DC5V,DC12V,DC35Vを、そのまま演出インタフェイス基板22に出力している。 The main board relay board 33 outputs the power failure signal ABN1, the backup power supply BAK, and DC5V, DC12V, and DC35V output from the power board 20 to the main control section 21 as they are. Also, the power supply relay board 34 outputs the AC and DC power supply voltages DC 5V, DC 12V, and DC 35V received from the power supply board 20 to the presentation interface board 22 as they are.

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

演出インタフェイス基板22には、電源投入時に、電源電圧の上昇を検知して各種のリセット信号RT3,RT4を生成するリセット回路RST3,RST4が搭載されている。先ず、リセット回路RST3は、電源基板20から配電された直流電圧12Vと5Vに基づいて、リセット信号RT3を生成している。そして、リセット信号RT3は、音声メモリ28だけを電源リセットして、そのまま演出制御基板23に伝送される。 The performance interface board 22 is equipped with reset circuits RST3 and RST4 for detecting an increase in the power supply voltage and generating 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 of 12V and 5V distributed from the power supply board 20. FIG. The reset signal RT3 resets 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. 4(a), the reset signal RT3 transmitted to the performance control board 23 is AND-operated with the output of the WDT (Watch Dog Timer) circuit 58 in the AND gate G1, and is output to the CPU circuit as the system reset signal SYS. 51 and the VDP circuit 52 are reset (see FIGS. 4A and 4D).

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

このシステムリセット信号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 (which is normally H level), the output of the WDT circuit 58 may change when the reset signal RT3=H due to program runaway or the like. Corresponding to the drop to L level, the system reset signal SYS also changes to L level to abnormally reset the CPU circuit 51 and the VDP circuit 52 (see FIG. 4(d)).

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

図示の通り、リセット回路RST4には、演出制御基板23から返送されたシステムリセット信号SYSも供給されているので、CPU回路51やVDP回路52の異常リセット時には、これらの回路の異常リセットに同期して、音声プロセッサ27も異常リセットされる。この結果、音声演出は、画像演出やランプ演出と共に初期状態に戻ることになり、不自然な音声演出が継続するおそれがない。 As illustrated, the reset circuit RST4 is also supplied with the system reset signal SYS sent back from the performance control board 23, so that when the CPU circuit 51 or the VDP circuit 52 is abnormally reset, the system is synchronized with the abnormal reset of these circuits. Then, the audio 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は、中継基板を介することなく、電源基板20に直結されて、主制御部21が受けると同様の電源異常信号ABN2や、バックアップ電源BAKを、その他の電源電圧と共に受けている。また、主制御部21と払出制御部25には、各々、リセット回路RST1,RST2が搭載されており、電源投入時に電源リセット信号が生成され、各コンピュータ回路が電源リセットされるよう構成されている。 Next, the payout control board 25, which is the frame-side member GM1, is directly connected to the power supply board 20 without going through the relay board, and outputs the same power failure signal ABN2 as the main control unit 21 receives, the backup power supply BAK, and the like. is received with the supply voltage of In addition, reset circuits RST1 and RST2 are installed in the main control unit 21 and the payout control unit 25, respectively, and a power reset signal is generated when power is turned on, and each computer circuit is power reset. .

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

また、主制御部21には、係員が操作可能な初期化スイッチSWが配置されており、電源投入時、初期化スイッチSWがON操作されたか否かを示すRAMクリア信号CLRが出力されるよう構成されている。このRAMクリア信号CLRは、主制御部21と払出制御部25のワンチップマイコンに伝送され、各制御部21,25のワンチップマイコンの内蔵RAMの全領域を初期設定するか否かを決定している。 Further, the main control unit 21 is provided with an initialization switch SW that can be operated by a staff member. 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は、電源基板20から電源異常信号ABN1,ABN2を受けることによって、停電や営業終了に先立って、必要な終了処理を開始するようになっている。また、バックアップ電源BAKは、営業終了や停電により交流電源24Vが遮断された後も、主制御部21と払出制御部25のワンチップマイコンの内蔵RAMのデータを保持するDC5Vの直流電源である。したがって、主制御部21と払出制御部25は、電源遮断前の遊技動作を電源投入後に再開できることになる(電源バックアップ機能)。このパチンコ機では少なくとも数日は、各ワンチップマイコンのRAMの記憶内容が保持されるよう設計されている。 In addition, the main control unit 21 and the payout control unit 25 receive the power failure signals ABN1 and ABN2 from the power supply board 20, and start necessary end processing prior to the power outage or closing of business. In addition, the backup power supply BAK is a DC 5V DC power supply that retains the data in the built-in RAM of the one-chip microcomputer of the main control unit 21 and the payout control unit 25 even after the AC power supply 24V is cut off due to the end of business or power failure. Therefore, the main control unit 21 and the payout control unit 25 can resume the game operation before the power shutdown after the power is turned on (power backup function). This pachinko machine is designed so that the memory contents of the RAM of each one-chip microcomputer are retained for at least several days.

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

また、主制御部21は、遊技盤中継基板32を経由して、遊技盤5の各遊技部品に接続されている。そして、遊技盤上の各入賞口16~18に内蔵された検出スイッチのスイッチ信号を受ける一方、電動式チューリップなどのソレノイド類を駆動している。ソレノイド類や検出スイッチは、主制御部21から配電された電源電圧VB(12V)で動作するよう構成されている。また、図柄始動口15への入賞状態などを示す各スイッチ信号は、電源電圧VB(12V)と電源電圧Vcc(5V)とで動作するインタフェイスICで、TTLレベル又はCMOSレベルのスイッチ信号に変換された上で、主制御部21に伝送される。 Also, the main control unit 21 is connected to each game component of the game board 5 via the game board relay board 32 . While receiving the switch signal of the detection switch built into each of the winning holes 16 to 18 on the game board, it drives solenoids such as an electric tulip. Solenoids and detection switches are configured to operate with the power supply voltage VB (12 V) distributed from the main control unit 21 . In addition, each switch signal indicating the winning state to the symbol start port 15 is converted into a switch signal of TTL level or CMOS level by an interface IC that operates with power supply voltage VB (12V) and power supply voltage Vcc (5V). After that, it is transmitted to the main control unit 21 .

先に説明した通り、演出インタフェイス基板22と演出制御基板23と液晶インタフェイス基板24とはコネクタ連結によって一体化されており、演出インタフェイス基板22は、電源中継基板34を経由して、電源基板20から各レベルの直流電圧(5V,12V,35V)を受けている(図3及び図4(a)参照)。直流電圧12Vは、デジタルアンプ29の電源電圧であると共に、LEDランプなどの駆動電圧として使用される。また、直流電圧35Vは、モータの駆動電圧として使用される。 As described above, the effect interface board 22, the effect control board 23, and the liquid crystal interface board 24 are integrated by connector connection. DC voltages (5 V, 12 V, 35 V) of various levels are received from the substrate 20 (see FIGS. 3 and 4(a)). A DC voltage of 12 V is used as a power supply voltage for the digital amplifier 29 and as a drive voltage for LED lamps and the like. A DC voltage of 35V is used as a drive voltage for the motor.

一方、直流電圧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 a power supply voltage for circuit elements in various locations on the production interface board 22, and is also supplied to two DC/DC converters DC1 and DC2 to generate 3.3V and 1.0V ( See FIG. 4(a)). The generated DC voltages of 3.3 V and 1.0 V are supplied to the audio processor 27 as power supply voltages for I/O (input/output) and chip core, respectively. Also, the DC voltage of 3.3 V is the base voltage of the power 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 of 3.3V distributed to the performance 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. 4(a), two DC/DC converters DC3 and DC4 are arranged on the effect control board 23, and based on the DC voltage 5V supplied to each, 1.5V and 1.05V is generating 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.5 V is also supplied to the DRAM 54 as a power supply voltage.

図3に示す通り、演出インタフェイス基板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. 3 , the effect interface board 22 receives the control command CMD and the strobe signal STB from the main control section 21 and transfers them to the effect control board 23 . More specifically, as shown in FIG. 4(a), the control command CMD and 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 the received interrupt signal IRQ_CMD, and the effect control CPU 63 acquires the control command CMD based on the interrupt processing program (interrupt handler) started upon receiving the received 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 switch signals for the chance button 11 and 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 transmitting to circuit 51 . Specifically, the 3-bit length of the encoder output indicating the contact position (0 to 7) of the volume switch VLSW and the 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に伝送している。 The effect interface board 22 is connected to the lamp drive board 30 and the motor lamp drive board 31, and is also connected to the lamp drive board 37 via the frame relay boards 35 and . As shown, an output buffer 42 is arranged corresponding to the lamp driving board 30 , and an input buffer 43 a and an output buffer 43 b are arranged corresponding to the motor lamp driving board 31 . Note that in FIG. 4A, the input buffer 43a and the output buffer 43b are collectively referred to as an input/output buffer 43 for the sake of convenience. The input buffer 43a receives the outputs SN0 to SNn of the origin sensors for grasping the current positions of the characters as movable effects (rotational positions of the effect motors M1 to Mn), and transmits the outputs 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 lamp drive board 30, the motor lamp drive board 31, and the lamp drive board 37 are equipped with driver ICs of the same kind. is forwarding to Specifically, the serial signals are a lamp (motor) drive signal SDATA and a clock signal CK. , the performance motors M1 to Mn perform a role performance.

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

以上の点は、ランプ駆動基板30についても同様であり、ランプ駆動基板30のドライバICは、ランプ群CH1のランプ駆動信号SDATA1を、クロック信号CK1に同期して受け、動作制御信号ENABLE1がアクティブレベルに変化したタイミングで、ランプ群CH1の点灯状態を一斉に更新している。 The above points also apply to the lamp drive board 30. The driver IC of the lamp drive board 30 receives the lamp drive signal SDATA1 of the lamp group CH1 in synchronization with the clock signal CK1, and the operation control signal ENABLE1 is at the active level. , 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 clock synchronization to drive the lamp group CH2, and receives the motor drive signal transmitted in clock synchronization to A performance motor group M1 to Mn composed of a plurality of stepping motors is driven. The lamp driving signal and the motor driving signal are a series of serial signals SDATA2, which are serially transmitted in synchronism with the clock signal CK1. , the driving states of the lamp group CH2 and the motor groups M1 to Mn are updated.

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

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

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

音声制御レジスタSRGは、レジスタバンク1~レジスタバンク6に区分され、各々、00H~FFHのレジスタ番号で特定される。したがって、所定の設定動作は、レジスタバンクを特定した上で、演出制御CPU63が、所定のレジスタ番号(1バイト長)の音声制御レジスタSRGに、1バイト長の動作パラメータを書込むことで実現される。 The voice control register SRG is divided into register banks 1 to 6, which are specified by register numbers 00H to FFH, respectively. 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. be.

本実施例の場合、音声制御レジスタ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 voice control register SRG of the register number XXH is set to the operating parameter YYH. In this case, the effect control CPU 63 writes XXH to the zero address of the address space CS3, and then writes YYH to the first address. That is, the effect control CPU 63 writes XXH and YYH to the data bus in this order. In this specification, the subscript H and the prefixes 0X/0x indicate that the numerical values are represented in hexadecimal notation.

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

図4(e)は、演出制御CPU63による音声レジスタSRGへの設定動作を図示したものであり、2bit長のアドレスバスA1-A0と、1バイト長のデータバスD7-D0の内容が示されている。なお、本実施例では、チップセレクト信号CS3は、アドレス空間CS3をアクセスする場合に、自動的にアクティブになるよう、電源投入時に設定されるが、この点は図6や図12に関して後述する。 FIG. 4(e) illustrates the setting operation to the voice 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. there is In this embodiment, the chip select signal CS3 is set at power-on so as to automatically become active when accessing the address space CS3, which will be described later with reference to FIGS. 6 and 12. FIG.

何れにしても、本実施例の場合、音声メモリ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 phrase compressed data specified by a 13-bit length phrase number NUM (000H to 1FFFH), and a series of background data. A maximum of 8192 types (=2 13 ) of one piece of music (BGM), a group of dramatic sounds (announcement sounds), etc. are stored in association with the phrase number NUM. This phrase number NUM is specified by a set value (operating parameter) of a voice command transmitted from the performance 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 audio memory 28 having the above configuration is power reset by the reset signal RT3, and the audio processor 27 is power reset by the reset signal RT4. As shown in FIG. 4(c), the reset signal RT4 rises to H level after a predetermined assertion period ASRT (L level section) after power-on. function automatically to perform initialization sequence processing. This initialization sequence process is an internal operation that is executed according to a predetermined procedure, and the effect control CPU 63 cannot access the sound register SRG during the operation of the initialization sequence process.

そして、内部動作たる初期化シーケンス処理が完了すると、CPU回路51に対する割込み信号IRQ_SND がLレベルに変化し、CPU回路51(演出制御CPU63)は、割込み信号IRQ_SND に基づき割込み処理プログラムを実行する。そして、所定の命令に基づいて割込み信号IRQ_SND がHレベルに戻されるが、その詳細については、図14(c)を参照して更に後述する。 When the initialization sequence processing as an internal operation is completed, the interrupt signal IRQ_SND to the CPU circuit 51 changes to 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 H level based on a predetermined instruction, the details of which will be described later with reference to FIG. 14(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. 4(a), the data bus and address bus of the CPU circuit 51 of the effect control section 23 extend to a clock circuit (real time clock) 38 and effect data memory 39 mounted on the liquid crystal interface board 24. I'm listening. 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. (having an address value) can be accessed arbitrarily.

また、演出データメモリ39は、高速アクセス可能なメモリ素子SRAM(Static Random Access Memory )であって、CPU回路51のアドレスバスの16bitと、データバスの下位16bitに接続されており、チップセレクト信号CS4でチップ選択された状態では、SRAM(演出データメモリ)39に記憶されている遊技実績情報その他が、CPU回路51から適宜にR/Wアクセスされるようになっている。なお、チップセレクト信号CS4で選択されるアドレス空間CS4において、0番地から15番地までは時計回路38に付番されているので、SRAM39では使用しない。 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 the 16-bit address bus of the CPU circuit 51 and the lower 16-bit data bus. In the state where the chips are selected in , game performance information and other information stored in the SRAM (performance 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, since addresses 0 to 15 are assigned to the clock circuit 38, the SRAM 39 does not use them.

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

図7に関して後述するように、制御メモリ(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. 7, control memory (PROM) 53 is located in address space CS0 selected by chip select signal CS0 in this embodiment. A DRAM (Dynamic Random Access Memory) 54 composed of DDR (Double-Data-Rate 3) is positioned in an address space CS5 selected by a chip select signal CS5.

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

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

先ず、CPU回路51は、発振器OSC1の発振出力(例えば100/3MHz)をHCLKI 端子に受けて、これを周波数逓倍(例えば8逓倍)して、266.7MHz程度のCPU動作クロックとしている。ここで、発振器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 the frequency (for example, by 8) to obtain a CPU operating clock of about 266.7 MHz. Here, the oscillator OSC1 is configured to output a spread spectrum wave, thereby taking measures against EMI (Electromagnetic Interference) for preventing radio interference/electromagnetic interference.

一方、VDP回路52は、発振器OSC2の発振出力(例えば40MHz)をPLLREF端子に受け、PLL(Phase Locked Loop )回路で、適宜に周波数逓倍した上で、VDP回路52のシステムクロック、表示装置用の表示クロック(ドットクロックなど)、及び、外付けDRAM54のDDRクロックとして使用している。すなわち、発振器OSC2の出力は、VDP回路52全体のリファレンスクロックとして機能している。なお、PLL回路の周波数逓倍比は、所定の設定端子への設定値で規定される。 On the other hand, the VDP circuit 52 receives the oscillation output (for example, 40 MHz) of the oscillator OSC2 at the PLLREF terminal, and after appropriately multiplying the frequency by a PLL (Phase Locked Loop) circuit, the system clock of the VDP circuit 52 and the display device It is used as a display clock (dot clock, etc.) and a DDR clock for the external DRAM 54 . That is, the output of oscillator OSC2 functions as a reference clock for the entire VDP circuit 52. FIG. Note that the frequency multiplication ratio of the PLL circuit is defined by a set value to a predetermined setting terminal.

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

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

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

続いて、CPU回路51とVDP回路52について、互いの送受信データを中継するCPUIF回路56について説明する。図5(a)に示す通り、CPUIF回路56には、制御プログラムや必要な制御データを不揮発的に記憶する制御メモリ(PROM)53と、2Mバイト程度の記憶容量を有するワークメモリ(RAM)57とが接続され、各々、CPU回路51からアクセス可能に構成されている。先に説明した通り、制御メモリ(PROM)53は、チップセレクト信号CS0で選択されるアドレス空間CS0に位置付けられ、ワークメモリ(RAM)57は、チップセレクト信号CS6で選択されるアドレス空間CS6に位置付けられている。 Next, the CPUIF circuit 56 that relays transmission/reception data between the CPU circuit 51 and the VDP circuit 52 will be described. As shown in FIG. 5A, the CPUIF circuit 56 includes a control memory (PROM) 53 for nonvolatilely storing control programs and necessary control data, and a work memory (RAM) 57 having a storage capacity of about 2 Mbytes. , 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. It is

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

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

次に、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 performance equivalent to that of a general-purpose one-chip microcomputer. 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 for 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 output ports So, a parallel input/output port (PIO) 62 having a plurality of input ports Pi and output ports Po, and It includes an operation control register REG in which set values are set to control the operation. However, in this embodiment in which the external WDT circuit 58 is provided, the watchdog timer (WDT) built in the CPU circuit 51 is not utilized.

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

パラレル入出力ポート62は、入出力回路64pを通して外部機器(演出インタフェイス基板22)に接続されており、演出制御CPU63は、入力回路64pを経由して、音量スイッチVLSWのエンコーダ出力3bitと、チャンスボタン11のスイッチ信号と、制御コマンドCMDと、割込み信号STBと、を受信するようになっている。エンコーダ出力3bitと、スイッチ信号1bitは、入出力回路64pを経由して、パラレル入出力ポート(PIO)62に供給されている。 The parallel input/output port 62 is connected to an external device (effect interface board 22) through an input/output circuit 64p. It receives the switch signal of the button 11, the control command CMD, and the interrupt signal STB. A 3-bit encoder output and a 1-bit switch signal are supplied to a parallel input/output port (PIO) 62 via an 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, thereby activating the reception interrupt process. Therefore, the effect control CPU 63, which grasps the control command CMD based on the reception interrupt process, controls the sound effect, the lamp effect, the motor effect, and the image effect corresponding to the control command CMD through the effect lottery and the like in a unified manner. will do.

特に限定されないが、本実施例では、ランプ演出とモータ演出のために、VDP回路52のSMC部(Serial Management Controller)78を使用している。SMC部78は、LEDコントローラとMotorコントローラと、を内蔵した複合コントコントローラであり、クロック同期方式でシリアル信号を出力できるよう構成されている。また、Motorコントローラは、所定の制御レジスタ70への設定値に基づき、任意のタイミングでラッチパルスを出力可能に構成され、また、クロック同期方式でシリアル信号を入力可能に構成されている。 Although not particularly limited, in this embodiment, the SMC (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 incorporating an LED controller and a motor controller, and is configured to output a serial signal in clock synchronization. Also, the motor controller is configured to output latch pulses at arbitrary timings based on the values set in the predetermined control register 70, and to input serial signals in a clock-synchronized manner.

そこで、本実施例では、クロック信号に同期してモータ駆動信号やLED駆動信号を、SMC部78から出力させる一方、適宜なタイミングで、ラッチパルスを、動作制御信号ENABLEとして出力するようにしている。また、演出モータ群M1~Mnからの原点センサ信号SN0~SNnをクロック同期方式でシリアル入力するよう構成されている。 Therefore, in this embodiment, while the motor drive signal and the LED drive signal are output from the SMC unit 78 in synchronization with the clock signal, 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 performance motor groups M1 to Mn are serially input in a clock synchronous manner.

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

但し、本実施例において、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 use these ports to execute lamp effects and motor effects.

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

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

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

但し、例えば、意図的に無限ループ処理を実行させて外付けの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 power-on, and the value of the VDP register RGij of the VDP circuit 52 is also returned to the default value (initial value). This eliminates the abnormal state.

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

以上を踏まえてリセット機構について説明すると、図4(b)に示す通り、複合チップ50は、論理反転されたシステムリセット信号SYSバーを受ける3個のORゲートG2~G4を経由して、内部回路がリセット可能に構成されている。但し、本実施例では、破線で示すように、内蔵WDTを有効化しないので、ORゲートG2の入端子と出力端子は、直結状態となる。 Based on the above, the reset mechanism will be described. As shown in FIG. is configured to be resettable. However, in this embodiment, the built-in WDT is not activated as indicated by the dashed line, so 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 receives from the parallel input/output port (PIO) 62 a predetermined keyword string (a code string for resetting). ), 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 three parts: (1) the CPU circuit 51, (2) the display circuit 74 of the VDP circuit 52, and (3) the circuits other than the display circuit of the VDP circuit 52. It is configured to receive reset signals of the first to third reset paths from gates G2 to G4.

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

この第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 detects a predetermined abnormality to abnormally reset the entire VDP circuit 52 to return it to its initial state. Specifically, when it is determined that a serious abnormality has occurred based on a predetermined status register RGij that indicates the internal operation of the VDP circuit 52, the 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リセット経路で、必要時に個々的にリセットすることも可能に構成されている。個々的にリセット可能な内部回路には、図5(a)に示すインデックステーブルIDXTBL、データ転送回路72、プリローダ73、表示回路74、描画回路76、SMC回路78、及び、音声回路SNDや、図10に示すICM回路が含まれている。 On the other hand, the internal circuits built in the VDP circuit 52 are configured to be able to be reset individually when necessary through the fourth reset path. The individually resettable internal circuits include an index table IDXTBL, a data transfer circuit 72, a preloader 73, a display circuit 74, a drawing circuit 76, an SMC circuit 78, and an audio circuit SND shown in FIG. An ICM circuit shown at 10 is included.

個別的なリセット動作を実現する手法は、図4(b)の下部に記載の通りであり、例えば、表示回路74は、所定のVDPレジスタRGij(システムコマンドレジスタ)に、第1リセット値を書き込むことで、第4リセット経路4A→第3リセット経路を経てリセットされる。 A method of realizing individual reset operations is as described in the lower part of FIG. Thus, it is reset via the fourth reset path 4A→the third 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)。 Each internal circuit (72, 73, 74, 76, SND, . After writing, (2) a predetermined VDP register RGij (system command register) is reset individually by writing a second reset value (fourth reset path 4B). Although not used in this embodiment, the audio circuit SND can be reset not only by the fourth reset path 4B, but also by writing a reset value to a predetermined VDP register (circuit setting command register). 4 reset path 4C).

本実施例は、上記の構成を有するので、電源投入時やプログラム暴走時に、VDP回路52全体が自動的に初期状態に戻るだけでなく、必要に応じて、各部を初期状態に戻して異常事態の回復を図ることができる。例えば、一定期間、内蔵VRAM71に対してREAD/WRITE アクセスがない描画回路76のフリーズ時には、第4リセット経路4Bを経由して描画回路76が個別的に初期化される(図17(d)のST16a参照)。プリローダ73やデータ転送回路72についても、ほぼ同様であり、所定の異常時には、第4リセット経路4Bを経由してプリローダ73が初期化され(図24のST27参照)、第4リセット経路4Bを経由してデータ転送回路72が初期化される(図19や図24のST27参照)。 Since this embodiment has the above-described configuration, not only does the entire VDP circuit 52 automatically return to the initial state when the power is turned on or when the program runs out of control, but each part is returned to the initial state as necessary to prevent an abnormal situation from occurring. recovery can be achieved. For example, when the drawing circuit 76 is frozen without 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. 17(d) ST16a reference). 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. 24), and is reset via the fourth reset path 4B. Then the data transfer circuit 72 is initialized (see ST27 in FIG. 19 and FIG. 24).

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

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

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

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

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

また、割込み処理の終了時に所定の復帰命令を実行すると、例えば19個の退避データが、対応する内蔵レジスタに自動的に復帰される。したがって、通常の構成のように、割込み処理の開始時にPUSH命令を19回実行し、割込み処理の終了時にPOP命令を19回実行する手間が不要となり、高速処理が実現される。 Further, when a predetermined return instruction is executed at the end of interrupt processing, for example, 19 pieces of saved data are automatically restored to the corresponding built-in registers. Therefore, 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 as in a normal configuration, 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 Harvard cache operation by providing an instruction cache memory 67, an operand cache memory 89, and a cache controller 69, and when accessing the same address, cached By using this data, we are aiming to further speed up program processing. By providing the bus bridge 65, the controller for the peripheral bus (1), the controller for the peripheral bus (2), and the 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.

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

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

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

先に説明した通り、アドレス空間CS0~CS7とは、揮発性の有無を含むメモリ種別や、データバス幅(8/16/32ビット)を、各々、規定可能なCPU回路51にとって外部メモリを意味する。そして、本実施例では、図6(b)や図7に示す通り、制御メモリ(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 external memories for the CPU circuit 51, which can define the memory type including the presence or absence of volatility, and the data bus width (8/16/32 bits). do. In this embodiment, as shown in FIGS. 6B and 7, the control memory (PROM) 53 has an address space CS0, the audio control register SRG of the audio processor 27 has an address space CS3, the internal registers of the clock circuit 38 and The SRAM 39 is positioned in the address space CS4, the external DRAM (DDR) 54 is positioned in the address space CS5, the work memory 57 is positioned in the address space CS6, and the VDP register RGij is positioned in the address space CS7. A description of the address spaces CS1 and CS2 will be omitted.

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

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

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

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

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

次に、割込みコントローラINTCは、VDP回路52やDMAC回路60やマルチファンクションタイマユニットMTUなどからの内部割込みと、IRQ_CMD 、IRQ_SND 、IRQ_RCT などの外部割込みを受けて、予め規定されている優先順位に基づいて、割込み処理(割込みハンドラ)を起動させる回路である。ここで、IRQ_CMD は、制御コマンドCMDを受信すべきコマンド受信割込み信号、IRQ_SND は、音声プロセッサ27が初期化シーケンスを終えたことを示す終了割込み信号、IRQ_RCT は、アラーム割込み信号である。 Next, the interrupt controller INTC receives internal interrupts from the VDP circuit 52, the DMAC circuit 60, the multi-function timer unit MTU, etc., and external interrupts such as IRQ_CMD, IRQ_SND, IRQ_RCT, etc., and based on a predetermined priority. It is a circuit that activates interrupt processing (interrupt handler). IRQ_CMD is a command reception interrupt signal for receiving the control command CMD, IRQ_SND is a termination 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 の順になっている(図14(d)参照)。なお、これらは何れも、マスク可能な割込みであり、マスク不能な割込みNMIは、先に説明した通り、発振器OSC2からリファレンスクロックが出力されていない場合に演出制御CPU63に出力される。 In this embodiment, the command reception interrupt IRQ_CMD has the highest level of interrupt priority. The order is IRQ_RCT (see FIG. 14(d)). All of these are maskable interrupts, and the unmaskable 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に、自動的に退避される。そして、割込み処理の最後に所定の復帰命令を実行すると、退避データが、対応する内蔵レジスタに自動的に復帰される。 In any interrupt process, the register values (32-bit length each) of a plurality of built-in registers of the CPU are automatically saved in any one of the empty register banks RBi. Then, when a predetermined restore instruction is executed at the end of interrupt processing, the saved data is automatically restored to the corresponding built-in register.

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

DMAC回路60の活用としては、例えば、シリアル出力ポートSOが機能する実施例(図7(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 dashed line in FIG. 7A), the operation control register REG of the CPU circuit 51 stores the top address of the lamp/motor drive table. (head value of transfer source address), address of input register of serial output port SO (fixed value of transfer destination address), data transfer unit (8 bits), and number of transfers are specified. Then, the DMAC circuit 60, which has received the operation start instruction from the predetermined operation control register REG, DMA-transfers the driving data to the predetermined transfer destination address while updating the transfer source address. Then, when all DMA transfers are completed, a DMAC interrupt (operation end interrupt) is generated.

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

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

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

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

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

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

ここで、単一オペランド転送とは、図8(b1)に示すように、DMA転送要求が与えられるたびに、1オペランドの転送を繰り返し、転送バイト数をカウントするバイトカウントがゼロになった時点で、DMA割込み要求が生じる動作モードを意味する。次に、連続オペランド転送とは、図8(b2)に示すように、1回のDMA要求で、バイトカウントがゼロになるまでDMA転送を繰り返す動作モードを意味する。 Here, the single-operand transfer is a point in time when the byte count, which counts the number of transfer bytes, reaches zero, as shown in FIG. and means the mode of operation in which a DMA interrupt request occurs. Next, continuous operand transfer means an operation mode in which DMA transfer is repeated until the byte count becomes zero with one DMA request, as shown in FIG. 8(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 each time a single operand transfer is completed. transfer continues (channel arbitration mode of operation). Therefore, in this embodiment, the 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. During parallel operation, the DMACi of the optimum channel is used so as to achieve channel arbitration with the priority of, for example, motor data>display list DL>lamp data.

一方、ノンストップ転送とは、チャネル調停が実行されない動作モードであって、図8(b3)に記載の通り、1回のDMA要求で、バイトカウントがゼロになるまで連続的にDMA転送が繰り返される。本実施例では、電源投入時のメモリセクション初期化処理(図12のSP8)では、ノンストップ転送でプログラムやデータをDMA転送している。 On the other hand, non-stop transfer is an operation mode in which channel arbitration is not executed, and DMA transfer is continuously repeated until the byte count reaches zero with one DMA request, as shown in FIG. be In this embodiment, in the memory section initialization process (SP8 in FIG. 12) at power-on, programs and data are 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 )で構成される。 The CPU circuit 51 has been described above. Next, the VDP circuit 52 will be described. , a main display device DS1, and a sub display device DS2 are connected. 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 with a storage capacity of about 62 Gbits. is configured to obtain Therefore, the problem of skew (difference in transmission speed for each bit data) that inevitably occurs in parallel transmission is resolved, 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 conforming to SerialATA.

なお、SerialATAに準拠したHSS方式を採るか否かに拘らず、NAND型のフラッシュメモリは、ハードディスクより機械的に安定であり、且つ高速アクセスが可能である一方で、シーケンシャルアクセスメモリであるため、DRAMやSRAM(Static Random Access Memory )に比較すると、ランダムアクセス性に問題がある。そこで、本実施例では、一群の圧縮データ(CGデータ)を、描画動作に先行してDRAM54に読み出しておくプリロード動作を実行することで、描画動作時におけるCGデータの円滑なランダムアクセスを実現している。ちなみに、アクセス速度は、内蔵VRAM>外付けDRAM>CGROMの順番に遅くなる。 Regardless of whether or not the HSS method conforming to SerialATA is adopted, the NAND type flash memory is mechanically more stable than the hard disk and is capable of high-speed access. Compared with DRAM and SRAM (Static Random Access Memory), there is a problem in random accessibility. Therefore, in this embodiment, a group of compressed data (CG data) is preloaded into the DRAM 54 prior to the drawing operation, thereby realizing smooth random access of the CG data during the drawing operation. ing. Incidentally, the access speed decreases 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と、を有して構成されている。なお、音声回路SNDも内蔵されている。 More specifically, the VDP circuit 52 includes a control register group 70 in which various operating parameters that define the operation of the VDP (Video Display Processor) can be set by an effect control CPU 63, and image data to be displayed on the display devices DS1 and DS2. A built-in VRAM (video RAM) 71 of about 48 Mbytes used at the time of generation, a data transfer circuit 72 for executing 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 have Source and Destination. An index table IDXTBL capable of specifying address information, a preloader 73 capable of executing a preload operation for READ access to the CGROM 55 prior to the drawing operation, and a graphics decoder for decoding (decoding/decompressing/decompressing) compressed data read from the CGROM 55. (GDEC) 75, a rendering circuit 76 for generating image data for one frame of each of the display devices DS1 and DS2 by appropriately combining still image data and moving image data after decoding (expanding), and operation of the rendering circuit 76. A geometry engine 77 that generates a stereoscopic image by appropriate coordinate transformation, and a three-system system that reads image data from the frame buffers FBa and FBb generated by the drawing circuit 76 and executes 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-system (A/B/C) display circuits 74, and an image output by the output selection unit 79 LVDS section 80 for converting data into LVDS signals, SMC section 78 capable of transmitting and receiving serial data, CPUIF section 81 for relaying data transmission and reception with CPUIF circuit 56, and CG bus IF section 82 for relaying data reception from CGROM 55. , a DRAMIF section 83 for relaying data transmission/reception with the external DRAM 54 , and a VRAMIF section 84 for relaying data transmission/reception with the built-in VRAM 71 . An audio circuit SND is also incorporated.

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

但し、上記したプリロード動作は、何ら必須動作ではなく、また、データ転送先も、外付けDRAM54に限定されず、内蔵VRAM71であっても良い。したがって、例えば、プリロード動作を実行しない実施例では、CGデータは、データ転送回路72及びVRAMIF部84を経由して、内蔵VRAM71に転送される(図5(b))。 However, the above-described 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 as well. Therefore, for example, in an embodiment in which no preload operation is performed, the CG data is transferred to the built-in VRAM 71 via the data transfer circuit 72 and VRAMIF section 84 (FIG. 5(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 the image data specifying the expansion area of the compressed data read from the CGROM 55 and the ARGB information (32 bits=8×4) of each of W×H display pixels of the display device. A frame buffer area to store the depth information of each display pixel and a Z buffer area to store the depth information of each display pixel are required. In the ARGB information, A means 8-bit α-plane data, and RGB means 8-bit data of three primary colors.

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

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

このインデックス空間は、(1) 初期処理後に追加することや、逆に、(2) 開放することも必要となる。そこで、これら追加/開放の演出制御CPU63の動作時に、追加/開放の処理が可能なタイミングか否か、また、追加/開放などの処理が実際に完了したか否か、などを判定可能なフラグ領域FGをインデックステーブルIDXTBLに設けている。なお、内蔵VRAM71は、以下に説明する2つのAAC領域(a1,a2) と、ページ領域(b) と、任意領域(c) の三種類のメモリ領域に大別され、この三種類のメモリ領域(a1,a2)(b)(c) に対応して、インデックステーブルIDXTBLが3区分されている(図9(a))。図示の通り、この実施例では、AAC領域(a) として、第一AAC領域(a1)と第二AAC領域(a2)が確保されているが、特に限定されるものではなく、何れか一方だけでも良い。なお、以下の説明では、第一と第二のAAC領域(a1,a2) を総称する場合には、AAC領域(a) と称する場合がある。 This index space needs to be (1) added after initial processing, and conversely (2) freed. Therefore, when the addition/release effect control CPU 63 operates, a flag that can determine whether or not it is the timing at which the addition/release processing can be performed, and whether or not the processing such as addition/release has actually been completed. A region 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, a2), a page area (b), and an arbitrary area (c). The index table IDXTBL is divided into three sections corresponding to (a1,a2)(b)(c) (FIG. 9(a)). As shown in the figure, in this embodiment, the first AAC area (a1) and the second AAC area (a2) are secured as the AAC area (a). But it's okay. In the following description, the first and second AAC areas (a1, a2) may be collectively referred to as the AAC area (a).

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

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

次に、このように確保された各領域(a1,a2)(b)(c) に必要個数のインデックス空間が設定される。なお、任意領域(c) を使用する場合、VDP回路52の内部動作を円滑化するため、二次元データを扱うインデックス空間の水平サイズHxは、256bitの倍数として、任意に設定可能である一方、その垂直サイズは固定値(例えば、2048ライン)となっている。 Next, the necessary number of index spaces are set in each of the areas (a1, a2), (b), and (c) thus secured. When the optional area (c) is used, the horizontal size Hx of the index space handling 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 first and second AAC areas (a1, a2) are automatically given an index space and an index number by the VDP circuit 52. Therefore, for example, the SETINDEX command, which is a texture setting command, If the AAC area (a) is specified as the decoding destination, the TXLOAD (texture load) command for reading CG data from the CGROM 55 only needs to specify the source address of the CGROM 55 and the horizontal and vertical sizes after expansion (decoding). It will be. Therefore, in the present embodiment, still images (textures) such as characters that temporarily appear in advance notice effects and I-stream moving images are decoded to the AAC area (a).

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

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

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

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

なお、SPRITEコマンドの実行により、移動元のSource画像データが、形式上は、図9(c)に示す仮想描画空間に描画されるが、表示装置に実際に描画される仮想描画空間内の描画領域と、フレームバッファとなるインデックス空間との対応関係を、予め環境設定コマンド(SETDAVR ,SETDAVF )や、テクスチャ設定系コマンド(SETINDEX)によって設定しておけば、例えば、SPRITEコマンドによる仮想描画空間への描画により、所定のインデックス空間(フレームバッファ)には、移動元のSource画像データが描画されることになる(図9(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. 9(c). If the correspondence relationship between the area and the index space that becomes the frame buffer is set in advance by environment setting commands (SETDAVR, SETDAVF) and texture setting commands (SETINDEX), for example, the sprite command can be used to access the virtual drawing space. By drawing, the Source image data of the movement source is drawn in a predetermined index space (frame buffer) (see FIG. 9(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), each of which has an appropriate number of index spaces. 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) (excluding the AAC area (a) automatically assigned by the internal circuit) and the arbitrary area (c) are rendered in the range of 0 to 255. The control CPU 63 can freely assign index numbers.

そこで、本実施例では、図9(a)に示す通り、表示装置DS1用として、任意領域(c) に、一対のフレームバッファFBaを確保して、ダブルバッファ構造の双方に、インデックス番号255,254を付与している。すなわち、メイン表示装置DS1用のフレームバッファFBaとして、トグル的に切り換えて使用されるインデックス空間255と、インデックス空間254を確保している。特に限定されないが、このインデックス空間255,254は、表示装置DS1の横方向ピクセル数に対応して、水平サイズ1280としている。なお、各ピクセルは、ARGB情報32bitで特定されるので、水平サイズ1280は、32×1280=40960bit(256bitの倍数)を意味する。 Therefore, in this embodiment, as shown in FIG. 9(a), a pair of frame buffers FBa are secured in an arbitrary area (c) for the display device DS1, and index numbers 255, 254 is given. That is, an index space 255 and an index space 254 that are toggled to be used are secured as the frame buffer FBa for the main display device DS1. Although not particularly limited, the index spaces 255 and 254 have a horizontal size of 1280 corresponding to the number of pixels in the horizontal direction of the display device DS1. Since each pixel is specified by 32-bit ARGB information, 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の倍数)を意味する。 For the display device DS2, another pair of frame buffers FBb are 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 pixels in the horizontal direction of the display device DS2. Also in this case, each pixel is specified by 32 bits of ARGB information, so the horizontal size 480 means 32×480=15360 bits (a multiple of 256 bits).

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

但し、任意領域(c)に確保される二次元のインデックス空間は、その垂直サイズが固定値(例えば、2048ライン)となっている。そのため、フレームバッファFBaにおいて、水平サイズ1280×垂直サイズ1024の領域だけが、メイン表示装置DS1にとって有効データ領域となる。この点は、サブ表示装置DS2についても同様であり、フレームバッファFBbにおいて、水平サイズ480×垂着サイズ800の領域だけが、サブ表示装置DS2にとって有効データ領域となる(図9(c),図17(e)参照)。 However, the vertical size of the two-dimensional index space secured in the arbitrary area (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 the valid 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 horizontal size 480×vertical size 800 becomes an effective data area for the sub-display device DS2 (FIG. 9C, FIG. 17(e)).

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

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

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

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

そこで、本実施例では、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 in the page area (b) instead of the AAC area (a) where there is a concern that the old data will be destroyed. That is, a number of index spaces (IDX 0 to IDX N ) are secured in the page area (b) that can secure index spaces of multiple dimensions of horizontal size 128×vertical size 128, and a series of video frames are The same index space IDXi corresponding to MVi is always used for decoding. That is, the moving picture MV1 is developed in the index space IDX1, the moving picture MV2 is developed in the index space IDX2, and similarly, the moving picture MVi is developed in the index space IDXi.

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

すると、TXLOADコマンドが特定するCGROM55上の動画一フレーム(一連の動画フレームの何れか)が、先ず、AAC領域(a) に取得され、その後、自動的に起動するGDEC(グラフィックスデコーダ)75によって、ページ領域(b) のインデックス空間(i)に、取得した動画一フレームがデコードされて展開されることになる。 Then, one moving image frame (either of a series of moving image 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 moving image is decoded and developed in the index space (i) of the page area (b).

一方、本実施例では、Iストリーム動画については、静止画と同一扱いとしており、SETINDEXコマンドによって、「Iストリーム動画MVjのデコード先は、第一AAC領域(a1)である」と指定して、TXLOADコマンドを実行させる。その結果、動画フレームは第一AAC領域(a1)に取得され、その後、自動的に起動するGDEC75が、第一ACC領域(a1)にデコードデータを展開している。先に説明した通り、AAC領域(a) のインデックス空間は、自動的に生成されるので、インデックス番号を指定する必要はない。なお、インデックス空間に必要となる展開ボリューム、つまり、デコードされたテクスチャ(動画フレーム)の水平サイズと垂直サイズは、展開先がAAC領域(a) か、ページ領域(b) かに拘らず、TXLOADコマンドによって特定される。 On the other hand, in this embodiment, I-stream moving pictures are handled in the same way as still pictures. Run the TXLOAD command. As a result, the moving image frame is acquired in the first AAC area (a1), and then the automatically started GDEC 75 develops the decoded data in the first ACC area (a1). As explained above, the index space for the AAC area (a) is automatically generated, so there is no need to specify the index number. Note that 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). Identified by command.

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

なお、圧縮動画データのデコード処理を高速化するため、専用のGDEC(グラフィックスデコーダ)回路を設けることも考えられる。そして、専用のGDEC回路をVDP回路52に内蔵させれば、N枚の圧縮動画フレームで構成された圧縮動画データのデコード処理において、動画圧縮データの先頭アドレスをGDEC回路に指示すれば足りるので、N枚の圧縮動画フレームについて、1枚ごとに先頭アドレスを指定する必要がなくなる。 It is also conceivable to provide a dedicated GDEC (graphics decoder) circuit in order to speed up the decoding process of compressed video data. If a dedicated GDEC circuit is incorporated in the VDP circuit 52, it is sufficient to instruct the GDEC circuit of the head address of the compressed moving image data in the decoding process of the compressed moving image data composed of N compressed moving image 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, incorporating a plurality of such dedicated GDEC circuits for each compression algorithm further complicates the internal configuration of the VDP circuit 52 . Therefore, in this embodiment, software GDEC is used, and decoding processing is realized by software processing corresponding to each compression algorithm for data such as IP stream moving images, I stream moving images, still images, and other α values. The processing time difference between the hardware processing and the software processing does not matter so much, and the processing time that matters is mainly the access (READ) time from the CGROM 55 .

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

図10に示す通り、データ転送回路72は、ルータ機能を有する統合接続バスICMを経由して、CGROM55、DRAM54、及び、内蔵VRAM71とデータを送受信するよう構成されている。なお、CGROM55とDRAM54は、CGバスIF部82や、DMAMIF部83を経由してアクセスされる。 As shown in FIG. 10, the data transfer circuit 72 is configured to transmit/receive data to/from the CGROM 55, DRAM 54, and built-in VRAM 71 via an integrated connection bus ICM having a router function. The CGROM 55 and DRAM 54 are accessed via the CG bus IF section 82 and the DMAM IF section 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 the display list DL to the drawing circuit 76 and the preloader 73 via the transfer port register TR_PORT incorporated in the data transfer circuit 72 . The CPU circuit 51 and the data transfer circuit 72 are bi-directionally connected. 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 section 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, the effect control CPU 63 can WRITE access the transfer port register TR_PORT via the CPUIF unit 81, while the DMAC circuit 60 directly accesses the transfer port register TR_PORT when utilizing the DMAC circuit 60. WRITE access. A series of instruction commands written in the transfer port register TR_PORT (that is, a series of instruction commands forming the display list DL) are processed in 32-bit units by a CPU bus containing a FIFO buffer with a FIFO structure (32 bits x 130 stages). 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段)と、を有している。 In addition, the data transfer circuit 72 executes data transmission/reception operations on transmission paths of three channels ChA to ChC, and has a FIFO buffer of FIFO structure (64 bits×N stages) ChA control circuit 72a (N=130 stages), a ChB control circuit 72b (N=1026 stages), and a ChC control circuit 72c (N=130 stages).

そして、CPUバス制御部72dに蓄積された指示コマンド列(ディスプレイリストDL)は、演出制御CPU63によるデータ転送レジスタRGij(各種制御レジスタ70の一種)への設定値に基づき、描画回路76か、又はプリローダ73に転送される。矢印で示す通り、ディスプレイリストDLは、CPUバス制御部72dから、ChB制御回路72bのFIFOバッファを経由して描画回路76に転送され、ChC制御回路72cのFIFOバッファを経由してプリローダ73に転送されるよう構成されている。 Then, the instruction command string (display list DL) accumulated in the CPU bus control unit 72d is sent to the drawing circuit 76 or It is transferred to the preloader 73 . As indicated by the arrow, the display list DL is transferred from the CPU bus control section 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. 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. 72b or ChC control circuit 72c, respectively, to the drawing circuit 76 or the display list analyzer of the preloader 73 as part of the display list DL.

そして、描画回路76は、転送されたディスプレイリストDLに基づいた描画動作を開始する。一方、プリローダ73は、転送されたディスプレイリストDLに基づき、必要なプリロード動作を実行する。プリロード動作によってCGROM55のCGデータが、DRAM54に確保されたプリロード領域に先読みされ、TXLOADコマンドなどに関して、テクスチャのSourceアドレスを変更したディスプレイリストDL(以下、書換えリストDL’という)が、DRAM54に確保されたDLバッファ領域BUF’に保存される。 The drawing circuit 76 then starts a drawing operation based on the transferred display list DL. On the other hand, the preloader 73 performs necessary preload operations based on the transferred display list DL. The CG data in the CGROM 55 is read ahead into the preload area secured in the DRAM 54 by the preload operation, and a display list DL (hereinafter referred to as a rewrite list DL') in which the source address of the texture is changed in relation to the TXLOAD command is secured in the DRAM 54. stored 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, a ChA control circuit 72a and a connection bus access arbitration circuit 72e function for data transfer between storage media such as the CGROM 55, the DRAM 54, and the built-in VRAM 71. FIG. In addition, the IDXTBL access arbitration circuit 72f functions when accessing the built-in VRAM 71 that requires the address information of the index table IDXTBL. Specifically, the ChA control circuit 72a, for example, (a) transfers the compressed data of the CGROM 55 to the built-in VRAM 71, or (b) preloads (prefetches) the compressed data of the CGROM 55 and transfers it to the external DRAM 54. and (c) transferring pre-read data in the preload area to the built-in VRAM 71 .

ここで、ChA制御回路72aは、ChB制御回路72bやChC制御回路72cと並行して動作可能に構成されており、上記した(a)~(c)の動作は、ディスプレイリストDLの発行動作(図17のST8,図22のPT11)や、書換えリストDL’の転送動作(図22のPT10)と並行して実行可能となる。また、ChB制御回路72bとChC制御回路72cも、同時実行可能であり、例えば、ChB制御回路72bが機能する図22のステップPT10の処理と、ChC制御回路72cが機能するステップPT11の処理は並行して実行可能である。但し、転送ポートレジスタTR_PORT は単一であるので、何れか一方(72b/72c)が転送ポートレジスタTR_PORT を使用しているタイミングでは、他方(72c/72b)は、転送ポートレジスタTR_PORT をアクセスすることはできない。 Here, the ChA control circuit 72a is configured to be able to operate in parallel with the ChB control circuit 72b and the ChC control circuit 72c. 17, PT11 in FIG. 22) and the transfer operation of the rewrite list DL' (PT10 in FIG. 22). In addition, the ChB control circuit 72b and the ChC control circuit 72c can also be executed simultaneously. For example, the processing of step PT10 in FIG. can be executed by However, since there is only one transfer port register TR_PORT, at the timing when one of the transfer port registers TR_PORT is being used by one of them (72b/72c), the other (72c/72b) can access the transfer 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に転送されることになる(図23(b)参照)。 During operation of the ChA control circuit 72a, the connection bus access arbitration circuit 72e arbitrates data transmission with each storage element (CGROM 55, DRAM 54) via the integrated connection bus ICM. On the other hand, the IDXTBL access arbitration circuit 72f arbitrates data communication with the built-in VRAM 71 by controlling the ChA control circuit 72a based on the index table IDXTBL. In the embodiment in which the preloader 73 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 arbitration circuit 72e and the ChB control circuit 72b. (See FIG. 23(b)).

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

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

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

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

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

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

本実施例では、十分な記憶容量を有する外付け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 works effectively. Also, since the external DRAM 54 has a large storage capacity, it is possible to preload multiple frames of CG data at once, for example. That is, regarding the operation period of the preloader 73, the operation period of a series of preload operations including the read-ahead operation of the CG data is appropriately set within the range of integral multiples of the operation period δ during the intermittent operation of the VDP circuit 52. Multiple preloading is realized with

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

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

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

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

表示回路74は、フレームバッファFBa,FBbの画像データを読み出して、最終的な画像処理を施した上で出力する回路である(図11)参照)。最終的な画像処理には、例えば、画像を拡大/縮小するスケーラのスケーリング処理、微妙なカラー補正処理、画像全体の量子化誤差が最小化するディザリング処理が含まれている。そして、これらの画像処理を経たデジタルRGB信号(合計24bit)が、水平同期信号や垂直同期信号と共に出力される。図11に示す通り、本実施例では、上記の動作を並列的に実行する3系統の表示回路A/B/Cが設けられており、各表示回路74A~74Cは、各々に対応するフレームバッファFBa/FBb/FBcの画像データを読み出して、上記の最終画像処理を実行する。但し、本実施例では、表示装置は2個であるので、フレームバッファFBcは確保されておらず、表示回路74Cが機能することもない。 The display circuit 74 is a circuit that reads the image data in the frame buffers FBa and FBb, performs final image processing, and outputs the data (see FIG. 11). The final image processing includes, for example, scaler scaling processing for enlarging/reducing the image, subtle color correction processing, and dithering processing for minimizing the quantization error of the entire image. Digital RGB signals (total of 24 bits) that have undergone these image processes are output together with the horizontal synchronizing signal and the vertical synchronizing signal. As shown in FIG. 11, this embodiment is provided with three systems of display circuits A/B/C for executing the above operations in parallel. The image data of FBa/FBb/FBc are read out and the final image processing described above is executed. However, since there are two display devices in this embodiment, the frame buffer FBc is not secured and the display circuit 74C does not function.

この動作に関連して、この実施例の出力選択部79は、表示回路74Aの出力信号を、LVDS部80aに伝送し、表示回路74Bの出力信号を、LVDS部80bに伝送している(図11)。そして、LVDS部80aは、画像データ(合計24bitのデジタルRGB信号)をLVDS信号に変換して、クロック信号を伝送する一対を加えて、全五対の差動信号としてメイン表示装置DS1に出力している。なお、メイン表示装置DS1には、LVDS信号の変換受信部RVが内蔵されており、LVDS信号からRGB信号を復元して、表示回路74Aの出力に対応する画像を表示している。 In relation to this operation, the output selection section 79 of this embodiment transmits the output signal of the display circuit 74A to the LVDS section 80a, and transmits the output signal of the display circuit 74B to the LVDS section 80b (Fig. 11). Then, the LVDS unit 80a converts the image data (24-bit digital RGB signals in total) into LVDS signals, adds a pair for transmitting a clock signal, and outputs all five pairs of differential signals to the main display device DS1. ing. The main display device DS1 incorporates an LVDS signal conversion/reception unit RV, which restores the RGB signals from the LVDS signals and displays an image corresponding to the output of the display circuit 74A.

この点は、LVDS部80bも同様であり、各8bitのデジタルRGB信号の合計24bitについて、クロック信号を伝送する一対を加えて、全五対の差動信号として変換受信部RVに出力し、サブ表示装置DS2が変換受信部RVから受ける合計24bitのRGB信号による画像表示を実現している。そのため、サブ表示装置DS2と、メイン表示装置DS1は、2*2*2の解像度を有することになる。 In this respect, the LVDS section 80b is the same. For a total of 24 bits of each 8-bit digital RGB signal, a pair for transmitting a clock signal is added, and all five pairs of differential signals are output to the conversion receiving section RV. The display device DS2 realizes image display by a total of 24-bit RGB signals received from the conversion receiving unit RV. Therefore, the sub display device DS2 and the main display device DS1 have a resolution of 28 * 28 * 28 .

なお、必ずしもLVDS信号とする必要は無く、例えば伝送距離が短い場合には、デジタルRGB信号を、デジタルRGB部80cを経由して、そのまま表示装置に伝送するか、或いは、伝送距離が長い場合には、デジタルRGB信号を、変換送信部TR’において、V-By-one(登録商標)信号に変換して変換受信部RV’に伝送した後、変換受信部RV’においてデジタルRGB信号に戻すのも好適である。なお、図11の破線は、この動作態様を示しているが、出力選択部79の動作を適宜に設定することで、表示回路74A~74Cの何れの出力信号であっても上記の動作が可能となる。 Note that the LVDS signal is not necessarily required. For example, when the transmission distance is short, the digital RGB signal is directly transmitted to the display device via the digital RGB unit 80c. converts a digital RGB signal into a V-By-one (registered trademark) signal in a conversion transmitting section TR', transmits the V-By-one (registered trademark) signal to a conversion receiving section RV', and converts it back to a digital RGB signal in a conversion receiving section RV'. is also suitable. Although the dashed lines in FIG. 11 indicate this mode of operation, the above operation is possible for any of the output signals of the display circuits 74A to 74C by appropriately setting the operation of the output selection section 79. becomes.

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

次に、SMC部78(Serial Management Controller)は、LEDコントローラとMotorコントローラとを内蔵した複合コントコントローラである。そして、外部基板に搭載したLED/Motorドライバ(シフトレジスタを内蔵するドライバIC)に対して、クロック信号に同期してLED駆動信号やモータ駆動信号を出力する一方、適宜なタイミングで、ラッチパルスを出力可能に構成されている。 Next, the SMC section 78 (Serial Management Controller) is a composite controller containing an LED controller and a Motor controller. Then, it outputs an LED drive signal and a 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, while outputting the latch pulse at an appropriate timing. configured for output.

上記したVDP回路52の内部回路及びその動作に関し、内部回路が実行すべき動作内容は、演出制御CPU63が、制御レジスタ群70に設定する動作パラメータ(設定値)で規定され、VDP回路52の実行状態は、制御レジスタ群70の動作ステイタス値をREADすることで特定できるようになっている。制御レジスタ群70は、演出制御CPU63のメモリマップ上、1Mバイト程度のアドレス空間(0~FFFFFH)にマッピングされた多数のVDPレジスタRGijを意味し、演出制御CPU63は、CPUIF部81を経由して動作パラメータのWRITE (設定)動作と、動作ステイタス値のREAD動作を実行するようになっている(図5(b)参照)。 Regarding the internal circuit and its operation of the VDP circuit 52 described above, the operation contents to be executed by the internal circuit are defined by the operation parameters (set values) set in the control register group 70 by the effect control CPU 63, 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 FFFFFH) of about 1 Mbyte on the memory map of the effect control CPU 63. WRITE (setting) operation of operation parameters and READ operation of operation status values are executed (see FIG. 5(b)).

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

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

続いて、上記したCPU回路51とVDP回路52とを内蔵した複合チップ50によって実現される、画像演出、音声演出、モータ演出、及び、ランプ演出の統一的な演出制御動作について説明する。 Next, a unified effect control operation for 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 will be described.

本実施例の場合、複合チップ50の動作は、電源投入や異常リセットによるパワーオンリセット動作(図12(a)参照)によって開始され、初期設定プログラム(ブートプログラム)Pinitによる初期設定処理(SP1~SP9)を経て、演出制御プログラムMain及び割込み処理プログラム(ベクタハンドラ)Voptによるメイン制御処理(SP10)に移行するよう構成されている。メイン制御処理については、図14(a)に、その導入部の処理内容が記載されており、本体部の処理内容が図17(a)に記載されている。なお、図14のステップSP27の処理は、図17(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. 12A) due to power-on or an abnormal reset, and an initial setting process (SP1 to SP1) by an initial setting program (boot program) Pinit. Through SP9), it is configured to shift to the main control process (SP10) by the effect control program Main and the interrupt processing program (vector handler) Vopt. As for the main control process, FIG. 14(a) describes the processing contents of the introduction part, and FIG. 17(a) describes the processing contents of the main control part. The processing of step SP27 in FIG. 14 includes the processing of steps ST1 to ST3 in FIG. 17(a).

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

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

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

また、ベクタテーブルVECTにおいて、ベクタ番号0とベクタ番号1は、パワーオンリセット時にCPUのプログラムカウンタと、スタックポインタに自動設定されるべき、設定値が規定されている。図12(b)に示す通り、この実施例では、パワーオンリセット時(リセットアサート期間)の内部動作として、4バイトデータ「****」が、プログラムカウンタPCに設定され、4バイトデータ「++++」がスタックポインタSPに設定される。なお、「****」は、アドレス空間CS0に不揮発的に記憶されている初期設定プログラムPinit(図12のSP1~SP9)の先頭アドレス値であり、「++++」は、内蔵RAM59に確保された、LIFO(Last-In First-Out )方式で機能するスタック領域の先端又は終端のアドレス値である。
In the vector table VECT, vector numbers 0 and 1 define setting values that should be automatically set to the program counter and stack pointer of the CPU at power-on reset. As shown in FIG. 12B, in this embodiment, 4-byte data "****" is set in the program counter PC as an internal operation at power-on reset (reset assertion period), and 4-byte data "++++" is set to the stack pointer SP. Note that "****" is the top address value of the initial setting program Pinit (SP1 to SP9 in FIG. 12) nonvolatilely stored in the address space CS0, and "++++" is reserved in the internal RAM 59. It is also the address value of the top 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 utilized, the stack area is not consumed during interrupt processing, and a large memory capacity is not required. That is, in this embodiment, the stack area is exclusively used for function processing and subroutine processing.

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

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

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

先に説明した通り、本実施例では、VDPレジスタRGijは、演出制御CPU63のアドレス空間CS7に位置付けられているので、チップセレク信号CS7や、その他の制御信号の動作タイミングを最適設定するべく所定の動作制御レジスタREGに所定値を書込むことになる。 As described above, in this embodiment, the VDP register RGij is located in the address space CS7 of the effect control CPU 63. Therefore, a predetermined operation timing of the chip select signal CS7 and other control signals is optimally set. 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 a specific VDP register RGij is read, and it is determined whether or not the value is a predetermined value (device code) (SP3). This is 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. It is a judgment whether or not it is possible to accept it.

そして、デバイスコードの読出し処理(SP3)によって、システムクロックが安定化したことが確認できれば、その後は、VDP回路52の正常動作を期待できるので、所定のVDPレジスタRGijに対する設定処理を実行する(SP4~SP6)。具体的には、先ず、演出制御CPU63からVDPレジスタRGijをアクセスする場合のエンディアン設定(ビッグ/リトル)や、データバス幅を設定する(SP4)。 Then, if it can be confirmed that the system clock has stabilized by the device code reading process (SP3), the normal operation of the VDP circuit 52 can be expected thereafter, so 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 setting value is set to big endian to be stored in the most significant bit of the VDP register RGij, and the data 32 bus width is set to 32 bits. If the values are the same as the default values, these setting processes can be omitted (the same applies to the following processes).

次に、VDP回路からCPU回路への内部割込み(VDP_IRQ0,VDP_IRQ1,VDP_IRQ2,VDP_IRQ3)について、割込み有意レベル(H/L)を設定し、PLLREF端子( 図5(a)参照)へのクロック信号(リファレンスクロック)に基づいてDDR(DRAM54)を機能させる旨を設定する(SP4)。なお、PLLREF端子に、発振器OSC2のリファレンスクロックが供給されることは図5(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 ( DDR (DRAM 54) is set to function (SP4). As described with reference to FIG. 5A, the reference clock of the oscillator OSC2 is supplied to the PLLREF terminal.

続いて、図7に示すメモリマップを実現するべく、アドレス空間CS1~CS6を定義する(SP5)。先に説明した通り、アドレス空間CS3は、音声プロセッサ27の内部レジスタに付与され、アドレス空間CS4は、RTC38の内部レジスタやSRAM39のアドレス空間に付与され、アドレス空間CS5は、外付けDRAM(DDR)54に付与され、アドレス空間CS6は、内蔵CPUのワークメモリ57に付与される。 Subsequently, address spaces CS1 to CS6 are defined to implement the memory map shown in FIG. 7 (SP5). As described above, the address space CS3 is assigned to the internal registers of the audio processor 27, the address space CS4 is assigned to the internal registers of the RTC 38 and the address space of the SRAM 39, and the address space CS5 is assigned to the external DRAM (DDR). 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 defined that the VDP register RGij is assigned to the address space CS7, definition processing of the address space CS7 is unnecessary. Further, the address space CS0 is preliminarily defined to be located at the address 0x000000000 or later in the memory map of the CPU circuit 51. Based on this definition, the address space CS0 is secured in the CGROM 55 or other memory. The H/L level of the HBTSL terminal determines whether it is applied to the device.

先に説明した通り、本実施例では、HBTSL 端子=Lとなっており、CGROM55以外にアドレス空間CS0が定義されていることが示されている。そして、CGROM55以外である制御メモリ53の具体的なバス幅や、最適なアクセス動作については、ステップSP1において設定済みであるので、アドレス空間CS0についても、ステップSP5の処理は不要である。 As described above, in this embodiment, the HBTSL terminal=L, indicating that the address space CS0 is defined in addition to the CGROM 55. FIG. 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 unnecessary for the address space CS0.

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

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

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

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

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

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

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

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

次に、演出制御プログラムMainを、外付けDRAM54にDMA転送し(SP63)、定数データCを、外付けDRAM54にDMA転送する(SP64)。定数データには、演出抽選に使用する抽選データや、図17(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 effect lottery, and lamp drive data and motor drive data in various drive data tables shown in FIG. 17(b). Also, the variable D having an initial value is DMA-transferred to the external DRAM 54 (SP65).

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

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

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

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

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

図14(a)に示す通り、メイン制御処理(導入部)では、最初に、CGROM55について、そのバス幅やROMデバイスの種別を特定する(SP20)。具体的には、図15(a)に示す通りであり、CGROM55とのインタフェイスを司るCGバスの動作状態を特定する所定のVDPレジスタRGij(例えばCGバスStatusレジスタ)をREADアクセスして(SP80)、CGバスについて動作設定が可能か否かを判定する(SP81)。 As shown in FIG. 14A, in the main control process (introductory part), first, the bus width and the type of ROM device of the CGROM 55 are specified (SP20). Specifically, as shown in FIG. 15(a), a predetermined VDP register RGij (for example, CG bus Status register) specifying the operating state of the CG bus that controls the interface with the CGROM 55 is read-accessed (SP80 ), it is determined whether or not the CG bus can be set for operation (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 process of resetting, meaning that the set value to 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), ( Operation parameters such as 1) enable/disable of each device section SPAi, (2) ROM device type, and (3) data bus width are set in a predetermined VDP register RGij (SP82).

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

次に、デバイス区間(SPA0~SPAn)毎に選択されたメモリデバイスとのメモリREAD動作を最適化するべく、所定の動作パラメータを、所定のVDPレジスタRGijに設定する(SP83)。動作パラメータには、チップセレクト信号と、その他の制御信号(READ制御信号など)との動作タイミングを規定する設定値が含まれている。また、シーケンシャルI/F形式を採るメモリ素子が選択された場合には、図15(b)も示す動作を実現するべく、アドレスラッチの出力タイミングや、読出しクロック数なども特定される。 Next, predetermined operation parameters are set in predetermined VDP registers RGij in order to optimize memory READ operations with memory devices selected for each device section (SPA0 to SPAn) (SP83). The operation parameters include set values that define the operation timings of the chip select signal and other control signals (such as the READ control signal). Also, when a memory element adopting the sequential I/F format is selected, the output timing of the address latch, the number of read clocks, etc. are also specified in order to realize the operation shown in FIG. 15(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 using only SATA modules, 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 processing of steps SP82 and SP83 is completed, a predetermined value is written in a predetermined VDP register RGij in order to make the setting processing effective (SP84). This is in consideration of the fact that it takes a certain amount of time for the internal circuits of the CG bus to operate in response to the setting processing of steps SP82 and SP83. (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 finished 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 ended when the value of the Status register does not return from 1 to 0 regardless of the number of determinations made a predetermined number of times. However, in that case, since the game process starts in a state in which the CGROM cannot be normally accessed, the WDT circuit 58 is activated at some timing after that, and the composite chip 50 enters an abnormal reset state. In this case, the power-on reset operation is executed again.

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

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

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

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

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

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

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

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

一方、演出制御CPU63の動作クロックは、発振器OSC1の出力クロックをPLLで逓倍して生成されており、プログラム処理は継続可能である。しかも、割込み処理プログラムは、内蔵RAM59に格納されている。そこで、演出制御CPU63は、異常事態の発生を音声やランプによって異常報知すると共に(SP28)、WDT回路58にクリア信号を出力し続ける(SP29)。異常報知は、例えば「異常事態が発生しました。至急、係員に連絡して下さい」との音声報知となる。なお、WDT回路58にクリア信号を出力し続けるのは、異常リセット動作を回避するためである。すなわち、発振器OSC1が動作を停止する重大な異常時には、仮に、異常リセット処理を繰り返しても、機器の正常復帰が望めないと考えられるからである。 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 the abnormal situation by sound or lamp (SP28), and continues outputting the clear signal to the WDT circuit 58 (SP29). The anomaly notification is, for example, a voice notification saying, "An abnormal situation has occurred. Please contact the person in charge as soon as possible." 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 event of a serious abnormality in which the oscillator OSC1 stops operating, even if the abnormality reset processing is repeated, the device cannot be expected to return to normal.

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

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

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

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

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

1mSタイマ割込み処理において、先ず、ステップSP42の処理で、動作管理フラグFLG=0と判定される場合には、音声プロセッサ27の初期化シーケンスが正常終了していることを確認する(SP43)。そして、正常終了している場合には、所定の音声レジスタSRGに所定値を書込むことで割込み信号(IRQ_SND )をクリアさせ(SP46)、動作管理フラグFLGを1にする(SP47)。なお、ステップSP43とSP46の処理は、図14(c)のステップSP31とSP34の処理と同じである。 In the 1mS timer interrupt processing, first, when it is determined that the operation management flag FLG=0 in the processing of step SP42, it is confirmed that the initialization sequence of the audio processor 27 has been completed normally (SP43). If the operation has been completed normally, the interrupt signal (IRQ_SND) is cleared by writing a predetermined value to a predetermined voice register SRG (SP46), 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. 14(c).

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

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

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

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

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

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

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

一方、タイマ割込み処理には、図17(b)に示す通り、ランプ演出やモータ演出の進行処理(ST18)と、原点センサ信号SN0~SNn信号や、チャンスボタン信号などを取得するセンサ信号取得処理(ST19)とが含まれている。ランプ演出やモータ演出は、全ての演出動作を一元管理する演出シナリオに基づいて制御されており、演出カウンタENが管理する演出開始時に達すれば、演出シナリオ更新処理(ST11)において、モータ駆動テーブルやランプ駆動テーブルが特定されるようになっている。 On the other hand, as shown in FIG. 17(b), the timer interrupt processing includes progress processing (ST18) for ramp effects and motor effects, and sensor signal acquisition processing for acquiring origin sensor signals SN0 to SNn signals, chance button signals, and the like. (ST19). 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 start time managed by the effect counter EN is reached, the motor drive table and the motor drive table are changed in the effect scenario update process (ST11). A lamp drive table is specified.

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

一方、図17(d)に示す通り、描画異常割込み処理では、描画回路76の動作状態を示すステイタスレジスタRGijをREADアクセスして、割込み原因を特定する。具体的には、(1) 異常な指示コマンドの検出(ビット化け)による描画異常割込みか、(2) 描画回路76の動作異常(フリーズ)による描画異常割込みかを特定する(ST16a)。そして、異常な指示コマンドの検出に基づく描画異常割込みである場合には、所定のシステム制御レジスタRGijに、所定値を書き込むことで、描画回路76を初期化する(ST16b)。この動作は、図4(b)に示すリセット経路4Bの個別リセット動作に他ならない。 On the other hand, as shown in FIG. 17(d), in the abnormal drawing interrupt process, the status register RGij indicating the operating state of the drawing circuit 76 is read-accessed to identify the cause of the interrupt. Specifically, (1) the abnormal drawing interrupt due to the detection of an abnormal instruction command (bit garbled) or (2) the abnormal drawing interrupt due to the abnormal operation (freeze) of the drawing circuit 76 is specified (ST16a). If the abnormal drawing interrupt is detected based on the detection of an abnormal instruction command, the drawing circuit 76 is initialized by writing a predetermined value to a 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 completion of the individual reset operation with a predetermined status register RGij, a group of operation parameters that define the operation of the drawing circuit 76 are reset in the predetermined drawing register RGij, and the process ends (ST16c). . After adjusting the stack area for storing the return address (clearing process for erasing the return address after the interrupt processing), the process proceeds to 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 an abnormal drawing interrupt due to an abnormal operation of the drawing circuit 76, the WDT circuit 58 is activated and the entire composite chip 50 is reset by shifting to infinite loop processing (ST16d). If it is not desired to reset the CPU circuit 51, a predetermined keyword string may be output to the pattern check circuit CHK, and only the VDP circuit 52 may be reset by the reset signal RST (see FIG. 4B). . In this case, after confirming the normal completion of the reset operation of the VDP circuit 52, the processing of steps ST4 and ST13 is performed. In order to avoid reading the control command CMD as much as possible, it is better to proceed from step ST4 to step ST13, including other cases.

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

続いて、プリローダを機能しない実施例について、メイン制御処理(a)について説明する。図17(a)に示す通り、メイン制御処理は、CPUリセット後に実行される導入初期処理(ST1~ST3)と、その後、1/30秒毎に繰り返し実行される定常処理(ST4~ST14)とに区分される。なお、初期処理(ST1~ST3)は、メイン制御処理の導入部の一部であり、定常処理がメイン制御処理の本体部を意味する。 Next, the main control process (a) will be described for an embodiment in which the preloader does not function. As shown in FIG. 17(a), the main control process consists of an introduction initial process (ST1 to ST3) executed after the CPU is reset, and then a regular process (ST4 to ST14) repeatedly executed every 1/30th of a second. classified into Note that the initial processing (ST1 to ST3) is part of the introductory part of the main control processing, and the regular processing means the body 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 process is started at the timing when the interrupt counter VCNT becomes VCNT≧2 (ST4), the operation period δ of the steady process is 1/30 second. This operating cycle δ is nothing but the substantial operating cycle δ of the VDP circuit 52 that operates intermittently under the control of the effect control CPU 63 . The reason why the judgment condition is set to VCNT≧2 is to take into account the possibility that the steady process (ST4 to ST14) is abnormally prolonged and the timing of VCNT=2 is missed. is designed so that it does not occur.

以上を踏まえてメイン制御処理(図17(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. 17(a)) based on the above, in the present embodiment, in the initial process, the built-in VRAM 71 with a storage capacity of 48 Mbytes is used as the ACC area (a) having an appropriate storage capacity. , a page area (b) and an arbitrary area (c) (ST1). Specifically, for the ACC area (a1, a2) and the page area (b), the head address of each area and the required total data size are set in a predetermined index table register RGij (ST1). Then, the reserved ACC area (a1, a2) and the remaining area not included in the page area (b) become the arbitrary area (c).

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

このように本実施例では、ACC領域(a1,a2) と、ページ領域(b) の領域設定に一定の条件を設けるが、それは、メモリ容量が限られている内蔵VRAM71について、可能な限り無駄領域を排除する一方で、VDP回路52の内部動作の円滑化を図るためである。すなわち、内蔵VRAM71の記憶容量を無闇に増加させると、製造コストの高騰やチップ面積の大型化が懸念される一方、無駄領域を完全に排除するような自由な領域設定を認めると、内部処理が煩雑化して、VRAMアクセスの処理時間を短縮化できないためである。なお、以下に説明するインデックス空間の確保に、一定の制約を設けるのも同じ理由による。 Thus, in this embodiment, certain conditions are set for setting the ACC area (a1, a2) and the page area (b). This is for the purpose of facilitating the internal operation of the VDP circuit 52 while eliminating the area. In other words, if the storage capacity of the built-in VRAM 71 is recklessly increased, there is concern that the manufacturing cost will rise and the chip area will increase. This is because the processing time for VRAM access cannot be shortened due to complication. It is for the same reason that 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 processing of step ST1, necessary index spaces IDXi are secured for the page area (b) and the arbitrary area (c) (ST2). Specifically, by setting necessary information in a predetermined index table register RGij, an index space IDXi for each area (b) and (c) is secured.

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

先に説明した通り、ページ領域(b) のインデックス空間IDXiは、水平サイズ128×垂直サイズ128ラインを単位空間としており、また、1ピクセルは32bitの情報で特定されるので、水平サイズHxと垂直サイズWxの設定に基づいて、データサイズ(bit長)=32×128×Hx×128×Wxのインデックス空間IDXiが確保されたことになる。なお、ページ領域(b) のインデックス空間IDXiの先頭アドレス(空間先頭アドレス)は、内部的に自動付与される。 As described above, the index space IDXi of the page area (b) has a horizontal size of 128×vertical size of 128 lines as a unit space, and one pixel is specified by 32-bit information. Based on the setting of the size Wx, an index space IDXi of data size (bit length)=32×128×Hx×128×Wx is secured. The head address (space head 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のインデックス空間が確保されたことになる。 When the index space IDXi is provided in the arbitrary area (c), an arbitrary start address (space start address) STx and information on multiples of an arbitrary horizontal size Hx corresponding to an arbitrary index number i are specified. is set in the index table register RGij (ST2). Arbitrary means that the horizontal size Hx is arbitrarily determined in units of 256 bits, the lower 11 bits of the start address STx are 0, and is arbitrarily determined in units of 2048 bits. As described above, the vertical size of the arbitrary area is fixed to 2048 lines, so based on the setting of the horizontal size Hx, after the start address STx, the data size (bit length) = 2048 × Hx index A 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 each having a horizontal size of 1280×vertical lines of 2048 are set in one or a plurality of predetermined index table registers RGij, each specifying an index number. , as the frame buffer FBb of the sub-display device DS2, a pair of index spaces of horizontal size 480×vertical lines 2048 are set in one or more predetermined index table registers RGij, each specifying an index number. If the number of horizontal pixels of the display device does not match the integer multiple of 256 bits/32 bits, the horizontal size of each index space should be larger than the number of horizontal pixels of the display device and 256/32=8 , to minimize wasted memory space.

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

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

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

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

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

例えば、表示回路74の動作を規定する所定の表示レジスタRGijに、所定の動作パラメータ(ライン数と画素数)を書込むことで、各表示装置DS1,SD2について表示ライン数と水平画素数を設定している(SS30)。その結果、各フレームバッファFBa,FBbにおいて、表示回路74がREADアクセスすべき有効データ領域(図17(e)の破線部)の縦横寸法が、特定されることになる。 For example, by writing predetermined operation parameters (the number of lines and the number of pixels) in 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 set for each of the display devices DS1 and SD2. (SS30). As a result, in each of the frame buffers FBa and FBb, the vertical and horizontal dimensions of the valid data area (broken line portion in FIG. 17(e)) to be read-accessed by the display circuit 74 are specified.

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

続いて、メイン表示装置DS1を駆動する表示回路74Aに関する表示レジスタRGij(DSPAINDEX )と、サブ表示装置DS2を駆動する表示回路74Bに関する表示レジスタRGij(DSPBINDEX )に、各々、「表示領域(0)」と「表示領域(1)」を設定して、各表示領域を定義している(SS32)。 Subsequently, 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 set to "display area (0)". and "display area (1)" are set to define each display area (SS32).

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

何ら限定されないが、本実施例では、フレームバッファFBaについて、VRAM任意領域(c) におけるインデックス番号254のインデックス空間254を「表示領域(0)」と定義し、VRAM任意領域(c) におけるインデックス番号255のインデックス空間255を、「表示領域(1)」と定義している(SS32)。 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 "display area (0)", and the index number in the VRAM arbitrary area (c) 255 index space 255 is defined as "display area (1)" (SS32).

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

本実施例では、以上の初期処理(SS30~SS32)が終われば、次に、所定のシステム制御レジスタRGijへの設定値が、その後、ノイズなどの影響で変更されないよう、第1種の禁止設定レジスタRGijに、所定の禁止値を設定している(第1の禁止設定SS33)。 In this embodiment, after the above initial processing (SS30 to SS32) is completed, next, the set value of the predetermined system control register RGij is set to the first type prohibition setting so as not to be changed by the influence of noise or the like. A predetermined prohibition value is set in the register RGij (first prohibition setting SS33).

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

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

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

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

VDP回路52の間欠動作は、図25や図26に示す通りであり、プリローダ73を使用しない実施例では、図25(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. 25 and 26. In the embodiment in which the preloader 73 is not used, the display list DLi completed by the effect control CPU 63 is as shown in FIG. In the operation cycle (T1), the drawing circuit 76 is issued, 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 are output by the display circuit 74 to the display devices DS1 and DS2 in the next operation cycle T1+δ, so that the image data are displayed on the basis of the subsequent drawing operations of the display devices DS1 and DS2. , becomes a display screen that the player perceives.

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

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

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

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

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

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

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

Underrun異常時の場合も、同様に、ステップST6~ST8処理をスキップする。そして、所定のシステム制御レジスタRGijに、所定のクリア値を書込むことで、表示クロック(周波数)と表示回路74を初期化する(ST10c)。そして、この初期化処理の正常終了を確認した後、表示クロックの周波数や、表示回路74の動作を規定する一群のシステム制御レジスタRGijの値を、規定値に再設定した上で(ST10c)、演出コマンド解析処理を実行する(ST13)。 In the case of an underrun abnormality, steps ST6 to ST8 are similarly skipped. Then, by writing a predetermined clear value to a predetermined system control register RGij, the display clock (frequency) and the display circuit 74 are initialized (ST10c). After confirming the normal completion of this initialization process, the frequency of the display clock and the values of the group of system control registers RGij that define the operation of the display circuit 74 are reset to the specified values (ST10c). Effect command analysis processing 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. If the control command CMD is received, the control command CMD is analyzed and necessary processing is executed. (ST13). Here, the necessary processing includes start preparation processing for a new variable performance based on the control command CMD instructing the start of the variable performance, and error notification start processing 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 step ST4.

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

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

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

すなわち、演出シナリオでは、画像演出、音声演出、ランプ演出、モータ演出の開始タイミングと、その後に実行すべき演出内容を一元的に管理しており、正常時に限り更新される演出カウンタENによって、開始タイミングを制御しているので、各種の演出の同期が外れることはない。例えば、爆発音と、爆発画像と、役物移動と、ランプフラッシュ動作を複合した演出動作がある場合、フレーム落ちが生じた後であっても、上記した各演出動作は正しく同期して開始される。 That is, in the production scenario, the start timing of image production, sound production, lamp production, and motor production and the content of production to be executed thereafter are centrally managed. Since the timing is controlled, the synchronization of various effects will not be lost. For example, when there is an effect operation that combines an explosion sound, an explosion image, a character object movement, and a lamp flash operation, each of the above effect operations is correctly started in synchronization even after a frame drop occurs. be.

以上、比較的軽微な異常時について説明したが、重大異常フラグABNがセット状態である場合や、連続異常回数が多い場合(ER>2)や、繰り返しUnderrun異常が生じる場合には、ステップST10の判定の後、無限ループ状態としている(ST10b)。その結果、WDT回路58の計時動作が進行して、演出制御CPU63を含んだ複合チップ50は、異常リセットされ、その後、初期処理(ST1~ST3)が再実行されることで、異常事態発生の根本原因の解消が期待される。 In the above, the case of a relatively minor abnormality has been explained. After the determination, an infinite loop state is established (ST10b). As a result, the timing 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, thereby preventing the occurrence of an abnormal situation. It is hoped that the root cause will be eliminated.

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

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

以上、異常事態について説明したが、実際には、軽微な場合も含め上記した異常が発生することは殆どなく、ステップST5の処理の後、所定の表示レジスタRGij(DSPACTL /DSPBCTL)への設定に基づき、表示回路74Aと表示回路74Bが読み出すべき画像データを記憶するフレームバッファFBa,FBbの「表示領域」をトグル的に切り換える(ST6)。先に説明した通り、「表示領域(0)」と「表示領域(1)」は、予め初期処理において定義されているので(ST3)、ステップST6の処理では、フレームバッファFBa,FBbについて、今回の「表示領域」が、表示領域(0)/表示領域(1)の何れであるかを特定する。 Abnormalities have been described above, but in reality, the abnormalities described above rarely occur, even if they are minor. Based on this, the "display areas" 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 are toggled (ST6). As described above, "display area (0)" and "display area (1)" are defined in advance in the initial processing (ST3). 'display area' specifies which of display area (0)/display area (1).

このステップST6が実行されることで、表示回路74Aは、インデックス空間254(表示領域(0))と、インデックス空間255(表示領域(1))から、動作周期δ毎に、交互に画像データを読み出して表示装置DS1を駆動することになる。同様に、表示回路74Bは、インデックス空間251(表示領域(0))と、インデックス空間252(表示領域(1))から、動作周期δ毎に、交互に画像データを読み出してサブ表示装置DS2を駆動することになる。なお、表示回路74が実際にREADアクセスするのは、表示領域(0)/表示領域(1)における有効データ領域に限定されるのは先に説明した通りである。 By executing 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)) at each operation cycle δ. The data is read out to drive the display device DS1. 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)) every operation cycle δ, and displays the sub display device DS2. will drive. 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ブランク)の開始時から開始されるので、実際には、垂直帰線期間が完了してから画像データの出力処理が開始されることになる。図25(a)において、表示回路の欄に示す矢印は、この出力処理の動作周期を示している。 In any case, in this embodiment, since the "display area" is switched for each operation cycle, the display circuits 74A and 74B display the image data completed by the drawing circuit 76 in the immediately preceding operation cycle on the display devices DS1 and DS2. will start the output process to However, since the process of step ST5 is started at the start of the vertical blanking period (V blank) of the main display device DS1, the image data output process actually starts after the vertical blanking period is completed. will be In FIG. 25(a), the arrows shown in the display circuit column indicate the operation cycle of this output process.

以上のような意義を有するステップST6の処理が終われば、演出制御CPU63は、続いて、次の動作周期で、表示回路74が表示装置に出力するべき画像データを特定したディスプレイリストDLを完成させる(ST7)。特に限定されないが、この実施例では、RAM59のリストバッファ領域(DLバッファBUF)を確保し、そこにディスプレイリストDLを完成させている(図10参照)。 When the processing of step ST6 having the above significance is completed, the effect control CPU 63 subsequently completes the display list DL specifying 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, a list buffer area (DL buffer BUF) of the RAM 59 is secured and the display list DL is completed there (see FIG. 10).

ディスプレイリストDLは、一連の指示コマンドを、適宜な順番で列記して構成され、EODL(End Of DL )コマンドを記載して終わるよう構成されている。そして、本実施例では、データ転送回路72、描画回路76、プリローダ73の円滑な動作を実現するべく、EODLコマンドを含む全ての指示コマンドを、コマンド長が32bitの整数N倍(N>0)の指示コマンドだけに限定している。なお、32bitの整数N倍で構成された指示コマンドに、無意ビット(Don't care bit)も含んで良いことは先に説明した通りである。 The display list DL is configured by listing a series of instruction commands in an appropriate order, and is configured to end with an EODL (End Of DL) command. In this embodiment, in order to realize smooth operation of the data transfer circuit 72, the drawing circuit 76, and the preloader 73, all the instruction commands including the EODL command are set to an integer N times the command length of 32 bits (N>0). It is limited to only instruction commands for As described above, an instruction command composed of 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バイト・・・の何れかの値に調整される。 In this way, the display list DL of the embodiment is composed only of instruction commands whose command length is an integer N times 32 bits (N>0). It is always an integral multiple of the minimum command length unit (32 bits=4 bytes). Furthermore, in this embodiment, considering the minimum data amount Dmin of the data transfer circuit 72, the data volume value of the display list DL is set to an integer multiple (1 or more) of the minimum data amount Dmin and 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, depending on the complexity of the content of the presentation, it is also suitable to adjust to 256 bytes or 512 bytes as appropriate. The data volume value of the display list DL is always adjusted to 256 bytes in consideration of not executing such complicated image effects.

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

但し、本実施例の場合には、ディスプレイリスト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) in each operation cycle δ. As an adjustment method, after the 32-bit length EODL command, a simple method (A) that fills the missing area with a 32-bit length NOP (No Operation) command, or after filling the missing area with a 32-bit length NOP command , and finally a standard method (B) that describes a 32-bit long EODL command. 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 to obtain an integral multiple of the minimum data amount Dmin. A non-adjustment method (C) that secures the transfer amount of is also conceivable.

ここで、標準手法(B)を採る場合には、最初、コマンドカウンタCNTを規定値(256バイトに対応する64-1)に初期設定し、DLバッファ領域BUFに、有意な指示コマンドを書き込むごとに、コマンドカウンタCNTを適宜に減算し、一連の有意な指示コマンドの書き込みが終われば、コマンドカウンタCNTがゼロになるまで、NOP コマンドを記載し、最後にEODLコマンドを記載する手法が考えられる。本実施例の場合、指示コマンドは、そのコマンド長が32bitの整数N倍(N>0)のものに限定されているので、上記の処理は容易であり、コマンドカウンタCNTの減算処理は、整数Nに対応した減算処理となる。 Here, when adopting the standard method (B), first, the command counter CNT is initialized 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 Another possible method is to decrement the command counter CNT as appropriate, write a NOP command until the command counter CNT becomes zero, and write an EODL command at the end after writing a series of significant instruction commands. In the case of this embodiment, the instruction command is limited to a command length N times an integer of 32 bits (N>0). Subtraction processing corresponding to N is performed.

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

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

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

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

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

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

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

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

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

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

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

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

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

本実施例の場合、フレームバッファFBaのインデックス番号は、255又は254であり(図9(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. 9(a)), and one of them is designated by switching in a toggle manner (L13). This index number is the index number other than the display area (0)/(1) specified in step ST6 of the main control process. For example, when the display area (0) is specified for the display circuit 74 in the process of step ST6, the display area (1) becomes the “write area” for the drawing circuit 76. FIG.

以上の通り、指示コマンドL11と指示コマンドL12とで、実描画領域(W×Hの論理空間)と描画領域(W×Hの仮想空間)との対応関係が、一般的に定義された後、インデックス空間IDXを具体的に特定する指示コマンドL13(SETINDEX)によって、W×Hの仮想空間が、特定のインデックス空間IDXにおけるW×Hの論理空間であると対応付けられたことになる。 As described above, after the correspondence relationship 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, The instruction command L13 (SETINDEX) specifically specifying the index space IDX associates the W×H virtual space with the W×H logical space in the specific index space IDX.

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

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

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

以上の処理によって、描画準備処理が完了するので、次に、静止画や動画一フレームなど、適宜なテクスチャを、仮想描画空間に描画するための指示コマンドを列記する。典型的には、先ず、テクスチャの展開先となるインデックス空間IDXを、テクスチャ設定系のSETINDEXコマンドで特定した上で、テクスチャロード系の指示コマンドであるTXLOADコマンドを記載して、CGROM55から読み出す所定のテクスチャを、所定のインデックス空間IDXに展開するようディスプレイリストDLに記載する。 With the above processing, the rendering preparation processing is completed. Next, instruction commands for rendering appropriate textures such as still images and one frame of moving images in the virtual rendering space are listed. Typically, first, the index space IDX to which the texture is to be developed 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 written, and the predetermined Textures are described in the display list DL so as to be developed in 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 IP stream moving images. Therefore, for example, the index space IDX in which the background video should be developed is specified as the index space IDX 0 of 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 of the CGROM 55 (texture source address) and the data size after expansion (horizontal×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 TXLOAD command is executed in the VDP circuit 52, one moving image frame (texture) of the background moving image is first captured in the AAC area (a), and then transferred to the page area ( b) in the index space IDX 0 . Next, this one animation frame will be drawn in the virtual drawing space. In this case, the SETINDEX command (texture setting system) may be used to set "the index space IDX 0 of the page area (b) is the texture to be processed subsequently", but the If you do, you can omit this SETINDEX command.

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

続いて、プリミティブ描画系の指示コマンドであるSPRITEコマンドによって、「ページ領域(b) のインデックス空間IDXのテクスチャ(背景動画の一動画フレーム)」を、仮想描画空間の適所(矩形のDestination 領域)に描画するべくSPRITEコマンドを記載する。なお、SPRITEコマンドには、仮想描画空間のDestination 領域について、その左上端点と、右下端点を特定する必要がある。 Next, by using the sprite command, which is a primitive drawing system instruction command, "the texture of the index space IDX 0 of the page area (b) (one video frame of the background video)" is placed in the appropriate place (rectangular destination area) in the virtual drawing space. Describe the sprite command to draw in. For the sprite command, it is necessary to specify the upper left corner point and the lower right corner 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) previously associated with the actual drawing area (FBa) 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. Note that the case where the Destination area is larger than the entire rendering area is, for example, the case where the background moving image is zoomed up.

以上の処理によって、背景動画の動画フレームの描画が終わったので、続いて、テクスチャロード系、テクスチャ設定系、描画間演算系、プリミティブ描画系コマンドなどの指示コマンドを適宜な順番で列記して、背景動画に重ねて、各種のテクスチャを描画するべくディスプレイリストDLを構成することになる。先に説明したように、変動演出時では、多数の動画が必要となるので、その場合には、内蔵VRAM71のページ領域(b) について、インデックス空間IDXを増加するべく、インデックステーブル制御系の指示コマンド(NEWPIX)を記載することになる。 With the above processing, the drawing of the moving image frame of the background moving image is completed. The display list DL is configured to draw various textures superimposed on the background moving image. As described above, a large number of moving images are required during the variable rendering. The command (NEWPIX) will be described.

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

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

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

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

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

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

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

そして、演出画像を完成させたインデックス空間IDXをテクスチャと位置付けた後(SETINDEX)、SPRITEコマンドによって、メイン表示装置用DS1の描画領域の適所に、インデックス空間IDXの演出画像(テクスチャ)を描画すれば良い。このような場合、インデックス空間IDXの演出画像を、三角形の描画プリミティブ(primitive )に分解し、適宜な角度に回転させた上で、描画領域に描画することが考えられる。なお、テクスチャの回転角度は、例えば、予告演出の信頼度などに対応付けられる。 Then, after positioning index space IDX 0 , which completes the effect image, as a texture (SETINDEX), the effect image (texture) of index space IDX 0 is drawn in the proper place of the drawing area of DS1 for the main display device by the sprite command. do it. In such a case, it is conceivable to decompose the effect image in the index space IDX 0 into triangular drawing primitives, rotate them to an appropriate angle, and draw them in the drawing area. Note that the texture rotation angle 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)、図9(c)に示す仮想描画空間上に、サブ表示装置DS2のための描画領域を定義する(L18)。 The instruction command sequence (L11 to L16) for completing one frame of the main display device DS1 has been described above. It is the same. That is, the starting XY coordinates of the frame buffer FBb are specified, (L17) is defined (usually X=0, Y=0), and the sub-display device DS2 is displayed in the virtual drawing space shown in FIG. 9(c). 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 processing for the sub display device DS2. You can freely set the drawing area without any problem even if it overlaps with the drawing area of . 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, the setting of the operation parameter (Destination area) of the SPRITE command, etc. It can be standardized 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 double-buffered display device DS2, an index space that serves as a "write area" for drawing contents based on the current display list DL. Identify the IDX (L19). The index number of this 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, instruction command strings L20 to L22 for the sub display device DS2 are listed in the same manner as the instruction command strings L14 to L16 for the main display device DS1. It is also possible to use the effect image completed in the index space IDX0 .

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

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

以上、ディスプレイリストDLの構成について詳細に説明したが、演出制御CPU63は、完成させた固定バイト長のディスプレイリストDLをVDP回路に発行することになる(ST7~ST8)。図19は、演出制御CPU63が、転送回路72の転送ポートレジスタTR_PORT を直接WRITE アクセスして、描画回路76にディスプレイリストDLを発行するDL発行処理(図17のST8)を説明するフローチャートである。なお、転送ポートレジスタTR_PORT は、データ転送回路72の動作内容を規定するデータ転送レジスタRGijの一種である。 The configuration of the display list DL has been described in detail above, and the effect control CPU 63 issues the completed display list DL of fixed byte length to the VDP circuit (ST7-ST8). FIG. 19 is a flow chart explaining the DL issuing process (ST8 in FIG. 17) in which the effect control CPU 63 directly WRITE-accesses the transfer port register TR_PORT of the transfer circuit 72 and issues the display list DL to the drawing circuit 76. FIG. The transfer port register TR_PORT is a kind of data transfer register RGij that defines the operation contents 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 implement the DL issuing process, first, it is necessary to set necessary set 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 route inside the data transfer circuit 72 are specified in a predetermined data transfer register RGij. Although the contents of the setting are not particularly limited, here, it is assumed that the data transfer operation is executed while checking the remaining amount of the FIFO buffer in relation to the CPU IF section 56 via the ChB control circuit 72b and the CPU bus control section 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 a predetermined data transfer register RGij. As described above, in this embodiment, the total data amount of the display list DL is adjusted to an integral multiple of 256 bytes, so that value is set. Note that the total amount of data=256×N is also integer N times the minimum data amount Dmin of the data transfer circuit 72 . Normally, the multiple N is 1 or 2, but in the following explanation, it will be explained 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 sometimes abbreviated as transfer port) is a 32-bit long register, the effect control CPU 63 executes a register WRITE operation to the transfer port TR_PORT every 32 bits. It will be. Therefore, the value of the management counter CN for managing the number of times of register WRITE is initialized to 64 (ST21). If the non-adjustment method (C) is adopted, at this timing, the data transfer amount that is an integral multiple of the minimum data amount Dmin is determined and the management counter CN is set.

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

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

続いて、ステップST22の設定が機能したか否かを確認する(ST24)。これは、データ転送回路72の各部の初期設定は、演出制御CPU63によるレジスタWRITE 動作(設定動作)より処理時間がかかるので、不完全な状態のデータ転送回路72に対して、その後の指示を与えないためである。そして、万一、所定時間、待機しても動作開始状態にならない場合には、重大異常フラグABNをセットしてDL発行処理を終える(ST25)。その結果、その後、WDT回路58が機能して、複合チップ50は異常リセットされる(ST10)。 Subsequently, it is confirmed whether or not the setting in step ST22 has functioned (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. because there is no If the operation does not start even after waiting for a predetermined period of time, the serious abnormality flag ABN is set and the DL issuing process ends (ST25). As a result, the WDT circuit 58 then functions and the composite chip 50 is abnormally reset (ST10).

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

但し、通常は、ステップST22の設定は、迅速に完了するので、続いて、CPUバス制御部72dのFIFOバッファ(32bit×130段)について、FIFOバッファが満杯でないことを確認した上で(ST26)、ディスプレイリストDLを構成する先頭行から順番に、一行ごとに転送ポートTR_PORT に指示コマンドを書込む(ST28)。 However, since the setting in step ST22 is normally completed quickly, the FIFO buffer (32 bits×130 stages) of the CPU bus control section 72d is confirmed not to be full (ST26). , the instruction command is written to the transfer port TR_PORT line by line from the top 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 processing of steps ST26 to ST29 is repeated until the management counter CN becomes zero (ST30). In the case of this embodiment, the minimum data amount Dmin is defined in the data transfer circuit 72, so the data transfer operation is executed at the timing when the minimum data amount Dmin is accumulated in the FIFO buffer. 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 processing (ST28) is quickly completed. In the determination, there may be cases where the FIFO buffer Full state is not resolved even after waiting for a predetermined time. In such a case, after setting initialization data in a predetermined VDP register RGij to initialize the drawing circuit 76 and the data transfer circuit 72, the serious abnormality flag ABN is set and DL issuance processing is started. 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 operating and have completed a certain amount of processing. (1) set all internal parameters that may be set by the display list DL to their initial values, (2) set all internal control circuits to their initial states, and (3) (4) initializing the cache state of the AAC area; Similarly, the initialization processing of the data transfer circuit 72 includes initialization processing 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) 描画実行開始を設定する実行制御レジスタ(図19のST23参照)、(b) 描画回路76の実行状況を示すステイタスレジスタ、及び、(c) 現在処理しているディスプレイリストの位置を特定するステイタスレジスタが含まれる。 Although the contents of the drawing register RGij are maintained in the initialization process of step ST27, the contents of a predetermined drawing register may be initialized. Predetermined drawing registers cleared to initial values include (a) an execution control register for setting the start of drawing execution (see ST23 in FIG. 19), (b) a status register indicating the execution status of the drawing circuit 76, and ( c) Contains a status register that identifies the position of the display list currently being processed.

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

この点は、ステップST25の処理においても同様であり、データ転送回路72や描画回路76を初期化した上で、重大異常フラグABNをセットすることなく、ステップST20の処理に戻るもの好適である。但し、このような場合には、DL発行処理の再実行回数をカウントし、再実行回数が限界値を越えれば、重大異常フラグABNをセットしてDL発行処理を終えることになる。 This point is the same in the processing of step ST25, and after initializing the data transfer circuit 72 and the drawing circuit 76, it is preferable to return to the processing 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 terminated.

図19(b)は、正常な動作状態について、確認的に図示したものである。図示の通り、発行されたディスプレイリストDLは、列記された指示コマンドの順番に、描画回路76(ディスプレイリストアナライザ)によって解析され、各指示コマンドに基づく動作が実行される。この動作は、ディスプレイリストDLの発行処理や、データ転送回路72のデータ転送動作(ST26~ST30)に並行して実行される。 FIG. 19(b) is a confirmation 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 an operation based on each instruction command is executed. This operation is executed in parallel with the display list DL issuing process and the data transfer operation of the data transfer circuit 72 (ST26 to ST30).

例えば、指示コマンド(TXLOAD)が実行されることで、CGROM55から必要なテクスチャが読み出されてAAC領域(a) に取得され、その後、GDEC75が自動的に起動してデコード動作が実行され、デコード後のデータが所定のインデックス空間に展開される。また、指示コマンドによっては、ジオメトリエンジン77その他が機能するが、何れにしても、描画回路76の各部が協働することで、ディスプレイリストDLに対応する画像データがフレームバッファFBa,FBbに完成されることになる。 For example, when the instruction command (TXLOAD) is executed, the necessary texture is read out from the CGROM 55 and acquired in the AAC area (a). Later data is expanded in a predetermined index space. Also, 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を発行する場合を、図20に基づいて説明する。何ら限定されないが、DMAC回路60に内蔵された第1~第4のDMAチャンネルのうち、第3のDMAチャンネルを使用することにする。 Next, a case where the display list DL is issued through the DMAC circuit 60 will be described with reference to FIG. Of the first to fourth DMA channels built in the DMAC circuit 60, the third DMA channel is used, although not limited in any way.

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

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

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

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

次に、転送総サイズを、所定のデータ転送レジスタRGijに設定する。図19の場合と同様、データ総量=256となる。なお、無調整手法(C)を採る場合は、このタイミングで、最低データ量Dminの整数倍の転送総サイズを決定して設定することになる。次に、所定の描画レジスタRGijへの設定値に基づいて、描画回路76の描画動作を開始させる(ST25)。図25(a)におけるタイミングt1,t2,t3,t4は、ステップST25の動作タイミングでもある。そして次に、DMAC回路60の動作を開始させた上で(ST26)、データ転送回路72のデータ転送動作を開始させる(ST27)。 Next, the total transfer size is set in a predetermined data transfer register RGij. As in the case of FIG. 19, the data total amount=256. Note that when the non-adjustment method (C) is adopted, at this timing, the total transfer size that is an integer multiple of the minimum data amount Dmin is determined and set. Next, the drawing operation of the drawing circuit 76 is started based on the set value in the predetermined drawing register RGij (ST25). Timings t1, t2, t3, and t4 in FIG. 25(a) are also 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の動作を開始処理は、図20(b)に示す通りであり、先ず、DMAC転送を禁止した状態で、一サイクルのデータ転送単位(1オペランド)の転送が完了するのを待つ(ST40)。詳細な動作内容は、図21に示す処理と同じであり、DMAC転送を禁止設定する処理(ST53)と、その後の待機処理(ST54)に区分される。 The processing for starting the operation of the DMAC circuit 60 is as shown in FIG. ST40). The detailed contents of the operation are the same as the process shown in FIG. 21, and are divided into the process of prohibiting DMAC transfer (ST53) and the subsequent standby process (ST54).

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

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

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

次に、RAM59のDLバッファBUFの先頭アドレスを、DMAC回路60の動作を規定する所定の動作制御レジスタREGに設定すると共に(ST42)、転送先アドレスである転送ポートTR_PORT のアドレスを設定する(ST43)。また、転送総サイズ、つまり、ディスプレイリストDLのデータ総量を256バイトに設定した上で(ST44)、DMAC回路60のDMA動作を開始させる(ST45)。 Next, the top address of the DL buffer BUF of the RAM 59 is set in a 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). ). Also, after setting the total transfer size, that is, the total amount of data of 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 explanation so far is based on the premise that the actual bit length of all instruction commands is an integral multiple of 32 bits. However, since the display list DL and the configuration of the instruction command are 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 of adopting the non-adjustment method (C), in the process of step ST44, this arbitrary value X is adjusted to an appropriate transfer amount MOD, and then the total transfer size setting process is executed. Here, an appropriate transfer amount MOD is defined based on the settings for one-operand transfer and the minimum data amount Dmin (bytes) of the data transfer circuit 72 .

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

以上、一般論も含め説明したが、DMAC回路60のDMA動作は、図6に示すようなサイクルスチール転送動作が開始され、CPUの動作を特に阻害することなく、ディスプレイリストDLが、実施例の場合には32ビット毎に、転送ポートTR_PORT に転送される。そして、転送されたデータは、転送回路ChBを経由して、描画回路76に転送される。 As described above including the general theory, the DMA operation of the DMAC circuit 60 starts the cycle steal transfer operation as shown in FIG. In that case, every 32 bits are transferred to the transfer port TR_PORT. 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は、図17のステップST11の処理を開始することができ、VDP回路52による描画動作(DMAC回路60によるDL発行処理)と並行して、音声演出やランプ演出やモータ演出を制御することができる。 In order to realize such an operation, in this embodiment, subsequent to the process of step ST45, the transfer operation of the data transfer circuit 72 is started and the process ends (ST27). After that, the data transfer circuit 72 receives the instruction command string of the display list DL from the DMAC circuit 60 in units of the minimum data amount Dmin, and transfers it to the drawing circuit 76 . The drawing circuit 76 then 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 in FIG. , lamp effects and motor effects can be controlled.

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

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

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

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

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

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

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

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

図26(a)のタイムチャートに示す通り、プリローダ76は、例えば、動作周期(T1)に発行されたディスプレイリストDL1に基づき、その動作周期中(T1~T1+δ)に、先読み動作(プリロード動作)を終えている筈である。また、描画回路76は、例えば、動作周期(T1+δ)で指示された動作開始指令に基づき、その動作周期中(T1+δ~T1+2δ)に、ディスプレイリストDL1に基づく描画動作を終えている筈である。 As shown in the time chart of FIG. 26(a), the preloader 76, for example, based on the display list DL1 issued in the operation period (T1), performs a prefetch operation (preload operation) during the operation period (T1 to T1+δ). should have finished. Also, 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 specified in the operation cycle (T1+δ), for example.

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

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

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

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

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

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

以上を踏まえて、図23について説明すると、演出制御CPU63は、先ず、所定のデータ転送レジスタRGijと、所定の描画レジスタRGijに各々クリア値を設定して、データ転送回路72と、描画回路76を初期化する(ST20)。この処理は、図20のST20の処理と同一内容である。次に、この初期化処理が正常に終了したことを確認し(ST21)、万一、所定時間経過しても初期化が完了しない場合には、重大異常フラグABNをセットして処理を終える(ST22)。 Based on the above, when explaining FIG. Initialize (ST20). This process has the same content as the process of ST20 in FIG. Next, it is confirmed that the initialization processing has been completed normally (ST21), and if the initialization is not completed even after a predetermined time has passed, the serious abnormality flag ABN is set and the processing ends (ST21). ST22).

通常は、データ転送回路72と描画回路76の初期化は正常に終了するので、続いて、データ転送回路72内部の伝送経由を、所定のデータ転送レジスタRGijに設定する(ST23)。具体的には、外付けDRAM54から、ChB制御回路72bを経由して描画回路76にデータを転送すると設定する(ST23)。次に、書換えリストDL’が格納されている外付けDRAM54のDLバッファBUF’について、その先頭アドレスを、所定のデータ転送レジスタRGijに設定する(ST24)。 Since the initialization of the data transfer circuit 72 and the drawing circuit 76 normally ends normally, the transmission route inside the data transfer circuit 72 is set to a predetermined data transfer register RGij (ST23). Specifically, data is set to be transferred 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 storing the rewrite list DL' is set in a predetermined data transfer register RGij (ST24).

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

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

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

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

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

図24(a)は、図24(b)の動作を説明するフローチャートであり、図19のフローチャートとほぼ同じである。但し、CPUIF部56からChC制御回路72cを経由すること、及び、CPUバス制御部72dに関し、そのFIFOバッファの残量をチェックしながらデータ転送動作を実行すると設定する(ST20)。なお、以下の説明では、ChC制御回路72cを、便宜上、「転送回路ChC」と略すことがある。 FIG. 24(a) is a flow chart for explaining the operation of FIG. 24(b), which is substantially the same as the flow chart of FIG. However, it is set that data will be transferred from the CPUIF section 56 via the ChC control circuit 72c, and that the CPU bus control section 72d will perform the data transfer operation while checking the remaining capacity 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 in a predetermined data transfer register RGij, and the management counter CN is initialized to 64 (ST21). Next, the data transfer operation via the transfer circuit ChC is set to 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 by the effect control CPU 63 to the transfer port TR_PORT, and detects an instruction command (TXLOAD) for READ access to the CGROM 55. , the texture is preloaded and stored in the preload area of the DRAM 54 . Also, the rewrite list DL' in which the source address of the texture is changed is stored in the DL buffer area BUF' of the DRAM 54. FIG.

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

以上、プリローダ73を使用する場合と、使用しない場合について詳細に説明したが、具体的な動作内容は、特に限定されない。図25(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 contents are not particularly limited. FIG. 25(b) 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 period δ instead of the generated operation period. In such an embodiment, rendering circuit 76 can use substantially the entire time of one operating period (.delta.), thereby reducing the possibility of frame dropping.

また、図26(b)は、演出制御CPU63が生成したディスプレイリストを、生成したその動作周期ではなく、一動作周期遅れてプリローダ73に発行する実施例を示している。この場合は、プリローダ73は、一動作周期(δ)のほぼ全時間を使用してプリドード動作を実行することができるので、この場合も、フレーム落ちの可能性が低減される。 Also, FIG. 26(b) 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, the preloader 73 can use substantially the entire time of one operation period (δ) to perform the preload operation, again reducing the possibility of frame dropping.

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

図27~図28は、このような実施例を示すブロック図である。図示の通り、この実施例では、上流側の演出制御CPUが、音声演出と、ランプ演出と、モータ演出を制御している。一方、下流側のCPU回路51は、演出制御CPUから受ける制御コマンドCMD’に基づいて、画像演出だけを制御している。 27-28 are block diagrams illustrating such an embodiment. As illustrated, in this embodiment, the upstream effect control CPU 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は、図17(a)のステップST12の処理と、図17(b)の処理を実行する必要がなく、十分に時間をかけて複雑なディスプレイリストDLを生成することができ、より複雑で高度な3D(Dimension )などの画像演出を実現することができる。このような場合には、ディスプレイリストが大型化するが、その場合には、ディスプレイリストDLのデータ総量は、ダミーコマンドを付加することで、512バイト又はそれ以上のN×256バイトに調整される。 When adopting such a configuration, the CPU circuit 51 does not need to execute the processing of step ST12 of FIG. 17(a) and the processing of FIG. 17(b). A list DL can be generated, and a more complex and advanced image presentation 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 N×256 bytes by adding dummy commands. .

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

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

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

また、CPU回路51の制御動作が画像演出制御に特化される場合、DMA転送を採用する実施例では、図21の下方に示す通り、描画回路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 rendering control, in an embodiment employing DMA transfer, as shown in the lower part of FIG. and the completion of the operation of the DMAC circuit 60 (ST50'-ST52'). If any of the operations does not end normally, the operations of the data transfer circuit 72 and the drawing circuit 76 are initialized, and the same processes as those of steps ST53 to ST55 (ST55' to ST57') are executed. be. Also in this case, it is preferable to re-execute the DL issuing process a predetermined number of times.

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

このような対応関係において、ディスプレイリストDLによる仮想描画空間への描画動作は、必ずしも、描画領域(W×H)に限定されないので、例えば、図30(a)上部の左傾斜線で示すように、描画領域(W×H)を超える描画画像(W’×H’)について、その描画位置を時間的に移動させることで、図30(a)下部の右傾斜線で示す実描画領域W×Hへの描画内容を、縦/横/斜めに適宜に移動させることが可能となる。 In such a correspondence relationship, the drawing operation to the virtual drawing space by the display list DL is not necessarily limited to the drawing area (W×H). , the drawing image (W′×H′) exceeding the drawing area (W×H) is shifted in time to obtain the actual drawing area W×H It is possible to move the contents drawn on the screen vertically/horizontally/diagonally as appropriate.

また、このような演出を実行するため、例えば、図30(b)に示すように、表示装置の水平ピクセル数より大きい水平サイズWのインデックス空間を設けても良い。この場合には、ディスプレイリストDLの指示コマンドL12(SETDAVF )で定義される仮想描画空間上の描画領域W×Hは、表示装置の水平/垂直ピクセル数に対応する実描画領域w×hより大きく設定される。なお、図30(b)の下部には、実描画領域w×hが、右傾斜線で示されている。 Moreover, in order to execute such an effect, for example, as shown in FIG. 30(b), 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 in 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 portion of FIG. 30(b), the actual drawing area w×h is indicated by a right sloping line.

そして、実描画領域w×hの縦横寸法は、図17のステップSS30の処理で、表示装置の表示ライン数と水平画素数として特定され、また、実描画領域w×hの左上端点は、図17のステップ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. In the process of step SS31 of 17, the vertical/horizontal display start position is set in a predetermined display register.

一方、インデックス空間における基点アドレス(X,Y)は、ディスプレイリストの指示コマンドL11によって、所定の描画レジスタに設定される。先に説明した通り、具体的には、環境設定系の指示コマンドL11(SETDAVR )によって、インデックス空間IDX上の左上基点アドレスが、例えば(0,0)と規定される。そして、実描画領域w×hの左上端点を、定常処理において適宜に移動させれば、図30(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 display list instruction command L11. As described above, specifically, the upper left base point address in the index space IDX is defined as (0, 0), for example, 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 process, the drawing contents of the actual drawing area W×H indicated by the right sloping line in the lower part of FIG. will move accordingly.

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

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

図31は、このような場合の処理を説明する図面であり、初期設定処理(ST3)において設定すべき設定値は、制御メモリ53(PROGMROM)に記憶された設定値テーブルSETTABLEに纏められている。なお、図17のステップST3では、説明を省略しているが、(a) 初期値設定テーブルSETTABLEに基づいて初期設定処理を実行すること、及び、(b) 初期値設定テーブルSETTABLEの内容については、図17の実施例も、以下に説明する内容と実質的に同じである。 FIG. 31 is a diagram 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 SETTABLE stored in the control memory 53 (PROGMROM). . In step ST3 of FIG. 17, although the description is omitted, (a) the initial setting process is executed based on the initial value setting table SETTABLE, and (b) the content of the initial value setting table SETTABLE is , and FIG. 17 are substantially the same as those described below.

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

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

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

(1)DMA転送動作に関する設定値は、例えば、ステップST41で規定する動作条件の前提条件となる設定値であり、図20(c)や図24(c)における動作条件の違いに拘わらず固定的に適用される基本設定値である。具体的には、(a) DAMC回路60に内蔵されたFIFOバッファ(N段)がどれだけ開放されると、転送元に転送要求をするかの閾値(例えば全体の1/2段)、(b) 転送先や転送元とハンドシェイク動作をするか否か(例えばNo)などの設定値が含まれる。 (1) The setting value related to the DMA transfer operation is, for example, a setting value that is a prerequisite for the operating conditions defined in step ST41, and is fixed regardless of the difference in operating conditions in FIGS. This is the default setting that is applied globally. Specifically, (a) a threshold value (for example, 1/2 of the total number of stages) indicating how many FIFO buffers (N stages) built in the DAMC circuit 60 are released before requesting a transfer to the transfer source, ( b) Includes setting values 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に対して描画異常割込みが発生すること(割込み許可状態、図17(d)参照)、(b) 表示装置DS1のVBLANK開始時に、CPU回路51に対してVBLANK開始割込みが発生すること(図17(c)参照)などの設定値が含まれている。 Also, (2) the set value of the VRAM includes the refresh cycle of the refresh operation. The built-in VRAM 71 operates at this refresh cycle, thereby preventing spontaneous discharge of stored data. Next, (3) set values related to interrupts are values that specify the error type that causes an interrupt request and the output terminal of the interrupt signal (internal terminal of the built-in CPU). If it freezes, an abnormal drawing interrupt will occur to the CPU circuit 51 (interrupt enabled state, see FIG. 17(d)). It contains set values such as what happens (see FIG. 17(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. 51 is connected to an external interrupt input terminal.

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

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

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

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

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

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

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

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

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

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

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

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

ここで、サウンドROMヘッダ情報とは、具体的には、フレーズヘッダHD領域の先頭アドレスHDstと、フレーズヘッダHD領域のデータサイズHDvlと、フレーズデータ領域PHの先頭アドレスPHstと、フレーズデータ領域PHのデータサイズPHvlと、サウンドコマンド領域SCMの先頭アドレスSCMDstと、サウンドコマンド領域SCMDのデータサイズSCMDvlと、を意味する。そして、これらの情報は、電源投入時に音声回路SNDの内部回路に取得されるようになっている(ステップSD4参照)。 Here, the sound ROM header information specifically includes the top address HDst of the phrase header HD area, the data size HDvl of the phrase header HD area, the top address PHst of the phrase data area PH, and the size of the phrase data area PH. It means the data size PHvl, the start address SCMDst of the sound command area SCM, and the data size SCMDvl of the sound command area SCMD. These pieces of information are acquired by the internal circuit of the audio 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 phrase data PH are transferred to the external DRAM 54 when the power is turned on, thereby speeding up subsequent READ access (step SD6). Thus, in this embodiment, the audio processor 27 and the audio memory 28 are eliminated to reduce the size and manufacturing cost. overcoming its weaknesses.

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

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

これら何れの場合でも、次に、演出制御CPU63は、リセット動作が正常に完了したことを確認した上で(ステップSD2)、最初に、サウンドデータ領域の先頭アドレスSNDstを、音声回路SNDのシステム制御レジスタRGijに設定する(ステップSD3)。次に、所定のシステム制御レジスタに所定値を設定することで、サウンドROMヘッダ情報HDを内部回路に記憶させる。なお、サウンドROMヘッダ情報HDは、前記した6要素(HDst,HDvl,PHst,PHvl,SCMDst,SCMDvl)であり、図33(c)に記載の通りである。 In any of these cases, after confirming that the reset operation has been completed normally (step SD2), the effect control CPU 63 first sets the head address SNDst of the sound data area to the system control of the sound circuit SND. It is set in 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 consists of the six elements (HDst, HDvl, PHst, PHvl, SCMDst, SCMDvl) described above, as shown in FIG. 33(c).

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

次に、フレーズヘッダ情報HDとフレーズデータPHは、CGROM55ではなく、外付けDRAM54に存在することを、所定のシステム制御レジスタRGijに設定した上で(ステップSD7)、外付けDRAM54に転送した一群のデータの先頭アドレスBGN(サウンドRAM先頭アドレス)を、所定のシステム制御レジスタに設定する(ステップSD8)。その後、その他の初期設定処理を終えることで(ステップSD9)、音声制御動作が可能となる。 Next, the fact that the phrase header information HD and the phrase data PH exist in the external DRAM 54, not in the CGROM 55, is set in a predetermined system control register RGij (step SD7). A data start address BGN (sound RAM start address) is set in a predetermined system control register (step SD8). After that, when the other initial setting processing is completed (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, SCMDvl) are stored in the internal circuit of the audio circuit SND (step SD4). , the effect control CPU 63 can indicate necessary information such as phrase data by a value relative to the head address BGN of the sound RAM. to perform the necessary audio processing. Since voice data such as phrase data is read-accessed from the external DRAM 54 instead of the CGROM 55, even highly complicated voice effects can be realized smoothly.

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

なお、CGROM55の本体部は、演出制御CPU63からアクセスされることはなく(アクセス不可)、専らVDP回路52からアクセスされるので、アドレス空間CSiに位置付けられることない。先に説明した通り、CGROM55の本体部を、複数のメモリデバイスで構成することもでき、このような場合には、図14(a)のステップSP20の処理によって、SPA0~SPA1のデバイス区間に区分することで、メモリデバイスの特性に適合した最適なREADアクセスが可能となる。 The main body of the CGROM 55 is not accessed by the effect control CPU 63 (inaccessible), and is exclusively accessed by the VDP circuit 52, so it is not located in the address space CSi. As described above, the main body of the CGROM 55 can also be composed of a plurality of memory devices. In such a case, the processing of step SP20 in FIG. By doing so, optimum READ access that matches 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 is set to H level, the memory type of the CGROM 55 and the bus width (64/32/16 bits) correspond to the 2-bit long HBTBWD terminal, It must be specified in advance based on the fixed input value to the HBTRSL terminal of 4-bit length.

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

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

次に、CGROM55に記憶されている難読化パラメータをロードし、難読化を解除するために必要な情報が内部回路内に自動設定される(動作2)。また、CGROM55に記憶されているバスパラメータが自動的にVDPレジスタRGijに取得される(動作3)。なお、この動作3は、図15のステップSP63のプログラム処理に対応する動作であり、内部回路によって自動的に実行される。 Next, the obfuscation parameters stored in the CGROM 55 are loaded, and the information necessary for canceling the obfuscation is automatically set in the internal circuit (operation 2). Also, 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. 15, and is automatically executed by the internal circuit.

そして最後に、動作1~3で設定されたバスパラメータを実効化するべく、図15のステップSP64のプログラム処理に対応する動作が内部回路によって、自動的に実行される(動作4)。そして、バスパラメータの設定が実効化されたタイミングで、ベクタテーブルの情報に基づいてプログラムカウンタPCと、スタックポインタSPの値が自動的に設定され、ブートプログラム(初期設定プログラム)の実行が開始される。 Finally, the operation corresponding to the program processing of step SP64 in FIG. 15 is automatically executed by the internal circuit to implement the bus parameters set in operations 1 to 3 (operation 4). Then, at the timing when the bus parameter setting is executed, 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. be.

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

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

GM 遊技機
63 CPU
51 CPU回路
CS0~CS7 アドレス空間
Pinit 初期プログラム
GM game machine 63 CPU
51 CPU circuits CS0 to CS7 Address space Pinit initial program

Claims (1)

VDP(Video Display Processor )と、前記VDPにディスプレイリストを発行するCPUが機能して、画像演出を含んだ各種の演出動作が実行される遊技機であって、
前記CPUがアクセス可能なメモリ空間には、前記CPUを含むCPU回路の外部に位置して、データバス幅を各々規定可能な複数の外部アドレス空間が含まれる一方
前記VDPがアクセス可能なメモリ空間には、CG圧縮データを記憶するCGメモリと、画像演出用の画像データ生成に使用されるビデオRAMと、が含まれ、
前記複数の外部アドレス空間のうち、所定のROM空間には、該外部アドレス空間に属する第1アドレス情報と、何れの外部アドレス空間にも属さない第2アドレス情報が不揮的に記憶され、
前記CPUのリセット後、前記第2アドレス情報が、前記CPUのスタックポインタに設定され、前記第1アドレス情報が、前記CPUのプログラムカウンタに設定されることで、所定の初期プログラムの実行が開始されるよう構成されると共に
前記ビデオRAMには、所定ビット位置以下の下位ビットが全て0となる基点アドレスに基づいて複数のメモリ領域が確保され、
所定のメモリ領域における前記CG圧縮データの展開先は、前記VDPによって規定されるよう構成されている遊技機。
A gaming machine in which a VDP (Video Display Processor) and a CPU that issues a display list to the VDP function to execute various effects including image effects,
The memory space accessible by the CPU includes a plurality of external address spaces located outside a CPU circuit including the CPU and each capable of defining a data bus width,
The memory space accessible by the VDP includes a CG memory that stores CG compressed data and a video RAM that is used to generate image data for image rendering,
first address information belonging to the external address space and second address information not belonging to any of the external address spaces are nonvolatilely stored in a predetermined ROM space among the plurality of external address spaces;
After resetting the CPU, the second address information is set in the stack pointer of the CPU, and the first address information is set in the program counter of the CPU, thereby starting execution of a predetermined initial program. is configured to
A plurality of memory areas are secured in the video RAM based on a base address in which all lower bits below a predetermined bit position are 0,
A gaming machine , wherein a destination of the compressed CG data in a predetermined memory area is defined by the VDP .
JP2019164662A 2019-09-10 2019-09-10 game machine Active JP7121455B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019164662A JP7121455B2 (en) 2019-09-10 2019-09-10 game machine
JP2022123719A JP2022153614A (en) 2019-09-10 2022-08-03 game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019164662A JP7121455B2 (en) 2019-09-10 2019-09-10 game machine

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2022123719A Division JP2022153614A (en) 2019-09-10 2022-08-03 game machine

Publications (2)

Publication Number Publication Date
JP2021040883A JP2021040883A (en) 2021-03-18
JP7121455B2 true JP7121455B2 (en) 2022-08-18

Family

ID=74864607

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2019164662A Active JP7121455B2 (en) 2019-09-10 2019-09-10 game machine
JP2022123719A Withdrawn JP2022153614A (en) 2019-09-10 2022-08-03 game machine

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2022123719A Withdrawn JP2022153614A (en) 2019-09-10 2022-08-03 game machine

Country Status (1)

Country Link
JP (2) JP7121455B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006204572A (en) 2005-01-28 2006-08-10 Daiman:Kk Game machine
JP2007037776A (en) 2005-08-03 2007-02-15 Daiman:Kk Game machine
JP2017080037A (en) 2015-10-27 2017-05-18 株式会社三共 Game machine
JP2018093892A (en) 2016-12-07 2018-06-21 株式会社平和 Game machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006204572A (en) 2005-01-28 2006-08-10 Daiman:Kk Game machine
JP2007037776A (en) 2005-08-03 2007-02-15 Daiman:Kk Game machine
JP2017080037A (en) 2015-10-27 2017-05-18 株式会社三共 Game machine
JP2018093892A (en) 2016-12-07 2018-06-21 株式会社平和 Game machine

Also Published As

Publication number Publication date
JP2021040883A (en) 2021-03-18
JP2022153614A (en) 2022-10-12

Similar Documents

Publication Publication Date Title
JP2022125170A (en) game machine
JP7321333B2 (en) game machine
JP7321334B2 (en) game machine
JP7325583B2 (en) game machine
JP7121455B2 (en) game machine
JP7112823B2 (en) game machine
JP7121456B2 (en) game machine
JP7112824B2 (en) game machine
JP7121457B2 (en) game machine
JP7358558B2 (en) gaming machine
JP7358557B2 (en) gaming machine
JP7237411B2 (en) game machine
JP7274437B2 (en) game machine
JP7012690B2 (en) Pachinko machine
JP7097862B2 (en) Pachinko machine
JP7097863B2 (en) Pachinko machine
JP7091297B2 (en) Pachinko machine
JP7091298B2 (en) Pachinko machine
JP2022128511A (en) game machine
JP2022125065A (en) game machine

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190911

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201026

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210924

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211102

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20211209

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220228

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220803

R150 Certificate of patent or registration of utility model

Ref document number: 7121455

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150