JP2015187833A - Information processor, information processing method, and program - Google Patents

Information processor, information processing method, and program Download PDF

Info

Publication number
JP2015187833A
JP2015187833A JP2015005390A JP2015005390A JP2015187833A JP 2015187833 A JP2015187833 A JP 2015187833A JP 2015005390 A JP2015005390 A JP 2015005390A JP 2015005390 A JP2015005390 A JP 2015005390A JP 2015187833 A JP2015187833 A JP 2015187833A
Authority
JP
Japan
Prior art keywords
data
information
unit
storage
storage 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.)
Pending
Application number
JP2015005390A
Other languages
Japanese (ja)
Inventor
哲 高野
Satoru Takano
哲 高野
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2015005390A priority Critical patent/JP2015187833A/en
Publication of JP2015187833A publication Critical patent/JP2015187833A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the efficiency of analyzing problems caused by writing data to a specific wiring-forbidden area of a storage region of a storage unit, in a system for reading data from the storage unit and transferring the data to a transfer destination device.SOLUTION: The information processor includes a transfer unit and a control unit, the transfer unit writing data as transfer target to a first storage unit according to a transfer instruction from an external control unit and then reading and transferring to the transfer destination device the data from the first storage unit according to the data processing rate of a transfer destination device; and a control unit notifying the external control unit of abnormal writing of data to the first storage unit if there is detected writing of data to a specific writing-forbidden area of a storage region of the first storage unit and writing to the first storage unit first information that allows identification of an area of the storage region of the first storage unit where data has been written.

Description

本発明は、情報処理装置、情報処理方法およびプログラムに関する。   The present invention relates to an information processing apparatus, an information processing method, and a program.

電子写真方式の画像形成装置のシステム構成には、RAM(Random Access Memory)といったメモリや、演算処理を行うCPU(Central Processing Unit)といった半導体集積回路が含まれる。そして、RAM等のメモリには、CPU等の半導体集積回路を制御するためのシステムプログラム、転送対象のデータ(例えば、印刷対象の画像データや原稿をスキャンして得られた画像データなど)が書き込まれる。   The system configuration of an electrophotographic image forming apparatus includes a memory such as a RAM (Random Access Memory) and a semiconductor integrated circuit such as a CPU (Central Processing Unit) that performs arithmetic processing. A system program for controlling a semiconductor integrated circuit such as a CPU and data to be transferred (for example, image data to be printed or image data obtained by scanning a document) are written in a memory such as a RAM. It is.

システムプログラムと転送対象のデータとを同一のメモリに記憶させる場合、転送対象のデータをメモリに書き込むことが行われる。このような場合に、メモリにおいてシステムプログラムが記憶された領域に誤って転送対象のデータの書き込みを行ってしまい画像形成装置のシステムがフリーズすることがある。また、メモリにおいて他のデータが記憶された領域に転送対象のデータの書き込みを行ってしまい、メモリに記憶されたデータが異常なデータとなったりすることがある。そこで、メモリにおける所定の書込禁止領域への転送対象のデータの書き込みを禁止する技術が開示されている。   When the system program and the transfer target data are stored in the same memory, the transfer target data is written into the memory. In such a case, the data to be transferred may be erroneously written in an area of the memory where the system program is stored, causing the image forming apparatus system to freeze. In addition, data to be transferred may be written in an area where other data is stored in the memory, and the data stored in the memory may become abnormal data. Therefore, a technique for prohibiting writing of data to be transferred to a predetermined write-protected area in the memory is disclosed.

このように、メモリにおける所定の書込禁止領域への転送対象のデータの書き込みを禁止している。この技術においては、所定の書込禁止領域のスタートアドレスとエンドアドレスとを予め設定し、所定の書込禁止領域への転送対象のデータの書き込みが発生した場合に、CPU等の半導体集積回路に対して割込通知を行うことに留まっている。メモリに対する転送対象のデータの書き込みがCPU等の半導体集積回路により行われる。このような場合には、半導体集積回路内部で、当該半導体集積回路が最後にデータの書き込みを行ったメモリ内の領域のアドレス(以下、最終アクセスアドレスと言う)を検知することが可能である。   As described above, writing of data to be transferred to a predetermined write-protected area in the memory is prohibited. In this technique, a start address and an end address of a predetermined write-protected area are set in advance, and when data to be transferred is written to the predetermined write-protected area, a semiconductor integrated circuit such as a CPU is used. However, it is limited to notifying interrupts. Writing of data to be transferred to the memory is performed by a semiconductor integrated circuit such as a CPU. In such a case, it is possible to detect the address (hereinafter referred to as the last access address) of the area in the memory where the semiconductor integrated circuit last written data in the semiconductor integrated circuit.

しかしながら、DMA(Direct Memory Access)コントローラにより所定の書込禁止領域に対する転送対象のデータの書き込みが行われた場合、CPUが最終アクセスアドレスを検知することは困難である。このため、所定の書込禁止領域へのデータの書き込みによる不具合を解析する上で情報が不十分である。特に、製品開発段階において、不完全なシステムプログラムに従って画像形成装置を動作させている場合、下記問題があった。すなわち、システムプログラムの破壊、画像データまたはDMA転送情報(メモリにおいて転送対象のデータが書き込まれた領域を特定可能とする情報)の破壊といった不具合を発生することがあり、その不具合の解析に時間がかかっている。   However, it is difficult for the CPU to detect the final access address when data to be transferred is written to a predetermined write-protected area by a DMA (Direct Memory Access) controller. For this reason, the information is insufficient to analyze a problem caused by writing data to a predetermined write-protected area. In particular, when the image forming apparatus is operated in accordance with an incomplete system program in the product development stage, there are the following problems. That is, problems such as destruction of the system program, destruction of image data or DMA transfer information (information that can specify the area in which data to be transferred is written in the memory) may occur. It depends.

例えば、メモリにおいてDMA転送情報および画像データはそれぞれ別々のアドレスの領域に書き込まれている。製品開発段階においては、メモリの管理が不完全であるが故に、転送対象のデータが、他の転送対象のデータまたは当該データのDMA転送情報の一部に上書きされてしまい、転送対象のデータやDMA転送情報が破壊されてしまうケースがある。また、メモリにおいて転送対象のデータを書き込む領域の管理が不完全であることにより、システムプログラムが記憶された領域などの所定の書込禁止領域に転送対象のデータが書き込まれてしまい、システムプログラムが破損するケースが発生することもある。   For example, DMA transfer information and image data are written in different address areas in the memory. In the product development stage, because the memory management is incomplete, the data to be transferred is overwritten on other data to be transferred or a part of the DMA transfer information of the data, and the data to be transferred There are cases where the DMA transfer information is destroyed. In addition, due to incomplete management of the area in which the data to be transferred is written in the memory, the data to be transferred is written in a predetermined write-protected area such as an area in which the system program is stored. In some cases, damage may occur.

本発明は、上記に鑑みてなされたものであって、記憶部の記憶領域のうち所定の書込禁止領域へのデータの書き込みによる不具合の解析の効率を向上させることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to improve the efficiency of analysis of a defect caused by writing data to a predetermined write-protected area in a storage area of a storage unit.

上述した課題を解決し、目的を達成するために、本発明は、外部制御部から転送指示に応じて、転送対象のデータを第1記憶部に書き込みかつ転送先機器のデータの処理速度に従って前記第1記憶部からデータを読み出して前記転送先機器に転送する転送部と、前記第1記憶部の記憶領域のうち所定の書込禁止領域に対するデータの書き込みを検知した場合、前記第1記憶部に対するデータの書き込みの異常を前記外部制御部に通知し、前記第1記憶部の記憶領域のうちデータを書き込んだ書込領域を特定可能とする第1情報を前記第1記憶部に書き込む制御部と、を備えることを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention writes the data to be transferred to the first storage unit in accordance with the transfer instruction from the external control unit and according to the data processing speed of the transfer destination device. A transfer unit that reads data from the first storage unit and transfers the data to the transfer destination device; and when the first storage unit detects writing of data to a predetermined write-protected area in the storage area of the first storage unit A control unit for notifying the external control unit of abnormal data writing to the first control unit, and writing first information to the first storage unit that enables specification of a write region in which data is written out of the storage regions of the first storage unit And.

本発明は、記憶部の記憶領域のうち所定の書込禁止領域へのデータの書き込みによる不具合の解析の効率を向上させることができる、という効果を奏する。   The present invention has an effect that it is possible to improve the efficiency of analyzing a failure caused by writing data to a predetermined write-protected area in the storage area of the storage unit.

図1は、本実施の形態にかかる情報処理装置の一例である画像形成装置のハードウェア構成を示すブロック図である。FIG. 1 is a block diagram illustrating a hardware configuration of an image forming apparatus that is an example of an information processing apparatus according to the present embodiment. 図2は、本実施の形態にかかる画像形成装置が有するASICの機能構成を示すブロック図である。FIG. 2 is a block diagram illustrating a functional configuration of the ASIC included in the image forming apparatus according to the present embodiment. 図3は、レジスタアクセス監視部の構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration example of the register access monitoring unit. 図4は、本実施の形態にかかる画像形成装置が有するRAMに書き込まれるDMA転送情報のデータ構成の一例を示す図である。FIG. 4 is a diagram illustrating an example of a data configuration of DMA transfer information written in a RAM included in the image forming apparatus according to the present embodiment. 図5は、本実施の形態にかかる画像形成装置のアクセス履歴記憶制御部に送信するレジスタアクセス情報のデータ構成の一例を示す図である。FIG. 5 is a diagram illustrating an example of a data configuration of register access information transmitted to the access history storage control unit of the image forming apparatus according to the present embodiment. 図6は、本実施の形態にかかる画像形成装置のアクセス履歴記憶制御部に送信するDMA転送情報のデータ構成の一例を示す図である。FIG. 6 is a diagram illustrating an example of a data configuration of DMA transfer information transmitted to the access history storage control unit of the image forming apparatus according to the present embodiment. 図7は、本実施の形態にかかる画像形成装置が有するASICによるトレースデータの書込処理の流れを示すフローチャートである。FIG. 7 is a flowchart showing a flow of trace data writing processing by the ASIC included in the image forming apparatus according to the present embodiment. 図8は、本実施の形態にかかるシステムの発生不具合を解析するフローチャートである。FIG. 8 is a flow chart for analyzing a problem occurring in the system according to the present embodiment.

以下に添付図面を参照して、この発明にかかる情報処理装置、情報処理方法およびプログラムの一実施の形態を詳細に説明する。   Exemplary embodiments of an information processing apparatus, an information processing method, and a program according to the present invention will be explained below in detail with reference to the accompanying drawings.

(実施の形態)
図1は、本実施の形態にかかる情報処理装置の一例である画像形成装置のハードウェア構成を示すブロック図である。本実施の形態にかかる画像形成装置は、ASIC(Application Specific Integrated Circuit)101と、CPU(Central Processing Unit)102と、RAM(Random Access Memory)103と、スキャナ104と、プリンタ105と、を備えている。
(Embodiment)
FIG. 1 is a block diagram illustrating a hardware configuration of an image forming apparatus that is an example of an information processing apparatus according to the present embodiment. An image forming apparatus according to the present embodiment includes an application specific integrated circuit (ASIC) 101, a central processing unit (CPU) 102, a random access memory (RAM) 103, a scanner 104, and a printer 105. Yes.

ASIC101は、スキャナ104やプリンタ105等の周辺機器とRAM103との間における、各種データの入出力を制御する。この各種データは、例えば、スキャナ104から入力された画像データである読込データ、プリンタ105に出力する画像データである書込データなどである。また、ASIC101は、読込データや書込データ等の画像データに対して、ハードウェアにより画像処理を行う機能も有している。   The ASIC 101 controls input / output of various data between the peripheral device such as the scanner 104 and the printer 105 and the RAM 103. The various data is, for example, read data that is image data input from the scanner 104, write data that is image data output to the printer 105, and the like. The ASIC 101 also has a function of performing image processing by hardware on image data such as read data and write data.

本実施の形態では、ASIC101は、CPU102からの転送開始指示(転送指示の一例)に応じて、転送対象のデータ(例えば、読込データや書込データなど)をRAM103に書き込む。また、ASIC101は、転送先機器(例えば、プリンタ105等の周辺機器、外部記憶装置など)のデータ処理速度に従ってRAM103からデータを読み出して当該転送先機器に転送するDMA(Direct Memory Access)転送機能を有する。さらに、ASIC101は、RAM103の記憶領域のうちデータの書き込みを禁止する所定の書込禁止領域を設定する。そして、ASIC101は、書込禁止領域へのデータの書き込みを監視(検知)した場合、RAM103に対するデータの書き込みの異常をCPU102に通知する。   In the present embodiment, the ASIC 101 writes data to be transferred (for example, read data and write data) in the RAM 103 in response to a transfer start instruction (an example of a transfer instruction) from the CPU 102. The ASIC 101 also has a DMA (Direct Memory Access) transfer function that reads data from the RAM 103 according to the data processing speed of a transfer destination device (for example, a peripheral device such as the printer 105, an external storage device, etc.) and transfers the data to the transfer destination device. Have. Further, the ASIC 101 sets a predetermined write prohibition area that prohibits data writing in the storage area of the RAM 103. When the ASIC 101 monitors (detects) the writing of data to the write-protected area, the ASIC 101 notifies the CPU 102 of an abnormality in writing data to the RAM 103.

CPU102は、RAM103に記憶されたシステムプログラム等の各種プログラムを実行することにより画像形成装置全体の動作を制御する。本実施の形態では、CPU102は、ASIC101が有するレジスタへの各種情報の書き込みやソフトウェアにより画像処理を行う機能を有している。   The CPU 102 controls the operation of the entire image forming apparatus by executing various programs such as a system program stored in the RAM 103. In the present embodiment, the CPU 102 has a function of writing various information to a register included in the ASIC 101 and performing image processing by software.

RAM103(第1記憶部の一例)は、転送対象のデータを記憶可能な記憶部である。本実施の形態では、RAM103は、転送対象のデータ、RAM103の記憶領域のうち当該転送対象のデータが書き込まれた領域(以下、書込領域と言う)を特定可能とする情報を含むDMA転送情報、各種プログラム等を記憶する。スキャナ104は、原稿を読み取り、当該原稿の読み取りにより得られた画像データ(読込データ)をASIC101に出力する読取部である。プリンタ105は、ASIC101から入力された画像データ(書込データ)に基づく画像を記録媒体に印刷する印刷部である。   The RAM 103 (an example of a first storage unit) is a storage unit that can store data to be transferred. In this embodiment, the RAM 103 includes DMA transfer information including information to be transferred and information that can specify an area (hereinafter referred to as a write area) in which the data to be transferred is written in the storage area of the RAM 103. Store various programs. The scanner 104 is a reading unit that reads an original and outputs image data (read data) obtained by reading the original to the ASIC 101. The printer 105 is a printing unit that prints an image based on the image data (write data) input from the ASIC 101 on a recording medium.

図2は、本実施の形態にかかる画像形成装置が有するASICの機能構成を示すブロック図である。ASIC101は、第1インタフェース制御部201、第2インタフェース制御部202、アービタ203、画像処理部204〜206、レジスタ制御部207、レジスタアクセス監視部208、DMA転送情報監視部209、アクセス履歴記憶制御部210、割込制御部211を有する。なお、上述のASICの機能の全部または一部をハードウェアで構成してもよい。   FIG. 2 is a block diagram illustrating a functional configuration of the ASIC included in the image forming apparatus according to the present embodiment. The ASIC 101 includes a first interface control unit 201, a second interface control unit 202, an arbiter 203, image processing units 204 to 206, a register control unit 207, a register access monitoring unit 208, a DMA transfer information monitoring unit 209, and an access history storage control unit. 210 and an interrupt control unit 211. Note that all or part of the functions of the ASIC described above may be configured by hardware.

第1インタフェース制御部201は、例えばCPUバスやPCI Expressなどの汎用インタフェースにより構成され、CPU102からの各種指示(例えば、CPU102からの転送開始指示など)を受け取る。   The first interface control unit 201 includes a general-purpose interface such as a CPU bus or PCI Express, for example, and receives various instructions from the CPU 102 (for example, a transfer start instruction from the CPU 102).

第2インタフェース制御部202は、例えばDDR(Double Data Rate)−SDRAM(Synchronous Dynamic Random Access Memory)等の汎用インタフェースにより構成され、RAM103との間で各種情報を送受信する。   The second interface control unit 202 is configured by a general-purpose interface such as DDR (Double Data Rate) -SDRAM (Synchronous Dynamic Random Access Memory), and transmits / receives various information to / from the RAM 103.

アービタ203は、ASIC101の内部バスで接続された各部(デバイス)間での通信を制御する。   The arbiter 203 controls communication between each unit (device) connected by the internal bus of the ASIC 101.

画像処理部204〜206は、RAM103に書き込む転送対象のデータに対して画像処理を行う。本実施の形態では、画像処理部204〜206(転送部の一例)は、ASIC101におけるDMA転送機能を実現する。以下の説明では、画像処理部204により実現されるDMA転送機能について説明するが、他の画像処理部205,206においても同様にDMA転送機能が実現される。   The image processing units 204 to 206 perform image processing on the transfer target data written to the RAM 103. In the present embodiment, the image processing units 204 to 206 (an example of a transfer unit) realize a DMA transfer function in the ASIC 101. In the following description, the DMA transfer function realized by the image processing unit 204 will be described, but the DMA transfer function is similarly realized in the other image processing units 205 and 206.

画像処理部204は、第1インタフェース制御部201を介してCPU102(外部制御部の一例)によって後述するレジスタ制御部207が有するレジスタに転送開始指示が書き込まれると、次の送信を行う。すなわち、アービタ203に対してDMA転送情報の読み込みを指示するDMA転送情報読込指示(ディスクリプタリードフラグ)を送信する。次いで、画像処理部204は、アービタ203を介して後述するアクセス履歴記憶制御部210から、DMA転送情報を取得する。そして、画像処理部204は、取得したDMA転送情報に基づいて、RAM103に対する転送対象のデータを書き込む。その際、画像処理部204は、転送対象のデータとともに、当該転送対象のデータの書込領域を特定可能とするDMA転送情報(第3情報の一例)をRAM103に書き込む。   The image processing unit 204 performs the next transmission when a transfer start instruction is written in a register of a later-described register control unit 207 by the CPU 102 (an example of an external control unit) via the first interface control unit 201. That is, a DMA transfer information read instruction (descriptor read flag) for instructing the arbiter 203 to read DMA transfer information is transmitted. Next, the image processing unit 204 acquires DMA transfer information from the access history storage control unit 210 described later via the arbiter 203. Then, the image processing unit 204 writes data to be transferred to the RAM 103 based on the acquired DMA transfer information. At that time, the image processing unit 204 writes DMA transfer information (an example of third information) that enables the transfer target data to be specified in the RAM 103 together with the transfer target data.

さらに、画像処理部204は、転送対象のデータの転送先である転送先機器におけるデータの処理速度に従ってRAM103から転送対象のデータを読み出して当該転送先機器に転送する。その際、画像処理部204は、RAM103に記憶されたDMA転送情報にアクセスして、転送対象のデータの書込領域を特定し、特定した書込領域からデータを読み出して転送先機器へ転送する。   Furthermore, the image processing unit 204 reads the transfer target data from the RAM 103 according to the data processing speed in the transfer destination device that is the transfer destination of the transfer target data, and transfers the data to the transfer destination device. At that time, the image processing unit 204 accesses the DMA transfer information stored in the RAM 103, specifies the writing area of the data to be transferred, reads the data from the specified writing area, and transfers it to the transfer destination device. .

レジスタ制御部207は、CPU102からのレジスタアクセス要求が発行されると各モジュールに対してレジスタアクセスを行う。   When a register access request is issued from the CPU 102, the register control unit 207 performs register access to each module.

レジスタアクセス監視部208は、CPU102からの各レジスタへのライトアクセスだけを抽出し、アクセス履歴記憶制御部210に情報を転送する。また、レジスタアクセス監視部208は、レジスタアクセス内容をモニタリングし、指定範囲内のレジスタアクセスの場合、アクセス履歴記憶制御部210に情報を転送する。   The register access monitoring unit 208 extracts only the write access to each register from the CPU 102 and transfers information to the access history storage control unit 210. Further, the register access monitoring unit 208 monitors the contents of register access, and transfers information to the access history storage control unit 210 in the case of register access within a specified range.

DMA転送情報監視部209は、各DMA機能を有した画像処理部204〜206よりディスクリプタリードフラグを受信すると、各画像処理部204〜206に付けられているID情報をもとにディスクリプタリード要求情報を抽出する。抽出されたデータは、時間情報、ID情報、ディスクリプタアドレス情報を付加させ、アクセス履歴記憶制御部210に転送される。   When the DMA transfer information monitoring unit 209 receives the descriptor read flag from the image processing units 204 to 206 having the respective DMA functions, the descriptor transfer request information is based on the ID information attached to the image processing units 204 to 206. To extract. The extracted data is added with time information, ID information, and descriptor address information, and transferred to the access history storage control unit 210.

また、DMA転送情報監視部209は、書き込み禁止領域へのライトアクセス要求を検知すると、ライトアドレスエラー通知を転送中の画像処理部に対し発行する。エラー通知を受けた画像処理部は、内部のDMA転送部のDMA転送の強制停止を行い、転送を停止する。さらに画像処理部は割込制御部211への割り込み通知を行う。   When the DMA transfer information monitoring unit 209 detects a write access request to the write prohibited area, the DMA transfer information monitoring unit 209 issues a write address error notification to the image processing unit being transferred. Upon receiving the error notification, the image processing unit forcibly stops the DMA transfer of the internal DMA transfer unit and stops the transfer. Further, the image processing unit issues an interrupt notification to the interrupt control unit 211.

アクセス履歴記憶制御部210は、DMA転送情報監視部209から送られてくる情報を時系列に並べ、内部バッファに保存していく。アクセス履歴記憶制御部210は、DMA転送情報監視部209よりライトアドレスエラー通知を受けた場合、つぎの動作を実行する。アクセス履歴記憶制御部210は、アービタ203に対して第2インタフェース制御部202に接続されている記憶部(例えばRAM103)に対して、DMA転送要求を発行し、レジスタアクセス履歴データ、ディスクリプタ履歴データを記憶部に転送する。   The access history storage control unit 210 arranges information sent from the DMA transfer information monitoring unit 209 in time series and stores it in an internal buffer. When receiving a write address error notification from the DMA transfer information monitoring unit 209, the access history storage control unit 210 executes the following operation. The access history storage control unit 210 issues a DMA transfer request to the storage unit (for example, the RAM 103) connected to the second interface control unit 202 to the arbiter 203, and registers access history data and descriptor history data. Transfer to storage.

割込制御部211は、ASIC内部の割り込み制御を行う、例えばCPU102に割り込み通知を行い、異常であることを通知する。   The interrupt control unit 211 performs interrupt control inside the ASIC, for example, notifies the CPU 102 of an interrupt and notifies that it is abnormal.

図3は、レジスタアクセス監視部208の構成例を示すブロック図である。アクセス監視部としてのレジスタアクセス監視部208は、レジスタ情報入力部220、保存範囲指定部221、起動情報取得部222、出力部223を有する。なお、上述の機能の全部または一部をハードウェアで構成してもよい。   FIG. 3 is a block diagram illustrating a configuration example of the register access monitoring unit 208. The register access monitoring unit 208 as an access monitoring unit includes a register information input unit 220, a storage range designation unit 221, an activation information acquisition unit 222, and an output unit 223. Note that all or part of the above-described functions may be configured by hardware.

レジスタ情報入力部220は、レジスタ制御部207からレジスタライトアクセスを検知すると保存範囲指定部221、起動情報取得部222にレジスタアクセスデータを転送する。保存範囲指定部221は、指定されたアドレス範囲にフィルタをかける。起動情報取得部222は、DMA起動レジスタ以外にフィルタをかける。出力部223は、保存範囲指定部221、起動情報取得部222のフィルタを通過したレジスタアクセスデータをアクセス履歴記憶制御部210に伝える。   When the register information input unit 220 detects a register write access from the register control unit 207, the register information input unit 220 transfers the register access data to the storage range designation unit 221 and the activation information acquisition unit 222. The storage range designation unit 221 filters the designated address range. The activation information acquisition unit 222 filters other than the DMA activation register. The output unit 223 notifies the access history storage control unit 210 of the register access data that has passed the filters of the storage range specification unit 221 and the activation information acquisition unit 222.

制御信号225は、レジスタ制御部207から送られてくるアドレス範囲指定信号とその範囲の内外どちらを選択するかを制御する制御信号である。例えば、制御信号がHighのとき、指定されたアドレス範囲の外にフィルタをかけ、Lowのとき、指定されたアドレス範囲内にフィルタをかけるといったものである。論理の設定はどちらでもよい。制御信号225は、レジスタ制御部207でアドレス範囲を指定するレジスタがあり、そこで指定されたアドレスを伝送する信号でも、保存範囲指定部221にレジスタを持っていてそのレジスタを制御するレジスタ制御信号でも、どちらでもよい。保存指定されたアドレスの場合、出力部223に伝送され、それ以外の場合は、起動情報取得部222に伝送する。   The control signal 225 is a control signal for controlling an address range designation signal sent from the register control unit 207 and whether to select the inside or outside of the range. For example, when the control signal is High, a filter is applied outside the designated address range, and when the control signal is Low, the filter is applied within the designated address range. Either logic setting is acceptable. The control signal 225 includes a register for designating an address range by the register control unit 207, and a signal for transmitting the designated address there, or a register control signal for controlling the register having the register in the storage range designating unit 221. ,either will do. In the case of an address designated for storage, the address is transmitted to the output unit 223, and in other cases, the address is transmitted to the activation information acquisition unit 222.

