JP2012133675A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2012133675A
JP2012133675A JP2010286565A JP2010286565A JP2012133675A JP 2012133675 A JP2012133675 A JP 2012133675A JP 2010286565 A JP2010286565 A JP 2010286565A JP 2010286565 A JP2010286565 A JP 2010286565A JP 2012133675 A JP2012133675 A JP 2012133675A
Authority
JP
Japan
Prior art keywords
configuration
programmable logic
data
logic circuit
control unit
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.)
Withdrawn
Application number
JP2010286565A
Other languages
Japanese (ja)
Inventor
Kazuhiro Takizawa
一博 滝沢
Satoru Tanaka
哲 田中
Nariyasu Kobayashi
成康 小林
Takayuki Sato
貴之 佐藤
Motoo Azuma
基雄 東
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Corp
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 Olympus Corp filed Critical Olympus Corp
Priority to JP2010286565A priority Critical patent/JP2012133675A/en
Publication of JP2012133675A publication Critical patent/JP2012133675A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device capable of more safely configuring a programmable logic circuit.SOLUTION: A control unit 104 selects a configuration method for loading circuit data into a programmable logic circuit 100 among plural methods. A data transmission route change unit 101 selects any transmission route among plural transmission routes transmitting the circuit data according to the method selected by the control unit 104. The control unit 104 monitors configuration operation of the programmable logic circuit 100, and when configuration by a first method fails, selects a second method.

Description

本発明は、FPGA(Field Programmable Gate Array)等のプログラマブル論理回路により構成され、それらのプログラマブル論理回路に回路データを読み込むコンフィギュレーションを行う画像処理装置に関する。   The present invention relates to an image processing apparatus that includes a programmable logic circuit such as an FPGA (Field Programmable Gate Array) and performs a configuration for reading circuit data into the programmable logic circuit.

FPGA等のプログラマブル論理回路は、チップ外部の記録装置に保持されている回路データ(以下、「コンフィギュレーションデータ」と呼称する)を読み込む「コンフィギュレーション」という動作により、所望の機能を実現することができる。このようなプログラマブル論理回路は、電子内視鏡等の医療用画像処理装置においても多く使用されている。高い信頼性が要求される医療機器において、正常な回路動作を保証することは非常に重要な課題である。しかし、プログラマブル論理回路に読み込ませるコンフィギュレーションデータが破損していたり、コンフィギュレーションデータを読み出す過程で何らかの障害が発生したりすると、所望の機能を得ることができなくなるという問題がある。   A programmable logic circuit such as an FPGA can realize a desired function by an operation called “configuration” that reads circuit data (hereinafter referred to as “configuration data”) held in a recording device outside the chip. it can. Such a programmable logic circuit is often used in medical image processing apparatuses such as electronic endoscopes. In medical devices that require high reliability, it is a very important issue to ensure normal circuit operation. However, there is a problem in that a desired function cannot be obtained if the configuration data read into the programmable logic circuit is damaged or some failure occurs in the process of reading the configuration data.

このような問題を解決する方法として、特許文献1に記載のプログラマブルロジックデバイスのコンフィギュレーション装置が開示されている。このコンフィギュレーション装置では、同じデータであるコンフィギュレーションデータ(1)〜コンフィギュレーションデータ(n)のデータセットがメモリに格納されている。コンフィギュレーション装置は、コンフィギュレーションの際、メモリから読み出したデータに対して逐次エラー検出を行う。   As a method for solving such a problem, a configuration apparatus for a programmable logic device described in Patent Document 1 is disclosed. In this configuration apparatus, data sets of configuration data (1) to configuration data (n), which are the same data, are stored in a memory. The configuration device sequentially detects errors in the data read from the memory during configuration.

エラーが検出されると、コンフィギュレーション装置は他のコンフィギューションデータセットから対応するデータを読み出してコンフィギュレーションを行う。例えば、コンフィギュレーションデータとしてコンフィギュレーションデータ(1)を使用している場合、読み出したデータにエラーがあれば、コンフィギュレーション装置はエラーが検出されたデータに対応するデータをコンフィギュレーションデータ(2)から読み出す。なお、エラー発生位置は記憶されており、コンフィギュレーション終了後に正常なデータで上書きされる。この結果、メモリ内部のデータが何らかの要因により変化してしまった場合でも、正常なコンフィギュレーションが可能になる。   When an error is detected, the configuration device reads the corresponding data from the other configuration data set and performs configuration. For example, when the configuration data (1) is used as the configuration data, if there is an error in the read data, the configuration device transmits data corresponding to the data in which the error is detected from the configuration data (2). read out. The error occurrence position is stored and is overwritten with normal data after the configuration is completed. As a result, even when the data in the memory changes due to some factor, a normal configuration is possible.

特開2007−265056号公報JP 2007-265056 A

特許文献1には、メモリ内部の一部のデータの破損以外の不具合に関する記載がない。正常なコンフィギュレーションを妨げる要因としては、他にメモリ自体の故障、基板上の断線、あるいは一時的な外乱等があり、これらに対する対策も必要である。   Japanese Patent Application Laid-Open No. 2004-228561 does not describe any troubles other than the damage of some data in the memory. Other factors that hinder normal configuration include failure of the memory itself, disconnection on the board, or temporary disturbance, and countermeasures against these are also required.

本発明は、上述した課題に鑑みてなされたものであって、より安全にプログラマブル論理回路のコンフィギュレーションを行うことができる画像処理装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus that can more safely configure a programmable logic circuit.

本発明は、上記の課題を解決するためになされたもので、プログラマブル論理回路を使用した画像処理装置であって、前記プログラマブル論理回路に回路データを読み込むコンフィギュレーションの方式を複数の方式の中から選択し、選択した方式に合わせて、前記回路データを伝送する複数の伝送経路の中からいずれかの伝送経路を選択する経路制御部を備え、前記経路制御部は、前記プログラマブル論理回路のコンフィギュレーション動作を監視し、第一の方式によるコンフィギュレーションに失敗した際に、第二の方式を選択することを特徴とする画像処理装置である。   The present invention has been made to solve the above problems, and is an image processing apparatus using a programmable logic circuit, and a configuration method for reading circuit data into the programmable logic circuit is selected from a plurality of methods. A path control unit that selects one of a plurality of transmission paths for transmitting the circuit data in accordance with the selected method, and the path control unit includes a configuration of the programmable logic circuit; The image processing apparatus is characterized in that the operation is monitored and the second method is selected when the configuration by the first method fails.

また、本発明の画像処理装置において、前記第二の方式にスレーブ方式を使用することを特徴とする。   In the image processing apparatus of the present invention, a slave method is used for the second method.

また、本発明の画像処理装置において、前記第二の方式にシリアル方式を使用することを特徴とする。   In the image processing apparatus of the present invention, a serial method is used for the second method.

また、本発明の画像処理装置において、前記第二の方式にJTAG(Joint Test Action Group)方式を使用することを特徴とする。   In the image processing apparatus of the present invention, a JTAG (Joint Test Action Group) method is used for the second method.

また、本発明の画像処理装置において、前記経路制御部は、前記第一の方式によるコンフィギュレーションが複数回失敗した場合に前記第二の方式を選択することを特徴とする。   In the image processing apparatus of the present invention, the path control unit selects the second method when the configuration by the first method fails a plurality of times.

また、本発明の画像処理装置において、前記経路制御部は、前記第一の方式によるコンフィギュレーションに失敗した場合、ユーザーに対して警告メッセージを通知する制御を行うことを特徴とする。   In the image processing apparatus of the present invention, the path control unit performs control to notify a warning message to the user when the configuration by the first method fails.

また、本発明の画像処理装置において、前記経路制御部は、前記第一の方式によるコンフィギュレーションが、電源投入直後に実施されたのか、それとも、すでに何らかの回路データによりコンフィギュレーションが完了している状態で実施されたのかを判定する判定回路を備え、前記第一の方式によるコンフィギュレーションが、再度のコンフィギュレーションを含めて電源投入直後に実施されて失敗した場合、前記プログラマブル論理回路を起動させずに警告メッセージを通知し、前記プログラマブル論理回路がすでに何らかの回路データによりコンフィギュレーションされている状態で前記第一の方式によるコンフィギュレーションが実施されて失敗した場合、前記第二の方式によるコンフィギュレーションを実施することを特徴とする。   In the image processing apparatus according to the aspect of the invention, the path control unit may determine whether the configuration according to the first method is performed immediately after the power is turned on, or the configuration is already completed with some circuit data. If the configuration according to the first method fails immediately after power-on including the reconfiguration, the programmable logic circuit is not activated. A warning message is notified, and if the configuration by the first method fails when the programmable logic circuit is already configured by some circuit data, the configuration by the second method is performed. It is characterized by .

また、本発明の画像処理装置において、前記経路制御部は、前記第一の方式によるコンフィギュレーションが、電源投入直後に実施されたのか、それとも、すでに何らかの回路データによりコンフィギュレーションが完了している状態で実施されたのかを判定する判定回路を備え、前記第二の方式によるコンフィギュレーションが電源投入直後に実施されて失敗した場合、前記プログラマブル論理回路を正常起動させずに警告メッセージを表示し、前記プログラマブル論理回路がすでに何らかの回路データによりコンフィギュレーションされている状態で前記第二の方式によるコンフィギュレーションが実施されて失敗した場合、非常用の回路データを読み込むコンフィギュレーションを実施することを特徴とする。   In the image processing apparatus according to the aspect of the invention, the path control unit may determine whether the configuration according to the first method is performed immediately after the power is turned on, or the configuration is already completed with some circuit data. A determination circuit for determining whether or not the configuration according to the second method has been performed immediately after power-on, and when the failure has occurred, the programmable logic circuit is not normally activated and a warning message is displayed, In a state where the programmable logic circuit is already configured with some circuit data and the configuration by the second method is failed, a configuration for reading emergency circuit data is performed.

また、本発明の画像処理装置において、前記非常用の回路データは、前記第一および第二の方式で用いる回路データとは異なる、必須の基本機能だけを実現する回路データであることを特徴とする。   In the image processing apparatus of the present invention, the emergency circuit data is circuit data that realizes only essential basic functions different from the circuit data used in the first and second methods. To do.

また、本発明の画像処理装置において、前記非常用の回路データは、前記第一の方式によるコンフィギュレーションを実施する前に前記プログラマブル論理回路に読み込まれていた回路データと同じデータであることを特徴とする。   In the image processing apparatus of the present invention, the emergency circuit data is the same data as the circuit data read into the programmable logic circuit before performing the configuration according to the first method. And

本発明によれば、複数のコンフィギュレーション方式および複数の回路データの伝送経路を切り換えられるようにすることによって、より安全にプログラマブル論理回路のコンフィギュレーションを行うことができる。   According to the present invention, it is possible to more safely configure a programmable logic circuit by switching a plurality of configuration schemes and a plurality of circuit data transmission paths.

本発明の第一の実施形態による画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention. 本発明の第一の実施形態による画像処理装置の動作の手順を示すフローチャートである。It is a flowchart which shows the procedure of operation | movement of the image processing apparatus by 1st embodiment of this invention. 本発明の第一の実施形態による画像処理装置の動作の手順を示すフローチャートである。It is a flowchart which shows the procedure of operation | movement of the image processing apparatus by 1st embodiment of this invention. 本発明の第二の実施形態による画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus by 2nd embodiment of this invention. 本発明の第三の実施形態による画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus by 3rd embodiment of this invention. 本発明の第四の実施形態による画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus by 4th embodiment of this invention. 本発明の第五の実施形態による画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus by 5th embodiment of this invention.

以下、図面を参照し、本発明の実施形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第一の実施形態)
まず、本発明の第一の実施形態を説明する。図1は、本実施形態による画像処理装置の構成を示している。図1に示す画像処理装置は、プログラマブル論理回路100、データ伝送路切り換え部101、専用ROM102、共用ROM103、制御部104を有する。
(First embodiment)
First, a first embodiment of the present invention will be described. FIG. 1 shows the configuration of the image processing apparatus according to the present embodiment. The image processing apparatus shown in FIG. 1 includes a programmable logic circuit 100, a data transmission path switching unit 101, a dedicated ROM 102, a shared ROM 103, and a control unit 104.

プログラマブル論理回路100は、コンフィギュレーションデータの処理内容に従い、図示しない画像信号に対して種々の画像処理を実施する。専用ROM102には、第一のコンフィギュレーション方式でプログラマブル論理回路100のコンフィギュレーションを行うためのコンフィギュレーションデータが格納されている。共用ROM103には、制御部104が使用する種々のデータとともに、第二のコンフィギュレーション方式でプログラマブル論理回路100のコンフィギュレーションを行う際に使用するデータが格納されている。   The programmable logic circuit 100 performs various image processing on an image signal (not shown) according to the processing content of the configuration data. The dedicated ROM 102 stores configuration data for configuring the programmable logic circuit 100 using the first configuration method. The shared ROM 103 stores various data used by the control unit 104 and data used when the programmable logic circuit 100 is configured by the second configuration method.

制御部104は、プログラマブル論理回路100のコンフィギュレーション方式を複数のコンフィギュレーション方式の中から決定するとともに、プログラマブル論理回路100に対して種々の制御信号を出力する。さらに、制御部104は、コンフィギュレーションの完了後は、システム全体の制御等、他の役割を担っている。データ伝送路切り換え部101は、専用ROM102からのコンフィギュレーションデータと、システムバス108を経由して入力される共用ROM103からのコンフィギュレーションデータの内の一方を選択してプログラマブル論理回路100のコンフィギュレーションデータ入力端子に入力する。すなわち、データ伝送路切り換え部101は、コンフィギュレーションデータの伝送経路を切り換える機能を有する。なお、データ伝送路切り換え部101は、トライステートバッファや、ワイヤードオア等の簡易な手段で実現可能である。   The control unit 104 determines the configuration method of the programmable logic circuit 100 from among a plurality of configuration methods, and outputs various control signals to the programmable logic circuit 100. Furthermore, the control unit 104 plays other roles such as control of the entire system after the configuration is completed. The data transmission path switching unit 101 selects one of the configuration data from the dedicated ROM 102 and the configuration data from the shared ROM 103 input via the system bus 108 to select the configuration data of the programmable logic circuit 100. Input to the input terminal. That is, the data transmission path switching unit 101 has a function of switching the transmission path of configuration data. The data transmission path switching unit 101 can be realized by a simple means such as a tristate buffer or wired OR.

コンフィギュレーションの際、制御部104は、第一のコンフィギュレーション方式を指示する制御信号であるモード指示信号107をプログラマブル論理回路100とデータ伝送路切り換え部101に出力し、第一のコンフィギュレーション方式でのコンフィギュレーションを指示する。制御部104はプログラマブル論理回路100のコンフィギュレーション動作を監視し、コンフィギュレーションが正常に終了した場合は何もしないが、異常終了した場合には、コンフィギュレーション方式を第二のコンフィギュレーション方式に変更するモード指示信号107をプログラマブル論理回路100とデータ伝送路切り換え部101に出力し、第二のコンフィギュレーション方式でのコンフィギュレーションを指示する   At the time of configuration, the control unit 104 outputs a mode instruction signal 107, which is a control signal for instructing the first configuration method, to the programmable logic circuit 100 and the data transmission path switching unit 101. Direct the configuration of The control unit 104 monitors the configuration operation of the programmable logic circuit 100, and does nothing if the configuration ends normally, but changes the configuration method to the second configuration method if the configuration ends abnormally. Outputs the mode instruction signal 107 to the programmable logic circuit 100 and the data transmission path switching unit 101 to instruct the configuration in the second configuration method

図2は、本実施形態におけるコンフィギュレーション時の動作を示している。以下、図1、図2を用いて本実施形態の動作を説明する。   FIG. 2 shows an operation at the time of configuration in the present embodiment. Hereinafter, the operation of this embodiment will be described with reference to FIGS.

プログラマブル論理回路のコンフィギュレーション方式としては、大別すると、1.マスターパラレル、2.マスターシリアル、3.スレーブパラレル、4.スレーブシリアル、5.JTAG(Joint Test Action Group)がある。マスター方式は、プログラマブル論理回路が自発的に外部記憶装置からコンフィギュレーションデータを取得する方式であり、スレーブ方式はプログラマブル論理回路に外部機器がコンフィギュレーションデータを入力する方式である。パラレル方式は、コンフィギュレーションデータを多ビットの信号として供給する方式であり、シリアル方式は、コンフィギュレーションデータを1ビットの信号として供給する方式である。   The configuration method of the programmable logic circuit is roughly classified as follows: Master parallel, 2. 2. Master serial, 3. Slave parallel; Slave serial, 5. There is JTAG (Joint Test Action Group). The master method is a method in which a programmable logic circuit spontaneously acquires configuration data from an external storage device, and the slave method is a method in which an external device inputs configuration data to the programmable logic circuit. The parallel system is a system for supplying configuration data as a multi-bit signal, and the serial system is a system for supplying configuration data as a 1-bit signal.

本実施形態においては、第一のコンフィギュレーション方式を「マスターパラレル」とし、第二のコンフィギュレーション方式を「スレーブパラレル」とする。   In the present embodiment, the first configuration method is “master parallel” and the second configuration method is “slave parallel”.

電源投入直後等に行われるコンフィギュレーションの実行に先立ち、制御部104は、コンフィギュレーション方式を「マスターパラレル」とし、データ伝送路切り換え部101とプログラマブル論理回路100にモード指示信号107を出力する。データ伝送路切り換え部101は、モード指示信号107に基づいて、プログラマブル論理回路100に供給するコンフィギュレーションデータを専用ROM102からのデータとする。   Prior to execution of configuration performed immediately after power-on or the like, the control unit 104 sets the configuration method to “master parallel” and outputs a mode instruction signal 107 to the data transmission path switching unit 101 and the programmable logic circuit 100. The data transmission path switching unit 101 uses the configuration data supplied to the programmable logic circuit 100 as data from the dedicated ROM 102 based on the mode instruction signal 107.

コンフィギュレーションが開始されると(ステップS100)、制御部104はプログラマブル論理回路100のコンフィギュレーションステータス信号106を参照し、コンフィギュレーションが正常に終了したか否かを確認する(ステップS101)。正常終了が確認できた場合、通常動作に移行する。正常終了が確認できない場合、制御部104は、再度、第一のコンフィギュレーション方式でのコンフィギュレーションを指示する。以降、正常終了を確認するか、所定の回数を実行するまで、上記の工程が繰り返される(ステップS102)。なお、マスターパラレル方式でのコンフィギュレーションでは、電源投入時等にプログラマブル論理回路100が自発的にコンフィギュレーションを開始するが、制御部104からのコンフィギュレーション制御信号105によりプログラマブル論理回路100にコンフィギュレーションを開始させることも可能である。   When the configuration is started (step S100), the control unit 104 refers to the configuration status signal 106 of the programmable logic circuit 100 and confirms whether the configuration has been completed normally (step S101). When normal end is confirmed, the operation shifts to normal operation. When the normal end cannot be confirmed, the control unit 104 instructs the configuration by the first configuration method again. Thereafter, the above process is repeated until the normal end is confirmed or the predetermined number of times is executed (step S102). In the configuration using the master parallel method, the programmable logic circuit 100 starts the configuration spontaneously when the power is turned on, but the configuration is set in the programmable logic circuit 100 by the configuration control signal 105 from the control unit 104. It is also possible to start.

なお、コンフィギュレーションに要する時間は自明であるため、例えば、コンフィギュレーションの開始から所定の時間を経過してもコンフィギュレーションが完了しない場合には、何らかの異常が発生したと考えることができる。制御部104がCPUにより実現されている場合は、タイマーの機能を使用すれば異常の有無を簡単に判別することができる。   Since the time required for the configuration is self-evident, for example, if the configuration is not completed even after a predetermined time has elapsed since the start of the configuration, it can be considered that some abnormality has occurred. When the control unit 104 is realized by a CPU, the presence or absence of an abnormality can be easily determined by using a timer function.

正常なコンフィギュレーションを阻害する要因として、ROMの故障や信号線の断線のような物理的な故障のほかに、外乱等による電気的な障害も考えられる。なお、外乱等による異常は恒常的なものではなく、しばらくした後に解消される可能性が高い。一方、後述の第二のコンフィギュレーション方式は、第一のコンフィギュレーション方式と比較するとコンフィギュレーション時間が長くかかるため、積極的な使用は控えたい。1回の失敗だけですぐに第二のコンフィギュレーション方式に切り換えないようにすることで、外乱等による一時的なコンフィギュレーションの異常に過敏に反応してコンフィギュレーション時間が不必要に長時間化することを防止することができる。   In addition to physical failures such as ROM failures and signal line breaks, electrical failures due to disturbances can be considered as factors that hinder normal configuration. It should be noted that an abnormality due to a disturbance or the like is not constant and is likely to be resolved after a while. On the other hand, the second configuration method, which will be described later, requires a longer configuration time than the first configuration method. By not switching to the second configuration method immediately after a single failure, the configuration time is unnecessarily prolonged due to a sensitive response to temporary configuration abnormalities caused by disturbances, etc. This can be prevented.

第一のコンフィギュレーション方式でのコンフィギュレーションを所定回繰り返しても正常なコンフィギュレーションの終了が確認できない場合、制御部104はコンフィギュレーション方式を「スレーブパラレル」に変更し、データ伝送路切り換え部101およびプログラマブル論理回路100にモード指示信号107を出力する。データ伝送路切り換え部101は、モード指示信号107に基づいて、プログラマブル論理回路100に供給するコンフィギュレーションデータを、専用ROM102からのデータから、共用ROM103からのデータに切り替える。   If the end of normal configuration cannot be confirmed even after repeating the configuration in the first configuration method a predetermined number of times, the control unit 104 changes the configuration method to “slave parallel”, and the data transmission path switching unit 101 and A mode instruction signal 107 is output to the programmable logic circuit 100. Based on the mode instruction signal 107, the data transmission path switching unit 101 switches configuration data supplied to the programmable logic circuit 100 from data from the dedicated ROM 102 to data from the shared ROM 103.

スレーブ方式では、プログラマブル論理回路に対して制御信号を入力する必要がある。このため、制御部104は、共用ROM103からのコンフィギュレーションデータの読み出しと並行して、コンフィギュレーション制御信号105をプログラマブル論理回路100に出力することで、スレーブパラレルでのコンフィギュレーションを実施する(ステップS103)。   In the slave system, it is necessary to input a control signal to the programmable logic circuit. Therefore, the control unit 104 performs configuration in slave parallel by outputting the configuration control signal 105 to the programmable logic circuit 100 in parallel with the reading of the configuration data from the shared ROM 103 (step S103). ).

制御部104は、コンフィギュレーションステータス信号106に基づいてプログラマブル論理回路100のコンフィギュレーション状態を監視し、コンフィギュレーションが正常に終了したか否かを確認する(ステップS104)。正常終了を確認した場合、制御部104は、ユーザーに対して点検を促す警告メッセージを出力する(ステップS105)。どのコンフィギュレーション方式を用いたとしても、最終的に所望の機能が得られていれば、ユーザーからは正常に動作しているように見える。しかし、第一のコンフィギュレーション方式でのコンフィギュレーションに失敗している、という状況は好ましくなく、即刻何らかの対策を講じるべきである。そこで、第一のコンフィギュレーション方式でのコンフィギュレーションに失敗した段階でユーザーに警告することで、今後に不具合が発生する可能性を低下させることができる。   The control unit 104 monitors the configuration state of the programmable logic circuit 100 based on the configuration status signal 106, and confirms whether the configuration has been completed normally (step S104). When the normal end is confirmed, the control unit 104 outputs a warning message for prompting the user to check (step S105). Regardless of which configuration method is used, if the desired function is finally obtained, it appears to the user as operating normally. However, the situation that the configuration by the first configuration method has failed is not preferable, and some countermeasure should be taken immediately. Therefore, by warning the user at the stage where the configuration using the first configuration method has failed, the possibility of a problem occurring in the future can be reduced.

