JP2004029952A - Semiconductor integrated circuit and image processor - Google Patents
Semiconductor integrated circuit and image processor Download PDFInfo
- Publication number
- JP2004029952A JP2004029952A JP2002181770A JP2002181770A JP2004029952A JP 2004029952 A JP2004029952 A JP 2004029952A JP 2002181770 A JP2002181770 A JP 2002181770A JP 2002181770 A JP2002181770 A JP 2002181770A JP 2004029952 A JP2004029952 A JP 2004029952A
- Authority
- JP
- Japan
- Prior art keywords
- state
- image data
- hang
- storage unit
- state machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、半導体集積回路および画像処理装置に関し、特にパチンコ機などの遊技機において、遊技の展開状況に応じて演出用の画像や効果音を発生させるための技術に関する。
【0002】
【従来の技術】
従来、パチンコ機などの遊技機には、遊技の進行を制御するための制御装置や、遊技の進行に応じた図柄などの画像を生成するための画像処理装置、あるいは効果音を発生するための音響制御装置等が内蔵されている。この種の装置は、いわゆるステートマシンとして構成されており、現在の動作状態に応じて次の動作状態が決定されるようになっている。
ところで、遊技機内部には、打球用のモータや電飾用の駆動回路など、ノイズの発生源が多く存在するため、ステートマシンとして構成された各装置内の半導体集積回路が誤動作し、装置がハングアップ状態に陥る場合がある。そこで、従来から、この種の装置には、ハングアップ状態から復帰するための機能が設けられている。
【0003】
ここで、ハングアップ状態から復帰させるための従来技術として、いわゆるソフトウェア上の処理により回路状態をリセットする手法(以下、ソフトウェアリセットと称す)がある。このソフトウェアリセットによれば、装置を構成するCPU(Central Processing Unit)から、ハングアップ状態に陥ったLSI(Large Scale Integration)の動作をリセットするためのコマンドを発行し、このLSIの内部回路(たとえばフリップフロップやレジスタ)により構成されるステートマシンをリセットする。ソフトウェアリセットの方法には、ウォチドッグタイマーを用いる方法と、ハングアップが発生したことを表すフラグをリードするなどして、ハングアップを検知した場合にリセットを行う方法がある。
【0004】
【発明が解決しようとする課題】
しかしながら、上述のソフトウェアリセットによれば、一部にリセット不能な回路が存在すると、回路全体がリセットされず、装置がハングアップ状態から復帰できなくなる場合が起こり得るという問題がある。また、LSIの内部回路がハングアップ状態に陥ったことをCPUが検知する必要があるため、CPUの負荷が重くなる。さらに、CPUのインタフェース回路がハングアップ状態に陥ると、CPUはLSIのハングアップを検知することができなくなるばかりか、リセットするためのコマンドを発行するもできなくなる。
【0005】
この発明は、上記事情に鑑みてなされたもので、ソフトウェアリセット等の手法によらず、自らハングアップ状態から復帰することが可能な半導体集積回路および画像処理装置を提供することを目的とする。
【0006】
【課題を解決するための手段】
上記課題を解決するため、この発明は以下の構成を有する。
即ち、請求項1に記載された発明は、ステートマシンとして機能するように構成された半導体集積回路において、前記ステートマシンのステートを検出する検出手段(例えば後述する論理積回路212Gに相当する構成要素)と、前記検出手段により検出されたステートの滞在時間を計時する計時手段(例えば後述するカウンタ212Hに相当する構成要素)と、前記計時手段により計時された滞在時間から前記ステートマシンがハングアップ状態にあるか否かを判断する判断手段(例えば後述するコンパレータ212Jに相当する構成要素)と、前記判断手段の判断結果がハングアップ状態にあることを示す場合に前記ステートマシンをリセットするリセット手段(例えば後述する論理和回路212A,212Bに相当する構成要素)と、を備えたことを特徴とする。
【0007】
この発明の構成によれば、ステートマシンがハングアップ状態に陥ると、同一ステートの滞在時間が長くなることを利用し、同一ステートの滞在時間からハングアップ状態を把握する。即ち、計時手段により同一ステートの滞在時間を計時し、この計時された滞在時間から判断手段によりステートマシンがハングアップ状態にあるか否かを判断する。ハングアップ状態にあると判断された場合には、リセット手段によりステートマシンをリセットする。換言すれば、この構成によれば、ステートマシンの現在のステートが予定時間以内に次のステートに移行しないことを条件としてステートマシンがリセットされる。従って、例えばソフトウェアリセットなどの外部からの操作によることなく、ステートマシンをハングアップ状態から復帰させることが可能になる。
【0008】
請求項2に記載された発明は、請求項1に記載された半導体集積回路において、前記計時手段が、前記ステートマシンのステートの開始を検出するための論理回路(例えば後述する論理積回路212Gに相当する構成要素)と、前記論理回路の出力信号をトリガーとしてカウントを開始するカウンタ(例えば後述するカウンタ212Hに相当する構成要素)とを備え、前記判断手段が、前記カウンタのカウント値と、前記滞在時間の最大値として予め設定された所定値とを比較するコンパレータ(例えば後述するコンパレータ212Jに相当する構成要素)を備えたことを特徴とする。
【0009】
この構成によれば、計時手段を構成する論理回路により、例えばステートマシン内の論理信号の組み合わせに基づきステートの開始が検出される。ステートの開始が検出されると、カウンタによりカウントが開始され、ステートの滞在時間の計時が開始される。判断手段を構成するコンパレータにより、カウンタのカウント値と所定値とが比較される。ここで、所定値はステートの滞在時間の最大値であるから、カウンタのカウント値が所定値に到達するということは、ステートが予定時間内に次ぎのステートに移行していないことを意味する。そこで、カウンタのカウント値が所定値に達すると、コンパレータの出力信号は、現在のステートがハングアップ状態にある旨の判断結果を表すものとなる。
【0010】
請求項3に記載された発明にかかる画像処理装置は、画像データを記憶する第1の記憶部(例えば後述するメモリ80に相当する構成要素)と、前記画像データを一時記憶するための第2の記憶部(例えば後述するメモリ230に相当する構成要素)を有し、該第2の記憶部に記憶された画像データから表示用画像データを生成する画像データ生成部(例えば後述する画像データ生成部23に相当する構成要素)と、前記第1の記憶部に記憶された画像データを読み出して前記第2の記憶部に書き込むことにより、前記第1の記憶部に記憶された画像データを前記第2の記憶部に転送するデータ転送部(例えば後述するデータ転送モジュール210に相当する構成要素)と、前記データ転送部が前記第1の記憶部からの画像データの読み出しを終了した後、前記第2の記憶部に画像データの書き込みを行っている時間を計時する計時手段(例えば後述する論理積回路212Gおよびカウンタ212Hに相当する構成要素)と、前記計時手段により計時された時間から前記データ転送部がハングアップ状態にあるか否かを判断する判断手段(例えば後述するコンパレータ212Jに相当する構成要素)と、前記判断手段の判断結果がハングアップ状態にあることを示す場合に前記データ転送部をリセットするリセット手段(例えば後述する論理和回路212A,212Bに相当する構成要素)と、を備えたことを特徴とする。
【0011】
【発明の実施の形態】
以下、図面を参照して、この発明の実施の形態を説明する。
図1に、この実施の形態に係る半導体集積回路が適用されたパチンコ機などの遊技機に用いられる制御回路系の構成例を示す。同図において、CPU(CentralProcessing Unit)10は、一連の遊技の進行を制御するもので、遊技の展開に応じて、例えばパチンコ機のアタッカーが所定時間にわたって開状態に固定される確率や大当たりが発生する確率を決定する機能等を有する。このCPU10には、表示装置(CRT)30を制御する画像処理部20と、スピーカ50を駆動する音源40とが接続される。
【0012】
CPU10には、遊技の制御に関するプログラムを格納するROM(Read OnlyMemory)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]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a semiconductor integrated circuit and an image processing apparatus, and more particularly to a technique for generating an effect image and sound effects in a game machine such as a pachinko machine in accordance with a game development situation.
[0002]
[Prior art]
Conventionally, gaming machines such as pachinko machines have a control device for controlling the progress of the game, an image processing device for generating images such as symbols according to the progress of the game, or a device for generating a sound effect. A sound control device and the like are built in. 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 hitting the ball and a driving circuit for lighting decoration inside the gaming machine, a semiconductor integrated circuit in each device configured as a state machine malfunctions, and It may fall into a hang-up state. Therefore, conventionally, this type of device is provided with a function for returning from a hang-up state.
[0003]
Here, as a conventional technique for returning from the hang-up state, there is a method of resetting a circuit state by a so-called software process (hereinafter, referred to as software reset). According to this software reset, a command for resetting the operation of an LSI (Large Scale Integration) that has fallen into a hang-up state is issued from a CPU (Central Processing Unit) constituting the device, and an internal circuit of the LSI (for example, Reset the state machine formed by flip-flops and registers. Software reset methods include 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, if a circuit that cannot be reset partially exists, there is a problem that the entire circuit may not be reset and the device may not be able to return from the hang-up state. Further, since the CPU needs to detect that the internal circuit of the LSI has fallen into a hang-up state, the load on the CPU increases. Further, when the interface circuit of the CPU falls into a hang-up state, the CPU cannot not only detect a hang-up of the LSI, but also cannot issue a command for resetting.
[0005]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a semiconductor integrated circuit and an image processing apparatus capable of returning from a hang-up state by itself without using a method such as software reset.
[0006]
[Means for Solving the Problems]
In order to solve the above problems, the present invention has the following configurations.
That is, according to the first aspect of the present invention, in a semiconductor integrated circuit configured to function as a state machine, a detecting means for detecting a state of the state machine (for example, a component corresponding to an AND circuit 212G described later) ), Time counting means for counting the stay time of the state detected by the detection means (for example, a component corresponding to a
[0007]
According to the configuration of the present invention, when the state machine falls into a 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 longer. That is, the staying time of the same state is counted by the timer, and whether or not the state machine is in a hang-up state is determined by the determining unit based on the counted staying time. If it is determined that the state machine is in the hang-up state, the state machine is reset by 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, the state machine can be returned from the hang-up state without an external operation such as a software reset.
[0008]
According to a second aspect of the present invention, in the semiconductor integrated circuit according to the first aspect, the timing means detects a start of a state of the state machine by a logic circuit (for example, an AND circuit 212G described later). And a counter (for example, a component corresponding to a
[0009]
According to this configuration, the start of the state is detected by the logic circuit constituting the timekeeping means, for example, based on a combination of the logic signals in the state machine. When the start of the state is detected, the counting is started by the counter, and the counting of the stay time of the state is started. The count value of the counter is compared with a predetermined value by a comparator constituting the determination means. Here, since the predetermined value is the maximum value of the stay time of the state, the fact that the count value of the counter reaches the predetermined value means that the state has not transitioned to the next state within the scheduled time. Therefore, when the count value of the counter reaches a predetermined value, the output signal of the comparator indicates the result of the determination that the current state is in the hang-up state.
[0010]
An image processing apparatus according to a third aspect of the present invention provides a first storage unit (for example, a component corresponding to a
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows a configuration example of a control circuit system used in a game 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, and according to the development of the games, for example, the probability that an attacker of a pachinko machine is fixed in an open state for a predetermined time or a big hit occurs. It has a function to determine the probability of performing. The
[0012]
The
[0013]
FIG. 2 shows the configuration of the
As shown in FIG. 1, the
[0014]
Here, the operation of the
[0015]
The image
[0016]
Next, FIG. 3 shows a configuration of the
[0017]
Here, the 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 timing 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 detecting means for detecting a state from the end of the read operation of the
The output signal of the AND circuit 212G is commonly input to the carry-in terminal (Ci) and the negative reset terminal (RN) of the
[0024]
An output signal (count value CNT) of the
[0025]
The hang-up flag HFLG output from the
[0026]
Hereinafter, the operation of this embodiment will be described along the flow chart shown in FIG. 6 with reference to the waveform chart shown in FIG.
In the initial state, the
[0027]
Subsequently, the
[0028]
Subsequently, the logical value “1” is output 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, if, for example, the flip-flop 212D is fixed to the set state due to noise during the write operation, the write timing signal WTIM is fixed at the logical value “1”, and the write request signal WREQ is maintained at the logical value “1”. You. Therefore, apparently, the write operation is not completed, 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 write operation (step S5) does not fall into the hang-up state, the write timing signal is output from the flip-flop 212D before the counter value CNT reaches the predetermined value TMAX ("N" shown in FIG. 5). Since the logical value “0” is output as WTIM, the output signal of the AND circuit 212G is set to the logical value “0”, and the count value CNT of the
[0033]
As described above, according to this embodiment, the write operation time of the memory 230 (the stay time of the write state) is measured, so that it is possible to grasp the hang-up of the
Further, in the above-described embodiment, the configuration is made to deal with the hang-up in the write operation. However, the present invention is not limited to this, and it may be possible to deal with the hang-up in any state.
[0034]
【The invention's effect】
As described above, according to the semiconductor integrated circuit of the present invention, the state of the state machine is detected and the staying time of the state is counted, and whether or not the state machine is in the hang-up state is determined based on the counted staying time. Since the reset is performed by judging whether or not it is possible, it is possible to return from the hang-up state by itself irrespective of software reset.
[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 illustrating 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 chart for explaining an operation of the FIFO controller according to the embodiment of the present invention;
FIG. 6 is a flowchart illustrating a flow of an operation of the image processing unit according to the embodiment of the present invention.
[Explanation of symbols]
Claims (3)
前記ステートマシンのステートを検出する検出手段と、
前記検出手段により検出されたステートの滞在時間を計時する計時手段と、
前記計時手段により計時された滞在時間から前記ステートマシンがハングアップ状態にあるか否かを判断する判断手段と、
前記判断手段の判断結果がハングアップ状態にあることを示す場合に前記ステートマシンをリセットするリセット手段と、
を備えたことを特徴とする半導体集積回路。In a semiconductor integrated circuit configured to function as a state machine,
Detecting means for detecting a state of the state machine;
Clocking means for clocking the stay time of the state detected by the detecting means,
Judgment means for judging whether or not the state machine is in a hang-up state from the stay time measured by the time measurement means,
Resetting means for resetting the state machine when a result of the judgment by the judging means indicates a hang-up state;
A semiconductor integrated circuit comprising:
前記判断手段が、前記カウンタのカウント値と、前記滞在時間の最大値として予め設定された所定値とを比較するコンパレータを備えたことを特徴とする請求項1に記載された半導体集積回路。The timing means includes a logic circuit for detecting the start of the state of the state machine, and a counter that starts counting with an output signal of the logic circuit as a trigger,
2. The semiconductor integrated circuit according to claim 1, wherein the determination unit includes a comparator that compares a count value of the counter with a predetermined value set as a maximum value of the stay time.
前記画像データを一時記憶するための第2の記憶部を有し、該第2の記憶部に記憶された画像データから表示用画像データを生成する画像データ生成部と、
前記第1の記憶部に記憶された画像データを読み出して前記第2の記憶部に書き込むことにより、前記第1の記憶部に記憶された画像データを前記第2の記憶部に転送するデータ転送部と、
前記データ転送部が前記第1の記憶部からの画像データの読み出しを終了した後、前記第2の記憶部に画像データの書き込みを行っている時間を計時する計時手段と、
前記計時手段により計時された時間から前記データ転送部がハングアップ状態にあるか否かを判断する判断手段と、
前記判断手段の判断結果がハングアップ状態にあることを示す場合に前記データ転送部をリセットするリセット手段と、
を備えたことを特徴とする画像処理装置。A first storage unit for storing image data;
An image data generation unit having a second storage unit for temporarily storing the image data, and generating display image data from the image data stored in the second storage unit;
Data transfer for transferring the image data stored in the first storage unit to the second storage unit by reading out the image data stored in the first storage unit and writing the image data in the second storage unit Department and
After the data transfer unit finishes reading the image data from the first storage unit, a timing unit that counts the time during which the image data is being written to the second storage unit;
Determining means for determining whether or not the data transfer unit is in a hang-up state from the time measured by the time measuring means;
Resetting means for resetting the data transfer unit when the result of the judgment by the judging means indicates a hang-up state;
An image processing apparatus comprising:
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 true JP2004029952A (en) | 2004-01-29 |
JP4103463B2 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020065710A (en) * | 2018-10-24 | 2020-04-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
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020065710A (en) * | 2018-10-24 | 2020-04-30 | 株式会社藤商事 | Game machine |
CN113254247A (en) * | 2021-05-14 | 2021-08-13 | 山东英信计算机技术有限公司 | Server BMC I2C exception recovery method and related device |
Also Published As
Publication number | Publication date |
---|---|
JP4103463B2 (en) | 2008-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7639764B2 (en) | Method and apparatus for synchronizing data between different clock domains in a memory controller | |
JP4103463B2 (en) | Image processing device | |
US7636834B2 (en) | Method and apparatus for resetting a gray code counter | |
JP4745904B2 (en) | Electronic equipment | |
JP2004117344A (en) | Method for adjusting transition of bitstream | |
TWI803222B (en) | Video recording method and system thereof | |
EP0575228A1 (en) | Method for loading a program into the program memory of a processor | |
JP3939078B2 (en) | Data write control circuit | |
JP2005242929A (en) | Accessing method for shared memory and data processor | |
JP2868501B1 (en) | How to avoid processing stop | |
JPH10311867A (en) | Semiconductor device | |
JPH10214209A (en) | Data processor having debugging function | |
JP3792470B2 (en) | Image transfer method and apparatus, and image processing apparatus | |
JP3643020B2 (en) | Data transfer method and apparatus, and data processing apparatus using the apparatus | |
JPH0895830A (en) | Abnormality monitor device for electronic equipment | |
JP2004061114A (en) | Self-diagnosis test circuit and method | |
JPH0831110B2 (en) | Logic simulation system | |
JP2002099504A (en) | Data transfer unit and data transfer method | |
JP2004157646A (en) | Verification device for integrated circuit, verification method, and generation method for interface model for verifying integrated circuit | |
JP2002351696A (en) | Debugging device | |
JPH05224642A (en) | Picture display device | |
JPH0830502A (en) | Circuit for continuous writing in flash memory | |
JP2006119905A (en) | Fault detection apparatus and computer system | |
JP2000112789A (en) | Semiconductor device | |
JP2002215601A (en) | Microcomputer |
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 |