制御信号225は、レジスタ制御部207から送られてくる各画像処理部204〜206の起動レジスタのアドレスを保存するかどうかを制御する制御信号である。制御信号225は、レジスタ制御部207で画像処理部204〜206のどの起動レジスタのアドレスを保存するか指定するレジスタがあり、そこで指定されたアドレスを伝送する信号でもよい。また、保存範囲指定部221にレジスタを持っていてそのレジスタを制御するレジスタ制御信号でも、どちらでもよい。保存範囲指定部221から伝送されたレジスタアクセスデータは起動情報取得部222で再度フィルタリングされ、起動レジスタのアドレスだった場合、出力部223に伝送され、それ以外だった場合、データは破棄される。   The control signal 225 is a control signal for controlling whether or not to save the address of the activation register of each of the image processing units 204 to 206 sent from the register control unit 207. The control signal 225 includes a register for designating which start register address of the image processing units 204 to 206 is stored in the register control unit 207, and may be a signal for transmitting the designated address. Further, either a register control signal that has a register in the storage range designation unit 221 and controls the register may be used. The register access data transmitted from the storage range designation unit 221 is filtered again by the activation information acquisition unit 222, and if it is the address of the activation register, it is transmitted to the output unit 223. Otherwise, the data is discarded.

レジスタアクセス監視部208は、外部制御部(CPU102)からのアクセス情報を記憶する第1記憶部(RAM103)のアドレス範囲を指定する保存範囲指定部221を有する。これにより、不具合解析時に不必要なレジスタライトアクセス情報を保存しないことで、本当に必要な情報だけを抽出することが可能となる。   The register access monitoring unit 208 includes a storage range specifying unit 221 that specifies an address range of a first storage unit (RAM 103) that stores access information from the external control unit (CPU 102). As a result, it is possible to extract only really necessary information by not storing unnecessary register write access information during failure analysis.

レジスタアクセス監視部208は、制御信号225に基づいて指定したアドレスの範囲内または範囲外を選択する。これにより、不具合解析時に集中的に取得し、不必要な情報は削除したい、というケースにおいて柔軟に対応することが可能となる。   The register access monitoring unit 208 selects within or out of the address range specified based on the control signal 225. As a result, it is possible to flexibly cope with a case where it is desired to collect information at the time of failure analysis and delete unnecessary information.

レジスタアクセス監視部208は、画像処理部204〜206を起動させるレジスタだけを取得する起動情報取得部222を有する。これにより、画像処理部204〜206の起動タイミングだけを解析するときに有効となり、解析をより効率的に行うことが可能となる。   The register access monitoring unit 208 includes an activation information acquisition unit 222 that acquires only the registers that activate the image processing units 204 to 206. This is effective when only the activation timing of the image processing units 204 to 206 is analyzed, and the analysis can be performed more efficiently.

上記起動情報取得部は、制御信号225に基づいて指定した画像処理部204〜206の起動レジスタを取得する。これにより、指定した画像処理部だけを集中的に解析したいときに有効なり、解析をより効率的に行うことが可能となる。   The activation information acquisition unit acquires the activation registers of the image processing units 204 to 206 designated based on the control signal 225. This is effective when it is desired to intensively analyze only the designated image processing unit, and the analysis can be performed more efficiently.

レジスタアクセス監視部208は、アドレスの範囲外を選択し場合、当該アドレスの範囲外の起動レジスタを取得する。これにより、取得したいアドレス範囲外に配置された起動レジスタも取得したい場合に有効となり、解析をより効率的に行うことが可能となる。   When the register access monitoring unit 208 selects an address outside the address range, the register access monitoring unit 208 acquires a start register outside the address range. This is effective when it is desired to acquire a start register arranged outside the address range to be acquired, and analysis can be performed more efficiently.

図4は、本実施の形態にかかる画像形成装置が有するRAMに書き込まれるDMA転送情報のデータ構成の一例を示す図である。DMA転送情報は、RAM103の記憶領域のうち次のDMA転送情報が書き込まれた領域を特定可能とする情報であるアドレス情報301、転送対象のデータの書込領域の先頭のアドレス(先頭アドレス)情報302、転送対象のデータの書込領域のライン数を示すライン数情報303、転送対象のデータに関するその他の情報304と、を含む。本実施の形態では、DMA転送情報に含まれる各情報301〜304は、32bit幅のデータである。よって、DMA転送情報は、128bitのデータである。   FIG. 4 is a diagram illustrating an example of a data configuration of DMA transfer information written in a RAM included in the image forming apparatus according to the present embodiment. The DMA transfer information includes address information 301 which is information that can specify an area in which the next DMA transfer information is written in the storage area of the RAM 103, and the start address (start address) information of the write area of the data to be transferred. 302, line number information 303 indicating the number of lines in the write area of the data to be transferred, and other information 304 regarding the data to be transferred. In this embodiment, each piece of information 301 to 304 included in the DMA transfer information is 32-bit width data. Therefore, the DMA transfer information is 128-bit data.

図2に戻り、画像処理部204は、後述するDMA転送情報監視部209により書禁止領域へのデータの書き込みが検知されてライトアドレスエラー通知を受信する。すると、RAM103へのデータの書き込みおよびRAM103からのデータの読み出しを停止する(言い換えると、データの転送を停止する)。さらに、画像処理部204は、後述する割込制御部211に対して、CPU102に対する割込通知(RAM103に対するデータの書き込みの異常の通知)の送信を指示する。   Returning to FIG. 2, the image processing unit 204 receives a write address error notification when the DMA transfer information monitoring unit 209 described later detects the writing of data in the write-protected area. Then, data writing to the RAM 103 and data reading from the RAM 103 are stopped (in other words, data transfer is stopped). Further, the image processing unit 204 instructs an interrupt control unit 211 (to be described later) to transmit an interrupt notification to the CPU 102 (notification of abnormal data writing to the RAM 103).

レジスタ制御部207は、第1インタフェース制御部201を介してCPU102によって各種指示が書き込まれるレジスタを有する。レジスタアクセス監視部208は、レジスタ制御部207が有するレジスタに対する各種指示の書き込みを検知する。そして、当該レジスタに対する各種指示(例えば、RAM103に対するデータの書き込みに対応する転送開始指示など)を特定可能とする情報であるレジスタアクセス情報(第2情報の一例)をアクセス履歴記憶制御部210に送信する。   The register control unit 207 includes a register in which various instructions are written by the CPU 102 via the first interface control unit 201. The register access monitoring unit 208 detects writing of various instructions to the register included in the register control unit 207. Then, register access information (an example of second information) that is information that can specify various instructions for the register (for example, a transfer start instruction corresponding to data writing to the RAM 103) is transmitted to the access history storage control unit 210. To do.

図5は、本実施の形態にかかる画像形成装置のアクセス履歴記憶制御部に送信するレジスタアクセス情報のデータ構成の一例を示す図である。本実施の形態では、レジスタアクセス情報には、図5に示すようにアドレス情報401,指示情報402が含まれる。アドレス情報401は、レジスタ制御部207が有するレジスタにおいてCPU102からの各種指示が書き込まれた記憶領域を特定可能とする情報である。また、指示情報402は、レジスタ制御部207が有するレジスタに書き込まれた各種指示を示す情報である。本実施の形態では、レジスタアクセス情報に含まれるアドレス情報401,指示情報402は、32bit幅のデータである。よって、レジスタアクセス情報は、64bitのデータである。   FIG. 5 is a diagram illustrating an example of a data configuration of register access information transmitted to the access history storage control unit of the image forming apparatus according to the present embodiment. In the present embodiment, the register access information includes address information 401 and instruction information 402 as shown in FIG. The address information 401 is information that makes it possible to specify a storage area in which various instructions from the CPU 102 are written in a register included in the register control unit 207. The instruction information 402 is information indicating various instructions written in a register included in the register control unit 207. In the present embodiment, the address information 401 and the instruction information 402 included in the register access information are 32-bit data. Therefore, the register access information is 64-bit data.

図2に戻り、DMA転送情報監視部209は、画像処理部204からアービタ203に対してディスクリプタリードフラグが送信されると、RAM103からDMA転送情報を読み出す。そして、DMA転送情報監視部209は、読み出したDMA転送情報を、アクセス履歴記憶制御部210に送信する。   Returning to FIG. 2, when the descriptor read flag is transmitted from the image processing unit 204 to the arbiter 203, the DMA transfer information monitoring unit 209 reads the DMA transfer information from the RAM 103. Then, the DMA transfer information monitoring unit 209 transmits the read DMA transfer information to the access history storage control unit 210.

図6は、本実施の形態にかかる画像形成装置のアクセス履歴記憶制御部に送信するDMA転送情報のデータ構成の一例を示す図である。本実施の形態では、DMA転送情報監視部209は、図6に示すように、RAM103から読み出した図4に示すDMA転送情報に、ID情報501とアドレス情報502と時間情報503とを付加して、アクセス履歴記憶制御部210に送信する。   FIG. 6 is a diagram illustrating an example of a data configuration of DMA transfer information transmitted to the access history storage control unit of the image forming apparatus according to the present embodiment. In the present embodiment, as shown in FIG. 6, the DMA transfer information monitoring unit 209 adds ID information 501, address information 502, and time information 503 to the DMA transfer information shown in FIG. To the access history storage control unit 210.

ここで、ID情報501は、読み出したDMA転送情報により特定されるデータを書き込んだ画像処理部(画像処理部204〜206のいずれか)を特定可能とする情報の一例である。アドレス情報502は、RAM103における当該DMA転送情報の記憶領域を特定可能とする情報である。時間情報503は、当該DMA転送情報にアクセスした時間を特定可能とする情報である。すなわち、時間情報503は、例えばDMA転送情報監視部209に入力される1/256分周のクロックを用いてカウントされる時間である。本実施の形態では、アクセス履歴記憶制御部210に送信するDMA転送情報に含まれる各情報501〜503,301〜304は、32bit幅のデータである。よって、アクセス履歴記憶制御部210に送信するDMA転送情報は、256bitのデータである。   Here, the ID information 501 is an example of information that makes it possible to specify the image processing unit (any one of the image processing units 204 to 206) that has written the data specified by the read DMA transfer information. The address information 502 is information that enables the storage area of the DMA transfer information in the RAM 103 to be specified. The time information 503 is information that makes it possible to specify the time when the DMA transfer information is accessed. That is, the time information 503 is a time counted by using a 1 / 256-divided clock input to the DMA transfer information monitoring unit 209, for example. In this embodiment, each piece of information 501 to 503 and 301 to 304 included in the DMA transfer information transmitted to the access history storage control unit 210 is 32-bit data. Therefore, the DMA transfer information transmitted to the access history storage control unit 210 is 256-bit data.

図2に戻り、DMA転送情報監視部209は、画像処理部204〜206による書込禁止領域へのデータの書き込みを検知する。ここで、書込禁止領域は、上述したように、RAM103の記憶領域のうちデータの書き込みを禁止する領域である。本実施の形態では、書込禁止領域は、RAM103の記憶領域のうち、システムプログラムが記憶された領域、DMA転送情報が記憶された領域などである。DMA転送情報監視部209は、書込禁止領域へのデータの書き込みを検知した場合、当該データの書き込みを行っている画像処理部204に対してエラー通知(以下、ライトアドレスエラー通知と言う)を送信する。   Returning to FIG. 2, the DMA transfer information monitoring unit 209 detects writing of data to the write-protected area by the image processing units 204 to 206. Here, as described above, the write-inhibited area is an area in which data writing is prohibited in the storage area of the RAM 103. In the present embodiment, the write-inhibited area is an area in which the system program is stored, an area in which DMA transfer information is stored, among the storage areas in the RAM 103. When the DMA transfer information monitoring unit 209 detects writing of data to the write-protected area, the DMA transfer information monitoring unit 209 sends an error notification (hereinafter referred to as a write address error notification) to the image processing unit 204 that is writing the data. Send.

アクセス履歴記憶制御部210は、レジスタアクセス監視部208およびDMA転送情報監視部209から入力されるレジスタアクセス情報およびDMA転送情報を、入力される順に並べて内部バッファ(第2記憶部の一例)に書き込む。これにより、上述した画像処理部204は、アービタ203を介して、DMA転送情報を取得可能となる。また、書込禁止領域へのデータの書き込みが検知された場合に、内部バッファに記憶されたDMA転送情報およびレジスタアクセス情報を利用して、不具合の解析を行うことができる。これにより、誤った転送開始指示が行われたことおよび書込禁止領域へのデータの書き込みを容易に検出することができる。   The access history storage control unit 210 arranges the register access information and the DMA transfer information input from the register access monitoring unit 208 and the DMA transfer information monitoring unit 209 in the order of input and writes them in the internal buffer (an example of the second storage unit). . As a result, the image processing unit 204 described above can acquire the DMA transfer information via the arbiter 203. In addition, when writing of data to the write-protected area is detected, a failure analysis can be performed using the DMA transfer information and the register access information stored in the internal buffer. Thus, it is possible to easily detect that an erroneous transfer start instruction has been issued and that data has been written to the write-protected area.

また、アクセス履歴記憶制御部210(制御部の一例)は、DMA転送情報監視部209により書込禁止領域へのデータの書き込みが検知された場合、以下の動作を行う。すなわち、アクセス履歴記憶制御部210は、内部バッファに記憶されるレジスタアクセス情報およびDMA転送情報(第1情報の一例)を含むトレースデータを、RAM103に書き込む。本実施の形態では、アクセス履歴記憶制御部210は、RAM103の記憶領域のうち所定の記憶領域にトレースデータを書き込む。ここで、所定の記憶領域は、RAM103の記憶領域のうち、転送対象のデータの書込領域、当該転送対象データのDMA転送情報が書き込まれた領域および書込禁止領域以外の記憶領域である。また、本実施の形態では、アクセス履歴記憶制御部210は、DMA転送情報およびレジスタアクセス情報の両方をRAM103に書き込んでいるが、少なくともDMA転送情報をRAM103に書き込めば良い。   The access history storage control unit 210 (an example of a control unit) performs the following operation when the DMA transfer information monitoring unit 209 detects writing of data in the write-protected area. That is, the access history storage control unit 210 writes the trace data including the register access information and DMA transfer information (an example of the first information) stored in the internal buffer to the RAM 103. In the present embodiment, the access history storage control unit 210 writes the trace data in a predetermined storage area of the storage area of the RAM 103. Here, the predetermined storage area is a storage area other than the write area of the transfer target data, the area where the DMA transfer information of the transfer target data is written, and the write prohibition area among the storage areas of the RAM 103. In this embodiment, the access history storage control unit 210 writes both the DMA transfer information and the register access information in the RAM 103. However, at least the DMA transfer information may be written in the RAM 103.

DMA転送情報監視部209により書込禁止領域へのデータの書き込みが検知された場合に以下の動作を行う。すなわち、割込制御部211(制御部の一例)は、画像処理部204〜206から割込通知の送信が指示されると、第1インタフェース制御部201を介して、CPU102に対して割込通知を送信する。   When the DMA transfer information monitoring unit 209 detects writing of data in the write-protected area, the following operation is performed. That is, the interrupt control unit 211 (an example of a control unit) notifies the CPU 102 of an interrupt via the first interface control unit 201 when an instruction to transmit an interrupt notification is issued from the image processing units 204 to 206. Send.

次に、図7を用いて、本実施の形態にかかる画像形成装置が有するASICによるトレースデータの書込処理について説明する。図7は、本実施の形態にかかる画像形成装置が有するASICによるトレースデータの書込処理の流れを示すフローチャートである。   Next, a trace data writing process by the ASIC included in the image forming apparatus according to the present embodiment will be described with reference to FIG. FIG. 7 is a flowchart showing a flow of trace data writing processing by the ASIC included in the image forming apparatus according to the present embodiment.

DMA転送情報監視部209は、CPU102からの転送開始指示に応じて画像処理部204によるRAM103に対する転送対象のデータの書き込みが開始されると、所定の書込禁止領域に対してデータが書き込まれたか否かを判断する(ステップS601)。DMA転送情報監視部209は、書込禁止領域へのデータの書き込みを検知した場合(ステップS601:Yes)、画像処理部204に対してライトアドレスエラー通知を送信する(ステップS602)。   When the DMA transfer information monitoring unit 209 starts writing data to be transferred to the RAM 103 by the image processing unit 204 in response to a transfer start instruction from the CPU 102, has the data been written to a predetermined write-protected area? It is determined whether or not (step S601). When the DMA transfer information monitoring unit 209 detects writing of data in the write-protected area (step S601: Yes), the DMA transfer information monitoring unit 209 transmits a write address error notification to the image processing unit 204 (step S602).

また、DMA転送情報監視部209は、レジスタ制御部207が有するレジスタに転送開始指示が書き込まれると、画像処理部204からアービタ203に対してディスクリプタリードフラグが送信されたか否かを判断する(ステップS603)。DMA転送情報監視部209は、アービタ203に対してディスクリプタリードフラグが送信されると(ステップS603:Yes)、RAM103から、RAM103に書き込まれたDMA転送情報を読み出す(ステップS604)。そして、DMA転送情報監視部209は、図6に示すデータフォーマットに従って、読み出したDMA転送情報に、ID情報501とアドレス情報502と時間情報503とを付加して、アクセス履歴記憶制御部210に送信する。   In addition, when a transfer start instruction is written in the register of the register control unit 207, the DMA transfer information monitoring unit 209 determines whether or not a descriptor read flag is transmitted from the image processing unit 204 to the arbiter 203 (step). S603). When the descriptor read flag is transmitted to the arbiter 203 (step S603: Yes), the DMA transfer information monitoring unit 209 reads the DMA transfer information written in the RAM 103 from the RAM 103 (step S604). Then, the DMA transfer information monitoring unit 209 adds the ID information 501, the address information 502 and the time information 503 to the read DMA transfer information according to the data format shown in FIG. 6 and transmits it to the access history storage control unit 210. To do.

読み出したDMA転送情報にID情報501を付加しておく。このため、書込禁止領域へのデータの書き込みが検知された場合に、どの画像処理部204〜206によるメモリ管理(RAM103に対するデータの書き込み処理)に異常があったのかを容易に特定することができる。これにより、RAM103に対するデータの書き込みによる不具合の解析作業の負担を軽減することができる。   ID information 501 is added to the read DMA transfer information. For this reason, when data writing to the write-protected area is detected, it is possible to easily identify which image processing unit 204 to 206 has an abnormality in memory management (data writing processing to the RAM 103). it can. As a result, it is possible to reduce the burden of the trouble analysis work caused by the data writing to the RAM 103.

また、読み出したDMA転送情報にアドレス情報502および時間情報503を付加しておく。このため、書込禁止領域へのデータの書き込みが検知された場合に、画像処理部204によるどのデータの転送がいつ行われたかを特定することができる。これにより、当該画像処理部204によるデータの転送が、RAM103に対するデータの書き込みによる不具合に直接関係するものであるか否かを容易に検出することができる。   Further, address information 502 and time information 503 are added to the read DMA transfer information. For this reason, when data writing to the write-protected area is detected, it is possible to specify when and what data is transferred by the image processing unit 204. Thereby, it is possible to easily detect whether or not the data transfer by the image processing unit 204 is directly related to the malfunction caused by the data writing to the RAM 103.

アクセス履歴記憶制御部210は、DMA転送情報監視部209から受信したDMA転送情報を、内部バッファに記憶させる。また、DMA転送情報監視部209は、書込禁止領域へのデータの書き込みによるエラーを検知したか否かを判断する(ステップS605)。DMA転送情報監視部209は、書込禁止領域へのデータの書き込みによるエラーが検知されなかった場合(ステップS605:No)、ステップS603およびステップS604に示す処理を繰り返す。   The access history storage control unit 210 stores the DMA transfer information received from the DMA transfer information monitoring unit 209 in the internal buffer. In addition, the DMA transfer information monitoring unit 209 determines whether an error due to data writing to the write-protected area is detected (step S605). The DMA transfer information monitoring unit 209 repeats the processes shown in steps S603 and S604 when no error due to data writing to the write-protected area is detected (step S605: No).

レジスタアクセス監視部208は、レジスタ制御部207が有するレジスタに対して転送開始指示が書き込まれたか否かを判断する(ステップS606)。レジスタアクセス監視部208は、レジスタ制御部207が有するレジスタに対して転送開始指示が書き込まれた場合(ステップS606:Yes)、図5に示すレジスタアクセス情報を取得してアクセス履歴記憶制御部210に送信する(ステップS607)。これにより、アクセス履歴記憶制御部210は、レジスタアクセス監視部208から受信したレジスタアクセス情報を内部バッファに書き込む。また、レジスタアクセス監視部208は、書込禁止領域へのデータの書き込みによるエラーを検知したか否かを判断する(ステップS608)。レジスタアクセス監視部208は、書込禁止領域へのデータの書き込みによるエラーが検知されなかった場合(ステップS608:No)、ステップS606およびステップS607に示す処理を繰り返す。ASIC101においては、書込禁止領域へのデータの書き込みによるエラーが検知されるまで、上述したステップS601〜ステップS608に示す処理が並行して行われる。   The register access monitoring unit 208 determines whether or not a transfer start instruction is written in the register included in the register control unit 207 (step S606). When the transfer start instruction is written to the register included in the register control unit 207 (step S606: Yes), the register access monitoring unit 208 acquires the register access information illustrated in FIG. 5 and stores it in the access history storage control unit 210. Transmit (step S607). As a result, the access history storage control unit 210 writes the register access information received from the register access monitoring unit 208 to the internal buffer. Further, the register access monitoring unit 208 determines whether or not an error due to data writing to the write-protected area has been detected (step S608). The register access monitoring unit 208 repeats the processes shown in step S606 and step S607 when an error due to the writing of data to the write-protected area is not detected (step S608: No). In the ASIC 101, the processes shown in steps S <b> 601 to S <b> 608 described above are performed in parallel until an error due to data writing in the write-protected area is detected.

そして、書込禁止領域へのデータの書き込みによるエラーが検知された場合(ステップS601:Yes、ステップS605:Yes、ステップS608:Yes)、以下の動作を行う。すなわち、割込制御部211は、画像処理部204からの割込通知の送信の指示に応じて、第1インタフェース制御部201を介して、CPU102に対して割込通知を送信する(ステップS609)。   When an error due to data writing to the write-protected area is detected (step S601: Yes, step S605: Yes, step S608: Yes), the following operation is performed. In other words, the interrupt control unit 211 transmits an interrupt notification to the CPU 102 via the first interface control unit 201 in response to an interrupt notification transmission instruction from the image processing unit 204 (step S609). .

また、DMA転送情報監視部209は、書込禁止領域へのデータの書き込みを検知した場合、データの転送を禁止(強制停止)する。すなわち、DMA転送情報監視部209は、ライトアドレスエラー通知を画像処理部204に対して送信する。この送信によって、画像処理部204によるRAM103へのデータの書き込みおよびRAM103からのデータの読み込みを停止させて、データの転送を禁止(強制停止)する(ステップS610)。これにより、書込禁止領域へのデータの書き込みを検知した場合に、RAM103に対するトレースデータの書き込みを遅延なく開始することができる。よって、直ちに、RAM103に対するデータの書き込みによる不具合の解析作業が行える状態とすることができる。   In addition, when the DMA transfer information monitoring unit 209 detects writing of data in the write prohibited area, the DMA transfer information monitoring unit 209 prohibits (forcibly stops) data transfer. That is, the DMA transfer information monitoring unit 209 transmits a write address error notification to the image processing unit 204. By this transmission, writing of data into the RAM 103 and reading of data from the RAM 103 by the image processing unit 204 are stopped, and data transfer is prohibited (forced stop) (step S610). As a result, when writing of data to the write protected area is detected, writing of trace data to the RAM 103 can be started without delay. Therefore, it is possible to immediately enter a state in which a failure analysis work by writing data to the RAM 103 can be performed.

さらに、アクセス履歴記憶制御部210は、書込禁止領域へのデータの書き込みによるエラーが検知されると、次の動作を行う。すなわち、アクセス履歴記憶制御部210は、当該アクセス履歴記憶制御部210に記憶されるレジスタアクセス情報およびDMA転送情報を含むトレースデータを、RAM103の所定の記憶領域に書き込む(トレースする)(ステップS611)。   Further, the access history storage control unit 210 performs the following operation when an error due to data writing to the write-protected area is detected. That is, the access history storage control unit 210 writes (traces) the trace data including the register access information and the DMA transfer information stored in the access history storage control unit 210 in a predetermined storage area of the RAM 103 (step S611). .

図8は、本実施の形態にかかるシステムの発生不具合を解析するフローチャートである。まず、上述したASICを含むシステムにおいてトレース設定を施した後に、所定の評価事項に基づいて実機解析テストを実施する(ステップS801)。続いて、上記テストの実施の結果からトレース情報を取得し、当該トレース情報の取得を行う(ステップS802)。続いて、上記実機解析テストにおいて必要な情報を全て取得した否かを解析者が判断する(ステップS803)。ステップS803において情報が不十分であると判断した場合(ステップS803:No)、トレースするアドレス範囲を絞るため、アドレス範囲、各画像処理部204〜206の起動レジスタの取得範囲の指定を画像形成システムに施し(ステップS804)、再度実機テストを行う。一方、ステップS803において、十分な情報が得られた場合は(ステップS803:Yes)、解析のための情報取得を終了する。   FIG. 8 is a flow chart for analyzing a problem occurring in the system according to the present embodiment. First, after setting a trace in the system including the ASIC described above, an actual machine analysis test is performed based on predetermined evaluation items (step S801). Subsequently, trace information is acquired from the result of the test, and the trace information is acquired (step S802). Subsequently, the analyst determines whether or not all information necessary for the actual machine analysis test has been acquired (step S803). When it is determined in step S803 that the information is insufficient (step S803: No), the image forming system designates the address range and the acquisition range of the activation register of each of the image processing units 204 to 206 in order to narrow down the address range to be traced. (Step S804), and the actual machine test is performed again. On the other hand, if sufficient information is obtained in step S803 (step S803: Yes), acquisition of information for analysis is terminated.

このように本実施の形態にかかるによれば、RAM103の書込禁止領域にデータが書き込まれた際に、当該RAM103に書き込まれたDMA転送情報を用いて、RAM103に対するデータの書き込みの不具合を容易に検出することができる。これにより、CPU102からの転送開始指示に応じて画像処理部204によって転送対象のデータをRAM103に書き込むシステムにおいて、RAM103の記憶領域のうち書込禁止領域へのデータの書き込みによる不具合の解析の効率を向上させることができる。   As described above, according to the present embodiment, when data is written to the write-protected area of the RAM 103, the problem of data writing to the RAM 103 can be easily performed using the DMA transfer information written to the RAM 103. Can be detected. Accordingly, in the system in which the image processing unit 204 writes the data to be transferred to the RAM 103 in response to the transfer start instruction from the CPU 102, the efficiency of the analysis of the trouble caused by the writing of the data to the write protected area in the storage area of the RAM 103 is improved. Can be improved.

本実施の形態の画像形成装置で実行されるプログラムは、ROM(Read Only Memory)等に予め組み込まれて提供される。本画像形成装置で実行されるプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。   A program executed by the image forming apparatus of the present embodiment is provided by being incorporated in advance in a ROM (Read Only Memory) or the like. A program executed by the image forming apparatus is an installable or executable file and can be read by a computer such as a CD-ROM, a flexible disk (FD), a CD-R, or a DVD (Digital Versatile Disk). You may comprise so that it may record and provide on a recording medium.

さらに、本実施の形態の画像形成装置で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施の形態の画像形成装置で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。   Furthermore, the program executed by the image forming apparatus according to the present embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Further, the program executed by the image forming apparatus of the present embodiment may be provided or distributed via a network such as the Internet.

本実施の形態の画像形成装置のASIC101で実行されるプログラムは、上述した各部(第1インタフェース制御部201、第2インタフェース制御部202、アービタ203、画像処理部204〜206、レジスタ制御部207、レジスタアクセス監視部208、DMA転送情報監視部209、アクセス履歴記憶制御部210、割込制御部211)を含むモジュール構成となっている。実際のハードウェアとしてはASIC101が有するCPU等の制御部が上記ROMからプログラムを読み出して実行することにより上記各部が主記憶装置上にロードされ、第1インタフェース制御部201、第2インタフェース制御部202、アービタ203、画像処理部204〜206、レジスタ制御部207、レジスタアクセス監視部208、DMA転送情報監視部209、アクセス履歴記憶制御部210、割込制御部211が主記憶装置上に生成されるようになっている。   The programs executed by the ASIC 101 of the image forming apparatus according to the present embodiment include the above-described units (first interface control unit 201, second interface control unit 202, arbiter 203, image processing units 204 to 206, register control unit 207, The module configuration includes a register access monitoring unit 208, a DMA transfer information monitoring unit 209, an access history storage control unit 210, and an interrupt control unit 211). As actual hardware, a control unit such as a CPU included in the ASIC 101 reads the program from the ROM and executes the program, so that the respective units are loaded on the main storage device, and the first interface control unit 201 and the second interface control unit 202 are loaded. , The arbiter 203, the image processing units 204 to 206, the register control unit 207, the register access monitoring unit 208, the DMA transfer information monitoring unit 209, the access history storage control unit 210, and the interrupt control unit 211 are generated on the main storage device. It is like that.

以上の説明では、本実施の形態にかかる情報処理装置、情報処理方法およびプログラムを画像形成装置に適用した例について説明したが、これに限定するものではない。例えば、携帯電話機や携帯型情報端末、プロジェクタやテレビ会議システムなどの画像処理装置にも適用することができる。   In the above description, the information processing apparatus, the information processing method, and the program according to the present embodiment are applied to the image forming apparatus. However, the present invention is not limited to this. For example, the present invention can be applied to an image processing apparatus such as a mobile phone, a portable information terminal, a projector, or a video conference system.

101 ASIC
102 CPU(外部制御部の一例)
103 RAM(第1記憶部の一例)
104 スキャナ
105 プリンタ
201 第1インタフェース制御部
202 第2インタフェース制御部
203 アービタ
204,205,206 画像処理部(転送部の一例)
207 レジスタ制御部
208 レジスタアクセス監視部
209 DMA転送情報監視部
210 アクセス履歴記憶制御部(制御部、第2記憶部の一例)
211 割込制御部(制御部の一例)
220 レジスタ情報入力部
221 保存範囲指定部
222 起動情報取得部
223 出力部
225 制御信号
101 ASIC
102 CPU (an example of an external control unit)
103 RAM (an example of a first storage unit)
DESCRIPTION OF SYMBOLS 104 Scanner 105 Printer 201 1st interface control part 202 2nd interface control part 203 Arbiter 204,205,206 Image processing part (an example of a transfer part)
207 Register control unit 208 Register access monitoring unit 209 DMA transfer information monitoring unit 210 Access history storage control unit (an example of a control unit and a second storage unit)
211 Interrupt control unit (an example of a control unit)
220 register information input unit 221 storage range designation unit 222 activation information acquisition unit 223 output unit 225 control signal

特開2006−011645号公報JP 2006-011645 A 特開2011−243185号公報JP 2011-243185 A

Claims (13)

外部制御部から転送指示に応じて、転送対象のデータを第1記憶部に書き込みかつ転送先機器のデータの処理速度に従って前記第1記憶部からデータを読み出して前記転送先機器に転送する転送部と、
前記第1記憶部の記憶領域のうち所定の書込禁止領域に対するデータの書き込みを検知
した場合、前記第1記憶部に対するデータの書き込みの異常を前記外部制御部に通知し、前記第1記憶部の記憶領域のうちデータを書き込んだ書込領域を特定可能とする第1情報を前記第1記憶部に書き込む制御部と、
を備えることを特徴とする情報処理装置。
A transfer unit that writes data to be transferred to the first storage unit according to a transfer instruction from the external control unit, reads the data from the first storage unit according to the data processing speed of the transfer destination device, and transfers the data to the transfer destination device When,
When detecting data writing to a predetermined write-inhibited area in the storage area of the first storage section, the external control section is notified of an abnormality in data writing to the first storage section, and the first storage section A control unit that writes first information to the first storage unit that enables specification of a write region in which data is written, among the storage regions of
An information processing apparatus comprising:
前記制御部は、前記第1記憶部に対するデータの書き込みに対応する前記転送指示を特定可能とする第2情報を前記第1記憶部に書き込むことを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the control unit writes, in the first storage unit, second information that makes it possible to specify the transfer instruction corresponding to data writing to the first storage unit. . 前記第1情報および前記第2情報を記憶する第2記憶部を備えることを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, further comprising a second storage unit that stores the first information and the second information. 前記第1情報には、前記第1記憶部にデータを書き込んだ前記転送部を特定可能とする情報が付加されていることを特徴とする請求項1〜3のいずれか一に記載の情報処理装置。   The information processing according to any one of claims 1 to 3, wherein the first information is added with information that makes it possible to specify the transfer unit that has written data to the first storage unit. apparatus. 前記転送部は、転送対象のデータの前記書込領域を特定可能とする第3情報を前記第1記憶部に書き込み、前記第3情報にアクセスして前記第1記憶部からデータを読み出し、
前記第1情報には、前記第1記憶部の記憶領域のうち前記第3情報が書き込まれた領域を特定可能とする情報と、前記第3情報にアクセスした時間を特定可能とする情報とが付加されていることを特徴とする請求項1〜4のいずれか一に記載の情報処理装置。
The transfer unit writes third information enabling the identification of the write area of data to be transferred to the first storage unit, accesses the third information, reads data from the first storage unit,
The first information includes information that makes it possible to specify the area in which the third information is written in the storage area of the first storage unit, and information that makes it possible to specify the time when the third information was accessed. The information processing apparatus according to claim 1, wherein the information processing apparatus is added.
前記制御部は、前記書込禁止領域に対するデータの書き込みを検知した場合、前記第1記憶部から読み出したデータの転送を禁止することを特徴とする請求項1〜5のいずれか一に記載の情報処理装置。   The said control part prohibits transfer of the data read from the said 1st memory | storage part, when the writing of the data with respect to the said write-protection area | region is detected. Information processing device. 前記外部制御部からのアクセス情報を記憶する前記第1記憶部のアドレス範囲を指定する保存範囲指定部を有するアクセス監視部をさらに備えることを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, further comprising an access monitoring unit including a storage range designating unit that designates an address range of the first storage unit that stores access information from the external control unit. 前記アクセス監視部は、所定の制御信号に基づいて指定したアドレスの範囲内または範囲外を選択することを特徴とする請求項7に記載の情報処理装置。   The information processing apparatus according to claim 7, wherein the access monitoring unit selects an address within or outside a range designated based on a predetermined control signal. 前記アクセス監視部は、前記転送部を起動させるレジスタだけを取得する起動情報取得部を有することを特徴とする請求項7に記載の情報処理装置。   The information processing apparatus according to claim 7, wherein the access monitoring unit includes an activation information acquisition unit that acquires only a register that activates the transfer unit. 前記起動情報取得部は、所定の制御信号に基づいて指定した前記転送部の起動レジスタを取得することを特徴とする請求項9に記載の情報処理装置。   The information processing apparatus according to claim 9, wherein the activation information acquisition unit acquires an activation register of the transfer unit designated based on a predetermined control signal. 前記アクセス監視部は、アドレスの範囲外を選択し場合、当該アドレスの範囲外の起動レジスタを取得することを特徴とする請求項8に記載の情報処理装置。   The information processing apparatus according to claim 8, wherein the access monitoring unit acquires an activation register outside the address range when selecting the address outside the address range. 外部制御部から転送指示に応じて、転送対象のデータを第1記憶部に書き込みかつ転送先機器のデータの処理速度に従って前記第1記憶部からデータを読み出して前記転送先機器に転送し、
前記第1記憶部の記憶領域のうち所定の書込禁止領域に対するデータの書き込みを検知した場合、前記第1記憶部に対するデータの書き込みの異常を前記外部制御部に通知し、前記第1記憶部の記憶領域のうちデータを書き込んだ書込領域を特定可能とする第1情報を前記第1記憶部に書き込む、
ことを含む情報処理方法。
In response to a transfer instruction from the external control unit, the data to be transferred is written to the first storage unit, and the data is read from the first storage unit according to the data processing speed of the transfer destination device and transferred to the transfer destination device.
When detecting data writing to a predetermined write-inhibited area in the storage area of the first storage section, the external control section is notified of an abnormality in data writing to the first storage section, and the first storage section Writing the first information enabling the identification of the writing area in which the data has been written to the first storage unit.
Information processing method including the above.
コンピュータを、
外部制御部から転送指示に応じて、転送対象のデータを第1記憶部に書き込みかつ転送先機器のデータの処理速度に従って前記第1記憶部からデータを読み出して前記転送先機器に転送する転送部と、
前記第1記憶部の記憶領域のうち所定の書込禁止領域に対するデータの書き込みを検知した場合、前記第1記憶部に対するデータの書き込みの異常を前記外部制御部に通知し、
前記第1記憶部の記憶領域のうちデータを書き込んだ書込領域を特定可能とする第1情報を前記第1記憶部に書き込む制御部と、
を実行させるためのプログラム。
Computer
A transfer unit that writes data to be transferred to the first storage unit according to a transfer instruction from the external control unit, reads the data from the first storage unit according to the data processing speed of the transfer destination device, and transfers the data to the transfer destination device When,
When detecting writing of data to a predetermined write-protected area in the storage area of the first storage unit, notifies the external control unit of an abnormality in writing data to the first storage unit,
A control unit that writes, to the first storage unit, first information that makes it possible to specify a write region in which data is written in the storage region of the first storage unit;
A program for running
JP2015005390A 2014-03-14 2015-01-14 Information processor, information processing method, and program Pending JP2015187833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015005390A JP2015187833A (en) 2014-03-14 2015-01-14 Information processor, information processing method, and program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2014052759 2014-03-14
JP2014052759 2014-03-14
JP2015005390A JP2015187833A (en) 2014-03-14 2015-01-14 Information processor, information processing method, and program

Publications (1)

Publication Number Publication Date
JP2015187833A true JP2015187833A (en) 2015-10-29

Family

ID=54430036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015005390A Pending JP2015187833A (en) 2014-03-14 2015-01-14 Information processor, information processing method, and program

Country Status (1)

Country Link
JP (1) JP2015187833A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018092486A (en) * 2016-12-06 2018-06-14 日立オートモティブシステムズ株式会社 Automobile electronic controller and abnormality detection method of dma controller
JP2019194760A (en) * 2018-05-01 2019-11-07 株式会社東芝 Signal control circuit

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62191950A (en) * 1986-02-18 1987-08-22 Fujitsu Ltd Cpu system
JPH05165761A (en) * 1991-12-12 1993-07-02 Toshiba Corp Dma controller
JP2003281076A (en) * 2002-03-27 2003-10-03 Nec Microsystems Ltd Unauthorized access detection circuit of dma controller, unauthorized access detecting method and program thereof
JP2006011645A (en) * 2004-06-23 2006-01-12 Ricoh Co Ltd Semiconductor integrated circuit
JP2008041036A (en) * 2006-08-10 2008-02-21 Sony Corp Memory access monitoring device and method therefor
JP2012198904A (en) * 2012-04-25 2012-10-18 Renesas Electronics Corp Semiconductor device
JP2013225291A (en) * 2012-03-23 2013-10-31 Ricoh Co Ltd Device for electronic apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62191950A (en) * 1986-02-18 1987-08-22 Fujitsu Ltd Cpu system
JPH05165761A (en) * 1991-12-12 1993-07-02 Toshiba Corp Dma controller
JP2003281076A (en) * 2002-03-27 2003-10-03 Nec Microsystems Ltd Unauthorized access detection circuit of dma controller, unauthorized access detecting method and program thereof
JP2006011645A (en) * 2004-06-23 2006-01-12 Ricoh Co Ltd Semiconductor integrated circuit
JP2008041036A (en) * 2006-08-10 2008-02-21 Sony Corp Memory access monitoring device and method therefor
JP2013225291A (en) * 2012-03-23 2013-10-31 Ricoh Co Ltd Device for electronic apparatus
JP2012198904A (en) * 2012-04-25 2012-10-18 Renesas Electronics Corp Semiconductor device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018092486A (en) * 2016-12-06 2018-06-14 日立オートモティブシステムズ株式会社 Automobile electronic controller and abnormality detection method of dma controller
JP2019194760A (en) * 2018-05-01 2019-11-07 株式会社東芝 Signal control circuit
CN110427333A (en) * 2018-05-01 2019-11-08 株式会社东芝 Signal control circuit
JP7020991B2 (en) 2018-05-01 2022-02-16 株式会社東芝 Signal control circuit
CN110427333B (en) * 2018-05-01 2024-03-01 株式会社东芝 Signal control circuit

Similar Documents

Publication Publication Date Title
CN105843741B (en) Information processing method and device for application program
US8874959B2 (en) Information processing apparatus, image forming apparatus, and information processing program
US9164875B2 (en) Error detection method, information processing circuit, and error detection computer program product
US8245085B2 (en) Dump output control apparatus and dump output control method
US20170160994A1 (en) Image processing apparatus, information processing method and storage medium
JP2015187833A (en) Information processor, information processing method, and program
US8966323B2 (en) Monitoring multiple data transfers
JP5223995B1 (en) Print control apparatus, data management method and program
JP6531601B2 (en) Diagnostic program, diagnostic method and diagnostic device
JP6196143B2 (en) Information processing apparatus, information processing method, and program
US11095778B2 (en) Storing and outputting log for failure analysis in image forming apparatus equipped with SATA system, control method therefor, and storage medium
JP5338965B1 (en) Print control apparatus, image forming system, and program
JP5223996B1 (en) Print control apparatus, data management method and program
JP2007188434A (en) Image processor
US11190647B2 (en) Information processing apparatus stopping power supply to hardware connected to a socket
US9860393B2 (en) Virtual computer system, non-transitory computer readable medium, and method for virtual computer system
WO2017163302A1 (en) Control apparatus
US10992823B2 (en) Information processing device to store log information during communication failure
JP6376142B2 (en) Data processing device
JP2010056744A (en) Information processor, image forming apparatus, and program
US9854117B2 (en) Information processing system including device provided with circuit capable of configuring logic circuit according to circuit information and plurality of control units
US10366020B2 (en) Data transfer control device and image forming apparatus
JP2016066273A (en) Controller
JP5499682B2 (en) Semiconductor integrated circuit, debug system, debug method, debug program, and recording medium
JP4847407B2 (en) Data processing apparatus and data processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180904

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180831

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20190305