警告メッセージは、図示しないモニターや装置上のユーザーインターフェース等を介してユーザーに告知される。なお、警告メッセージを出力するきっかけとなる制御信号は制御部104によって生成されるが、実際のユーザーに対する告知については、図示しない別の機能が担当してもよい。ステップS104の確認により正常なコンフィギュレーションの完了が確認できない場合は、コンフィギュレーションを実行した状況に応じて動作が変わる。   The warning message is notified to the user via a monitor (not shown) or a user interface on the apparatus. The control signal that triggers the output of the warning message is generated by the control unit 104, but another function (not shown) may be in charge of notification to the actual user. If the completion of normal configuration cannot be confirmed by the confirmation in step S104, the operation changes depending on the situation where the configuration is executed.

コンフィギュレーションを実施するタイミングには、1.起動時、2.起動後のプログラマブル論理回路の機能変更時、の2つがある。起動時に問題が発生した場合、装置を使用し続けることによる不具合を未然に防ぐためには、装置そのものをユーザーに使用させないことが望ましい。一方、すでに装置が起動している状態においては、装置の動作を突然停止してしまうことが不具合となりうる。特に、電子内視鏡による観察中に画像表示を止めてしまうことは望ましくない。   The timing for performing the configuration is as follows: At startup, 2. There are two ways to change the function of the programmable logic circuit after startup. If a problem occurs during startup, it is desirable not to let the user use the device itself in order to prevent problems caused by continuing to use the device. On the other hand, in a state where the apparatus is already activated, it may be a problem that the operation of the apparatus is suddenly stopped. In particular, it is not desirable to stop the image display during observation with an electronic endoscope.

そこで、制御部104は、コンフィギュレーションが行われたときの状況が起動時であるか動作中であるかを判定し(ステップS107)、判定結果に応じて異なる制御を行う。起動時にコンフィギュレーションが行われたのであれば、制御部104は、ユーザーに対して点検および修理を促す警告メッセージを出力したのち、起動を停止する(ステップS106)。   Therefore, the control unit 104 determines whether the state when the configuration is performed is a start-up state or is operating (step S107), and performs different control depending on the determination result. If the configuration is performed at the time of activation, the control unit 104 outputs a warning message that prompts the user to check and repair, and then stops the activation (step S106).

一方、起動後の動作中にコンフィギュレーションが行われたのであれば、制御部104は、ユーザーに対して点検および修理を促す警告メッセージを出力したのち(ステップS109)、緊急用(非常用)のコンフィギュレーションを実施し、システムを安全な状態に移行させる(ステップS108)。なお、動作中のコンフィギュレーションの実施は、必須の基本的な画像処理を維持しつつ、新たな画像処理を追加するために行われるものであるとし、コンフィギュレーション動作中も通常の画像表示が維持されているものとする。   On the other hand, if the configuration is performed during the operation after starting, the control unit 104 outputs a warning message for prompting the user to check and repair (step S109), and then the emergency (emergency) Configuration is performed and the system is shifted to a safe state (step S108). Note that configuration during operation is performed to add new image processing while maintaining essential basic image processing, and normal image display is maintained during configuration operation. It is assumed that

制御部104には、コンフィギュレーションが行われた状況を監視する判定回路(図示せず)があり、コンフィギュレーションが行われたときの状況が電源投入直後の起動時であるか動作中であるかをこの判定回路が判定する。この判定は、例えばコンフィギュレーションが正常終了したことを示すフラグに基づいて行われる。プログラマブル論理回路100からのコンフィギュレーションステータス信号106が正常終了を示している場合、制御部104は正常終了のフラグを立てる。   The control unit 104 has a determination circuit (not shown) that monitors the status of configuration, and whether the status at the time of configuration is at the time of startup immediately after power-on or during operation. Is determined by this determination circuit. This determination is performed based on, for example, a flag indicating that the configuration has been completed normally. When the configuration status signal 106 from the programmable logic circuit 100 indicates normal end, the control unit 104 sets a normal end flag.

これ以降、プログラマブル論理回路100の機能変更のために図2に従って再コンフィギュレーションが行われる場合、ステップS107では動作中であると判定される。一方、起動時に図2に従って再コンフィギュレーションが行われる場合、ステップS107では正常終了のフラグが立っていないため、起動時であると判定される。   Thereafter, when reconfiguration is performed according to FIG. 2 to change the function of the programmable logic circuit 100, it is determined in step S107 that it is operating. On the other hand, when the reconfiguration is performed according to FIG. 2 at the time of activation, it is determined that it is at the time of activation because the normal end flag is not set in step S107.

緊急用のコンフィギュレーションの一例として、1.元のコンフィギュレーションに戻す、2.最低限の処理を行う簡易なコンフィギュレーションにする、等が考えられる。何らかの要因により、新しいデータによるコンフィギュレーションができないとしても、それまで動作していたコンフィギュレーションであれば動作する可能性がある。元のコンフィギュレーションデータが設定できれば、とりあえずは異常な状態から回避でき、ユーザーが適切な行動を取れるようになる。   As an example of an emergency configuration: 1. Return to the original configuration For example, a simple configuration that performs the minimum processing can be considered. Even if the configuration with new data cannot be performed due to some reason, the configuration that has been operating until then may operate. If the original configuration data can be set, it can be avoided from an abnormal state for the time being, and the user can take appropriate actions.

プログラマブル論理回路の一部の論理素子が物理的に破損しており、その論理素子を使用することができない、という問題が発生しているとすると、その論理素子さえ使用しなければ動作する可能性がある。よって、最低限の機能を有する小規模回路であれば、コンフィギュレーションにより実装できる可能性がある。この場合も最低限の機能を維持することで、ユーザーによる適切な行動が可能となる。なお、緊急用のコンフィギュレーションの方式は、第一のコンフィギュレーション方式、第二のコンフィギュレーション方式のどちらでもよい。   If there is a problem that some logic elements of a programmable logic circuit are physically damaged and the logic elements cannot be used, they may operate without using the logic elements. There is. Therefore, a small circuit having a minimum function may be mounted by configuration. Even in this case, it is possible to perform an appropriate action by the user by maintaining the minimum functions. The emergency configuration method may be either the first configuration method or the second configuration method.

なお、図2では第二のコンフィギュレーション方式によるコンフィギュレーション(ステップS103)および緊急用コンフィギュレーション(ステップS108)をそれぞれ1回しか行っていないが、当然、これらのコンフィギュレーションを複数回実施してもよい。   In FIG. 2, the configuration by the second configuration method (step S103) and the emergency configuration (step S108) are each performed only once. Of course, these configurations may be performed a plurality of times. Good.

制御部104は、CPU等により実現可能であり、モード指示信号107やコンフィギュレーション制御信号105は、汎用ポートを活用して生成すればよい。当然、制御部104を専用回路により実現することも可能である。   The control unit 104 can be realized by a CPU or the like, and the mode instruction signal 107 and the configuration control signal 105 may be generated using a general-purpose port. Of course, the control unit 104 can also be realized by a dedicated circuit.

なお、図2に示した処理を図3のようにしてもよい。図3では、第二のコンフィギュレーション方式でのコンフィギュレーション(ステップS103)よりも前に、起動時か動作中かの判定(ステップS107)を行っている。図3に示す処理に従えば、起動時にコンフィギュレーションに失敗した場合、装置は起動しない。図2に示す処理と比較すると、起動させない判断基準がより厳しくなっている。   The process shown in FIG. 2 may be as shown in FIG. In FIG. 3, before starting the configuration in the second configuration method (step S103), it is determined whether it is activated or in operation (step S107). If the processing shown in FIG. 3 is followed, the device will not start if the configuration fails at startup. Compared with the process shown in FIG. 2, the criterion for not starting is stricter.

本実施形態により、マスターパラレルによるコンフィギュレーションに失敗しても、スレーブパラレルによるコンフィギュレーションを実行することで、プログラマブル論理回路に所定の処理を実施させることができる。本実施形態にように複数のコンフィグレーション方式および複数のコンフィギュレーションデータの伝送経路を切り換えられるようにすることによって、より安全にプログラマブル論理回路のコンフィギュレーションを行うことができる。特に、コンフィギュレーションデータの伝送経路を変えることにより、基板上の断線等に対応することができる。また、伝送経路の変更と合わせてコンフィギュレーションデータの供給元も変更することで、コンフィギュレーションデータを保持する記録装置の不具合にも対応することができる。   According to the present embodiment, even if the configuration by the master parallel fails, the configuration by the slave parallel can be executed to cause the programmable logic circuit to perform a predetermined process. By enabling switching of a plurality of configuration schemes and a plurality of configuration data transmission paths as in this embodiment, the programmable logic circuit can be configured more safely. In particular, it is possible to cope with disconnection on the substrate by changing the transmission path of the configuration data. In addition, by changing the configuration data supply source together with the change of the transmission path, it is possible to cope with the problem of the recording apparatus that holds the configuration data.

スレーブパラレルによるコンフィギュレーションは、非常用のバックアップ機能であり、そのためのコストは少ないほどよい。本実施形態では、制御部104からアクセス可能な既存のROMである共用ROM103にバックアップ用のコンフィギュレーションデータを保持するようにしたため、バックアップ機能のための専用ROMを追加する必要はない。よって、追加コストの発生を抑えることができる。   The slave parallel configuration is an emergency backup function, and the lower the cost, the better. In the present embodiment, the configuration data for backup is held in the shared ROM 103, which is an existing ROM accessible from the control unit 104, so there is no need to add a dedicated ROM for the backup function. Therefore, generation | occurrence | production of an additional cost can be suppressed.

コンフィギュレーションに失敗する要因としては、一時的な電気的ノイズによる外乱の影響も考えられる。この場合、再度コンフィギュレーションを実行すれば成功する可能性が高い。一方、第二のコンフィギュレーション方式は、第一のコンフィギュレーション方式と比較してコンフィギュレーション時間が長くかかるため、極力使用したくない。本実施形態では、1回の失敗ではコンフィギュレーション方式を切り換えずに、しばらく繰り返してから切り替えることで、コンフィギュレーション時間が不必要に長時間化することを防止することができる。   The cause of the configuration failure may be the influence of disturbance due to temporary electrical noise. In this case, if the configuration is executed again, the possibility of success is high. On the other hand, the second configuration method requires a longer configuration time than the first configuration method, so it is not desired to use it as much as possible. In this embodiment, it is possible to prevent the configuration time from becoming unnecessarily long by repeatedly switching for a while without switching the configuration method in one failure.

第二のコンフィギュレーション方式によるコンフィギュレーションに成功したとしても、第一のコンフィギュレーション方式によるコンフィギュレーションに失敗したという事態は放置してよい状況ではない。本実施形態では、第一のコンフィギュレーション方式でのコンフィギュレーションに失敗した場合、結果の如何を問わず、ユーザーに対して点検を促す警告を出力することで、不具合の発生を未然に防ぐことができる。   Even if the configuration by the second configuration method is successful, the situation in which the configuration by the first configuration method has failed is not a situation that can be left unattended. In this embodiment, when the configuration by the first configuration method fails, it is possible to prevent the occurrence of a malfunction by outputting a warning prompting the user to check regardless of the result. it can.

また、図2に示した処理では、制御部104は、第二のコンフィギュレーション方式によるコンフィギュレーションに失敗した際の判定の結果、コンフィギュレーションが行われたのが起動時であった場合には、警告メッセージを表示して正常起動はさせず、ユーザーに使用させないようにしている。また、第二のコンフィギュレーション方式によるコンフィギュレーションに失敗した際の判定の結果、何らかのデータですでにコンフィギュレーションされた状態であれば、制御部104は動作中の故障と判断し、非常用のコンフィギュレーションデータによるコンフィギュレーションを行って、継続して画像出力を確保できるように制御している。このため、起動時に故障が発生したとしても、回避策により装置を起動できるようになる。   Further, in the process shown in FIG. 2, the control unit 104 determines that the configuration has been performed at the time of startup as a result of the determination when the configuration by the second configuration method has failed. A warning message is displayed to prevent the user from starting up normally. In addition, as a result of the determination when the configuration by the second configuration method has failed, if the configuration has already been performed with some data, the control unit 104 determines that the failure is in operation, and the emergency configuration is performed. The image data is configured so that image output can be secured continuously. For this reason, even if a failure occurs at the time of activation, the apparatus can be activated by an avoidance measure.

また、図3に示した処理では、制御部104は電源投入直後からコンフィギュレーションの実施を記録し、第一のコンフィギュレーション方式によるコンフィギュレーションに失敗した際、そのコンフィギュレーションがリトライを含めて電源投入直後の起動時に実施されたものか、それともすでに何らかのデータでコンフィギュレーションされた状態で実施されたものかを判定している。第一のコンフィギュレーション方式によるコンフィギュレーションに失敗した際の判定の結果、起動時にコンフィギュレーションが実施されていた場合には、制御部104は警告メッセージを表示して正常起動はさせず、ユーザーに使用させないようにする。また、第一のコンフィギュレーション方式によるコンフィギュレーションに失敗した際の判定の結果、何らかのデータですでにコンフィギュレーションされた状態であれば、制御部104は動作中の故障と判断し、第二のコンフィギューション方式でコンフィギュレーションを実施して、継続して画像出力を確保できるように制御する。このため、起動時に故障が判明すれば、ユーザーが故障したままで使い続けることを防止することができ、検査中に故障が発生した場合は画像出力を継続することができる。   In the process shown in FIG. 3, the control unit 104 records the implementation of the configuration immediately after the power is turned on, and when the configuration by the first configuration method fails, the configuration is turned on including the retry. It is determined whether it was performed at the time of starting immediately after that, or whether it was already performed with some data. As a result of the determination when the configuration by the first configuration method has failed, if the configuration has been performed at the time of startup, the control unit 104 displays a warning message and does not start normally, but is used by the user Do not let it. In addition, as a result of the determination when the configuration by the first configuration method has failed, if the configuration has already been made with some data, the control unit 104 determines that the failure is in operation, and the second configuration The configuration is performed by the configuration method, and control is performed so that image output can be secured continuously. For this reason, if a failure is found at the time of startup, it is possible to prevent the user from continuing to use the device while it is broken, and image output can be continued if a failure occurs during inspection.

また、本実施形態では、第一、第二のコンフィギュレーション方式でのコンフィギュレーションに失敗した場合、モニターに撮像画像を表示するために必要な最低限の機能のみに留めた回路となるように緊急用のコンフィグレーションが行われている。第一のコンフィギュレーション方式でのコンフィギュレーションの失敗が、プログラマブル論理デバイス内部の故障によるものであった場合でも、プログラマブル論理デバイス内部の素子の使用率が少ない小さな回路であれば問題なく動作可能になる可能性がある。また、基本機能しか動作しないため、ユーザーが故障したままで使い続けることを防止することもできる。   Further, in this embodiment, when the configuration in the first and second configuration methods fails, an emergency is made so that the circuit is limited to the minimum functions necessary for displaying the captured image on the monitor. Configuration for is done. Even if the configuration failure in the first configuration method is due to a failure in the programmable logic device, a small circuit with a low usage rate of elements in the programmable logic device can operate without problems. there is a possibility. In addition, since only the basic functions operate, it is possible to prevent the user from continuing to use the device while it is broken.

