JP4103463B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP4103463B2 JP4103463B2 JP2002181770A JP2002181770A JP4103463B2 JP 4103463 B2 JP4103463 B2 JP 4103463B2 JP 2002181770 A JP2002181770 A JP 2002181770A JP 2002181770 A JP2002181770 A JP 2002181770A JP 4103463 B2 JP4103463 B2 JP 4103463B2
- Authority
- JP
- Japan
- Prior art keywords
- state
- image data
- storage unit
- write
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、画像処理装置に関し、特にパチンコ機などの遊技機において、遊技の展開状況に応じて演出用の画像や効果音を発生させるための技術に関する。
【0002】
【従来の技術】
従来、パチンコ機などの遊技機には、遊技の進行を制御するための制御装置や、遊技の進行に応じた図柄などの画像を生成するための画像処理装置、あるいは効果音を発生するための音響制御装置等が内蔵されている。この種の装置は、いわゆるステートマシンとして構成されており、現在の動作状態に応じて次の動作状態が決定されるようになっている。
ところで、遊技機内部には、打球用のモータや電飾用の駆動回路など、ノイズの発生源が多く存在するため、ステートマシンとして構成された各装置内の半導体集積回路が誤動作し、装置がハングアップ状態に陥る場合がある。そこで、従来から、この種の装置には、ハングアップ状態から復帰するための機能が設けられている。
【0003】
ここで、ハングアップ状態から復帰させるための従来技術として、いわゆるソフトウェア上の処理により回路状態をリセットする手法(以下、ソフトウェアリセットと称す)がある。このソフトウェアリセットによれば、装置を構成するCPU(Central Processing Unit)から、ハングアップ状態に陥ったLSI(Large Scale Integration)の動作をリセットするためのコマンドを発行し、このLSIの内部回路(たとえばフリップフロップやレジスタ)により構成されるステートマシンをリセットする。ソフトウェアリセットの方法には、ウォチドッグタイマーを用いる方法と、ハングアップが発生したことを表すフラグをリードするなどして、ハングアップを検知した場合にリセットを行う方法がある。
【0004】
【発明が解決しようとする課題】
しかしながら、上述のソフトウェアリセットによれば、一部にリセット不能な回路が存在すると、回路全体がリセットされず、装置がハングアップ状態から復帰できなくなる場合が起こり得るという問題がある。また、LSIの内部回路がハングアップ状態に陥ったことをCPUが検知する必要があるため、CPUの負荷が重くなる。さらに、CPUのインタフェース回路がハングアップ状態に陥ると、CPUはLSIのハングアップを検知することができなくなるばかりか、リセットするためのコマンドを発行するもできなくなる。
【0005】
この発明は、上記事情に鑑みてなされたもので、ソフトウェアリセット等の手法によらず、自らハングアップ状態から復帰することが可能な画像処理装置を提供することを目的とする。
【0006】
【課題を解決するための手段】
上記課題を解決するため、この発明は以下の構成を有する。
即ち、請求項1に記載された発明は、外部のCPUの制御の下でステートマシンとして動作し、リード動作とライト動作とを順次実行する画像処理装置であって、画像データを記憶する第1の記憶部(例えば後述するメモリ80に相当する構成要素)と、前記画像データを一時記憶するための第2の記憶部(例えば後述するメモリ230に相当する構成要素)を有し、該第2の記憶部に記憶された画像データから表示用画像データを生成する画像データ生成部(例えば後述する画像データ生成部23に相当する構成要素)と、前記CPUからスタート信号が供給されると、前記第1の記憶部に記憶された画像データを読み出して前記第2の記憶部に書き込むことにより、前記第1の記憶部に記憶された画像データを前記第2の記憶部に転送するデータ転送部(例えば後述するデータ転送モジュール210に相当する構成要素)と、前記データ転送部が前記第1の記憶部からの画像データの読み出しを終了した後、前記第2の記憶部に画像データの書き込みを行うステートの滞在時間を計時する計時手段(例えば後述する論理積回路212Gおよびカウンタ212Hに相当する構成要素)と、前記計時手段により計時された前記ステートの滞在時間が所定時間になったか否かにより前記データ転送部がハングアップ状態にあるか否かを判断する判断手段(例えば後述するコンパレータ212Jに相当する構成要素)と、前記判断手段の判断結果がハングアップ状態にあることを示す場合に前記データ転送部をリセットし、最初のステートに戻して一連の動作をやり直すリセット手段(例えば後述する論理和回路212A,212Bに相当する構成要素)と、をハードウェアとして備えたことを特徴とする。
【0007】
この発明の構成によれば、ステートマシンがハングアップ状態に陥ると、同一ステートの滞在時間が長くなることを利用し、同一ステートの滞在時間からハングアップ状態を把握する。即ち、計時手段により同一ステートの滞在時間を計時し、この計時された滞在時間から判断手段によりステートマシンがハングアップ状態にあるか否かを判断する。ハングアップ状態にあると判断された場合には、リセット手段によりステートマシンをリセットする。換言すれば、この構成によれば、ステートマシンの現在のステートが予定時間以内に次のステートに移行しないことを条件としてステートマシンがリセットされる。従って、例えばソフトウェアリセットなどの外部からの操作によることなく、ステートマシンをハングアップ状態から復帰させることが可能になる。
【0011】
【発明の実施の形態】
以下、図面を参照して、この発明の実施の形態を説明する。
図1に、この実施の形態に係る半導体集積回路が適用されたパチンコ機などの遊技機に用いられる制御回路系の構成例を示す。同図において、CPU(Central Processing Unit)10は、一連の遊技の進行を制御するもので、遊技の展開に応じて、例えばパチンコ機のアタッカーが所定時間にわたって開状態に固定される確率や大当たりが発生する確率を決定する機能等を有する。このCPU10には、表示装置(CRT)30を制御する画像処理部20と、スピーカ50を駆動する音源40とが接続される。
【0012】
CPU10には、遊技の制御に関するプログラムを格納するROM(Read Only Memory)60が接続される。また、CPU10と上述の画像処理部20および音源40とを接続するバス上には、遊技の制御の過程で発生する一時的なデータを格納するためのRAM(Random Access Memory)70が接続される。さらに、画像処理部20には、遊技の進行に応じて表示すべき図柄の素材データ(画像データ)や、図柄の拡大/縮小処理などの表示に関する制御データを格納するROM80が接続される。これら画像処理部20およびROM80は、この発明に係る画像処理装置を構成する。ここで、画像処理部20は、例えばNTSC(National Television Systems Committee)規格に準拠して各フレームの画像データを生成するものであって、この発明に係る半導体集積回路を構成する。音源40は、MIDI(Musical Instrument Digital Interface)規格に準拠したものであって、CPU10の制御の下に遊技を演出するための音響信号を発生する。
【0013】
図2に、画像処理部20の構成を示す。
同図に示すように、画像処理部20は、ステートマシンとして機能するものであって、データ転送モジュール210を内蔵するCPUインタフェース21,CRTコントローラ22、メモリ(RAM)230を内蔵する画像データ生成部23、パターンメモリインタフェース26、画像メモリ(SDRAM)27、色変換部28を備え、これらはバス29を介して接続されている。また、データ転送モジュール210は、コントロールバス29Aおよびパターンメモリインタフェース26並びに後述するROMインタフェース800を介してメモリ80と接続され、コントロールバス29Bおよび後述するRAMインタフェース231を介してメモリ230と接続されている。さらに、画像データ生成部23には、解凍処理部24を介してメモリ(SDRAM)25が接続される。上述のCPU10はCPUインタフェース21に接続され、表示装置30はCRTコントローラ22に接続され、メモリ80はパターンメモリインタフェース26に接続される。
【0014】
ここで、画像処理部20の動作を簡単に説明しておく。画像の表示を行う場合、外部のCPU10の制御の下に、データ転送モジュール210は、外部のメモリ80からパターンメモリインタフェース26を介して画像の制御データ(プログラムデータ)および圧縮された画像データを読み出してメモリ230に書き込む。即ち、制御データと画像データをメモリ80からメモリ230に転送する。このうち、画像データは、解凍処理部24により解凍(伸長)されてメモリ25に格納される。
【0015】
画像データ生成部23は、メモリ25から画像データを読み出し、メモリ230に格納された制御データに従って加工を施して1フレーム分の表示用画像データを生成し、これをバス29を介して画像メモリ27に書き込む。画像メモリ27に書き込まれた表示用画像データは色変換部28によりRGB系の画像信号に色変換されて表示装置30に出力される。以上により、画像処理部20は、CPU10の制御の下にステートマシンとして機能してリード動作とライト動作とを順次実行し、表示装置30に画像を表示させる。
【0016】
次に、図3に、データ転送モジュール210の構成を示す。このデータ転送モジュール210は、メモリ80から読み出したデータを、適切なタイミングで画像データ生成部23内のメモリ230に転送するためのものであって、FIFO211、FIFOコントローラ212、アドレスカウンタ213,215、コンパレータ214,216を備えて構成される。このデータ転送モジュール210は、ROMインタフェース800を介して上述のメモリ80に接続され、RAMインタフェース231を介して上述のメモリ230に接続される。なお、図3ではデータ転送モジュール210とROMインタフェース800との間に存在する図2に示すパターンメモリインタフェース26が省略されている。
【0017】
ここで、FIFO211には、ROMインタフェース800からリードデータRDATが入力され、このFIFO211からRAMインタフェース231にライトデータWDATが出力される。リードデータRDATは、メモリ80から読み出された制御データまたは画像データである。ライトデータWDATは、リードデータRDATと同一内容のものであり、データ転送モジュール210により転送されてメモリ230に書き込まれる制御データまたは画像データである。また、FIFOコントローラ212からROMインタフェース800にリードリクエスト信号RREQが出力され、ROMインタフェースからFIFOコントローラ212にリードデータタイミング信号RDTIMが入力される。一方、FIFOコントローラ212からRAMインタフェース231にライトリクエスト信号WREQが出力され、RAMインタフェース231からFIFOコントローラ212にライトアクノリッジ信号WACKが入力される。
【0018】
アドレスカウンタ213には、ROMインタフェース800からリードアクノリッジ信号RACKが入力され、このアドレスカウンタ213からROMインタフェース800にリードアドレス信号RADRが出力される。コンパレータ214には上述のリードアドレスRADRが入力され、このコンパレータ214からROMインタフェース800にリードエンド信号RENDが出力される。一方、アドレスカウンタ215には上述のライトアクノリッジ信号WACKが入力され、このアドレスカウンタ215からRAMインタフェース231にライトアドレス信号WADRが出力される。コンパレータ216には上述のライトアドレスWADRが入力され、このコンパレータ216からRAMインタフェース231にライトエンド信号WENDが出力される。
【0019】
ここで、データ転送モジュール210の動作を説明しておく。
データ(画像データ・制御データ)を転送する場合、FIFOコントローラ212は、リードリクエスト信号RREQをROMインタフェース800に出力する。これを受けて、ROMインタフェース800は、リードアクノリッジ信号RACKをアドレスカウンタ213に出力し、これをトリガーとしてアドレスカウンタ213が順次的にリードアドレスRADRを発生する。このとき、リードアクノリッジ信号RACKに対応してROMインタフェース800からリードデータタイミング信号RDTIMが出力され、このリードデータタイミング信号RDTIMで規定されるタイミングでリードデータRDATがFIFO211に書き込まれる。このようにして、リード動作が行われ、ROMインタフェース800を介してメモリ80からFIFO211にリードデータRDATとしてデータが転送される。コンパレータ214は、リードアドレスRADRとリードエンドアドレスREAとを逐次比較し、これらが一致すると、リードエンド信号RENDを出力する。そしてリードアドレスRADRとリードエンドアドレスREAとが一致し、全てのデータがFIFO211に転送されると、一連のリード動作が終了する。
【0020】
一方、FIFOコントローラ212は、RAMインタフェース231にライトリクエスト信号WREQを出力する。これを受けてRAMインタフェース231は、ライトアクノリッジ信号WACKを出力し、これをトリガーとしてアドレスカウンタ215がライトアドレス信号WADRを出力し、その後インクリメントする。これにより、ライト動作が行われ、RAMインタフェース231を介してFIFO211からメモリ230にライトデータWDATとしてデータが転送される。コンパレータ216は、ライトアドレス信号WADRとライトエンドアドレスWEAとを逐次比較し、ライトアドレス信号WADRがライトエンドアドレスWEAと一致すると、ライトエンド信号WENDを出力して一連のライト動作が終了する。
【0021】
次にFIFOコントローラ212を説明する。
図4に、FIFOコントローラ212の構成の一部を示す。この構成は、この発明に関連する部分を抽出したものであって、同図に示すように、論理和回路212A,212B、RS型のフリップフロップ(FF)212C,212D、212K、信号生成部212E,212F、論理積回路212G、カウンタ212H、コンパレータ212Jを含んで構成される。
【0022】
具体的に説明する。論理和回路212A,212Bには、それぞれ上述のリードエンド信号RENDおよびライトエンド信号WENDが入力されると共に、これら論理和回路には後述するハングアップフラグHFLGが共通に入力される。また、フリップフロップ212C,212Dのリセット端子には、論理和回路212A,212Bの出力信号がそれぞれ入力されると共に、各セット端子にはCPU10から供給されるスタート信号STRが共通に入力される。
フリップフロップ212Cの出力信号はリードタイミング信号RTIMとして信号生成部212Eに供給され、フリップフロップ212Dの出力信号はライトタイミング信号WTIMとして信号生成部212Fに供給される。ここで、信号生成部212Eは、リードタイミング信号RTIMと、上述のFIFO211における空領域の有無もしくはデータが書き込まれた領域の割合とに応じてリードリクエスト信号RREQを生成し、信号生成部212Fは、ライトタイミング信号WTIMと、上述のFIFO211におけるデータの有無もしくはデータが書き込まれた領域の割合とに応じてライトリクエスト信号WREQを生成する。
【0023】
論理積回路212Gは、負論理入力端子と正論理入力端子とを有し、この負論理入力端子にはリードタイミング信号RTIMが入力され、正論理端子にはライトタイミング信号WTIMが入力される。この実施の形態では、論理積回路212Gは、デコーダとして機能するものであって、メモリ80のリード動作が終了してからメモリ230のライト動作が終了するまでのステートを検出する検出手段として機能する。
論理積回路212Gの出力信号は、カウンタ212Hのキャリーイン端子(Ci)とネガティブリセット端子(RN)とに共通に入力される。このカウンタ212Hは、論理積回路212Gの出力信号として論理値「1」を入力した時にカウントを開始し、論理値「0」を入力した時にカウント値をリセットするように構成されている。この実施の形態では、カウンタ212Hは、論理積回路212Gにより検出されたステートの滞在時間を計時する計時手段として機能する。
【0024】
カウンタ212Hの出力信号(カウント値CNT)はコンパレータ212Jの一方の入力端子に与えられ、コンパレータ212Jの他方の入力端子には所定値TMAXが供給される。この所定値TMAXは、メモリ80からのリード動作が終了してからメモリ230の書き込みが終了するまでのステートの最大時間であって、そのようなステートの滞在時間の最大値として予め設定された値である。コンパレータ212Jは、カウント値CNTが所定値TMAXに達したときにハングアップフラグHFLGとして論理値「1」の信号を出力するものである。これにより、コンパレータ212Jは、カウンタ212Hによって計時された滞在時間からハングアップ状態にあるか否かを判断する判断手段として機能し、その判断結果はハングアップフラグHFLGとして出力される。
【0025】
コンパレータ212Jから出力されるハングアップフラグHFLGは、上述の論理和回路212A,212Bに与えられる。この実施の形態では、論理和回路212A,212Bは、コンパレータ212Jから出力されるハングアップフラグHFLGがハングアップ状態にあることを示す場合にステートマシンをリセットするリセット手段として機能する。また、ハングアップフラグHFLGは、RS型のフリップフロップ212Kのセット端子に与えられると共に、そのリセット端子にはCPU10からのリセット信号が与えられる。フリップフロップ212Kの出力信号はエラーフラグEFLGとしてCPU10に供給される。
【0026】
以下、この実施の形態の動作について、図5に示す波形図を参照しながら図6に示すフローに沿って説明する。
初期状態では、画像処理部20はアイドル状態にあり、イベントが発生するまで画像処理部20はアイドル状態を保つ(ステップS1;NO)。このアイドル状態から、遊技の進行に応じてイベントが発生し、CPU10の制御の下に一連の動作が開始すると(ステップS2;YES)、画像処理部20内のデータ転送モジュール210では、図4に示すフリップフロップ212C,212DがCPU10からのスタート信号STRによりセットされ、図5に示すように、リードタイミング信号RTIMおよびライトタイミング信号WTIMが共に論理値「1」とされる。
【0027】
続いて、信号生成部212Eは、FIFO211に空き領域が存在し、かつリードタイミング信号RTIMが論理値「1」であるという条件が満足されていれば、リードリクエスト信号RREQとして論理値「1」を出力する。一方の信号生成部212Fは、FIFO211にデータが存在し、かつライトタイミング信号WTIMが論理値「1」であるという条件が満足されていれば、ライトリクエスト信号WREQとして論理値「1」を出力する。これを受けてROMインタフェース800およびRAMインタフェース231は、それぞれリードアクノリッジ信号RACKおよびライトアクノリッジ信号WACKを出力し、メモリ80のリード動作およびメモリ230のライト動作が開始する(ステップS3)。
【0028】
続いて、コンパレータ214からリードエンド信号RENDとして論理値「1」が出力され、メモリ80からの制御データのリード動作が終了すると(ステップS4;YES)、メモリ230に対するライト動作のみが継続して行われる(ステップS5)。ここで、リードエンド信号RENDとして論理値「1」が図4に示す論理和回路212Aに入力されると、この論理和回路212Aの出力信号によりフリップフロップ212Cがリセットされ、リードタイミング信号RTIMとして論理値「0」が出力される。このとき、ライトエンド信号WENDとして論理値「0」が保持されていて、フリップフロップ212Dはリセットされないから、フリップフロップ212Dはセット状態を保ち、ライトタイミング信号WTIMとして論理値「1」が維持される。このため、論理積回路212Gが出力信号として論理値「1」を出力し、これにより、ステートマシンの現在のステートが、リード動作が終了し且つライト動作が終了していないステートであることが検知される。
【0029】
論理積回路212Gの出力信号として論理値「1」が出力されると、これをトリガーとしてカウンタ212Hがカウント動作を開始し、現在のステートの滞在時間の計時が開始される。ここで、通常であれば、上述のリード動作が終了してから、予定された時間内にライト動作も終了し、ライトエンド信号WENDとして論理値「1」が出力される。この結果、フリップフロップ212Dがリセットされてライトタイミング信号WTIMとして論理値「0」を出力し、これを入力する信号処理部212Fからライトリクエスト信号WREQとして論理値「0」が出力する。また、論理積回路212Gは論理値「0」を出力し、カウンタ212Hはカウントを停止する。これにより、一連のライト動作が終了し、ステートマシンが次のステートに移行する。
【0030】
これに対し、ライト動作中に例えばフリップフロップ212Dがノイズによりセット状態に固定されると、ライトタイミング信号WTIMが論理値「1」に固定され、ライトリクエスト信号WREQが論理値「1」に維持される。このため、見かけ上、ライト動作が終了しないこととなり、ハングアップ状態に陥る。この場合、論理積回路212Gが論理値「1」を出力した時点(リード動作が終了した時点)からカウンタ212Hがカウントを開始しているので、ライトタイミング信号WTIMが論理値「1」を維持していればカウントが継続され、現在のステートの滞在時間が計時される。
【0031】
そして、カウント値CNTが所定値TMAX(図5に示す「N」)に到達すると、コンパレータ212JがハングアップフラグHFLGとして論理値「1」を出力する(ステップS6;YES)。この場合、ハングアップフラグHFLGにより、図4に示す論理和回路212A,212Bの出力信号が強制的に論理値「1」とされるので、これをリセット端子に入力するフリップフロップ212C,212Dは強制的にリセットされる。この結果、図5に示すように、リードタイミング信号RTIMおよびライトタイミング信号WTIMが共に論理値「0」とされて初期状態に戻される。これにより、ステートマシンがハングアップ状態から復帰し、一連の制御動作が最初のステートからやり直されることとなる。このハングアップフラグHFLGは、フリップフロップ212Kに取り込まれ、エラーフラグEFLGとしてCPU10に供給される。これにより、CPU10は、画像処理部20の内部でハングアップからの復帰が行われたことを事後的に把握することができ、必要に応じてその後の制御に反映させることが可能になる。
【0032】
また、上述のライト動作(ステップS5)においてハングアップ状態に陥らない場合には、カウンタ値CNTが所定値TMAX(図5に示す「N」)に到達する前に、フリップフロップ212Dからライトタイミング信号WTIMとして論理値「0」が出力されるので、論理積回路212Gの出力信号が論理値「0」とされ、カウンタ212Hのカウント値CNTがリセットされる。従って、この場合、ハングアップフラグHFLGは論理値「0」に維持され、正規のライトエンド信号WENDに応答してライトリクエスト信号WREQが論理値「0」となり、ライト動作が正常に終了する(ステップS7;YES)。そして、この後、ステートマシンのステートは、アイドル状態となり(ステップS1)、新たなイベントの発生を待つ。
【0033】
以上説明したように、この実施の形態によれば、メモリ230のライト動作時間(ライトステートの滞在時間)を計時するようにしたので、このライト動作におけるFIFOコントローラ212のハングアップを把握することができ、FIFOコントローラ212をリセットすることが可能になる。従って、遊技機の遊戯中に、ステートマシンを構成するFIFOコントローラ212がハングアップ状態となっても、このハングアップ状態から復帰することが可能となり、ハングアップにより遊技が中止される事態を回避することが可能になる。
また、上述の実施の形態では、ライト動作でのハングアップに対処するものとして構成したが、これに限定されることなく、どのようなステートでのハングアップに対処するものとしてもよい。
【0034】
【発明の効果】
以上説明したように、この発明に係る画像処理装置によれば、ステートマシンのステートを検出してステートの滞在時間を計時し、この計時された滞在時間からステートマシンがハングアップ状態にあるか否かを判断してリセットするようにしたので、ソフトウェアリセットによらず、自らハングアップ状態から復帰することが可能となる。
【図面の簡単な説明】
【図1】 この発明の実施の形態に係る半導体集積回路が適用された遊技機の制御系の構成例を示すブロック図である。
【図2】 この発明の実施の形態に係る半導体集積回路として構成された画像処理部の構成を示すブロック図である。
【図3】 この発明の実施の形態に係るデータ転送モジュールの構成を示すブロック図である。
【図4】 この発明の実施の形態に係るFIFOコントローラの構成を示すブロック図である。
【図5】 この発明の実施の形態に係るFIFOコントローラの動作を説明するための波形図である。
【図6】 この発明の実施の形態に係る画像処理部の動作の流れを示すフローチャートである。
【符号の説明】
20…画像処理部、21…CPUインタフェース、22…CRTコントローラ、23…画像データ生成部、24…解凍処理部、25…メモリ、26…パターンメモリ、27…画像メモリ、28…色変換部、29…バス、29A,29B…コントロールバス、80…メモリ、212…FIFOコントローラ、212A,212B…論理和回路、212C,212D,212K…フリップフロップ、212E,212F…信号生成部、212G…論理積回路、212H…カウンタ、212J…コンパレータ。[0001]
BACKGROUND OF THE INVENTION
The present invention The painting The present invention relates to an image processing apparatus, and more particularly to a technique for generating a production image and sound effect in a gaming machine such as a pachinko machine according to the game development status.
[0002]
[Prior art]
Conventionally, in a gaming machine such as a pachinko machine, a control device for controlling the progress of the game, an image processing device for generating an image such as a pattern according to the progress of the game, or a sound effect is generated. An acoustic control device and the like are incorporated. This type of device is configured as a so-called state machine, and the next operation state is determined according to the current operation state.
By the way, since there are many noise sources such as a motor for ball striking and a drive circuit for electric decoration inside the gaming machine, the semiconductor integrated circuit in each device configured as a state machine malfunctions, and the device is May hang up. Therefore, conventionally, this type of apparatus is provided with a function for returning from the hang-up state.
[0003]
Here, as a conventional technique for recovering from the hang-up state, there is a method of resetting a circuit state by so-called software processing (hereinafter referred to as software reset). According to this software reset, a CPU (Central Processing Unit) constituting the device issues a command for resetting the operation of an LSI (Large Scale Integration) that has fallen into a hang-up state, and an internal circuit of the LSI (for example, A state machine including flip-flops and registers is reset. As a software reset method, there are a method using a watchdog timer and a method of resetting when a hang-up is detected by reading a flag indicating that a hang-up has occurred.
[0004]
[Problems to be solved by the invention]
However, according to the above-described software reset, there is a problem that if there is a circuit that cannot be reset in part, the entire circuit is not reset, and the device cannot be recovered from the hang-up state. Further, since the CPU needs to detect that the internal circuit of the LSI has been hung up, the load on the CPU becomes heavy. Furthermore, when the interface circuit of the CPU falls into a hang-up state, the CPU cannot detect the hang-up of the LSI and cannot issue a command for resetting.
[0005]
The present invention has been made in view of the above circumstances, and can recover from a hang-up state by itself regardless of a method such as software reset. Painting An object is to provide an image processing apparatus.
[0006]
[Means for Solving the Problems]
In order to solve the above problems, the present invention has the following configuration.
That is, the invention described in
[0007]
According to the configuration of the present invention, when the state machine falls into the hang-up state, the hang-up state is grasped from the stay time of the same state by utilizing the fact that the stay time of the same state becomes long. That is, the staying time of the same state is measured by the time measuring means, and it is determined from the time spent staying by the determining means whether or not the state machine is in the hang-up state. When it is determined that the state is in the hang-up state, the state machine is reset by the reset means. In other words, according to this configuration, the state machine is reset on condition that the current state of the state machine does not shift to the next state within the scheduled time. Therefore, for example, the state machine can be returned from the hang-up state without an external operation such as software reset.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 shows a configuration example of a control circuit system used in a gaming machine such as a pachinko machine to which the semiconductor integrated circuit according to this embodiment is applied. In the figure, a CPU (Central Processing Unit) 10 controls the progress of a series of games. Depending on the development of the game, for example, the probability or jackpot that an attacker of a pachinko machine is fixed in an open state for a predetermined time. It has a function of determining the probability of occurrence. The
[0012]
Connected to the
[0013]
FIG. 2 shows the configuration of the
As shown in the figure, the
[0014]
Here, the operation of the
[0015]
The image
[0016]
Next, FIG. 3 shows the configuration of the
[0017]
Here, read data RDAT is input from the
[0018]
A read acknowledge signal RACK is input from the
[0019]
Here, the operation of the
When transferring data (image data / control data), the
[0020]
On the other hand, the
[0021]
Next, the
FIG. 4 shows a part of the configuration of the
[0022]
This will be specifically described. The above-described read end signal REND and write end signal WEND are input to the
The output signal of the flip-flop 212C is supplied to the
[0023]
The AND circuit 212G has a negative logic input terminal and a positive logic input terminal. The read logic signal RTIM is input to the negative logic input terminal, and the write timing signal WTIM is input to the positive logic terminal. In this embodiment, the AND circuit 212G functions as a decoder, and functions as a detection unit that detects a state from the end of the read operation of the
The output signal of the AND circuit 212G is input in common to the carry-in terminal (Ci) and the negative reset terminal (RN) of the
[0024]
The output signal (count value CNT) of the
[0025]
The hang-up flag HFLG output from the
[0026]
The operation of this embodiment will be described below along the flow shown in FIG. 6 with reference to the waveform diagram shown in FIG.
In the initial state, the
[0027]
Subsequently, the
[0028]
Subsequently, when the logical value “1” is output as the read end signal REND from the
[0029]
When a logical value “1” is output as an output signal of the logical product circuit 212G, the
[0030]
On the other hand, when the flip-flop 212D is fixed to the set state by noise during the write operation, the write timing signal WTIM is fixed to the logical value “1”, and the write request signal WREQ is maintained at the logical value “1”. The For this reason, the write operation does not end in appearance, and a hang-up state occurs. In this case, since the
[0031]
When the count value CNT reaches the predetermined value TMAX (“N” shown in FIG. 5), the
[0032]
If the hang-up state does not occur in the write operation (step S5), the write timing signal is sent from the flip-flop 212D before the counter value CNT reaches the predetermined value TMAX (“N” shown in FIG. 5). Since the logic value “0” is output as WTIM, the output signal of the AND circuit 212G is set to the logic value “0”, and the count value CNT of the
[0033]
As described above, according to this embodiment, the write operation time (stay state of the write state) of the
In the above-described embodiment, the hang-up in the write operation is dealt with. However, the present invention is not limited to this, and the hang-up in any state may be dealt with.
[0034]
【The invention's effect】
As described above, according to the present invention Image processing device According to the above, the state machine's state is detected, the state stay time is counted, and it is determined whether or not the state machine is in the hang-up state based on the counted stay time. It is possible to return from the hang-up state by itself without resetting.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration example of a control system of a gaming machine to which a semiconductor integrated circuit according to an embodiment of the present invention is applied.
FIG. 2 is a block diagram showing a configuration of an image processing unit configured as a semiconductor integrated circuit according to the embodiment of the present invention.
FIG. 3 is a block diagram showing a configuration of a data transfer module according to the embodiment of the present invention.
FIG. 4 is a block diagram showing a configuration of a FIFO controller according to the embodiment of the present invention.
FIG. 5 is a waveform diagram for explaining the operation of the FIFO controller according to the embodiment of the present invention.
FIG. 6 is a flowchart showing a flow of operation of the image processing unit according to the embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF
Claims (1)
画像データを記憶する第1の記憶部と、
前記画像データを一時記憶するための第2の記憶部を有し、該第2の記憶部に記憶された画像データから表示用画像データを生成する画像データ生成部と、
前記CPUからスタート信号が供給されると、前記第1の記憶部に記憶された画像データを読み出して前記第2の記憶部に書き込むことにより、前記第1の記憶部に記憶された画像データを前記第2の記憶部に転送するデータ転送部と、
前記データ転送部が前記第1の記憶部からの画像データの読み出しを終了した後、前記第2の記憶部に画像データの書き込みを行うステートの滞在時間を計時する計時手段と、
前記計時手段により計時された前記ステートの滞在時間が所定時間になったか否かにより前記データ転送部がハングアップ状態にあるか否かを判断する判断手段と、
前記判断手段の判断結果がハングアップ状態にあることを示す場合に前記データ転送部をリセットし、最初のステートに戻して一連の動作をやり直すリセット手段と、
をハードウェアとして備えたことを特徴とする画像処理装置。 An image processing apparatus that operates as a state machine under the control of an external CPU,
A first storage unit for storing image data;
An image data generation unit that has a second storage unit for temporarily storing the image data, and generates display image data from the image data stored in the second storage unit;
When a start signal is supplied from the CPU, the image data stored in the first storage unit is read out and written into the second storage unit, whereby the image data stored in the first storage unit is read out. A data transfer unit for transferring to the second storage unit;
Timing means the data transfer unit that measures after completion of the reading of the image data, the residence time of the second row cormorants state to write image data in the storage unit from the first storage unit,
Determining means for determining whether or not the data transfer unit is in a hang-up state depending on whether or not the stay time of the state timed by the time measuring means has reached a predetermined time ;
Resetting the data transfer unit to indicate that the determination result of said determination means is hung-up state, and reset means to restart the series of operations to return to the initial state,
An image processing apparatus comprising: as hardware.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002181770A JP4103463B2 (en) | 2002-06-21 | 2002-06-21 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002181770A JP4103463B2 (en) | 2002-06-21 | 2002-06-21 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004029952A JP2004029952A (en) | 2004-01-29 |
JP4103463B2 true JP4103463B2 (en) | 2008-06-18 |
Family
ID=31178528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002181770A Expired - Fee Related JP4103463B2 (en) | 2002-06-21 | 2002-06-21 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4103463B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7214433B2 (en) * | 2018-10-24 | 2023-01-30 | 株式会社藤商事 | game machine |
CN113254247A (en) * | 2021-05-14 | 2021-08-13 | 山东英信计算机技术有限公司 | Server BMC I2C exception recovery method and related device |
-
2002
- 2002-06-21 JP JP2002181770A patent/JP4103463B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004029952A (en) | 2004-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3684590B2 (en) | Reset control device and reset control method | |
JPH0836877A (en) | Queue device | |
JP4103463B2 (en) | Image processing device | |
US6349388B1 (en) | Timer processing engine for supporting multiple virtual minimum time timers | |
JPH06324914A (en) | Runaway detecting method for computer | |
JPH11232214A (en) | Processor for information processor and its controlling method | |
JP4658860B2 (en) | Image data transfer circuit | |
JP4745904B2 (en) | Electronic equipment | |
JP2003281083A (en) | Bus control circuit | |
JP2004117344A (en) | Method for adjusting transition of bitstream | |
TWI803222B (en) | Video recording method and system thereof | |
JP2868501B1 (en) | How to avoid processing stop | |
JP2689778B2 (en) | Runaway detection device for electronic control unit | |
JP2005242929A (en) | Accessing method for shared memory and data processor | |
JP3887059B2 (en) | Data writing method, data reading method, and memory circuit | |
JP3939078B2 (en) | Data write control circuit | |
JP2005250683A (en) | Microcomputer | |
WO2005004103A1 (en) | Video signal processing circuit, control method of video signal processing circuit, and integrated circuit | |
JP5334173B2 (en) | Data transfer system and retry control method | |
JPH0895830A (en) | Abnormality monitor device for electronic equipment | |
JP2611087B2 (en) | Data transfer method | |
JP3509658B2 (en) | Operation mode switching circuit and method | |
JP3152014B2 (en) | Timer circuit | |
JP4641018B2 (en) | Image capturing device and image display device having the same | |
JP4062478B2 (en) | Device access method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040705 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070111 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070123 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070323 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20070605 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070806 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20070813 |
|
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: 20080304 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080317 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4103463 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110404 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120404 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130404 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140404 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |