JP2011108161A - Information processor - Google Patents

Information processor Download PDF

Info

Publication number
JP2011108161A
JP2011108161A JP2009265018A JP2009265018A JP2011108161A JP 2011108161 A JP2011108161 A JP 2011108161A JP 2009265018 A JP2009265018 A JP 2009265018A JP 2009265018 A JP2009265018 A JP 2009265018A JP 2011108161 A JP2011108161 A JP 2011108161A
Authority
JP
Japan
Prior art keywords
flash memory
information
storage unit
processing apparatus
command
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
JP2009265018A
Other languages
Japanese (ja)
Inventor
Ichiro Takahashi
一郎 高橋
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2009265018A priority Critical patent/JP2011108161A/en
Publication of JP2011108161A publication Critical patent/JP2011108161A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce man-hours involved in switching a flash memory in an information processor with the flash memory mounted thereon. <P>SOLUTION: The information processor 1 includes a flash memory 2, a storing part 3 and a control part 4. The storing part 3 stores information 5 and 6 about a flash memory regarding each of a plurality of flash memories including the mounted flash memory 2. The control part 4 controls an access to the mounted flash memory 2 on the basis of the information 5 about the mounted flash memory 2 in the information 5 and 6 about the flash memories stored in the storing part 3. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

この発明は、情報処理装置に関する。   The present invention relates to an information processing apparatus.

従来、フラッシュメモリを備えた情報処理装置として、記録媒体側にフラッシュメモリの書換えに必要なプログラム(書換データへのポインタ、フラッシュメモリの各セクタ構成情報、データの書換範囲の指示データ)、書換データおよび書換操作時に書換不要データを含むセクタデータのバックアップ用領域を用意した装置が知られている。この情報処理装置は、書換処理の際、セクタ単位でセクタの消去を行う時に、記録媒体で書換不要データをバックアップし、電源OFFがあっても中断後に記録媒体からのデータにより復帰処理を行う(例えば、特許文献1参照。)。   Conventionally, as an information processing device equipped with a flash memory, a program required for rewriting the flash memory on the recording medium side (a pointer to rewrite data, each sector configuration information of the flash memory, data rewrite range instruction data), rewrite data In addition, there is known an apparatus that provides a sector data backup area including data that does not need to be rewritten during a rewrite operation. This information processing apparatus backs up rewrite-free data on a recording medium when erasing a sector in a rewriting process, and performs a restoration process using data from the recording medium after interruption even when the power is turned off ( For example, see Patent Document 1.)

特開2003−308253号公報JP 2003-308253 A

しかしながら、従来の情報処理装置では、次のような問題点がある。例えば、フラッシュメモリの製造終了などの原因によって、フラッシュメモリを製造メーカや仕様の異なる別のフラッシュメモリに置き換えることがある。その場合、元のフラッシュメモリと代替のフラッシュメモリとで、内部のセクタ構成やフラッシュメモリへのアクセスコマンドなどのアーキテクチャが異なることがある。アーキテクチャが異なる場合、フラッシュメモリを制御するソフトウェアを代替のフラッシュメモリに対応したものに更新する必要があるため、その代替のフラッシュメモリを制御するソフトウェアの開発、試験および更新作業に膨大な工数がかかる、という問題点がある。   However, the conventional information processing apparatus has the following problems. For example, the flash memory may be replaced with another flash memory having a different manufacturer or specification due to a cause such as the end of manufacture of the flash memory. In that case, the architecture of the internal sector configuration and the access command to the flash memory may differ between the original flash memory and the alternative flash memory. If the architecture is different, it is necessary to update the software that controls the flash memory to one that supports the alternative flash memory, which requires enormous man-hours to develop, test, and update the software that controls the alternative flash memory. There is a problem.

フラッシュメモリの置き換えに伴う工数を削減することができる情報処理装置を提供することを目的とする。   An object of the present invention is to provide an information processing apparatus capable of reducing the man-hour associated with replacement of a flash memory.

この情報処理装置は、フラッシュメモリ、記憶部および制御部を備えている。記憶部は、搭載されているフラッシュメモリを含む複数のフラッシュメモリのそれぞれについて、フラッシュメモリに関する情報を格納する。制御部は、記憶部に格納されている、フラッシュメモリに関する情報のうちの、搭載されているフラッシュメモリに関する情報に基づいて、搭載されているフラッシュメモリに対するアクセスの制御を行う。   This information processing apparatus includes a flash memory, a storage unit, and a control unit. The storage unit stores information on the flash memory for each of the plurality of flash memories including the mounted flash memory. The control unit controls access to the mounted flash memory based on information about the mounted flash memory among the information about the flash memory stored in the storage unit.

この情報処理装置によれば、フラッシュメモリの置き換えに伴う工数を削減することができるという効果を奏する。   According to this information processing apparatus, it is possible to reduce the man-hour associated with the replacement of the flash memory.

実施例1にかかる情報処理装置を示すブロック図である。1 is a block diagram illustrating an information processing apparatus according to a first embodiment. 実施例2にかかる情報処理装置の要部を示すブロック図である。FIG. 10 is a block diagram illustrating a main part of an information processing apparatus according to a second embodiment. 実施例2にかかる情報処理装置の詳細を示すブロック図である。FIG. 10 is a block diagram illustrating details of the information processing apparatus according to the second embodiment. フラッシュメモリのセクタ構成の一例を示す図である。It is a figure which shows an example of the sector structure of flash memory. フラッシュメモリを制御するコマンドの一例を示す図である。It is a figure which shows an example of the command which controls flash memory. 実施例2にかかるフラッシュメモリ情報記憶部の格納情報の一例を示す図である。It is a figure which shows an example of the storage information of the flash memory information storage part concerning Example 2. FIG. 実施例2にかかる情報処理装置の処理手順を示すシーケンス図である。FIG. 10 is a sequence diagram illustrating a processing procedure of the information processing apparatus according to the second embodiment. 実施例2にかかる情報処理装置の処理手順を示すシーケンス図である。FIG. 10 is a sequence diagram illustrating a processing procedure of the information processing apparatus according to the second embodiment. 実施例2にかかる情報処理装置の動作を示すフローチャートである。10 is a flowchart illustrating an operation of the information processing apparatus according to the second embodiment. 実施例2にかかる情報処理装置の動作を示すフローチャートである。10 is a flowchart illustrating an operation of the information processing apparatus according to the second embodiment. 実施例2にかかる情報処理装置の動作を示すフローチャートである。10 is a flowchart illustrating an operation of the information processing apparatus according to the second embodiment.

以下に添付図面を参照して、この情報処理装置の好適な実施の形態を詳細に説明する。情報処理装置は、搭載しているフラッシュメモリを含む複数のフラッシュメモリについて、フラッシュメモリに関する情報を備えている。情報処理装置は、複数のフラッシュメモリに関する情報のうち、搭載しているフラッシュメモリに関する情報に基づいて、フラッシュメモリに対するアクセスを制御する。   Exemplary embodiments of the information processing apparatus will be described below in detail with reference to the accompanying drawings. The information processing apparatus includes information on the flash memory for a plurality of flash memories including the mounted flash memory. The information processing apparatus controls access to the flash memory based on the information about the installed flash memory among the information about the plurality of flash memories.

(実施例1)
図1は、実施例1にかかる情報処理装置を示すブロック図である。図1に示すように、情報処理装置1は、フラッシュメモリ2、記憶部3および制御部4を備えている。記憶部3は、搭載されているフラッシュメモリ2を含む複数のフラッシュメモリのそれぞれについて、フラッシュメモリに関する情報5,6を格納する。制御部4は、記憶部3に格納されている、フラッシュメモリに関する情報5,6のうちの、搭載されているフラッシュメモリ2に関する情報5に基づいて、搭載されているフラッシュメモリ2に対するアクセスの制御を行う。なお、図1に示す例では、記憶部3にフラッシュメモリに関する情報が二つ示されているが、三つ以上のフラッシュメモリに関する情報が記憶部3に格納されていてもよい。
Example 1
FIG. 1 is a block diagram of the information processing apparatus according to the first embodiment. As illustrated in FIG. 1, the information processing apparatus 1 includes a flash memory 2, a storage unit 3, and a control unit 4. The storage unit 3 stores information 5 and 6 related to the flash memory for each of a plurality of flash memories including the mounted flash memory 2. The control unit 4 controls access to the mounted flash memory 2 based on the information 5 about the mounted flash memory 2 out of the information 5 and 6 about the flash memory stored in the storage unit 3. I do. In the example shown in FIG. 1, two pieces of information about the flash memory are shown in the storage unit 3, but information about three or more flash memories may be stored in the storage unit 3.

実施例1によれば、複数のフラッシュメモリに関する情報5,6が記憶部3に格納されているので、搭載されているフラッシュメモリ2を、記憶部3に情報が格納されているフラッシュメモリに置き換えることができる。その場合に、制御部4は、新たに搭載されたフラッシュメモリに対応する情報を記憶部3から取得することができる。従って、新たに搭載されたフラッシュメモリを制御するソフトウェアを開発したり、試験したり、更新する作業が不要となるので、フラッシュメモリの置き換えに伴う工数を削減することができる。   According to the first embodiment, since information 5 and 6 relating to a plurality of flash memories are stored in the storage unit 3, the mounted flash memory 2 is replaced with a flash memory in which information is stored in the storage unit 3. be able to. In that case, the control unit 4 can acquire information corresponding to the newly mounted flash memory from the storage unit 3. Therefore, it is not necessary to develop, test, or update software for controlling the newly installed flash memory, so that the man-hour associated with the replacement of the flash memory can be reduced.

(実施例2)
実施例1にかかる情報処理装置の一例として、例えばプログラム可能なデバイスを備えた装置が挙げられる。実施例2では、プログラム可能なデバイスを備えた情報処理装置について説明する。
(Example 2)
As an example of the information processing apparatus according to the first embodiment, for example, an apparatus including a programmable device can be cited. In the second embodiment, an information processing apparatus including a programmable device will be described.

・情報処理装置の説明
図2は、実施例2にかかる情報処理装置の要部を示すブロック図である。図2に示すように、情報処理装置11は、フラッシュメモリ12、記憶部13および制御部14を備えている。記憶部13は、書き換え可能な不揮発性メモリを備えている。書き換え可能な不揮発性メモリの一例として、例えばEEPROM(Electrically Erasable and Programmable Read Only Memory、電気的消去およびプログラム可能な読み出し専用メモリ)が挙げられる。記憶部13の書き換え可能な不揮発性メモリは、搭載されているフラッシュメモリ12を含む複数のフラッシュメモリのそれぞれについて、フラッシュメモリに関する情報15,16を格納している。また、情報処理装置11は、取得部17、格納部18、プログラム可能なデバイス19およびMPU(Micro Processing Unit、マイクロプロセッサ)20を備えている。
FIG. 2 is a block diagram of a main part of the information processing apparatus according to the second embodiment. As illustrated in FIG. 2, the information processing apparatus 11 includes a flash memory 12, a storage unit 13, and a control unit 14. The storage unit 13 includes a rewritable nonvolatile memory. An example of a rewritable nonvolatile memory is, for example, an EEPROM (Electrically Erasable and Programmable Read Only Memory, electrically erasable and programmable read-only memory). The rewritable nonvolatile memory of the storage unit 13 stores information 15 and 16 relating to the flash memory for each of the plurality of flash memories including the mounted flash memory 12. The information processing apparatus 11 includes an acquisition unit 17, a storage unit 18, a programmable device 19, and an MPU (Micro Processing Unit, microprocessor) 20.

フラッシュメモリ12には、プログラム可能なデバイス19の論理仕様を定義する情報としてコンフィグデータ21が格納されている。フラッシュメモリ12には、情報処理装置11の起動時に実行されるイニシャルプログラムローダ22が格納されている。取得部17は、記憶部13から、搭載されているフラッシュメモリ12に関する情報15を取得する。取得部17は、記憶部13から取得した情報に含まれる、フラッシュメモリのセクタに関する情報23およびフラッシュメモリを制御するコマンドに関する情報24を展開し、格納部18に格納する。格納部18は、フラッシュメモリ12へのアクセスを制御する情報として、フラッシュメモリのセクタに関する情報23およびフラッシュメモリを制御するコマンドに関する情報24を格納する。   The flash memory 12 stores configuration data 21 as information defining the logical specifications of the programmable device 19. The flash memory 12 stores an initial program loader 22 that is executed when the information processing apparatus 11 is activated. The acquisition unit 17 acquires information 15 regarding the mounted flash memory 12 from the storage unit 13. The acquisition unit 17 expands the information 23 about the sector of the flash memory and the information 24 about the command for controlling the flash memory, which are included in the information acquired from the storage unit 13, and stores them in the storage unit 18. The storage unit 18 stores information 23 relating to sectors of the flash memory and information 24 relating to commands for controlling the flash memory as information for controlling access to the flash memory 12.

制御部14は、格納部18に格納されている、フラッシュメモリのセクタに関する情報23およびフラッシュメモリを制御するコマンドに関する情報24に基づいて、フラッシュメモリ12へのアクセスを制御する。制御部14は、フラッシュメモリ12からコンフィグデータ21を読み出し、コンフィグデータ21に基づいて、プログラム可能なデバイス19を設定する(コンフィギュレーション)。制御部14は、MPU20からのローディング指示に基づいて、フラッシュメモリ12にアクセスする。制御部14は、フラッシュメモリ12からイニシャルプログラムローダ22を読み出し、MPU20にイニシャルプログラムローダ22をローディングする。   The control unit 14 controls access to the flash memory 12 based on the information 23 related to the sectors of the flash memory and the information 24 related to commands for controlling the flash memory, which are stored in the storage unit 18. The control unit 14 reads the configuration data 21 from the flash memory 12 and sets the programmable device 19 based on the configuration data 21 (configuration). The control unit 14 accesses the flash memory 12 based on the loading instruction from the MPU 20. The control unit 14 reads the initial program loader 22 from the flash memory 12 and loads the initial program loader 22 into the MPU 20.

MPU20は、制御部14にイニシャルプログラムローダ22のローディングを指示する。MPU20は、ソフトウェア25を実行する。MPU20には、図示しない端末が接続されている。該端末からの指示によって、記憶部13に対して、フラッシュメモリに関する情報15,16の読出しもしくは消去、またはフラッシュメモリに関する情報の書込みを行うことができるようになっている。   The MPU 20 instructs the control unit 14 to load the initial program loader 22. The MPU 20 executes software 25. A terminal (not shown) is connected to the MPU 20. In response to an instruction from the terminal, information 15 and 16 related to the flash memory can be read or erased from the storage unit 13 or information related to the flash memory can be written.

図3は、実施例2にかかる情報処理装置の詳細を示すブロック図である。図3に示すように、図示例では、図2のプログラム可能なデバイス19の一例として、例えばFPGA(Field Programmable Gate Array、フィールドプログラマブルゲートアレイ)31が用いられている。図2の制御部14として、フラッシュアクセス制御部32およびコンフィグ制御部33が設けられている。図2の取得部17として、初期ロード制御部34が設けられている。図2の格納部18として、セクタ構成テーブル35およびコマンドテーブル36が設けられている。また、アドレスデコード部37、記憶部インタフェース部38、フラッシュインタフェース部39が設けられている。図2の記憶部13として、フラッシュメモリ情報記憶部40が設けられている。フラッシュアクセス制御部32、コンフィグ制御部33、初期ロード制御部34、セクタ構成テーブル35、コマンドテーブル36、アドレスデコード部37、記憶部インタフェース部38およびフラッシュインタフェース部39は、例えば一枚のボードにフラッシュメモリ制御用ハードウェア41として設けられている。フラッシュメモリ制御用ハードウェア41は、例えばプログラマブルロジックデバイス(PLD:Programmable Logic Device)を備えている。MPU20には、例えばイーサポート42を介して端末43が接続されている。   FIG. 3 is a block diagram illustrating details of the information processing apparatus according to the second embodiment. As shown in FIG. 3, for example, an FPGA (Field Programmable Gate Array) 31 is used as an example of the programmable device 19 in FIG. 2. As the control unit 14 in FIG. 2, a flash access control unit 32 and a configuration control unit 33 are provided. As the acquisition unit 17 in FIG. 2, an initial load control unit 34 is provided. As the storage unit 18 in FIG. 2, a sector configuration table 35 and a command table 36 are provided. Further, an address decoding unit 37, a storage unit interface unit 38, and a flash interface unit 39 are provided. A flash memory information storage unit 40 is provided as the storage unit 13 of FIG. The flash access control unit 32, the configuration control unit 33, the initial load control unit 34, the sector configuration table 35, the command table 36, the address decoding unit 37, the storage unit interface unit 38, and the flash interface unit 39 are, for example, flashed on a single board. The memory control hardware 41 is provided. The flash memory control hardware 41 includes, for example, a programmable logic device (PLD: Programmable Logic Device). For example, a terminal 43 is connected to the MPU 20 via an e-support 42.

フラッシュメモリ情報記憶部40の書き換え可能な不揮発性メモリには、複数のフラッシュメモリに関する情報が格納されている。初期ロード制御部34は、フラッシュメモリ情報記憶部40から、搭載されているフラッシュメモリ12に関する情報を取得する。初期ロード制御部34は、フラッシュメモリ情報記憶部40から取得した情報をセクタ構成テーブル35およびコマンドテーブル36に格納する。セクタ構成テーブル35には、搭載されているフラッシュメモリ12のセクタに関する情報が格納される。コマンドテーブル36には、搭載されているフラッシュメモリ12を制御するコマンドに関する情報が格納される。   The rewritable nonvolatile memory of the flash memory information storage unit 40 stores information regarding a plurality of flash memories. The initial load control unit 34 acquires information related to the mounted flash memory 12 from the flash memory information storage unit 40. The initial load control unit 34 stores the information acquired from the flash memory information storage unit 40 in the sector configuration table 35 and the command table 36. The sector configuration table 35 stores information regarding the sectors of the mounted flash memory 12. The command table 36 stores information related to commands for controlling the mounted flash memory 12.

フラッシュアクセス制御部32は、セクタ構成テーブル35に格納されている情報およびコマンドテーブル36に格納されている情報に基づいて、フラッシュメモリ12へのアクセスを制御する。フラッシュアクセス制御部32は、フラッシュメモリ12からFPGA31のコンフィグデータを読み出す。フラッシュアクセス制御部32は、MPU20からのローディング指示に基づいて、フラッシュメモリ12にアクセスする。フラッシュアクセス制御部32は、フラッシュインタフェース部39を介してフラッシュメモリ12からイニシャルプログラムローダを読み出し、MPU20にイニシャルプログラムローダ22をローディングする。コンフィグ制御部33は、コンフィグデータに基づいて、FPGA31を設定する。   The flash access control unit 32 controls access to the flash memory 12 based on the information stored in the sector configuration table 35 and the information stored in the command table 36. The flash access control unit 32 reads the configuration data of the FPGA 31 from the flash memory 12. The flash access control unit 32 accesses the flash memory 12 based on a loading instruction from the MPU 20. The flash access control unit 32 reads the initial program loader from the flash memory 12 via the flash interface unit 39 and loads the initial program loader 22 into the MPU 20. The configuration control unit 33 sets the FPGA 31 based on the configuration data.

アドレスデコード部37は、アドレスデータをデコードする。記憶部インタフェース部38は、フラッシュメモリ制御用ハードウェア41とフラッシュメモリ情報記憶部40とを接続するインタフェースである。フラッシュインタフェース部39は、フラッシュメモリ制御用ハードウェア41とフラッシュメモリ12とを接続するインタフェースである。なお、フラッシュメモリ12およびMPU20については、図2を参照しながら説明したとおりである。   The address decoding unit 37 decodes the address data. The storage unit interface unit 38 is an interface that connects the flash memory control hardware 41 and the flash memory information storage unit 40. The flash interface unit 39 is an interface that connects the flash memory control hardware 41 and the flash memory 12. The flash memory 12 and the MPU 20 are as described with reference to FIG.

・フラッシュメモリのセクタ構成の一例
図4は、フラッシュメモリのセクタ構成の一例を示す図である。図4に示す図表51のように、メーカや型番などによってフラッシュメモリのセクタ構成が異なることがある。図4に示す例では、A社製のフラッシュメモリ、B社製のフラッシュメモリおよびC社製のフラッシュメモリは、いずれも例えば8.192Mバイトの容量を有するが、内部のセクタごとの容量が異なっている。例えば、A社製のフラッシュメモリでは、セクタ番号が0から7まで、およびセクタ番号が134から141までの各セクタの容量は8Kバイトであり、セクタ番号が8から133までの各セクタの容量は64Kバイトである。B社製のフラッシュメモリでは、セクタ番号が0から7までの各セクタの容量は8Kバイトであり、セクタ番号が8から134までの各セクタの容量は64Kバイトである。C社製のフラッシュメモリでは、セクタ番号が0から127までの各セクタの容量は64Kバイトである。
FIG. 4 is a diagram illustrating an example of the sector configuration of the flash memory. As shown in the chart 51 in FIG. 4, the sector configuration of the flash memory may differ depending on the manufacturer, model number, and the like. In the example shown in FIG. 4, the flash memory manufactured by company A, the flash memory manufactured by company B, and the flash memory manufactured by company C all have a capacity of, for example, 8.192 Mbytes, but the capacity of each internal sector is different. ing. For example, in the flash memory manufactured by company A, the capacity of each sector with sector numbers 0 to 7 and sector numbers 134 to 141 is 8 Kbytes, and the capacity of each sector with sector numbers 8 to 133 is It is 64K bytes. In the flash memory manufactured by company B, the capacity of each sector with sector numbers 0 to 7 is 8 Kbytes, and the capacity of each sector with sector numbers 8 to 134 is 64 Kbytes. In the flash memory manufactured by company C, the capacity of each sector with sector numbers 0 to 127 is 64 Kbytes.

・フラッシュメモリを制御するコマンドの一例
図5は、フラッシュメモリを制御するコマンドの一例を示す図である。図5に示す図表52のように、メーカや型番などによってフラッシュメモリを制御するコマンドが異なることがある。例えば、A社製のフラッシュメモリに対してセクタを消去する際には、セクタ消去コマンドとして、アドレスAAAでデータAA、アドレス555でデータ55、アドレスAAAでデータ80、アドレスAAAでデータAA、アドレス555でデータ55、アドレスSAでデータ30の順でコマンドが発行される。SAは、セクタの先頭アドレスを表す。それに対して、例えば、B社製のフラッシュメモリに対してセクタを消去する際には、セクタの消去コマンドとして、アドレス555でデータAA、アドレスBBBでデータ55、アドレス555でデータ80、アドレス555でデータAA、アドレスBBBでデータ55、アドレスSAでデータ30の順でコマンドが発行される。C社製のフラッシュメモリに対するセクタ消去コマンド、各社製のフラッシュメモリに対するデータの書込コマンドおよび他モードからリードモードへ移行する際のコマンド(リードモード復帰コマンド)については、説明を省略する(図5を参照)。
FIG. 5 is a diagram illustrating an example of a command for controlling the flash memory. As shown in the chart 52 of FIG. 5, the command for controlling the flash memory may differ depending on the manufacturer, model number, and the like. For example, when erasing a sector from a flash memory manufactured by company A, as sector erase commands, data AA at address AAA, data 55 at address 555, data 80 at address AAA, data AA at address AAA, address 555 Then, commands are issued in the order of data 55 and data 30 at address SA. SA represents the head address of the sector. On the other hand, for example, when erasing a sector from the flash memory manufactured by company B, as sector erase commands, data AA at address 555, data 55 at address BBB, data 80 at address 555, data 80 at address 555 Commands are issued in the order of data AA, data 55 at address BBB, and data 30 at address SA. Descriptions of the sector erase command for the flash memory manufactured by company C, the data write command for the flash memory manufactured by each company, and the command (read mode return command) for shifting from the other mode to the read mode are omitted (FIG. 5). See).

・フラッシュメモリ情報記憶部に格納されている情報の一例
図6は、フラッシュメモリ情報記憶部に格納されている情報の一例を示す図である。図6に示すように、格納情報53は、基本情報として、製造メーカIDおよびデバイスIDを有する。製造メーカIDおよびデバイスIDによって、フラッシュメモリの製造メーカおよびデバイスの型番などを識別することができる。図示例では、格納情報53は、基本情報に続いて、セクタの容量と同一容量のセクタの連続数の情報を有する。図示例は、A社製フラッシュメモリに関する情報であり、セクタ構成情報として、8Kバイトの容量のセクタが8個連続し、64Kバイトの容量のセクタが126個連続し、再び8Kバイトの容量のセクタが8個連続していることを表している。
Example of Information Stored in Flash Memory Information Storage Unit FIG. 6 is a diagram illustrating an example of information stored in the flash memory information storage unit. As shown in FIG. 6, the storage information 53 includes a manufacturer ID and a device ID as basic information. The manufacturer of the flash memory and the model number of the device can be identified by the manufacturer ID and the device ID. In the illustrated example, the storage information 53 includes information on the number of consecutive sectors having the same capacity as the sector capacity following the basic information. The illustrated example is information on the flash memory manufactured by Company A. As sector configuration information, 8 sectors with a capacity of 8 Kbytes continue, 126 sectors with a capacity of 64 Kbytes continue, and a sector with a capacity of 8 Kbytes again. Represents 8 consecutive.

セクタ構成情報に続いて、例えば、消去コマンド、書込コマンドおよびリードモード復帰コマンドの順に図5に示すコマンドが格納されている。なお、消去コマンド、書込コマンドおよびリードモード復帰コマンドの格納順序は、別の順序でもよい。消去コマンドの直前には、消去コマンドの開始を示す情報境界識別子が挿入されている。例えば、消去コマンドの開始を示す情報境界識別子として0xEEE1が挿入されている。書込コマンドの直前には、書込コマンドの開始を示す情報境界識別子が挿入されている。例えば、書込コマンドの開始を示す情報境界識別子として0xEEE2が挿入されている。リードモード復帰コマンドの直前には、リードモード復帰コマンドの開始を示す情報境界識別子が挿入されている。例えば、リードモード復帰コマンドの開始を示す情報境界識別子として0xEEE3が挿入されている。   Following the sector configuration information, for example, commands shown in FIG. 5 are stored in the order of an erase command, a write command, and a read mode return command. The storage order of the erase command, the write command, and the read mode return command may be another order. Immediately before the erase command, an information boundary identifier indicating the start of the erase command is inserted. For example, 0xEEEE1 is inserted as an information boundary identifier indicating the start of the erase command. Immediately before the write command, an information boundary identifier indicating the start of the write command is inserted. For example, 0xEEEE2 is inserted as an information boundary identifier indicating the start of a write command. Immediately before the read mode return command, an information boundary identifier indicating the start of the read mode return command is inserted. For example, 0xEEEE3 is inserted as an information boundary identifier indicating the start of the read mode return command.

一フラッシュメモリに関する情報の終わりには、一フラッシュメモリに関する情報の終わりを示す情報境界識別子が挿入されている。例えば、一フラッシュメモリに関する情報の終わりを示す情報境界識別子としてENDが挿入されている。なお、各情報境界識別子は、上述した例に限らない。また、図示例では、製造メーカやデバイスのID、各コマンドのアドレスおよびデータ、並びに各情報境界識別子は、例えば16ビット幅の領域に格納されているが、その他のビット幅でもよい。さらに、格納情報53の構成は、図6に示す構成に限らない。   An information boundary identifier indicating the end of information related to one flash memory is inserted at the end of information related to one flash memory. For example, END is inserted as an information boundary identifier indicating the end of information related to one flash memory. Each information boundary identifier is not limited to the example described above. In the illustrated example, the manufacturer and device ID, the address and data of each command, and each information boundary identifier are stored in a 16-bit width area, for example, but other bit widths may be used. Furthermore, the configuration of the storage information 53 is not limited to the configuration shown in FIG.

・情報処理装置の動作
図3を参照しながら、情報処理装置11の動作を説明する。まず、電源投入直後の動作を説明する。情報処理装置11の電源が投入されると、初期ロード制御部34は、記憶部インタフェース部38に対してアドレス信号a1、セレクト信号s1およびリード信号r1をアサートする。記憶部インタフェース部38は、アドレス信号a1、セレクト信号s1およびリード信号r1のアサートを受けて、初期ロード制御部34がフラッシュメモリ情報記憶部40からデータを読み出すことを認識する。そして、記憶部インタフェース部38は、フラッシュメモリ情報記憶部40に対してアドレス信号a2、セレクト信号s2およびリード信号r2をアサートする。
-Operation | movement of information processing apparatus Operation | movement of the information processing apparatus 11 is demonstrated referring FIG. First, the operation immediately after the power is turned on will be described. When the information processing apparatus 11 is powered on, the initial load control unit 34 asserts the address signal a1, the select signal s1, and the read signal r1 to the storage unit interface unit 38. The storage unit interface unit 38 recognizes that the initial load control unit 34 reads data from the flash memory information storage unit 40 in response to the assertion of the address signal a1, the select signal s1, and the read signal r1. Then, the storage unit interface unit 38 asserts the address signal a2, the select signal s2, and the read signal r2 to the flash memory information storage unit 40.

記憶部インタフェース部38は、データ信号線d2を介してフラッシュメモリ情報記憶部40から、搭載されているフラッシュメモリ12のセクタ構成に関する情報を取得する。初期ロード制御部34がセクタ構成テーブル35に対してアドレス信号a3およびライト信号w3をアサートすることによって、搭載されているフラッシュメモリ12のセクタ構成に関する情報は、データバスd1を介してセクタ構成テーブル35に格納される。   The storage unit interface unit 38 acquires information on the sector configuration of the mounted flash memory 12 from the flash memory information storage unit 40 via the data signal line d2. When the initial load control unit 34 asserts the address signal a3 and the write signal w3 to the sector configuration table 35, information on the sector configuration of the mounted flash memory 12 is obtained via the data bus d1. Stored in

同様にして、記憶部インタフェース部38は、フラッシュメモリ情報記憶部40から、搭載されているフラッシュメモリ12を制御するコマンドに関する情報を取得する。初期ロード制御部34がコマンドテーブル36に対してアドレス信号a4およびライト信号w4をアサートすることによって、搭載されているフラッシュメモリ12を制御するコマンドに関する情報は、データバスd1を介してコマンドテーブル36に格納される。   Similarly, the storage unit interface unit 38 acquires information on commands for controlling the mounted flash memory 12 from the flash memory information storage unit 40. When the initial load control unit 34 asserts the address signal a4 and the write signal w4 to the command table 36, information regarding the command for controlling the mounted flash memory 12 is stored in the command table 36 via the data bus d1. Stored.

次いで、フラッシュアクセス制御部32は、セクタ構成テーブル35に対してアドレス信号a3およびリード信号r3をアサートする。それによって、フラッシュアクセス制御部32は、データバスd1を介してセクタ構成テーブル35からフラッシュメモリ12のセクタ構成に関する情報を取得する。また、フラッシュアクセス制御部32は、コマンドテーブル36に対してアドレス信号a4およびリード信号r4をアサートする。それによって、フラッシュアクセス制御部32は、データバスd1を介してコマンドテーブル36からフラッシュメモリ12を制御するコマンドに関する情報を取得する。   Next, the flash access control unit 32 asserts the address signal a3 and the read signal r3 to the sector configuration table 35. Thereby, the flash access control unit 32 acquires information on the sector configuration of the flash memory 12 from the sector configuration table 35 via the data bus d1. Further, the flash access control unit 32 asserts the address signal a4 and the read signal r4 to the command table 36. As a result, the flash access control unit 32 acquires information regarding a command for controlling the flash memory 12 from the command table 36 via the data bus d1.

次いで、フラッシュアクセス制御部32は、フラッシュメモリ12に対してアドレス信号a5をアサートする。また、フラッシュアクセス制御部32は、フラッシュインタフェース部39に対してリード信号r6をアサートする。フラッシュインタフェース部39は、リード信号r6のアサートを受けて、フラッシュメモリ12に対してセレクト信号s5およびリード信号r5をアサートする。それによって、フラッシュアクセス制御部32は、データバスd5を介してフラッシュメモリ12からFPGA31のコンフィグデータを取得する。   Next, the flash access control unit 32 asserts the address signal a <b> 5 to the flash memory 12. Further, the flash access control unit 32 asserts a read signal r6 to the flash interface unit 39. In response to the assertion of the read signal r6, the flash interface unit 39 asserts the select signal s5 and the read signal r5 to the flash memory 12. Thereby, the flash access control unit 32 acquires configuration data of the FPGA 31 from the flash memory 12 via the data bus d5.

フラッシュアクセス制御部32は、FPGA31のコンフィグデータをデータバスd7に渡す。また、フラッシュアクセス制御部32は、コンフィグ制御部33に対してコンフィグ制御信号c1をアサートする。コンフィグ制御部33は、コンフィグ制御信号c1のアサートを受けて、FPGA31に対してコンフィグ制御信号c2をアサートする。それによって、FPGA31のコンフィグデータは、データバスd7からFPGA31に渡される。そして、FPGA31は、コンフィグデータに基づいて設定される。   The flash access control unit 32 passes the configuration data of the FPGA 31 to the data bus d7. Further, the flash access control unit 32 asserts the configuration control signal c <b> 1 to the configuration control unit 33. In response to the assertion of the configuration control signal c1, the configuration control unit 33 asserts the configuration control signal c2 to the FPGA 31. Thereby, the configuration data of the FPGA 31 is transferred from the data bus d7 to the FPGA 31. The FPGA 31 is set based on the configuration data.

次いで、MPU20(ソフトウェア25)は、アドレスデコード部37に対してアドレス信号a8およびリード信号r8をアサートする。アドレスデコード部37は、アドレス信号a8およびリード信号r8のアサートを受けて、フラッシュアクセス制御部32に対してアドレス信号a7、セレクト信号s7およびリード信号r7をアサートする。フラッシュメモリ12からFPGA31のコンフィグデータを取得したときと同様にして、フラッシュアクセス制御部32は、データバスd5を介してフラッシュメモリ12からイニシャルプログラムローダを取得する。イニシャルプログラムローダは、フラッシュアクセス制御部32とアドレスデコード部37との間のデータバスd7を介して、アドレスデコード部37とMPU20との間のデータバスd8に渡される。それによって、MPU20において、イニシャルプログラムローダのローディング動作が完了する。   Next, the MPU 20 (software 25) asserts the address signal a8 and the read signal r8 to the address decoding unit 37. Upon receiving the assertion of the address signal a8 and the read signal r8, the address decoding unit 37 asserts the address signal a7, the select signal s7, and the read signal r7 to the flash access control unit 32. The flash access control unit 32 acquires the initial program loader from the flash memory 12 via the data bus d5 in the same manner as when the configuration data of the FPGA 31 is acquired from the flash memory 12. The initial program loader is transferred to the data bus d8 between the address decoding unit 37 and the MPU 20 via the data bus d7 between the flash access control unit 32 and the address decoding unit 37. Thereby, the loading operation of the initial program loader is completed in the MPU 20.

次に、FPGA31のコンフィグデータを更新する動作を説明する。FPGA31のコンフィグデータを更新する際には、MPU20は、アドレスデコード部37に対してアドレス信号a8およびライト信号w8をアサートし、データバスd8を介してアドレスデコード部37に新しいコンフィグデータを渡す。アドレスデコード部37は、アドレス信号a8およびライト信号w8のアサートを受けて、フラッシュアクセス制御部32に対してアドレス信号a7およびライト信号w7をアサートする。また、アドレスデコード部37は、データバスd7を介してフラッシュアクセス制御部32に新しいコンフィグデータを渡す。   Next, an operation for updating the configuration data of the FPGA 31 will be described. When updating the configuration data of the FPGA 31, the MPU 20 asserts the address signal a8 and the write signal w8 to the address decoding unit 37, and passes the new configuration data to the address decoding unit 37 via the data bus d8. In response to the assertion of the address signal a8 and the write signal w8, the address decoding unit 37 asserts the address signal a7 and the write signal w7 to the flash access control unit 32. The address decoding unit 37 passes new configuration data to the flash access control unit 32 via the data bus d7.

フラッシュアクセス制御部32は、フラッシュメモリ12に対してアドレス信号a5をアサートし、データバスd5を介してフラッシュメモリ12に新しいコンフィグデータを渡す。また、フラッシュアクセス制御部32は、フラッシュインタフェース部39に対してライト信号w6をアサートする。フラッシュインタフェース部39は、ライト信号w6のアサートを受けて、フラッシュメモリ12に対してセレクト信号s5およびライト信号w5をアサートする。それによって、フラッシュメモリ12に新しいコンフィグデータが書き込まれる。   The flash access control unit 32 asserts an address signal a5 to the flash memory 12, and passes new configuration data to the flash memory 12 via the data bus d5. Further, the flash access control unit 32 asserts a write signal w6 to the flash interface unit 39. Upon receiving the assertion of the write signal w6, the flash interface unit 39 asserts the select signal s5 and the write signal w5 to the flash memory 12. Thereby, new configuration data is written into the flash memory 12.

次に、端末43を操作してフラッシュメモリ情報記憶部40にフラッシュメモリに関する情報を書き込む動作を説明する。フラッシュメモリ情報記憶部40にフラッシュメモリに関する情報を書き込む際には、まず、MPU20は、アドレスデコード部37に対してアドレス信号a8およびライト信号w8をアサートし、データバスd8を介してアドレスデコード部37に書込対象のフラッシュメモリに関する情報を渡す。アドレスデコード部37は、アドレス信号a8およびライト信号w8のアサートを受けて、フラッシュメモリ情報記憶部40への書込み指示であることを認識する。   Next, an operation of operating the terminal 43 to write information regarding the flash memory in the flash memory information storage unit 40 will be described. When writing information related to the flash memory in the flash memory information storage unit 40, the MPU 20 first asserts the address signal a8 and the write signal w8 to the address decoding unit 37, and the address decoding unit 37 via the data bus d8. Information about the flash memory to be written to. Upon receiving the assertion of the address signal a8 and the write signal w8, the address decoding unit 37 recognizes that it is a write instruction to the flash memory information storage unit 40.

そして、アドレスデコード部37は、記憶部インタフェース部38に対してアドレス信号a9、セレクト信号s9およびライト信号w9をアサートし、データバスd7を介して記憶部インタフェース部38にフラッシュメモリに関する情報を渡す。記憶部インタフェース部38は、アドレス信号a9、セレクト信号s9およびライト信号w9のアサートを受けて、フラッシュメモリ情報記憶部40に対してアドレス信号a2、セレクト信号s2およびライト信号w2をアサートする。また、記憶部インタフェース部38は、データ信号線d2を介してフラッシュメモリ情報記憶部40にフラッシュメモリに関する情報を渡す。それによって、フラッシュメモリ情報記憶部40にフラッシュメモリに関する情報が書き込まれる。   Then, the address decoding unit 37 asserts the address signal a9, the select signal s9, and the write signal w9 to the storage unit interface unit 38, and passes information related to the flash memory to the storage unit interface unit 38 via the data bus d7. In response to the assertion of the address signal a9, the select signal s9, and the write signal w9, the storage unit interface unit 38 asserts the address signal a2, the select signal s2, and the write signal w2 to the flash memory information storage unit 40. The storage unit interface unit 38 passes information related to the flash memory to the flash memory information storage unit 40 via the data signal line d2. As a result, information about the flash memory is written into the flash memory information storage unit 40.

次に、端末43を操作してフラッシュメモリ情報記憶部40からフラッシュメモリに関する情報を読み出す動作を説明する。フラッシュメモリ情報記憶部40からフラッシュメモリに関する情報を読み出す際には、まず、MPU20は、アドレスデコード部37に対してアドレス信号a8およびリード信号r8をアサートする。アドレスデコード部37は、アドレス信号a8およびリード信号r8のアサートを受けて、フラッシュメモリ情報記憶部40からの読み出し指示であることを認識する。   Next, an operation of operating the terminal 43 to read information on the flash memory from the flash memory information storage unit 40 will be described. When reading information about the flash memory from the flash memory information storage unit 40, the MPU 20 first asserts the address signal a 8 and the read signal r 8 to the address decoding unit 37. Upon receiving the assertion of the address signal a8 and the read signal r8, the address decoding unit 37 recognizes that it is a read instruction from the flash memory information storage unit 40.

そして、アドレスデコード部37は、記憶部インタフェース部38に対してアドレス信号a9、セレクト信号s9およびリード信号r9をアサートする。記憶部インタフェース部38は、アドレス信号a9、セレクト信号s9およびリード信号r9のアサートを受けて、フラッシュメモリ情報記憶部40に対してアドレス信号a2、セレクト信号s2およびリード信号r2をアサートする。それによって、フラッシュメモリ情報記憶部40からフラッシュメモリに関する情報が、データ信号線d2、データバスd7、データバスd8およびMPU20を介して端末43に送られる。   The address decoding unit 37 asserts the address signal a9, the select signal s9, and the read signal r9 to the storage unit interface unit 38. In response to the assertion of the address signal a9, the select signal s9, and the read signal r9, the storage unit interface unit 38 asserts the address signal a2, the select signal s2, and the read signal r2 to the flash memory information storage unit 40. Thereby, information about the flash memory is sent from the flash memory information storage unit 40 to the terminal 43 via the data signal line d2, the data bus d7, the data bus d8, and the MPU 20.

・情報処理装置の立ち上げ時のシーケンス
図7は、実施例2にかかる情報処理装置の立ち上げ時の処理手順を示すシーケンス図である。なお、図7に示すシーケンス図では、フラッシュメモリにおいて、FPGAのコンフィグデータを格納する領域をフラッシュメモリ(コンフィグ用)とし、イニシャルプログラムローダを格納する領域をフラッシュメモリ(IPL用)としている。
FIG. 7 is a sequence diagram illustrating a processing procedure when the information processing apparatus according to the second embodiment is started up. In the sequence diagram shown in FIG. 7, in the flash memory, the area for storing the FPGA configuration data is the flash memory (for configuration), and the area for storing the initial program loader is the flash memory (for IPL).

図7に示すように、情報処理装置の電源が投入されると(ステップS1)、まず、フラッシュメモリ制御用ハードウェアは、フラッシュメモリ情報記憶部から、搭載されているフラッシュメモリに関する情報を取得する(ステップS2)。そして、フラッシュメモリ制御用ハードウェアは、フラッシュメモリに関する情報を内部で保持する(ステップS3)。次いで、フラッシュメモリ制御用ハードウェアは、フラッシュメモリに関する情報に基づいて、フラッシュメモリ(コンフィグ用)に対応するリードモード復帰コマンドを発行する(ステップS4)。そして、フラッシュメモリ制御用ハードウェアは、フラッシュメモリ(コンフィグ用)からFPGAのコンフィグデータをローディングし、該コンフィグデータをFPGAに提供する(ステップS5)。それによって、FPGAの設定(コンフィグレーション)が行われる(ステップS6)。   As shown in FIG. 7, when the information processing apparatus is powered on (step S1), first, the flash memory control hardware acquires information about the installed flash memory from the flash memory information storage unit. (Step S2). Then, the flash memory control hardware internally holds information related to the flash memory (step S3). Next, the flash memory control hardware issues a read mode return command corresponding to the flash memory (for configuration) based on the information about the flash memory (step S4). Then, the flash memory control hardware loads the FPGA configuration data from the flash memory (for configuration) and provides the configuration data to the FPGA (step S5). Thereby, the setting (configuration) of the FPGA is performed (step S6).

次いで、MPUは、フラッシュメモリ制御用ハードウェアに対して、イニシャルプログラムローダのローディングを指示する(ステップS7)。フラッシュメモリ制御用ハードウェアは、フラッシュメモリに関する情報に基づいて、フラッシュメモリ(IPL用)に対応するリードモード復帰コマンドを発行する(ステップS8)。そして、フラッシュメモリ制御用ハードウェアは、フラッシュメモリ(IPL用)からイニシャルプログラムローダをローディングし、該イニシャルプログラムローダをMPUに提供する(ステップS9)。それによって、MPUにおいてブートアップ処理が行われ(ステップS10)、情報処理装置が運用状態へ遷移する(ステップS11)。   Next, the MPU instructs the flash memory control hardware to load the initial program loader (step S7). The flash memory control hardware issues a read mode return command corresponding to the flash memory (for IPL) based on the information about the flash memory (step S8). Then, the flash memory control hardware loads the initial program loader from the flash memory (for IPL) and provides the initial program loader to the MPU (step S9). Thereby, bootup processing is performed in the MPU (step S10), and the information processing apparatus transitions to the operation state (step S11).

・FPGAのコンフィグデータ更新時のシーケンス
図8は、実施例2にかかる情報処理装置のコンフィグデータ更新時の処理手順を示すシーケンス図である。なお、図8に示すシーケンス図では、フラッシュメモリにおいて、FPGAのコンフィグデータを格納する領域をフラッシュメモリ(コンフィグ用)とし、イニシャルプログラムローダを格納する領域をフラッシュメモリ(IPL用)としている。
FIG. 8 is a sequence diagram illustrating a processing procedure when updating the configuration data of the information processing apparatus according to the second embodiment. In the sequence diagram shown in FIG. 8, in the flash memory, an area for storing FPGA configuration data is a flash memory (for configuration), and an area for storing an initial program loader is a flash memory (for IPL).

図8に示すように、FPGAのコンフィグデータを更新する処理が開始されると、まず、ソフトウェアにより、フラッシュメモリ制御用ハードウェアに対してフラッシュメモリ(コンフィグ用)の消去が指示される(ステップS21)。フラッシュメモリ制御用ハードウェアは、内部に保持しているフラッシュメモリに関する情報に基づいて、フラッシュメモリ(コンフィグ用)に対応する消去コマンドを発行する(ステップS22)。それによって、フラッシュメモリ(コンフィグ用)においてFPGAのコンフィグデータが消去される(ステップS23)。該当するセクタの消去が完了すると、フラッシュメモリ(コンフィグ用)は、フラッシュメモリ制御用ハードウェアへ消去完了通知を返す(ステップS24)。フラッシュメモリ制御用ハードウェアは、ソフトウェアへ消去完了通知を返す(ステップS25)。   As shown in FIG. 8, when the process of updating the FPGA configuration data is started, first, the software instructs the flash memory control hardware to erase the flash memory (for configuration) (step S21). ). The flash memory control hardware issues an erase command corresponding to the flash memory (for configuration) based on the information about the flash memory held inside (step S22). Thereby, the FPGA configuration data is erased from the flash memory (for configuration) (step S23). When the erasure of the corresponding sector is completed, the flash memory (for configuration) returns an erasure completion notification to the flash memory control hardware (step S24). The flash memory control hardware returns an erasure completion notification to the software (step S25).

次いで、ソフトウェアは、外部記憶装置などの他の装置から新たなコンフィグデータをローディングする(ステップS26)。そして、ソフトウェアは、フラッシュメモリ制御用ハードウェアに対して、新たなコンフィグデータの書込み(更新)を指示する(ステップS27)。フラッシュメモリ制御用ハードウェアは、内部に保持しているフラッシュメモリに関する情報に基づいて、フラッシュメモリ(コンフィグ用)に対応する書込コマンドを発行し、フラッシュメモリ(コンフィグ用)に新たなコンフィグデータを転送する(ステップS28)。それによって、フラッシュメモリ(コンフィグ用)に新たなコンフィグデータが書き込まれ、コンフィグデータが更新される(ステップS29)。新たなコンフィグデータの書込みが完了すると、フラッシュメモリ(コンフィグ用)は、フラッシュメモリ制御用ハードウェアへ書込完了通知を返す(ステップS30)。フラッシュメモリ制御用ハードウェアは、ソフトウェアへ書込完了通知を返す(ステップS31)。   Next, the software loads new configuration data from another device such as an external storage device (step S26). Then, the software instructs the flash memory control hardware to write (update) new configuration data (step S27). The flash memory control hardware issues a write command corresponding to the flash memory (for configuration) based on the information about the flash memory held inside, and new configuration data is stored in the flash memory (for configuration). Transfer (step S28). Thereby, new configuration data is written to the flash memory (for configuration), and the configuration data is updated (step S29). When the writing of new configuration data is completed, the flash memory (for configuration) returns a write completion notification to the flash memory control hardware (step S30). The flash memory control hardware returns a write completion notification to the software (step S31).

次いで、ソフトウェアは、フラッシュメモリ制御用ハードウェアに対してFPGAの再コンフィグレーションを指示する(ステップS32)。フラッシュメモリ制御用ハードウェアは、フラッシュメモリに関する情報に基づいて、フラッシュメモリ(コンフィグ用)に対応するリードモード復帰コマンドを発行する(ステップS33)。そして、フラッシュメモリ制御用ハードウェアは、フラッシュメモリ(コンフィグ用)からFPGAのコンフィグデータをローディングし、該コンフィグデータをFPGAに提供する(ステップS34)。それによって、FPGAの再設定(再コンフィグレーション)が行われ(ステップS35)、情報処理装置が運用状態へ遷移する(ステップS36)。   Next, the software instructs the flash memory control hardware to reconfigure the FPGA (step S32). The flash memory control hardware issues a read mode return command corresponding to the flash memory (for configuration) based on the information about the flash memory (step S33). Then, the flash memory control hardware loads FPGA configuration data from the flash memory (for configuration), and provides the configuration data to the FPGA (step S34). Thereby, resetting (reconfiguration) of the FPGA is performed (step S35), and the information processing apparatus transitions to the operation state (step S36).

・初期ロード制御部およびフラッシュアクセス制御部の動作
図9〜図11は、実施例2にかかる情報処理装置の動作を示すフローチャートである。情報処理装置の電源が投入されると(ステップS41)、まず、情報処理装置は、初期ロード制御部により、搭載されているフラッシュメモリに関する情報をフラッシュメモリ情報記憶部から取得する(ステップS42)。次いで、情報処理装置は、初期ロード制御部により、搭載されているフラッシュメモリに関する情報に基づいてセクタ構成テーブルおよびコマンドテーブルを生成する(ステップS43、ステップS44)。セクタ構成テーブルの生成とコマンドテーブルの生成とは、いずれが先でもよい。ここまでの動作は、初期ロード制御部により制御される。これ以降の動作は、フラッシュアクセス制御部により制御される。
Operation of Initial Load Control Unit and Flash Access Control Unit FIGS. 9 to 11 are flowcharts illustrating the operation of the information processing apparatus according to the second embodiment. When the information processing apparatus is powered on (step S41), the information processing apparatus first obtains information about the installed flash memory from the flash memory information storage section by the initial load control section (step S42). Next, the information processing apparatus generates a sector configuration table and a command table based on information about the mounted flash memory by the initial load control unit (steps S43 and S44). Either the sector configuration table or the command table may be generated first. The operation so far is controlled by the initial load control unit. Subsequent operations are controlled by the flash access controller.

次いで、情報処理装置は、フラッシュアクセス制御部により、ソフトウェア(MPU)からの指示内容を解釈し、消去指示、書込指示または読出指示を受け付けるまで待機する(ステップS45、ステップS53、ステップS54)。消去指示を受け付けた場合(ステップS45:Yes)、情報処理装置は、フラッシュアクセス制御部により、コマンドテーブルから消去コマンドを取得し、フラッシュメモリへ消去コマンドの先頭のコマンドを発行する(ステップS46)。   Next, the information processing apparatus uses the flash access control unit to interpret the instruction content from the software (MPU), and waits until an erase instruction, a write instruction, or a read instruction is accepted (steps S45, S53, and S54). When the erasure instruction is accepted (step S45: Yes), the information processing apparatus acquires an erasure command from the command table by the flash access control unit, and issues the head command of the erasure command to the flash memory (step S46).

例えば、搭載されているフラッシュメモリがA社製のフラッシュメモリである場合(図5参照)、コマンドテーブルにおいて、消去コマンドの先頭のアドレスの領域には、AAAが格納されている。コマンドテーブルの次のアドレスの領域には、AAが格納されている。以後、コマンドテーブルのアドレスが一つ進むごとに、555、55、AAA、80、AAA、AA、555、55、SAおよび30が格納されている。従って、情報処理装置は、消去コマンドの最後のコマンドである30が発行されるまで(ステップS48:No)、コマンドテーブルのアドレスをインクリメントしながら(ステップS47)、該アドレスの領域に格納されているコマンドを発行する(ステップS46)。   For example, when the installed flash memory is a flash memory manufactured by Company A (see FIG. 5), AAA is stored in the area of the head address of the erase command in the command table. AA is stored in the area of the next address in the command table. Thereafter, 555, 55, AAA, 80, AAA, AA, 555, 55, SA, and 30 are stored each time the command table address advances by one. Therefore, the information processing apparatus increments the address of the command table (step S47) and stores it in the area of the address until 30 which is the last command of the erase command is issued (step S48: No). A command is issued (step S46).

消去コマンドの全てのコマンドの発行が済んだら(ステップS48:Yes)、情報処理装置は、フラッシュアクセス制御部により、フラッシュメモリ内のステータス情報を確認しながら(ステップS49)、消去中のセクタの消去が完了するのを待つ(ステップS50:No)。消去中のセクタの消去が完了したら(ステップS50:Yes)、情報処理装置は、消去指定範囲の全てのセクタの消去が完了するまで(ステップS52:No)、セクタ構成テーブルのアドレスをインクリメントしながら(ステップS51)、ステップS46以降の消去動作を繰り返す。セクタ構成テーブルの各アドレスの領域には、各セクタの容量が例えばHEX変換されたデータとして格納されている。消去指定範囲の全てのセクタの消去が完了したら(ステップS52:Yes)、処理を終了する。   When all the erase commands have been issued (step S48: Yes), the information processing apparatus confirms the status information in the flash memory by the flash access control unit (step S49), and erases the sector being erased. Is completed (step S50: No). When the erasure of the sector being erased is completed (step S50: Yes), the information processing apparatus increments the address of the sector configuration table until the erasure of all the sectors in the designated erase range is completed (step S52: No). (Step S51), the erase operation after Step S46 is repeated. In each address area of the sector configuration table, the capacity of each sector is stored, for example, as HEX converted data. When the erasure of all the sectors in the erasure designated range is completed (step S52: Yes), the process is terminated.

一方、書込指示を受け付けた場合(ステップS45:No、ステップS53:Yes)、図10に示すように、情報処理装置は、フラッシュアクセス制御部により、コマンドテーブルから書込コマンドを取得し、フラッシュメモリへ書込コマンドの先頭のコマンドを発行する(ステップS61)。   On the other hand, when the write instruction is accepted (step S45: No, step S53: Yes), as shown in FIG. 10, the information processing apparatus acquires a write command from the command table by the flash access control unit, The first command of the write command is issued to the memory (step S61).

例えば、搭載されているフラッシュメモリがA社製のフラッシュメモリである場合(図5参照)、コマンドテーブルにおいて、書込コマンドの先頭のアドレスの領域には、AAAが格納されている。コマンドテーブルの次のアドレスの領域には、AAが格納されている。以後、コマンドテーブルのアドレスが一つ進むごとに、555、55、AAA、AA、PA(プログラムアドレス)およびPD(プログラムデータ)が格納されている。従って、情報処理装置は、書込コマンドの最後のコマンドであるPD(プログラムデータ)が発行されるまで(ステップS63:No)、コマンドテーブルのアドレスをインクリメントしながら(ステップS62)、該アドレスの領域に格納されているコマンドを発行する(ステップS61)。   For example, when the installed flash memory is a flash memory manufactured by company A (see FIG. 5), AAA is stored in the area of the head address of the write command in the command table. AA is stored in the area of the next address in the command table. Thereafter, every time the address of the command table advances, 555, 55, AAA, AA, PA (program address) and PD (program data) are stored. Therefore, the information processing apparatus increments the address of the command table (step S62) until the PD (program data), which is the last command of the write command, is issued (step S63: No). The command stored in is issued (step S61).

書込コマンドの全てのコマンドの発行が済んだら(ステップS63:Yes)、情報処理装置は、フラッシュアクセス制御部により、フラッシュメモリにデータを書き込む(ステップS64)。そして、情報処理装置は、フラッシュアクセス制御部により、フラッシュメモリ内のステータス情報を確認しながら(ステップS65)、データの書込みが完了するのを待つ(ステップS66:No)。データの書込みが完了したら(ステップS66:Yes)、情報処理装置は、書込指定範囲の書込みが完了するまで(ステップS67:No)、ステップS64以降の書込動作を繰り返す。書込指定範囲の書込みが完了したら(ステップS67:Yes)、処理を終了する。   When all the commands of the write command have been issued (step S63: Yes), the information processing apparatus writes data to the flash memory by the flash access control unit (step S64). Then, the information processing apparatus waits for the completion of data writing (Step S66: No) while confirming the status information in the flash memory by the flash access control unit (Step S65). When the data writing is completed (step S66: Yes), the information processing apparatus repeats the writing operation after step S64 until the writing of the writing designated range is completed (step S67: No). When the writing of the writing designated range is completed (step S67: Yes), the process is terminated.

一方、読出指示を受け付けた場合(ステップS45:No、ステップS53:No、ステップS54:Yes)、図11に示すように、情報処理装置は、フラッシュアクセス制御部により、コマンドテーブルから読出コマンドを取得し、フラッシュメモリへ読出コマンドの先頭のコマンドを発行する(ステップS71)。   On the other hand, when a read instruction is accepted (step S45: No, step S53: No, step S54: Yes), the information processing apparatus acquires a read command from the command table by the flash access control unit as shown in FIG. Then, the head command of the read command is issued to the flash memory (step S71).

例えば、搭載されているフラッシュメモリがA社製のフラッシュメモリである場合(図5参照)、コマンドテーブルにおいて、読出コマンドの先頭のアドレスの領域には、任意のデータが格納されている。コマンドテーブルの次のアドレスの領域には、F0が格納されている。従って、情報処理装置は、読出コマンドの最後のコマンドであるF0が発行されるまで(ステップS73:No)、コマンドテーブルのアドレスをインクリメントしながら(ステップS72)、該アドレスの領域に格納されているコマンドを発行する(ステップS71)。   For example, when the installed flash memory is a flash memory manufactured by Company A (see FIG. 5), arbitrary data is stored in the area of the head address of the read command in the command table. F0 is stored in the area of the next address in the command table. Accordingly, the information processing apparatus increments the address of the command table (step S72) and stores it in the address area until F0, which is the last command of the read command, is issued (step S73: No). A command is issued (step S71).

読出コマンドの全てのコマンドの発行が済んだら(ステップS73:Yes)、情報処理装置は、フラッシュアクセス制御部により、フラッシュメモリの指定された先頭アドレスからデータを読み出す(ステップS74)。そして、情報処理装置は、読出指定範囲の読出しが完了するまで(ステップS75:No)、データの読出動作を繰り返す。読出指定範囲の読出しが完了したら(ステップS75:Yes)、処理を終了する。   When all of the read commands are issued (step S73: Yes), the information processing apparatus reads data from the designated start address of the flash memory by the flash access control unit (step S74). Then, the information processing apparatus repeats the data reading operation until the reading designated range is completely read (step S75: No). When the reading of the reading designated range is completed (step S75: Yes), the process ends.

実施例2によれば、実施例1と同様の効果が得られる。また、フラッシュメモリを制御するソフトウェアの変更に伴う開発費や試験費やフィールドでのソフトウェアの更新費用を削減することができる。また、ピンコンパチビリティのフラッシュメモリであれば、如何なるタイプのフラッシュメモリでもボードに搭載することができるので、特定のメーカに限らず、種々のメーカからフラッシュメモリを調達することができる。また、従来、工場出荷後の故障などに備えて工場にフラッシュメモリを備蓄していたが、種々のメーカからフラッシュメモリを調達することができるので、フラッシュメモリを備蓄せずに済む。従って、フラッシュメモリを備蓄しておくための費用や作業工数や倉庫などのスペースが不要となり、コストを削減することができる。なお、プログラム可能なデバイスのコンフィグデータを格納するフラッシュメモリとイニシャルプログラムローダを格納するフラッシュメモリとを別々に設けてもよい。   According to the second embodiment, the same effect as the first embodiment can be obtained. In addition, it is possible to reduce development costs, test costs, and software update costs in the field associated with changes to the software that controls the flash memory. In addition, any type of flash memory can be mounted on the board as long as it is a pin-compatible flash memory. Therefore, the flash memory can be procured not only from a specific manufacturer but also from various manufacturers. Conventionally, the flash memory is stocked in the factory in preparation for a failure after shipment from the factory. However, since the flash memory can be procured from various manufacturers, it is not necessary to stock the flash memory. Accordingly, the cost for storing the flash memory, the number of work steps, the space for the warehouse, etc. are not required, and the cost can be reduced. Note that a flash memory for storing programmable device configuration data and a flash memory for storing an initial program loader may be provided separately.

上述した実施例1、2に関し、さらに以下の付記を開示する。   The following additional notes are disclosed with respect to the first and second embodiments.

(付記1)フラッシュメモリを搭載する情報処理装置において、搭載されているフラッシュメモリを含む複数のフラッシュメモリのそれぞれについて、フラッシュメモリに関する情報を格納する記憶部と、該記憶部に格納されている情報のうちの該搭載されているフラッシュメモリに関する情報に基づいて、該搭載されているフラッシュメモリに対するアクセスの制御を行う制御部と、を備えることを特徴とする情報処理装置。 (Supplementary Note 1) In an information processing apparatus equipped with a flash memory, for each of a plurality of flash memories including the installed flash memory, a storage unit for storing information related to the flash memory, and information stored in the storage unit An information processing apparatus comprising: a control unit configured to control access to the mounted flash memory based on information on the mounted flash memory.

(付記2)前記フラッシュメモリに関する情報は、フラッシュメモリのセクタに関する情報およびフラッシュメモリを制御するコマンドに関する情報を含むことを特徴とする付記1に記載の情報処理装置。 (Supplementary note 2) The information processing apparatus according to supplementary note 1, wherein the information relating to the flash memory includes information relating to a sector of the flash memory and information relating to a command for controlling the flash memory.

(付記3)前記制御部は、前記フラッシュメモリのセクタに関する情報および前記フラッシュメモリを制御するコマンドに関する情報に基づいて、前記搭載されているフラッシュメモリに対するデータの消去動作、書込み動作および読出し動作を制御することを特徴とする付記2に記載の情報処理装置。 (Supplementary Note 3) The control unit controls data erasing operation, writing operation, and reading operation for the mounted flash memory based on information on the sector of the flash memory and information on a command for controlling the flash memory. The information processing apparatus according to attachment 2, wherein:

(付記4)フラッシュメモリへのアクセスを制御する情報を格納する格納部と、装置の起動時に、前記搭載されているフラッシュメモリに関する情報を前記記憶部から取得し、該取得した情報に含まれるフラッシュメモリのセクタに関する情報およびフラッシュメモリを制御するコマンドに関する情報を該格納部に格納する取得部と、を備えることを特徴とする付記3に記載の情報処理装置。 (Supplementary Note 4) A storage unit for storing information for controlling access to the flash memory, and information related to the mounted flash memory is acquired from the storage unit when the apparatus is activated, and the flash included in the acquired information The information processing apparatus according to appendix 3, further comprising: an acquisition unit that stores information on a sector of the memory and information on a command for controlling the flash memory in the storage unit.

(付記5)前記記憶部は、前記フラッシュメモリに関する情報を格納する書き換え可能な不揮発性メモリを備えることを特徴とする付記4に記載の情報処理装置。 (Additional remark 5) The said memory | storage part is provided with the rewritable non-volatile memory which stores the information regarding the said flash memory, The information processing apparatus of Additional remark 4 characterized by the above-mentioned.

(付記6)前記フラッシュメモリは、プログラム可能なデバイスの論理仕様を定義する情報を格納していることを特徴とする付記1〜5のいずれか一つに記載の情報処理装置。 (Supplementary note 6) The information processing apparatus according to any one of supplementary notes 1 to 5, wherein the flash memory stores information defining a logical specification of a programmable device.

(付記7)前記フラッシュメモリは、装置の起動時に実行されるイニシャルプログラムローダを格納していることを特徴とする付記1〜6のいずれか一つに記載の情報処理装置。 (Supplementary note 7) The information processing apparatus according to any one of supplementary notes 1 to 6, wherein the flash memory stores an initial program loader that is executed when the apparatus is activated.

1,11 情報処理装置
2,12 フラッシュメモリ
3,13,40 記憶部
4,14,32,33 制御部
5,6,15,16 フラッシュメモリに関する情報
17,34 取得部
18,35,36 格納部
19,31 プログラム可能なデバイス
21 プログラム可能なデバイスの論理仕様を定義する情報
22 イニシャルプログラムローダ
23 フラッシュメモリのセクタに関する情報
24 フラッシュメモリを制御するコマンドに関する情報
DESCRIPTION OF SYMBOLS 1,11 Information processing apparatus 2,12 Flash memory 3,13,40 Storage part 4,14,32,33 Control part 5,6,15,16 Information about flash memory 17,34 Acquisition part 18,35,36 Storage part 19, 31 Programmable devices 21 Information defining logical specifications of programmable devices 22 Initial program loader 23 Information on sectors of flash memory 24 Information on commands for controlling flash memory

Claims (5)

フラッシュメモリを搭載する情報処理装置において、
搭載されているフラッシュメモリを含む複数のフラッシュメモリのそれぞれについて、フラッシュメモリに関する情報を格納する記憶部と、
該記憶部に格納されている情報のうちの該搭載されているフラッシュメモリに関する情報に基づいて、該搭載されているフラッシュメモリに対するアクセスの制御を行う制御部と、
を備えることを特徴とする情報処理装置。
In information processing devices equipped with flash memory,
For each of a plurality of flash memories including a mounted flash memory, a storage unit that stores information about the flash memory;
A control unit that controls access to the mounted flash memory based on information about the mounted flash memory of the information stored in the storage unit;
An information processing apparatus comprising:
前記フラッシュメモリに関する情報は、フラッシュメモリのセクタに関する情報およびフラッシュメモリを制御するコマンドに関する情報を含むことを特徴とする請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the information about the flash memory includes information about a sector of the flash memory and information about a command for controlling the flash memory. 前記制御部は、前記フラッシュメモリのセクタに関する情報および前記フラッシュメモリを制御するコマンドに関する情報に基づいて、前記搭載されているフラッシュメモリに対するデータの消去動作、書込み動作および読出し動作を制御することを特徴とする請求項2に記載の情報処理装置。 The control unit controls an erasing operation, a writing operation, and a reading operation of data with respect to the mounted flash memory based on information on a sector of the flash memory and information on a command for controlling the flash memory. The information processing apparatus according to claim 2. フラッシュメモリへのアクセスを制御する情報を格納する格納部と、
装置の起動時に、前記搭載されているフラッシュメモリに関する情報を前記記憶部から取得し、該取得した情報に含まれるフラッシュメモリのセクタに関する情報およびフラッシュメモリを制御するコマンドに関する情報を該格納部に格納する取得部と、
を備えることを特徴とする請求項3に記載の情報処理装置。
A storage unit for storing information for controlling access to the flash memory;
When the apparatus is started, information on the installed flash memory is acquired from the storage unit, and information on a sector of the flash memory and information on a command for controlling the flash memory included in the acquired information are stored in the storage unit An acquisition unit to
The information processing apparatus according to claim 3, further comprising:
前記記憶部は、前記フラッシュメモリに関する情報を格納する書き換え可能な不揮発性メモリを備えることを特徴とする請求項4に記載の情報処理装置。   The information processing apparatus according to claim 4, wherein the storage unit includes a rewritable nonvolatile memory that stores information about the flash memory.
JP2009265018A 2009-11-20 2009-11-20 Information processor Withdrawn JP2011108161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009265018A JP2011108161A (en) 2009-11-20 2009-11-20 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009265018A JP2011108161A (en) 2009-11-20 2009-11-20 Information processor

Publications (1)

Publication Number Publication Date
JP2011108161A true JP2011108161A (en) 2011-06-02

Family

ID=44231523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009265018A Withdrawn JP2011108161A (en) 2009-11-20 2009-11-20 Information processor

Country Status (1)

Country Link
JP (1) JP2011108161A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2013128648A1 (en) * 2012-03-02 2015-07-30 三菱電機株式会社 Information processing apparatus, electronic control unit, information processing method, and program
CN106029307A (en) * 2014-02-28 2016-10-12 奥林巴斯株式会社 Calibration method for manipulator, manipulator, and manipulator system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2013128648A1 (en) * 2012-03-02 2015-07-30 三菱電機株式会社 Information processing apparatus, electronic control unit, information processing method, and program
US9223559B2 (en) 2012-03-02 2015-12-29 Mitsubishi Electric Corporation Information processing apparatus, electronic control unit, information processing method, and program
CN106029307A (en) * 2014-02-28 2016-10-12 奥林巴斯株式会社 Calibration method for manipulator, manipulator, and manipulator system

Similar Documents

Publication Publication Date Title
JP5173818B2 (en) Initializing flash storage via embedded controller
US6601132B2 (en) Nonvolatile memory and method of writing data thereto
JP4828816B2 (en) Memory card, semiconductor device, and memory card control method
JP2001209543A (en) Program rewriting method for flash microcomputer
JP2007272635A (en) Memory system and controller
US20050144366A1 (en) Data management apparatus and method, non-volatile memory, storage device having the non-volatile memory and data processing system
WO2003067605A1 (en) Non-volatile storage device and control method thereof
JPWO2007000862A1 (en) MEMORY CONTROLLER, NONVOLATILE MEMORY DEVICE, NONVOLATILE MEMORY SYSTEM, AND DATA WRITE METHOD
JPH10161988A (en) Microcomputer having flash eeprom built in
JP2008533574A (en) Method and apparatus for rewriting semiconductor memory means erasable in sector units into first sector
JP2000222292A (en) Data managing method utilizing flash memory
JP2006085342A (en) Memory controller, memory control method, and program
JP2006285587A (en) Information processor, and program preparing method
JP2017097576A (en) Rewrite system
JP2011108161A (en) Information processor
JP4826232B2 (en) Information processing apparatus and boot program rewriting method
JP2007133512A (en) Information processor with flash rom, and data erasing method for flash rom
WO2012077604A1 (en) Processing device, program update method, and program
JP4550479B2 (en) Electronic control device and data adjustment method
JPH09231065A (en) Program changeable electronic controller
JP2007066326A (en) Storage device, data processor and data processing method
JP2005107608A (en) Electronic device, nonvolatile memory, and method for rewriting data of nonvolatile memory
JP2004152331A (en) Storage device
JP5981477B2 (en) Flash memory control device, flash memory built-in device, flash memory control method, and program therefor
JP2000259448A (en) Program debugging device

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