また、本実施形態では、第一、第二のコンフィギュレーション方式でのコンフィギュレーションに失敗した場合、コンフィギュレーションに失敗する前に正常動作していた元のコンフィギュレーションデータでコンフィギュレーションを行うことも可能である。新しいコンフィギュレーションデータでのコンフィギュレーションに失敗した場合でも、元のコンフィギュレーションデータであれば正常動作する可能性がある。   In this embodiment, when configuration using the first and second configuration methods fails, it is also possible to perform configuration using the original configuration data that was operating normally before the configuration failed. It is. Even if the configuration with new configuration data fails, the original configuration data may operate normally.

(第二の実施形態)
次に、本発明の第二の実施形態を説明する。図4は、本実施形態による画像処理装置の構成を示している。図4において、図1に示した構成と同一機能を有するものに関しては、同一符号を付与するとともに、説明を省略する。図4では、図1に示した制御部104の代わりに制御部201が設けられ、データ伝送路切り換え部101の代わりにデータ伝送路切り換え部202が設けられている。本実施形態では、第一のコンフィギュレーション方式をマスターパラレル、第二のコンフィギュレーション方式をスレーブシリアルとする。
(Second embodiment)
Next, a second embodiment of the present invention will be described. FIG. 4 shows the configuration of the image processing apparatus according to the present embodiment. 4, components having the same functions as those shown in FIG. 1 are given the same reference numerals and description thereof is omitted. 4, a control unit 201 is provided instead of the control unit 104 shown in FIG. 1, and a data transmission path switching unit 202 is provided instead of the data transmission path switching unit 101. In the present embodiment, the first configuration method is master parallel, and the second configuration method is slave serial.

第一のコンフィギュレーション方式(マスターパラレル)でのコンフィギュレーションに失敗すると、制御部201は、コンフィギュレーション方式をスレーブシリアルに変更し、モード指示信号107を出力する。これを受けて、データ伝送路切り換え部202は、プログラマブル論理回路100に供給するコンフィギュレーションデータを共用ROM103からの1ビットのシリアルデータ200に切り替える。   When the configuration in the first configuration method (master parallel) fails, the control unit 201 changes the configuration method to slave serial and outputs the mode instruction signal 107. In response to this, the data transmission path switching unit 202 switches the configuration data supplied to the programmable logic circuit 100 to the 1-bit serial data 200 from the shared ROM 103.

ただし、専用ROM102のデータ出力はパラレル信号であるため、切り替えるのはその内の1ビットだけでよい。よって、図4のように、必ずしも専用ROM102からのコンフィギュレーションデータのすべてをデータ伝送路切り換え部202の内部に通さなくてもよい。なお、プログラマブル論理回路100にシリアル入力専用の端子が存在する場合は、データ伝送路切り換え部202は不要である。   However, since the data output of the dedicated ROM 102 is a parallel signal, only one bit among them can be switched. Therefore, as shown in FIG. 4, it is not always necessary to pass all the configuration data from the dedicated ROM 102 through the data transmission path switching unit 202. When the programmable logic circuit 100 has a terminal dedicated for serial input, the data transmission path switching unit 202 is not necessary.

制御部201は、共用ROM103からコンフィギュレーションデータを読み出すと、パラレル/シリアル変換を実行し、シリアルデータを生成する。生成されたシリアルデータは、制御部201が生成するコンフィギュレーション制御信号105と同期してシリアルデータ200として出力される。プログラマブル論理回路100は、このシリアルデータ200を用いてコンフィギュレーションを実施する。   When reading the configuration data from the shared ROM 103, the control unit 201 performs parallel / serial conversion and generates serial data. The generated serial data is output as serial data 200 in synchronization with the configuration control signal 105 generated by the control unit 201. The programmable logic circuit 100 performs configuration using the serial data 200.

制御部201をCPUで実現する場合、汎用ポートを活用してシリアルデータ200を出力すればよい。また、第一の実施形態と同様、専用回路により制御部201を実現してもよい。   When the control unit 201 is realized by a CPU, the serial data 200 may be output using a general-purpose port. Further, as in the first embodiment, the control unit 201 may be realized by a dedicated circuit.

シリアル方式は、パラレル方式と比較するとデータ転送能力が劣りコンフィギュレーションに時間を要するものの、必要な信号線の数が圧倒的に少ない。従って、本実施形態では、シリアル方式によるコンフィギュレーションの機能を実現するために必要なプログラマブル論理回路の端子を少なく抑えることができる。また、基板の配線コストが少なくて済むので、基板作製のコストを低減することができる。さらに、断線故障が影響する確率が低くなる。   The serial method is inferior in data transfer capability and requires time for configuration as compared with the parallel method, but the number of necessary signal lines is overwhelmingly small. Therefore, in this embodiment, it is possible to reduce the number of terminals of the programmable logic circuit necessary for realizing the configuration function by the serial method. In addition, since the wiring cost of the substrate can be reduced, the cost for manufacturing the substrate can be reduced. Furthermore, the probability that a disconnection failure will be reduced.

(第三の実施形態)
次に、本発明の第三の実施形態を説明する。図5は、本実施形態による画像処理装置の構成を示している。図5において、図1、図3、図4に示した構成と同一機能を有するものに関しては、同一符号を付与するとともに、説明を省略する。図5では、図1に示した制御部104の代わりに制御部301が設けられ、データ伝送路切り換え部101は設けられていない。本実施形態では、第一のコンフィギュレーション方式をマスターパラレルとし、第二のコンフィギュレーション方式をJTAG方式とする。
(Third embodiment)
Next, a third embodiment of the present invention will be described. FIG. 5 shows the configuration of the image processing apparatus according to the present embodiment. 5, components having the same functions as those shown in FIGS. 1, 3, and 4 are given the same reference numerals and description thereof is omitted. In FIG. 5, a control unit 301 is provided instead of the control unit 104 shown in FIG. 1, and the data transmission path switching unit 101 is not provided. In the present embodiment, the first configuration method is the master parallel, and the second configuration method is the JTAG method.

第一のコンフィギュレーション方式(マスターパラレル)でのコンフィギュレーションに失敗すると、制御部301は、コンフィギュレーション方式をJTAGに変更する。なお、一般的にプログラマブル論理回路において、JTAGの端子は専用端子であるため、データ伝送路切り換え部は不要である。さらに、JTAGは、設定されるコンフィギュレーションのモードに関わらず最優先で実施されるコンフィギュレーション方式であり、モード設定も不要である。よって、制御部301はモード指示信号もコンフィギュレーション制御信号も出力しない。   When the configuration in the first configuration method (master parallel) fails, the control unit 301 changes the configuration method to JTAG. In general, in a programmable logic circuit, since the JTAG terminal is a dedicated terminal, a data transmission path switching unit is unnecessary. Furthermore, JTAG is a configuration method that is implemented with the highest priority regardless of the configuration mode to be set, and does not require mode setting. Therefore, the control unit 301 outputs neither a mode instruction signal nor a configuration control signal.

制御部301は、共用ROM103からコンフィギュレーションデータを読み出すと、パラレル/シリアル変換を実行し、シリアルデータを生成する。生成されたシリアルデータは、他の制御信号と合わせてJTAG信号300としてプログラマブル論理回路100のJTAG端子に出力され、プログラマブル論理回路100に入力される。   When the configuration data is read from the shared ROM 103, the control unit 301 performs parallel / serial conversion and generates serial data. The generated serial data is output to the JTAG terminal of the programmable logic circuit 100 as a JTAG signal 300 together with other control signals, and is input to the programmable logic circuit 100.

制御部301をCPUで実現する場合、汎用ポートを活用してJTAG信号300を出力すればよい。また、他の実施形態と同様、専用回路により制御部301を実現してもよい。   When the control unit 301 is realized by a CPU, the JTAG signal 300 may be output using a general-purpose port. Further, as in other embodiments, the control unit 301 may be realized by a dedicated circuit.

プログラマブル論理回路には、主に試作検討段階で使用するため、JTAG規格信号で内部回路をコンフィギュレーションするためのポートが備えられている。JTAGに必要な信号は5本だけであり、本実施形態では、実装コストを抑えることができる。また、プログラマブル論理回路にデータを供給する入力端子も、第一のコンフィギュレーション方式で使用する入力端子とは異なっているため、第一のコンフィギュレーション方式で使用するデータ系列が完全に断線していても対応可能である。また、データ伝送路切り換え部をなくすことも可能であり、実装コストをより低減することができる。   The programmable logic circuit is provided with a port for configuring an internal circuit with a JTAG standard signal, mainly for use in the trial production examination stage. Only five signals are required for JTAG, and in this embodiment, the mounting cost can be reduced. In addition, since the input terminal for supplying data to the programmable logic circuit is also different from the input terminal used in the first configuration method, the data series used in the first configuration method is completely disconnected. Is also available. Further, it is possible to eliminate the data transmission path switching unit, and the mounting cost can be further reduced.

(第四の実施形態)
次に、本発明の第四の実施形態を説明する。図6は、本実施形態による画像処理装置構成を示している。図6において、図1、図3、図4、図5に示した構成と同一機能を有するものに関しては、同一符号を付与するとともに、説明を省略する。図6では、図1に示した制御部104の代わりに制御部400が設けられ、データ伝送路切り換え部101の代わりにデータ伝送路切り換え部401が設けられ、専用ROM102が設けられていない。本実施形態では、第一のコンフィギュレーション方式をスレーブパラレルとし、第二のコンフィギュレーション方式をスレーブシリアル方式とする。
(Fourth embodiment)
Next, a fourth embodiment of the present invention will be described. FIG. 6 shows the configuration of the image processing apparatus according to the present embodiment. In FIG. 6, components having the same functions as those shown in FIGS. 1, 3, 4, and 5 are given the same reference numerals and description thereof is omitted. In FIG. 6, a control unit 400 is provided instead of the control unit 104 shown in FIG. 1, a data transmission path switching unit 401 is provided instead of the data transmission path switching unit 101, and no dedicated ROM 102 is provided. In the present embodiment, the first configuration method is slave parallel, and the second configuration method is slave serial.

スレーブパラレル方式でのコンフィギュレーションは、次のようになる。制御部400は、モード指示信号107をデータ伝送路切り換え部401とプログラマブル論理回路100に出力してモードの設定を行った後、共用ROM103からコンフィギュレーションデータを読み出すとともに、コンフィギュレーション制御信号105を生成してプログラマブル論理回路100に出力する。データ伝送路切り換え部401は、システムバス108を経由して入力される共用ROM103からのコンフィギュレーションデータをプログラマブル論理回路100に出力する。プログラマブル論理回路100は、データ伝送路切り換え部401が選択した共用ROM103からのコンフィギュレーションデータとコンフィギュレーション制御信号105によりコンフィギュレーションされる。   The configuration in the slave parallel system is as follows. The control unit 400 outputs the mode instruction signal 107 to the data transmission path switching unit 401 and the programmable logic circuit 100 to set the mode, and then reads the configuration data from the shared ROM 103 and generates the configuration control signal 105. And output to the programmable logic circuit 100. The data transmission path switching unit 401 outputs configuration data from the shared ROM 103 input via the system bus 108 to the programmable logic circuit 100. The programmable logic circuit 100 is configured by configuration data from the shared ROM 103 selected by the data transmission path switching unit 401 and the configuration control signal 105.

制御部400は、第一のコンフィギュレーション方式(スレーブパラレル)でのコンフィギュレーションに失敗すると、コンフィギュレーション方式をスレーブシリアルに変更し、モード指示信号107を出力する。その後、制御部400は、共用ROM103からコンフィギュレーションデータを読み出すとともにパラレル・シリアル変換を実行し、実行結果をシリアルデータ402としてデータ伝送路切り換え部401に出力するとともに、コンフィギュレーション制御信号105を生成し、プログラマブル論理回路100に出力する。プログラマブル論理回路100は、シリアルデータ402とコンフィギュレーション制御信号105によりコンフィギュレーションされる。   When the configuration in the first configuration method (slave parallel) fails, the control unit 400 changes the configuration method to slave serial and outputs the mode instruction signal 107. Thereafter, the control unit 400 reads the configuration data from the shared ROM 103 and executes parallel / serial conversion, outputs the execution result to the data transmission path switching unit 401 as serial data 402, and generates the configuration control signal 105. To the programmable logic circuit 100. The programmable logic circuit 100 is configured by serial data 402 and a configuration control signal 105.

本実施形態では、コンフィギュレーションデータの供給元が同一のROMであるため、ROM自体の破損に対しては対応できないが、基板上の断線に対しては対応可能である。起動後の機能変更をマスター方式で実行するのは困難であり、その場合はスレーブ方式が使用される。本実施形態は、起動後の機能変更におけるバックアップ機能として有効である。   In the present embodiment, since the configuration data is supplied from the same ROM, it is not possible to deal with damage to the ROM itself, but it is possible to deal with disconnection on the substrate. It is difficult to change the function after startup in the master method, in which case the slave method is used. This embodiment is effective as a backup function in function change after activation.

当然、共用ROM103以外の記憶部を設け、第二のコンフィギュレーション方式(スレーブシリアル)用のデータをこの記憶部に保持してもよい。その場合、前述のROM自体の不具合に関しても対応可能となる。   Of course, a storage unit other than the shared ROM 103 may be provided, and data for the second configuration method (slave serial) may be held in this storage unit. In that case, it is possible to deal with the above-mentioned problems of the ROM itself.

(第五の実施形態)
次に、本発明の第五の実施形態を説明する。図7は、本実施形態による画像処理装置の構成を示している。図7において、図1、図3、図4、図5、図6に示した構成と同一機能を有するものに関しては、同一符号を付与するとともに、説明を省略する。図7では、図1に示した制御部104の代わりに制御部500が設けられ、データ伝送路切り換え部101および専用ROM102が設けられていない。本実施形態では、第一のコンフィギュレーション方式をスレーブパラレルとし、第二のコンフィギュレーション方式をJTAG方式とする。
(Fifth embodiment)
Next, a fifth embodiment of the present invention will be described. FIG. 7 shows the configuration of the image processing apparatus according to the present embodiment. 7, components having the same functions as those shown in FIG. 1, FIG. 3, FIG. 4, FIG. 5, and FIG. In FIG. 7, a control unit 500 is provided instead of the control unit 104 shown in FIG. 1, and the data transmission path switching unit 101 and the dedicated ROM 102 are not provided. In the present embodiment, the first configuration method is a slave parallel and the second configuration method is a JTAG method.

第一のコンフィギュレーション方式(スレーブパラレル)によるコンフィギュレーションでは、プログラマブル論理回路100は共用ROM103からのコンフィギュレーションデータとコンフィギュレーション制御信号105によりコンフィギュレーションされる。制御部500は、スレーブパラレルでのコンフィギュレーションに失敗すると、共用ROM103からのコンフィギュレーションデータをパラレル・シリアル変換し、他の制御信号とともにJTAG信号501としてプログラマブル論理回路100のJTAG端子に出力する。プログラマブル論理回路100は、JTAG信号501によりコンフィギュレーションされる。   In the configuration by the first configuration method (slave parallel), the programmable logic circuit 100 is configured by the configuration data from the shared ROM 103 and the configuration control signal 105. When the configuration in the slave parallel fails, the control unit 500 performs parallel / serial conversion on the configuration data from the shared ROM 103, and outputs it as a JTAG signal 501 to the JTAG terminal of the programmable logic circuit 100 together with other control signals. The programmable logic circuit 100 is configured by a JTAG signal 501.

本実施形態は、第四の実施形態と同様に、起動後の機能変更に対するバックアップとして有効である。こちらも、コスト面での問題がなければ専用ROMを追加することで、より安全性が向上する。   As in the fourth embodiment, this embodiment is effective as a backup for function changes after startup. If there is no problem in terms of cost, adding a dedicated ROM will improve safety.

