JP2011232804A - Bios system and pac with the same bios system - Google Patents

Bios system and pac with the same bios system Download PDF

Info

Publication number
JP2011232804A
JP2011232804A JP2010099836A JP2010099836A JP2011232804A JP 2011232804 A JP2011232804 A JP 2011232804A JP 2010099836 A JP2010099836 A JP 2010099836A JP 2010099836 A JP2010099836 A JP 2010099836A JP 2011232804 A JP2011232804 A JP 2011232804A
Authority
JP
Japan
Prior art keywords
bios
bios data
data
storage area
data storage
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
JP2010099836A
Other languages
Japanese (ja)
Inventor
Toshihiro Kitamura
寿博 北村
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.)
Panasonic Industrial Devices SUNX Co Ltd
Original Assignee
Panasonic Electric Works SUNX 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 Panasonic Electric Works SUNX Co Ltd filed Critical Panasonic Electric Works SUNX Co Ltd
Priority to JP2010099836A priority Critical patent/JP2011232804A/en
Publication of JP2011232804A publication Critical patent/JP2011232804A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To suppress manufacturing costs, and to improve a processing speed in a BIOS system and a PAC equipped with this BIOS system.SOLUTION: A PAC is provided with a BIOS system configured of a CPU, BIOS data storage memory and a memory access control circuit part or the like. This memory has a first storage area and a second storage area for storing BIOS data. Each storage area is configured to store a completion flag for determining whether or not the BIOS data have been normally written. The memory access control circuit part is configured to, when receiving the reading request of the BIOS data from the CPU (S31: YES), read each completion flag (S32), and to, when the completion flag of the first storage area is "0"(S33: YES), read the BIOS data from the first storage area, and to transfer it (S34), and to, when the completion flag of the second storage area is "0"(S35: YES), read the BIOS data from the second storage area, and to transfer it (S36).

Description

本発明は、BIOS(Basic Input/Output System)データ
を書き換え可能なBIOSシステム、及びこのBIOSシステムを備えるPAC(Pro
grammable Automation Controller)に関する。
The present invention relates to a BIOS system capable of rewriting BIOS (Basic Input / Output System) data, and a PAC (Pro) equipped with this BIOS system.
Grammable Automation Controller).

従来から、PAC等の起動時に使用されるBIOSデータの不具合の解消や更新等を行
うために、BIOSデータを書き換えることがある。BIOSデータの書き換えには、P
AC等の製造メーカが提供するBIOSデータ書換え用ソフトや、OS(Operati
ng System)上で動作するBIOSデータ書換え用ソフト等を用いるのが一般的
である。ところで、データの書き換え中に、機器の電源オフ等によりBIOSデータの書
き換えに失敗することがある。その場合、BIOSデータはその性質上、PAC等の起動
に欠くことのできないデータであるため、PAC等を二度と起動できないことがある。
Conventionally, BIOS data is sometimes rewritten in order to eliminate or update a defect in BIOS data used when PAC or the like is activated. To rewrite BIOS data, use P
BIOS data rewriting software provided by manufacturers such as AC, OS (Operati
It is common to use BIOS data rewriting software or the like that operates on (ng System). By the way, during rewriting of data, rewriting of BIOS data may fail due to power-off of the device. In that case, since the BIOS data is data indispensable for starting up the PAC or the like due to its nature, the PAC or the like may not be started up again.

これに対して、BIOSデータを格納するためのメモリを2個使用し、BIOSデータ
の書き換え時には、一方のメモリ内のBIOSデータのみを書き換えるBIOS書換え方
法が知られている。この書換え方法では、BIOSデータの書き換えに失敗した場合、B
IOSデータの書き換えを行わなかったもう一方のメモリ内のBIOSデータを用いてP
ACを起動して、再度、BIOSデータの書き換えを行う。しかしながら、この方法では
、BIOSデータを格納するためのメモリを2個使用する必要があるため、PACの製造
コストを抑制できないという新たな問題が生じる。
On the other hand, there is known a BIOS rewriting method that uses two memories for storing BIOS data and rewrites only the BIOS data in one memory when rewriting the BIOS data. In this rewriting method, when rewriting of BIOS data fails, B
P using the BIOS data in the other memory where the IOS data was not rewritten
Start AC and rewrite BIOS data again. However, in this method, since it is necessary to use two memories for storing the BIOS data, there arises a new problem that the manufacturing cost of the PAC cannot be suppressed.

これに対して、特許文献1には、BIOSデータを格納する不揮発メモリ素子における
同一容量の上位・下位部分の接続先を切り換えるアドレス切換回路を設け、BIOSデー
タを、装置の起動に最小限必要な基本部分と拡張部分とに分割したBIOSデータ書換制
御回路が開示されている。この書換制御回路では、基本部分の書き換えの際には、古い拡
張部分に新しい基本部分を書き込み、書き込み完了後に不揮発メモリ素子の上位・下位部
分を回路的に交換した後、古い基本部分を格納した不揮発メモリに新しい拡張部分を書き
込む。この書換制御回路では、BIOSデータを格納するためのメモリを1個しか使用し
ないため、製造コストを抑制することができる。しかしながら、このBIOSデータ書換
制御回路では、メモリのアドレスの上位部分・下位部分の切り換えを行うためのアドレス
切換回路が必要になるため、製造コストを抑制することができない。
On the other hand, Patent Document 1 is provided with an address switching circuit for switching the connection destinations of the upper and lower parts of the same capacity in the nonvolatile memory element for storing the BIOS data, and the BIOS data is the minimum necessary for starting the apparatus. A BIOS data rewrite control circuit divided into a basic part and an extended part is disclosed. In this rewrite control circuit, when the basic part is rewritten, the new basic part is written in the old extended part, and after the writing is completed, the upper and lower parts of the nonvolatile memory element are replaced in a circuit, and the old basic part is stored. Write a new extension to non-volatile memory. Since this rewrite control circuit uses only one memory for storing the BIOS data, the manufacturing cost can be reduced. However, this BIOS data rewrite control circuit requires an address switching circuit for switching between the upper part and the lower part of the address of the memory, so that the manufacturing cost cannot be suppressed.

また、特許文献2には、BIOSデータサイズの2倍以上の記憶領域を有するメモリを
用いて、メモリの2分割された領域A、BについてそれぞれがBIOSデータを保有する
情報処理装置が知られている。この装置は、システム側からメモリの半分の領域のみがア
クセス可能になると共に、両方の領域が選択的にアクセス可能になるようにするためのア
ドレス切換回路を有している。
Further, Patent Document 2 discloses an information processing apparatus that uses a memory having a storage area that is twice or more the BIOS data size, and each holds BIOS data for the two divided areas A and B of the memory. Yes. This apparatus has an address switching circuit for making only half the area of the memory accessible from the system side and making both areas selectively accessible.

しかしながら、上記情報処理装置においても、アドレス切換回路が必要となるため、製
造コストを抑制できない。また、この装置のBIOSデータ書換方法では、メモリ内の分
割された領域の一方からBIOSデータを読み込んだときに、チェックサムを計算し、そ
の結果、不正なBIOSデータであるか否かを判断する。すなわち、不正なBIOSデー
タを読み込んだ場合であっても、チェックサムを計算して不正か否かを判断しなければな
らないため、BIOSデータの起動処理に時間がかかり、処理を迅速に行えないという問
題がある。
However, the information processing apparatus also requires an address switching circuit, so that the manufacturing cost cannot be suppressed. In the BIOS data rewriting method of this apparatus, when the BIOS data is read from one of the divided areas in the memory, a checksum is calculated, and as a result, it is determined whether the BIOS data is invalid. . That is, even when illegal BIOS data is read, it is necessary to calculate the checksum to determine whether or not it is illegal. Therefore, it takes time to start the BIOS data, and the process cannot be performed quickly. There's a problem.

特開平8−69376号公報JP-A-8-69376 特開2000−148467号公報JP 2000-148467 A

本発明は、上述した問題点を解決するためになされたものであり、製造コストを抑制で
きると共に、処理速度を向上できるBIOSシステム、及びこのBIOSシステムを備え
るPACを提供することを目的とする。
The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a BIOS system capable of suppressing the manufacturing cost and improving the processing speed, and a PAC including the BIOS system.

上記目的を達成するために請求項1の発明は、PAC(Programmable A
utomation Controller)に用いるBIOS(Basic Inpu
t/Output System)データを格納可能な複数のBIOSデータ格納領域を
有するメモリと、前記複数のBIOSデータ格納領域のそれぞれに対してデータの読み書
きを行うデータ読み書き手段とを備えるBIOSシステムにおいて、前記メモリは、前記
複数のBIOSデータ格納領域のそれぞれにBIOSデータが正常に書き込まれたか否か
を判断するための完了フラグを記憶し、前記データ読み書き手段は、前記複数のBIOS
データ格納領域のいずれかにBIOSデータを書き込むときに、このBIOSデータの書
き込みが正常に完了した場合、該BIOSデータを書き込んだBIOSデータ格納領域に
対応した完了フラグを書込み完了状態に書き換えると共に、該BIOSデータを書き込ん
でいないBIOSデータ格納領域に対応した完了フラグを書込み未完了状態に書き換え、
前記複数のBIOSデータ格納領域からBIOSデータを読み込むときに、該複数のBI
OSデータ格納領域のうち、前記完了フラグが書込み完了状態であるBIOSデータ格納
領域に格納されているBIOSデータを読み込むものである。
In order to achieve the above object, the invention of claim 1 is a PAC (Programmable A).
BIOS (Basic Inpu) used for the automation controller
t / Output System) A BIOS system comprising a memory having a plurality of BIOS data storage areas capable of storing data, and a data read / write means for reading / writing data from / to each of the plurality of BIOS data storage areas. Stores a completion flag for determining whether or not the BIOS data has been normally written in each of the plurality of BIOS data storage areas, and the data read / write means has the plurality of BIOS data
When writing the BIOS data to any of the data storage areas, if the writing of the BIOS data is normally completed, the completion flag corresponding to the BIOS data storage area in which the BIOS data is written is rewritten to the write completion state, and Rewrite the completion flag corresponding to the BIOS data storage area in which no BIOS data has been written into the incomplete write state,
When reading BIOS data from the plurality of BIOS data storage areas, the plurality of BI data
Of the OS data storage area, the BIOS data stored in the BIOS data storage area in which the completion flag is in the write completion state is read.

請求項2の発明は、請求項1に記載のBIOSシステムを備えるPACである。   A second aspect of the present invention is a PAC comprising the BIOS system according to the first aspect.

本発明によれば、BIOSデータを読み込むときに、完了フラグが書込み完了状態であ
るBIOSデータ格納領域に格納されているBIOSデータを読み込むので、チェックサ
ム等の計算を行うことなしに、書き込みが正常に完了したBIOSデータを読み込むこと
ができる。従って、正常なBIOSデータを迅速に読み込むことができるため、処理速度
を向上させることができる。また、BIOSデータを格納するメモリを1個だけ使用する
ため、メモリを2個以上使用する場合と比較して、PACの製造コストを抑制できる。ま
た、メモリ内のBIOSデータ格納領域にアクセスする際に、従来のようなアドレス切換
回路を必要としないため、PACの製造コストを抑制できる。
According to the present invention, when the BIOS data is read, the BIOS data stored in the BIOS data storage area whose completion flag is in the write completion state is read. Therefore, the writing is normal without performing the checksum calculation. The completed BIOS data can be read. Therefore, since normal BIOS data can be read quickly, the processing speed can be improved. Further, since only one memory for storing the BIOS data is used, the manufacturing cost of the PAC can be suppressed as compared with the case where two or more memories are used. Further, when accessing the BIOS data storage area in the memory, the conventional address switching circuit is not required, so that the manufacturing cost of the PAC can be suppressed.

本発明の一実施形態に係るBIOSシステムを備えるPACの概略構成を示すブロック図。The block diagram which shows schematic structure of PAC provided with the BIOS system which concerns on one Embodiment of this invention. 上記BIOSシステムのBIOSデータ格納用メモリの構成を示す説明図。Explanatory drawing which shows the structure of the BIOS data storage memory of the said BIOS system. 上記PACにおけるBIOSデータ書込み処理の手順を示すフローチャート。The flowchart which shows the procedure of the BIOS data writing process in the said PAC. 上記BIOSデータ書込み処理における第1格納エリア書込み処理の手順を示すフローチャート。The flowchart which shows the procedure of the 1st storage area write process in the said BIOS data write process. 上記BIOSデータ書込み処理における第2格納エリア書込み処理の手順を示すフローチャート。The flowchart which shows the procedure of the 2nd storage area write process in the said BIOS data write process. 上記PACにおけるBIOSデータ読込み処理の手順を示すフローチャート。The flowchart which shows the procedure of the BIOS data reading process in the said PAC.

以下、本発明の一実施形態に係るBIOS(Basic Input/Output
System)システム、及びこのBIOSシステムを備えるPAC(Programm
able Automation Controller)について、図1及び図2を参
照して説明する。図1は、BIOSシステム1aを備えるPAC1の概略構成を示す。図
2は、BIOSデータ格納用メモリ16内の記憶領域の概略構成を示す。
Hereinafter, a BIOS (Basic Input / Output) according to an embodiment of the present invention will be described.
System) system and PAC (Programm) equipped with this BIOS system
(bable Automation Controller) will be described with reference to FIGS. FIG. 1 shows a schematic configuration of a PAC 1 including a BIOS system 1a. FIG. 2 shows a schematic configuration of a storage area in the BIOS data storage memory 16.

PAC1は、中央処理装置(以下、CPUという)11と、RAM(Random A
ccess Memory)12と、ユーザによって操作されるキーボード13と、映像
やメッセージを表示する表示デバイス14とを備える。また、PAC1は、各種データを
記録するためのハードディスクドライブ(以下、HDDという)15と、BIOSデータ
格納用メモリ(メモリ)16と、BIOSデータ格納用メモリアクセス制御回路部(デー
タ読み書き手段)17と、システムバス18とをさらに備える。
The PAC 1 includes a central processing unit (hereinafter referred to as a CPU) 11 and a RAM (Random A).
(access memory) 12, a keyboard 13 operated by the user, and a display device 14 for displaying video and messages. The PAC 1 includes a hard disk drive (hereinafter referred to as HDD) 15 for recording various data, a BIOS data storage memory (memory) 16, and a BIOS data storage memory access control circuit unit (data read / write means) 17. And a system bus 18.

CPU11、RAM12、キーボード13、表示デバイス14、HDD15、及びBI
OSデータ格納用メモリアクセス制御回路部17は、システムバス18を介して接続され
ている。BIOSシステム1aは、CPU11と、BIOSデータ格納用メモリ16と、
BIOSデータ格納用メモリアクセス制御回路部17等から構成される。HDD15には
、OS(Operating System)等のプログラムが記録されている。
CPU 11, RAM 12, keyboard 13, display device 14, HDD 15, and BI
The OS data storage memory access control circuit unit 17 is connected via a system bus 18. The BIOS system 1a includes a CPU 11, a BIOS data storage memory 16,
It is composed of a BIOS data storage memory access control circuit unit 17 and the like. The HDD 15 stores a program such as an OS (Operating System).

BIOSデータ格納用メモリ16は、データを書き換え可能なフラッシュメモリである
。BIOSデータ格納用メモリ16は、図2に示すように、BIOSデータ22を格納可
能な第1格納エリア(BIOSデータ格納領域)16aと、BIOSデータ32を格納可
能な第2格納エリア(BIOSデータ格納領域)16bとを有する。第1格納エリア16
aには、BIOSデータ22が正常に書き込まれたか否かを判断するための完了フラグ2
1がさらに格納される。第2格納エリア16bには、BIOSデータ32が正常に書き込
まれたか否かを判断するための完了フラグ31がさらに格納される。
The BIOS data storage memory 16 is a flash memory that can rewrite data. As shown in FIG. 2, the BIOS data storage memory 16 includes a first storage area (BIOS data storage area) 16a capable of storing the BIOS data 22 and a second storage area (BIOS data storage) capable of storing the BIOS data 32. Region) 16b. First storage area 16
In a, a completion flag 2 for determining whether or not the BIOS data 22 has been normally written.
1 is further stored. The second storage area 16b further stores a completion flag 31 for determining whether or not the BIOS data 32 has been normally written.

BIOSデータ22、32は、書き換え可能なデータである。BIOSデータ22、3
2は、PAC1の起動時に、BIOSデータ格納用メモリアクセス制御回路部17によっ
て読み込まれ、RAM12上に展開された後、CPU11によって実行される。これによ
り、BIOSデータ22、32は、OSへの周辺機器(キーボード13、表示デバイス1
4、及びHDD15等)に対する入出力手段の提供等のPAC1のシステムに固有の機能
を提供する。
The BIOS data 22 and 32 are rewritable data. BIOS data 22, 3
2 is read by the BIOS data storage memory access control circuit unit 17 when the PAC 1 is activated, developed on the RAM 12, and then executed by the CPU 11. Thereby, the BIOS data 22 and 32 are stored in the peripheral devices (keyboard 13 and display device 1 to the OS).
4 and the HDD 15 etc.) and the like, the functions unique to the PAC1 system are provided.

完了フラグ21、及び完了フラグ31には、「0」又は「1」のいずれかの値が格納さ
れる。例えば、BIOSデータ22、32の書込みが正常に完了した状態(以下、「書込
み完了状態」という)の場合、完了フラグ21、31には「0」の値が格納される。一方
、BIOSデータ22、32の書込みが正常に完了していない状態(以下、「書込み未完
了状態」という)の場合、「1」の値が格納される。
The completion flag 21 and the completion flag 31 store either “0” or “1”. For example, when the writing of the BIOS data 22 and 32 is normally completed (hereinafter referred to as “write completion state”), the completion flags 21 and 31 store a value of “0”. On the other hand, when the writing of the BIOS data 22 and 32 is not normally completed (hereinafter referred to as “writing incomplete state”), the value “1” is stored.

BIOSデータ格納用メモリアクセス制御回路部17は、BIOSデータ格納用メモリ
16の第1格納エリア16a、及び第2格納エリア16bのそれぞれに対して、データの
読み書きを行う。具体的には、BIOSデータ格納用メモリアクセス制御回路部17は、
CPU11からのBIOSデータの書込み要求に応じて、完了フラグ21、31の内容に
基づいて、BIOSデータ22、32の書込み処理(BIOSデータ書込み処理)を行う
。また、BIOSデータ格納用メモリアクセス制御回路部17は、CPU11からのBI
OSデータの読込み要求に応じて、完了フラグ21、31の内容に基づいて、BIOSデ
ータ22、32を読込む処理(BIOSデータ読込み処理)を行う。
The BIOS data storage memory access control circuit unit 17 reads / writes data from / to each of the first storage area 16a and the second storage area 16b of the BIOS data storage memory 16. Specifically, the BIOS data storage memory access control circuit unit 17
In response to the BIOS data write request from the CPU 11, the BIOS data 22, 32 is written based on the contents of the completion flags 21, 31 (BIOS data write processing). The BIOS data storage memory access control circuit unit 17 receives the BI from the CPU 11.
In response to the OS data read request, a process of reading the BIOS data 22 and 32 (a BIOS data read process) is performed based on the contents of the completion flags 21 and 31.

次に、上記BIOSデータ書込み処理について、図3に示すフローチャートを参照して
説明する。まず、BIOSデータ格納用メモリアクセス制御回路部17は、CPU11か
らBIOSデータの書込み要求が有ると(S1でYES)、第1格納エリア16aの完了
フラグ21と、第2格納エリア16bの完了フラグ31とを読込む(S2)。
Next, the BIOS data writing process will be described with reference to the flowchart shown in FIG. First, when there is a BIOS data write request from the CPU 11 (YES in S1), the BIOS data storage memory access control circuit unit 17 completes the completion flag 21 in the first storage area 16a and the completion flag 31 in the second storage area 16b. Are read (S2).

そして、完了フラグ21が「1」である場合(S3でYES)、すなわち、BIOSデ
ータ22が「書込み未完了状態」である場合、BIOSデータ格納用メモリアクセス制御
回路部17は、第1格納エリア書込み処理(S4)を行う。
When the completion flag 21 is “1” (YES in S3), that is, when the BIOS data 22 is “incomplete write state”, the BIOS data storage memory access control circuit unit 17 stores the first storage area. Write processing (S4) is performed.

一方、第1格納エリア16aの完了フラグ21が「1」ではなく(S3でNO)、第2
格納エリア16bの完了フラグ31が「1」である場合(S5でYES)、すなわち、B
IOSデータ32が「書込み未完了状態」である場合、BIOSデータ格納用メモリアク
セス制御回路部17は、第2格納エリア書込み処理(S6)を行う。
On the other hand, the completion flag 21 of the first storage area 16a is not “1” (NO in S3), the second
When the completion flag 31 of the storage area 16b is “1” (YES in S5), that is, B
When the IOS data 32 is in the “write incomplete state”, the BIOS data storage memory access control circuit unit 17 performs the second storage area write process (S6).

一方、第2格納エリア16bの完了フラグ31が「1」ではなく(S5でNO)、BI
OSデータ格納用メモリアクセス制御回路部17は、上記S4と同様の処理である第1格
納エリア書込み処理(S7)を行う。
On the other hand, the completion flag 31 of the second storage area 16b is not “1” (NO in S5), and BI
The OS data storage memory access control circuit unit 17 performs the first storage area write process (S7), which is the same process as in S4.

次に、上記S4及びS7の第1格納エリア書込み処理について、図4に示すフローチャ
ートを参照して説明する。まず、BIOSデータ格納用メモリアクセス制御回路部17は
、第1格納エリア16aのBIOSデータ22を消去し(S11)、第1格納エリア16
aに新しいBIOSデータ22を書込む(S12)。
Next, the first storage area writing process in S4 and S7 will be described with reference to the flowchart shown in FIG. First, the BIOS data storage memory access control circuit unit 17 erases the BIOS data 22 in the first storage area 16a (S11), and the first storage area 16
The new BIOS data 22 is written to a (S12).

そして、BIOSデータ格納用メモリアクセス制御回路部17は、第1格納エリア16
aの完了フラグ21を「0」に書換え(S13)、第2格納エリア16bの完了フラグ3
1を「1」に書換える(S14)。なお、BIOSデータ格納用メモリ16は、フラッシ
ュメモリであるため、完了フラグ31のデータを消去することにより、完了フラグ31の
値が「1」になる。
Then, the BIOS data storage memory access control circuit unit 17 has a first storage area 16.
The completion flag 21 of a is rewritten to “0” (S13), and the completion flag 3 of the second storage area 16b
1 is rewritten to “1” (S14). Since the BIOS data storage memory 16 is a flash memory, the value of the completion flag 31 becomes “1” by erasing the data of the completion flag 31.

次に、上記S6の第2格納エリア書込み処理について、図5に示すフローチャートを参
照して説明する。まず、BIOSデータ格納用メモリアクセス制御回路部17は、第2格
納エリア16bのBIOSデータ32を消去し(S21)、第2格納エリア16bに新し
いBIOSデータ32を書込む(S22)。
Next, the second storage area writing process in S6 will be described with reference to the flowchart shown in FIG. First, the BIOS data storage memory access control circuit unit 17 erases the BIOS data 32 in the second storage area 16b (S21), and writes new BIOS data 32 in the second storage area 16b (S22).

そして、BIOSデータ格納用メモリアクセス制御回路部17は、第2格納エリア16
bの完了フラグ31を「0」に書換え(S23)、第1格納エリア16aの完了フラグ2
1を「1」に書換える(S24)。なお、BIOSデータ格納用メモリ16は、フラッシ
ュメモリであるため、完了フラグ21のデータを消去することにより、完了フラグ21の
値が「1」になる。
The BIOS data storage memory access control circuit unit 17 is connected to the second storage area 16.
The completion flag 31 of b is rewritten to “0” (S23), and the completion flag 2 of the first storage area 16a is rewritten.
1 is rewritten to “1” (S24). Since the BIOS data storage memory 16 is a flash memory, the value of the completion flag 21 becomes “1” by erasing the data of the completion flag 21.

次に、BIOSデータ読込み処理について、図6に示すフローチャートを参照して説明
する。まず、BIOSデータ格納用メモリアクセス制御回路部17は、CPU11からB
IOSデータの読込み要求が有ると(S31でYES)、第1格納エリア16aの完了フ
ラグ21と、第2格納エリア16bの完了フラグ31とを読込む(S32)。
Next, the BIOS data reading process will be described with reference to the flowchart shown in FIG. First, the BIOS data storage memory access control circuit unit 17 receives the B from the CPU 11.
If there is a request to read IOS data (YES in S31), the completion flag 21 in the first storage area 16a and the completion flag 31 in the second storage area 16b are read (S32).

そして、第1格納エリア16aの完了フラグ21が「0」の場合(S33でYES)、
BIOSデータ格納用メモリアクセス制御回路部17は、第1格納エリア16aからBI
OSデータ22を読込んでRAM12に転送する(S34)。
If the completion flag 21 of the first storage area 16a is “0” (YES in S33),
The BIOS data storage memory access control circuit unit 17 starts from the first storage area 16a to the BI.
The OS data 22 is read and transferred to the RAM 12 (S34).

一方、完了フラグ21が「0」でなく(S33でNO)、完了フラグ31が「0」の場
合(S35でYES)、BIOSデータ格納用メモリアクセス制御回路部17は、第2格
納エリア16bからBIOSデータ32を読込んでRAM12に転送する(S36)。
On the other hand, when the completion flag 21 is not “0” (NO in S33) and the completion flag 31 is “0” (YES in S35), the BIOS data storage memory access control circuit unit 17 starts from the second storage area 16b. The BIOS data 32 is read and transferred to the RAM 12 (S36).

上述したように、本実施形態に係るBIOSシステム1a、及びこのBIOSシステム
1aを備えるPAC1においては、完了フラグ21、31の内容に基づいてBIOSデー
タ22、32の読み書き処理を行う。すなわち、BIOSデータ格納用メモリアクセス制
御回路部17は、BIOSデータ格納用メモリ16の第1格納エリア16a、及び第2格
納エリア16bのいずれかにBIOSデータを書き込む。このとき、BIOSデータ格納
用メモリアクセス制御回路部17は、正常にBIOSデータ22、32を書き込みした各
格納エリア16a、16bに対応した完了フラグ21、31を「書込み完了状態」(「0
」)に書き換える。そして、BIOSデータ格納用メモリアクセス制御回路部17は、B
IOSデータ22、32を書き込みしていない各格納エリア16a、16bに対応した完
了フラグ21、31を「書込み未完了状態」(「1」)に書き換える。
As described above, in the BIOS system 1a according to the present embodiment and the PAC1 including the BIOS system 1a, the BIOS data 22 and 32 are read and written based on the contents of the completion flags 21 and 31. That is, the BIOS data storage memory access control circuit unit 17 writes the BIOS data to either the first storage area 16a or the second storage area 16b of the BIOS data storage memory 16. At this time, the BIOS data storage memory access control circuit unit 17 sets the completion flags 21 and 31 corresponding to the storage areas 16a and 16b in which the BIOS data 22 and 32 are normally written to the “write completion state” (“0
]). The BIOS data storage memory access control circuit unit 17
The completion flags 21 and 31 corresponding to the storage areas 16a and 16b in which the IOS data 22 and 32 are not written are rewritten to “unwritten state” (“1”).

そして、BIOSデータ格納用メモリアクセス制御回路部17は、BIOSデータ格納
用メモリ16からBIOSデータ22、32を読込むときには、完了フラグ21、31が
「書込み完了状態」である格納エリア16a、16bに格納されているBIOSデータ2
2、32を読み込む。そのため、従来のように、チェックサム等の計算を行うことなしに
、完了フラグ21、31の内容に基づいて、書込みが正常に完了したBIOSデータ22
、32を容易に読み出すことができる。従って、正常なBIOSデータの読み込みを迅速
に行うことができ、処理速度を向上させることができる。
When the BIOS data storage memory access control circuit unit 17 reads the BIOS data 22 and 32 from the BIOS data storage memory 16, the completion flags 21 and 31 are stored in the storage areas 16a and 16b in which the write completion state is set. Stored BIOS data 2
2 and 32 are read. Therefore, the BIOS data 22 in which writing has been normally completed based on the contents of the completion flags 21 and 31 without calculating a checksum or the like as in the prior art.
, 32 can be easily read out. Therefore, normal BIOS data can be read quickly, and the processing speed can be improved.

また、一方のBIOSデータ22、32に不具合があったとしても、他方の正常なBI
OSデータ22、32を読込むことにより、BIOSデータ22、32の破損によりPA
C1が起動できなくなるという、不具合の発生を防ぐことができる。
Even if one BIOS data 22, 32 is defective, the other normal BI data
When the OS data 22 and 32 are read, the BIOS data 22 and 32 are damaged and the PA
It is possible to prevent a problem that C1 cannot be activated.

また、BIOSデータ22、32を格納するBIOSデータ格納用メモリ16を1個だ
け使用するので、メモリを2個以上使用する場合と比較して、PAC1の製造コストを抑
制できる。また、BIOSデータ格納用メモリ16内のBIOSデータ22、32にアク
セスする際に、従来のようなアドレス切換回路を必要としないため、PAC1の製造コス
トを抑制できる。
Further, since only one BIOS data storage memory 16 for storing the BIOS data 22 and 32 is used, the manufacturing cost of the PAC 1 can be suppressed as compared with the case where two or more memories are used. Further, since the conventional address switching circuit is not required when accessing the BIOS data 22 and 32 in the BIOS data storage memory 16, the manufacturing cost of the PAC1 can be suppressed.

なお、本発明は、上記実施形態の構成に限られず、発明の趣旨を変更しない範囲で種々
の変形が可能である。例えば、上記実施形態において、BIOS格納用メモリには、BI
OSデータを格納するための格納エリアが3つ以上設けられていてもよい。また、完了フ
ラグは、第1格納エリア、及び第2格納エリアのそれぞれに格納されている場合に限られ
ず、BIOS格納用メモリ内に格納されていればよい。
In addition, this invention is not restricted to the structure of the said embodiment, A various deformation | transformation is possible in the range which does not change the meaning of invention. For example, in the above embodiment, the BIOS storage memory includes the BI
Three or more storage areas for storing OS data may be provided. Further, the completion flag is not limited to being stored in each of the first storage area and the second storage area, and may be stored in the BIOS storage memory.

1 PAC
1a BIOSシステム
16 BIOSデータ格納用メモリ(メモリ)
17 BIOSデータ格納用メモリアクセス制御回路部(データ読み書き手段)
21、31 完了フラグ
22、32 BIOSデータ
16a 第1格納エリア(BIOSデータ格納領域)
16b 第2格納エリア(BIOSデータ格納領域)
1 PAC
1a BIOS system 16 BIOS data storage memory (memory)
17 BIOS data storage memory access control circuit (data read / write means)
21, 31 Completion flag 22, 32 BIOS data 16a First storage area (BIOS data storage area)
16b Second storage area (BIOS data storage area)

Claims (2)

PAC(Programmable Automation Controller)
に用いるBIOS(Basic Input/Output System)データを格
納可能な複数のBIOSデータ格納領域を有するメモリと、
前記複数のBIOSデータ格納領域のそれぞれに対してデータの読み書きを行うデータ
読み書き手段とを備えるBIOSシステムにおいて、
前記メモリは、前記複数のBIOSデータ格納領域のそれぞれにBIOSデータが正常
に書き込まれたか否かを判断するための完了フラグを記憶し、
前記データ読み書き手段は、
前記複数のBIOSデータ格納領域のいずれかにBIOSデータを書き込むときに、こ
のBIOSデータの書き込みが正常に完了した場合、該BIOSデータを書き込んだBI
OSデータ格納領域に対応した完了フラグを書込み完了状態に書き換えると共に、該BI
OSデータを書き込んでいないBIOSデータ格納領域に対応した完了フラグを書込み未
完了状態に書き換え、
前記複数のBIOSデータ格納領域からBIOSデータを読み込むときに、該複数のB
IOSデータ格納領域のうち、前記完了フラグが書込み完了状態であるBIOSデータ格
納領域に格納されているBIOSデータを読み込むことを特徴とするBIOSシステム。
PAC (Programmable Automation Controller)
A memory having a plurality of BIOS data storage areas capable of storing BIOS (Basic Input / Output System) data used for
In a BIOS system comprising data read / write means for reading / writing data from / to each of the plurality of BIOS data storage areas,
The memory stores a completion flag for determining whether or not the BIOS data is normally written in each of the plurality of BIOS data storage areas;
The data read / write means includes
When writing the BIOS data to any one of the plurality of BIOS data storage areas, if the writing of the BIOS data is normally completed, the BI in which the BIOS data is written is written.
The completion flag corresponding to the OS data storage area is rewritten to the write completion state, and the BI
Rewrite the completion flag corresponding to the BIOS data storage area where OS data has not been written to the incomplete write state,
When reading BIOS data from the plurality of BIOS data storage areas,
A BIOS system that reads BIOS data stored in a BIOS data storage area in which the completion flag is in a write completion state in the IOS data storage area.
請求項1に記載のBIOSシステムを備えることを特徴とするPAC。   A PAC comprising the BIOS system according to claim 1.
JP2010099836A 2010-04-23 2010-04-23 Bios system and pac with the same bios system Withdrawn JP2011232804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010099836A JP2011232804A (en) 2010-04-23 2010-04-23 Bios system and pac with the same bios system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010099836A JP2011232804A (en) 2010-04-23 2010-04-23 Bios system and pac with the same bios system

Publications (1)

Publication Number Publication Date
JP2011232804A true JP2011232804A (en) 2011-11-17

Family

ID=45322082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010099836A Withdrawn JP2011232804A (en) 2010-04-23 2010-04-23 Bios system and pac with the same bios system

Country Status (1)

Country Link
JP (1) JP2011232804A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332707A1 (en) * 2009-06-30 2010-12-30 Sarathy Jayakumar Bi-directional handshake for advanced reliabilty availability and serviceability

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332707A1 (en) * 2009-06-30 2010-12-30 Sarathy Jayakumar Bi-directional handshake for advanced reliabilty availability and serviceability
US8402186B2 (en) * 2009-06-30 2013-03-19 Intel Corporation Bi-directional handshake for advanced reliabilty availability and serviceability

Similar Documents

Publication Publication Date Title
JP4948793B2 (en) Flash memory system including bad block manager
JP5990430B2 (en) SSD (solid state drive) device
JP4828816B2 (en) Memory card, semiconductor device, and memory card control method
JP2015056171A (en) Memory system and information processing apparatus
JP2006331378A (en) Flash memory storing system
JP2006092169A (en) Memory controller, memory device and control method for memory controller
JP4177360B2 (en) Memory controller, flash memory system, and flash memory control method
JPH07121444A (en) Auxiliary storage device
JP2011164827A (en) Electronic apparatus including flash memory and method for updating program stored in flash memory
JP2011232804A (en) Bios system and pac with the same bios system
JP2006338083A (en) Memory controller
TW201621668A (en) Data storage device and data writing method thereof
TWI410981B (en) Data protecting method and memory using thereof
JP4127307B2 (en) Data storage device, data processing system, data processing method, and data processing device
JP5261770B2 (en) Data processing device
JP2011081641A (en) Memory controller
JP2007048090A (en) Nand type flash memory device compatible with sequential rom interface, and controller therefor
JP2014115927A (en) Program update device, method, program, and recording medium
JP2008217755A (en) Storage device
JP4146581B2 (en) Flash memory
JP5821788B2 (en) Electronic control unit
JP2010003055A (en) Control method of semiconductor auxiliary storage
JP5484641B1 (en) Programmable display
JP2004240717A (en) Software updating device
JP5824749B2 (en) Image processing system and image data processing method

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