以上、図面を参照して本発明の実施形態について詳述してきたが、具体的な構成は上記の実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。   As described above, the embodiments of the present invention have been described in detail with reference to the drawings. However, the specific configuration is not limited to the above-described embodiments, and includes design changes and the like without departing from the gist of the present invention. .

100・・・プログラマブル論理回路、101,202,401・・・データ伝送路切り換え部(経路制御部)、102・・・専用ROM、103・・・共用ROM、104,201,301,400,500・・・制御部(経路制御部)   100: Programmable logic circuit, 101, 202, 401 ... Data transmission path switching unit (path control unit), 102 ... Dedicated ROM, 103 ... Shared ROM, 104, 201, 301, 400, 500 ... Control unit (route control unit)

Claims (10)

プログラマブル論理回路を使用した画像処理装置であって、
前記プログラマブル論理回路に回路データを読み込むコンフィギュレーションの方式を複数の方式の中から選択し、選択した方式に合わせて、前記回路データを伝送する複数の伝送経路の中からいずれかの伝送経路を選択する経路制御部を備え、
前記経路制御部は、前記プログラマブル論理回路のコンフィギュレーション動作を監視し、第一の方式によるコンフィギュレーションに失敗した際に、第二の方式を選択することを特徴とする画像処理装置。
An image processing apparatus using a programmable logic circuit,
Select a configuration method for reading circuit data into the programmable logic circuit from a plurality of methods, and select one of the transmission routes for transmitting the circuit data according to the selected method. A route control unit that
The path control unit monitors the configuration operation of the programmable logic circuit, and selects the second method when the configuration by the first method fails.
前記第二の方式にスレーブ方式を使用することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein a slave method is used for the second method. 前記第二の方式にシリアル方式を使用することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein a serial system is used for the second system. 前記第二の方式にJTAG(Joint Test Action Group)方式を使用することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein a JTAG (Joint Test Action Group) method is used for the second method. 前記経路制御部は、前記第一の方式によるコンフィギュレーションが複数回失敗した場合に前記第二の方式を選択することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the path control unit selects the second method when the configuration using the first method fails a plurality of times. 前記経路制御部は、前記第一の方式によるコンフィギュレーションに失敗した場合、ユーザーに対して警告メッセージを通知する制御を行うことを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the path control unit performs control for notifying a user of a warning message when configuration by the first method fails. 前記経路制御部は、前記第一の方式によるコンフィギュレーションが、電源投入直後に実施されたのか、それとも、すでに何らかの回路データによりコンフィギュレーションが完了している状態で実施されたのかを判定する判定回路を備え、
前記第一の方式によるコンフィギュレーションが、再度のコンフィギュレーションを含めて電源投入直後に実施されて失敗した場合、前記プログラマブル論理回路を起動させずに警告メッセージを通知し、
前記プログラマブル論理回路がすでに何らかの回路データによりコンフィギュレーションされている状態で前記第一の方式によるコンフィギュレーションが実施されて失敗した場合、前記第二の方式によるコンフィギュレーションを実施する
ことを特徴とする請求項1に記載の画像処理装置。
The path control unit determines whether the configuration according to the first method has been performed immediately after power-on or whether the configuration has already been completed with some circuit data. With
If the configuration by the first method is performed immediately after power-on including the configuration again and fails, a warning message is notified without starting the programmable logic circuit,
The configuration according to the second method is performed when the configuration by the first method fails when the programmable logic circuit is already configured by some circuit data. Item 8. The image processing apparatus according to Item 1.
前記経路制御部は、前記第一の方式によるコンフィギュレーションが、電源投入直後に実施されたのか、それとも、すでに何らかの回路データによりコンフィギュレーションが完了している状態で実施されたのかを判定する判定回路を備え、
前記第二の方式によるコンフィギュレーションが電源投入直後に実施されて失敗した場合、前記プログラマブル論理回路を正常起動させずに警告メッセージを表示し、
前記プログラマブル論理回路がすでに何らかの回路データによりコンフィギュレーションされている状態で前記第二の方式によるコンフィギュレーションが実施されて失敗した場合、非常用の回路データを読み込むコンフィギュレーションを実施する
ことを特徴とする請求項1に記載の画像処理装置。
The path control unit determines whether the configuration according to the first method has been performed immediately after power-on or whether the configuration has already been completed with some circuit data. With
If configuration by the second method is performed immediately after power-on and fails, a warning message is displayed without starting the programmable logic circuit normally,
When the programmable logic circuit has already been configured with some circuit data and the configuration by the second method fails, a configuration for reading emergency circuit data is performed. The image processing apparatus according to claim 1.
前記非常用の回路データは、前記第一および第二の方式で用いる回路データとは異なる、必須の基本機能だけを実現する回路データであることを特徴とする請求項8に記載の画像処理装置。   9. The image processing apparatus according to claim 8, wherein the emergency circuit data is circuit data that realizes only essential basic functions different from the circuit data used in the first and second methods. . 前記非常用の回路データは、前記第一の方式によるコンフィギュレーションを実施する前に前記プログラマブル論理回路に読み込まれていた回路データと同じデータであることを特徴とする請求項8に記載の画像処理装置。   9. The image processing according to claim 8, wherein the emergency circuit data is the same data as the circuit data read into the programmable logic circuit before performing the configuration according to the first method. apparatus.
JP2010286565A 2010-12-22 2010-12-22 Image processing device Withdrawn JP2012133675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010286565A JP2012133675A (en) 2010-12-22 2010-12-22 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010286565A JP2012133675A (en) 2010-12-22 2010-12-22 Image processing device

Publications (1)

Publication Number Publication Date
JP2012133675A true JP2012133675A (en) 2012-07-12

Family

ID=46649182

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010286565A Withdrawn JP2012133675A (en) 2010-12-22 2010-12-22 Image processing device

Country Status (1)

Country Link
JP (1) JP2012133675A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013025437A (en) * 2011-07-19 2013-02-04 Hitachi Cable Ltd Fpga system and electronic equipment
JP2016110499A (en) * 2014-12-09 2016-06-20 株式会社リコー Data processor and data processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013025437A (en) * 2011-07-19 2013-02-04 Hitachi Cable Ltd Fpga system and electronic equipment
JP2016110499A (en) * 2014-12-09 2016-06-20 株式会社リコー Data processor and data processing method

Similar Documents

Publication Publication Date Title
JP4054509B2 (en) Field device control system and computer-readable storage medium
JP2007078689A (en) Device and method for diagnosing failure of system-on-chip, and system-on-chip allowing failure diagnosis
JP2011043957A (en) Fault monitoring circuit, semiconductor integrated circuit, and faulty part locating method
JP2020077095A (en) Semiconductor device, semiconductor system, and test control method
US20090227839A1 (en) Electronic endoscopic apparatus
JP2009111546A (en) Semiconductor integrated circuit having self-diagnostic function, imaging device, and camera system
JP5698270B2 (en) Passive safety circuit
JP5966181B2 (en) Redundant device and power supply stopping method
JP2012133675A (en) Image processing device
US9818494B2 (en) Operation recording circuit and operation method thereof
KR101581309B1 (en) Airplane Electronic Device for Interlocking Failure Detection and Elimination of Each Board Unit
JP5234374B2 (en) Differential signal transmission circuit, disk array controller, and differential signal transmission cable
JP5195168B2 (en) Connection status diagnostic device
TWI434159B (en) Dual system control device
JP2009187284A (en) Inter-board connection monitoring device
JP2010093949A (en) Uninterruptible power supply apparatus
JP2007293678A (en) Apparatus for diagnosing common bus connection
WO2008059638A1 (en) Semiconductor device
JP4926299B1 (en) Programmable logic controller
JP2010238000A (en) Device for bus connection/disconnection of module
JP2014163917A (en) Semiconductor device
JP2009110410A (en) Information processing device and device path diagnostic method
JP2010078490A (en) Semiconductor device
JP2011242243A (en) Wiring diagnostic system
JP2013085427A (en) Protection controller, diagnostic method, and diagnostic program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140304