JP2001306411A - Information processor and its method - Google Patents

Information processor and its method

Info

Publication number
JP2001306411A
JP2001306411A JP2000126372A JP2000126372A JP2001306411A JP 2001306411 A JP2001306411 A JP 2001306411A JP 2000126372 A JP2000126372 A JP 2000126372A JP 2000126372 A JP2000126372 A JP 2000126372A JP 2001306411 A JP2001306411 A JP 2001306411A
Authority
JP
Japan
Prior art keywords
data
memory
address
access
bit
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
JP2000126372A
Other languages
Japanese (ja)
Inventor
Tatsuya Iwasaki
達也 岩▲嵜▼
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.)
Nidec Copal Corp
Original Assignee
Nidec Copal Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nidec Copal Corp filed Critical Nidec Copal Corp
Priority to JP2000126372A priority Critical patent/JP2001306411A/en
Publication of JP2001306411A publication Critical patent/JP2001306411A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an information processor capable of performing sure parity check even when a general memory having a bit width less than the bit width for the parity bits of capacity matching with a system scale is used. SOLUTION: A memory control part 30 accesses a memory 20 twice by one writing cycle of a CPU 10, writing data from the CPU 10 are written in a 1st address and parity bits are generated simultaneously with the writing operation at the first time and the generated parity bits are written in a 2nd address at the 2nd time. The memory is read out twice by one reading cycle of the CPU 10, the 2nd address is generated and read data are latched at the 1st time, the 1st address is generated at the 2nd time and the read data and the latched data are combined to perform parity check. When there is an abnormality, the CPU 10 is allowed to generate an interruption.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、所定のデータビッ
ト幅のバスを介してデータの授受を行なう情報処理装置
及び情報処理方法に関し、例えばバスを構成するデータ
ビットにパリティビットを有さない情報処理装置及び情
報処理方法に関し、バスにパリティビットを有する外部
とのデータ転送の信頼性を要求されるためにパリティ・
チェックを行なうシステムを、パリティビット付きの専
用メモリは使用せず、汎用のメモリによって実現する情
報処理装置及び情報処理方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus and an information processing method for exchanging data via a bus having a predetermined data bit width, for example, information having no parity bit in data bits constituting the bus. With respect to the processing device and the information processing method, the parity and the
The present invention relates to an information processing apparatus and an information processing method in which a check system is implemented by a general-purpose memory without using a dedicated memory with a parity bit.

【0002】[0002]

【従来の技術】従来から、マイクロプロセッサ・システ
ムを含む情報処理システムにおいては、そのデータバス
上のデータの真偽の監視のため、パリティ・チェックと
いう手法を行っている。
2. Description of the Related Art Conventionally, in an information processing system including a microprocessor system, a method called parity check has been performed in order to monitor the authenticity of data on a data bus.

【0003】例えば処理データ幅をnビットとした場合
に、データバス等を(n+1)ビットで構成し、その内
の1ビットをパリティビットとして確保しておき、処理
データの内容に従ってパリティビットをセットするかし
ないかを決め、(n+1)ビットのデータを受け取った
側でこのパリティビットが正しくセットされている場合
には正常データ、正しくセットされた状態でない場合に
はそのデータはエラーデータであるとして取り扱ってい
た。
For example, when the processing data width is n bits, a data bus or the like is composed of (n + 1) bits, one of which is reserved as a parity bit, and the parity bit is set according to the content of the processing data. It is determined whether the parity bit is correctly set on the side that has received the (n + 1) -bit data. If the parity bit is not set correctly, the data is erroneous data. I was handling it.

【0004】例えば、処理データ(真のデータ)を8ビ
ットとすると、各ビット値が“1”である総和が奇数も
しくは偶数になるように、9番目のパリティビットのデ
ータを付加することでデータの真偽を判定していた。
For example, if the processing data (true data) is 8 bits, the data of the ninth parity bit is added so that the sum of each bit value of "1" becomes an odd number or an even number. Was determined to be true or false.

【0005】このため、従来のシステムでは、処理対象
のデータ部分のビット幅(真のデータ部)が8ビットで
あれば、合計9ビット巾のパリティビット巾付きのメモ
リを使用して、データのアクセス制御を行ない、データ
の授受を行なわなければならなかった。
For this reason, in the conventional system, if the bit width (true data portion) of the data portion to be processed is 8 bits, a memory having a parity bit width of 9 bits in total is used to store the data. It had to perform access control and exchange data.

【0006】上記従来のデータのアクセス方法を採用し
ようとするとデータの処理ビット幅を8ビットとする情
報処理装置においては、アクセス単位が9ビットである
メモリを使用する必要がある。
In order to adopt the above-described conventional data access method, in an information processing apparatus having a data processing bit width of 8 bits, it is necessary to use a memory whose access unit is 9 bits.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来よ
りデータの処理単位が8ビットの装置で使用してきたア
クセス単位が9ビット巾のメモリは、メモリ生産メーカ
側の諸事情により生産中止が決まり、入手不可となるこ
とが予想される事態となり、代替品を探すと高価な大容
量の製品しか選択できない。
However, a memory having a 9-bit access unit used in an apparatus having a data processing unit of 8 bits has been discontinued due to the circumstances of the memory maker, and the availability of the memory has been determined. This is expected to be impossible, and when searching for a substitute, only expensive large-capacity products can be selected.

【0008】これではメモリのごく一部しか使用しない
こととなり、大きなエリアのムダ(未使用エリア)とコ
ストアップになるという問題点がある。
[0008] In this case, only a small part of the memory is used, and there is a problem that a large area is wasted (unused area) and the cost is increased.

【0009】[0009]

【課題を解決するための手段】本発明は上述した課題を
解決することを目的として成されたもので、例えば、授
受されるデータの信頼性を確保すると同時に、システム
規模に合った容量の汎用メモリを使用することが可能な
情報処理装置及び情報処理方法を提供するにある。
SUMMARY OF THE INVENTION The present invention has been made for the purpose of solving the above-mentioned problems. For example, it is possible to ensure the reliability of transmitted / received data, and at the same time, to use a general-purpose capacity suitable for a system scale. An object is to provide an information processing apparatus and an information processing method that can use a memory.

【0010】係る目的を達成する一手段として例えば以
下の構成を備える。
As one means for achieving the above object, for example, the following arrangement is provided.

【0011】即ち、データの処理側よりの1回のメモリ
アクセス要求に対してメモリを2回アクセス可能とし、
所定のデータビット幅のバスを介してデータの授受を行
なう情報処理装置であって、前記メモリへのデータ書込
み要求に対して、1回目のアクセスで書込み要求データ
をメモリの第1のアドレスに書込むとともに書込み要求
データよりパリティチェックビットを生成するデータ書
込み手段と、2回目のアクセスで前記生成したパリティ
チェックビットをメモリの第2のアドレスに書込むチェ
ックビット書込み手段と、1回目のアクセスで前記第2
のアドレスよりパリティチェックビットを読み出すチェ
ックビット読出し手段と、前記メモリへのデータ読出し
要求に対して、2回目のアクセスで前記第1のアドレス
より前記書込み要求データを読出すデータ読出し手段
と、前記データ読出し手段で読み出した書き込み要求デ
ータと前記チェックビット読出し手段で読み出したチェ
ックビットを用いてパリティ・チェックを行なうチェッ
ク結果を報知する報知手段とを備え、前記第1及び第2
のアドレスを前記データの処理側よりの1つのアドレス
データより生成することを特徴とする。
That is, the memory can be accessed twice in response to one memory access request from the data processing side,
An information processing apparatus for exchanging data via a bus having a predetermined data bit width, wherein in response to a data write request to the memory, write request data is written to a first address of the memory in a first access. Data write means for writing parity check bits from write request data and writing the generated parity check bits to a second address of the memory in a second access; and Second
Check bit read means for reading a parity check bit from an address of the memory; data read means for reading the write request data from the first address in a second access in response to a data read request to the memory; And notifying means for notifying a check result of performing a parity check using the write request data read by the reading means and the check bit read by the check bit reading means.
Is generated from one address data from the processing side of the data.

【0012】又は、データの処理側よりの1回のメモリ
アクセス要求に対してメモリを2回アクセス可能とし、
所定のデータビット幅のバスを介してデータの授受を行
なう情報処理装置であって、前記第1及び第2のアドレ
スを前記データの処理側よりの1つのアドレスデータよ
り生成し、前記メモリへのデータ書込み要求に対して、
1回目のアクセスで書き込み要求データをメモリの第1
のアドレスに書き込むとともに書き込み要求データより
パリティチェックビットを生成し、2回目のアクセスで
前記生成したパリティチェックビットをメモリの第2の
アドレスに書込むとともに、前記メモリへのデータ読出
し要求に対して、1回目のアクセスで前記第2のアドレ
スよりパリティチェックビットを読み出し、2回目のア
クセスで前記第1のアドレスより前記書込み要求データ
を読み出し、前記読み出した書き込み要求データとパリ
ティチェックビットを用いてパリティ・チェックを行な
いパリティチェックエラーのときにチェックエラーを前
記データ処理側に報知する手段を備えることを特徴とす
る。
Alternatively, the memory can be accessed twice in response to one memory access request from the data processing side,
An information processing apparatus for transmitting and receiving data via a bus having a predetermined data bit width, wherein the first and second addresses are generated from one address data from a processing side of the data, and the first and second addresses are transmitted to the memory. For a data write request,
Write request data is stored in the first memory in the first access.
At the same time, a parity check bit is generated from the write request data, and the generated parity check bit is written to the second address of the memory in the second access, and the data read request to the memory is In the first access, a parity check bit is read from the second address, and in the second access, the write request data is read from the first address, and the parity check bit is read using the read write request data and the parity check bit. It is characterized by comprising means for performing a check and notifying a check error to the data processing side when a parity check error occurs.

【0013】[0013]

【作用】以上の構成において、授受されるデータの信頼
性を確保すると同時に、システム規模に合った容量の汎
用メモリを使用することが可能な情報処理装置及び情報
処理方法を提供する。
With the above arrangement, there is provided an information processing apparatus and an information processing method capable of securing the reliability of transmitted / received data and using a general-purpose memory having a capacity suitable for a system scale.

【0014】[0014]

【発明の実施の形態】以下、図面を参照して本発明に係
る一発明の実施の形態例を詳細に説明する。図1は本発
明に係る一発明の実施の形態例の情報処理装置における
メモリアクセス制御部の構成を示す図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram showing a configuration of a memory access control unit in an information processing apparatus according to an embodiment of the present invention.

【0015】図1において、10は本実施の形態例の情
報処理装置全体の制御を司るCPUであり、例えば1チ
ップのマイクロプロセッサICチップで構成することが
できる。又CPU10はメモリ20のアクセス制御も行
なっている。CPU10における処理データのデータビ
ット幅(メモリアクセス時に一度にメモリにアクセスで
きるデータビット幅)は8ビットの構成となっている。
In FIG. 1, reference numeral 10 denotes a CPU for controlling the entire information processing apparatus according to the present embodiment, which can be constituted by, for example, a single microprocessor IC chip. The CPU 10 also controls access to the memory 20. The data bit width of the processing data in the CPU 10 (the data bit width at which the memory can be accessed at one time at the time of memory access) has a configuration of 8 bits.

【0016】20は本実施の形態例で使用可能な汎用の
8ビット単位でのデータアクセスが可能なメモリであ
る。また、30はCPU10とメモリ20間のメモリア
クセスの制御時にメモリ20のアクセス制御を行なうメ
モリ制御部である。本実施の形態例ではこのメモリアク
セス制御部30に特徴を有している。
Reference numeral 20 denotes a general-purpose memory that can be used in this embodiment and that can access data in 8-bit units. Reference numeral 30 denotes a memory control unit that controls access to the memory 20 when controlling memory access between the CPU 10 and the memory 20. This embodiment is characterized by the memory access control unit 30.

【0017】また、40はホストであり、例えば大型コ
ンピュータシステムで構成されており、外部バスを介し
て本実施の形態例システムと接続されている。このホス
ト40とのデータバスは、パリティビットを有する9ビ
ット(D0〜D8)のビット幅を有する並列バスであ
り、CPU10を介さず直接メモリ20にアクセス可能
に構成されている。
Reference numeral 40 denotes a host, which is composed of, for example, a large-sized computer system, and is connected to the system of this embodiment via an external bus. The data bus with the host 40 is a parallel bus having a bit width of 9 bits (D0 to D8) having a parity bit, and is configured to be able to directly access the memory 20 without passing through the CPU 10.

【0018】より具体的には、CPU10がホスト40
からのダイレクトメモリアクセス(DMA)要求を受け
付けて、アドレス(A)/リード(RD)/ライト(W
R)の各信号を制御する。
More specifically, when the CPU 10
(A) / Read (RD) / Write (W)
R) are controlled.

【0019】このときの本実施の形態例のインタフェー
スは、データバス幅が並列8ビット幅のデータバスであ
っても、パリティビットを含む9ビットのデータが扱え
るように構成されている。
At this time, the interface according to the present embodiment is configured to handle 9-bit data including parity bits even if the data bus width is a parallel 8-bit data bus.

【0020】即ち、本実施の形態例においては、メモリ
20のアクセス領域を2種類の領域に区分可能に構成さ
れており、第1のアクセス領域はアクセスデータの信頼
性を確保するためにアクセスデータに対してパリティ・
チェックを行なうデータの格納領域、第2の領域はアク
セスデータに対してパリティ・チェックを行なわないデ
ータの格納領域である。
That is, in this embodiment, the access area of the memory 20 is configured to be divided into two types of areas, and the first access area is used to secure the reliability of the access data. Parity for
The storage area for the data to be checked and the second area are the storage areas for the data for which no parity check is performed on the access data.

【0021】アクセスデータに対してパリティ・チェッ
クを行なわないデータの格納領域へのメモリアクセス時
には、メモリ制御部30はCPU10よりのアドレスデ
ータ及びメモリ制御信号/RD、/WRをそのままメモ
リ20に供給して通常のメモリアクセスを行なう領域で
ある。
At the time of memory access to a data storage area where parity check is not performed on access data, the memory control unit 30 supplies the address data from the CPU 10 and the memory control signals / RD and / WR to the memory 20 as they are. Area for normal memory access.

【0022】アクセスデータに対してパリティ・チェッ
クを行なうデータの格納領域(パリティビット有効エリ
ア)へのメモリアクセス時(DMA時も含む)において
は、メモリ制御部30は、CPU10よりのメモリアク
セス制御信号/RD、即ち(RD−)及び/WR即ち
(WR−)による1メモリアクセスサイクル中にメモリ
20へのアドレス信号A0を“H/L”(第2のアドレ
ス/第1のアドレス)に切り換えて、そのタイミングに
合わせ、リードサイクルなら/RDの1度のアサートに
対して2回メモリ20に/RDM、即ち(RDM−)を
出力して2回アクセスし、ライトサイクルなら/WDの
1度のアサートに対して2回メモリ20に/WDM、即
ち(WDM−)を出力して2回アクセスする。
At the time of memory access (including the time of DMA) to a data storage area (parity bit effective area) for performing parity check on access data, memory control unit 30 transmits a memory access control signal from CPU 10. The address signal A0 to the memory 20 is switched to "H / L" (second address / first address) during one memory access cycle by / RD, that is, (RD-) and / WR, that is, (WR-). In accordance with the timing, in the case of a read cycle, / RDM, that is, (RDM-) is output twice to the memory 20 in response to one assertion of / RD, and the memory 20 is accessed twice. In response to the assertion, / WDM, that is, (WDM-) is output to the memory 20 twice and accessed twice.

【0023】CPU10で用いる本実施の形態例のアド
レスバスのアドレスビットはA0〜AXであり、CPU
10とのアドレスバスにおけるアドレスビットA0〜A
Xはメモリ20のアドレス端子A1〜A(X+1)に接
続し、メモリ20のアドレス端子A0にはメモリ制御部
30よりのアドレスビットが接続されている。CPU1
0で用いるデータバスのデータビットはD0〜D7の8
ビットであり、この8ビットのデータバスはメモリ制御
部30に接続され、D1〜D7の7ビットはメモリ20
のD1〜D7に接続されており、メモリ制御部30から
D0/D8としてメモリ20のD0に接続されている。
The address bits of the address bus of this embodiment used by the CPU 10 are A0 to AX.
Address bits A0 to A on the address bus
X is connected to address terminals A1 to A (X + 1) of the memory 20, and an address bit from the memory control unit 30 is connected to the address terminal A0 of the memory 20. CPU1
The data bits of the data bus used at 0 are 8 of D0 to D7.
The 8-bit data bus is connected to the memory control unit 30, and 7 bits D1 to D7 are stored in the memory 20.
, D1 to D7, and D0 / D8 from the memory control unit 30 to D0 of the memory 20.

【0024】メモリ制御部30にはデータバス及びアド
レスバスが接続されているとともに、CPU10よりの
メモリアクセス制御信号/RD及び/WRが入力されて
いる。本実施の形態例のメモリ制御部30からは、メモ
リ用データビットとメモリ20のアドレスビットA0が
接続され、更にメモり20の制御信号/RDM及び/W
DMが供給されている。
The memory control unit 30 is connected to a data bus and an address bus, and receives memory access control signals / RD and / WR from the CPU 10. From the memory control unit 30 of the present embodiment, the data bit for memory and the address bit A0 of the memory 20 are connected, and the control signals / RDM and / W of the memory 20 are further connected.
DM is supplied.

【0025】また、メモリ20は直接ホスト側からの外
部バスと接続され、パリティビットD8を有するデータ
のアクセスが可能となるように構成されている。
The memory 20 is directly connected to an external bus from the host, and is configured to enable access to data having a parity bit D8.

【0026】次に、メモリ制御部30の詳細構成を図2
に示す。
Next, the detailed configuration of the memory control unit 30 is shown in FIG.
Shown in

【0027】図2において、301はアドレスバスのア
ドレスデータをデコードして、CPU10がアクセスデ
ータに対してパリティ・チェックを行なうデータの格納
領域(パリティビット有効エリア)へのメモリアクセス
したか否かを検出するためのアドレスデコーダである。
302はアドレスデコーダ301の検出結果に対応して
アドレスビットA0の制御を行なうメモリアドレス発生
部である。
In FIG. 2, reference numeral 301 denotes address data decoded on the address bus to determine whether or not the CPU 10 has performed memory access to a data storage area (parity bit valid area) for performing parity check on access data. This is an address decoder for detection.
Reference numeral 302 denotes a memory address generator that controls the address bit A0 in accordance with the detection result of the address decoder 301.

【0028】303はメモリタイミング発生部であり、
アドレスデコーダ301の検出結果に対応してパリティ
ビット有効エリアへのメモリアクセス時にはCPU10
よりのメモリアクセス制御信号/RD及び/WRよりメ
モリ20へのアクセス制御信号/RDM及び/WRMを
2度アサートして2回アクセスを行ない、パリティビッ
ト有効エリアへのメモリアクセス時でない場合にはCP
U10よりのメモリアクセス制御信号/RD及び/WR
と同タイミングでメモリ20へのアクセス制御信号/R
DM及び/WRMを出力する。
303 is a memory timing generator,
At the time of memory access to the parity bit effective area in accordance with the detection result of the address decoder 301, the CPU 10
The access control signals / RDM and / WRM to the memory 20 are asserted twice from the memory access control signals / RD and / WR to access the memory 20 twice.
Memory access control signals / RD and / WR from U10
Access control signal / R to memory 20 at the same timing as
Outputs DM and / WRM.

【0029】304はパリティビット有効エリアへのメ
モリアクセス時には2回目のメモリアクセスでメモリ2
0に書き込む(以下「ライト」ともいう。)べきパリテ
ィビットD8を生成するパリティビット発生部である。
305はパリティビット有効エリアへのメモリリードア
クセス時に、2回目のアクセスで読み出し(以下「リー
ド」ともいう。)て来たデータと1回目のアクセスで読
み出して来たパリティビットD8とを比較してパリティ
・チェックを行ない、パリティチェックエラーであれば
CPU10に割込み要求を出してパリティチェックエラ
ーを報知するパリティ・チェック部である。
Reference numeral 304 denotes a second memory access at the time of memory access to the parity bit effective area;
This is a parity bit generation unit that generates a parity bit D8 to be written to 0 (hereinafter also referred to as “write”).
Numeral 305 compares the data read in the second access (hereinafter also referred to as "read") with the parity bit D8 read in the first access at the time of memory read access to the parity bit effective area. A parity check unit that performs a parity check, issues an interrupt request to the CPU 10 if the parity check error occurs, and reports the parity check error.

【0030】306はD0/D8合成部であり、D0/
D8合成部306はパリティビット有効エリアへのライ
トアクセス時に前記メモリタイミング発生部303で生
成された/WRM出力のタイミングに合わせて真データ
D0と発生された、パリティビットD8とを切り換え
て、メモリ20のD0への出力信号を生成する。
Reference numeral 306 denotes a D0 / D8 synthesizing unit,
The D8 synthesizing unit 306 switches between the true data D0 and the generated parity bit D8 in accordance with the timing of the / WRM output generated by the memory timing generating unit 303 at the time of write access to the parity bit effective area. To the output signal of D0.

【0031】また、307はパリティビット判別部、3
08はパリティビット分離部、309、310、311
はゲートである。上述したメモリタイミング発生部30
3は、これらのパリティビット判別部307、パリティ
ビット分離部308、ゲート309、310、311は
メモリタイミング発生部303も制御する。
Reference numeral 307 denotes a parity bit discriminating unit;
08 is a parity bit separation unit, 309, 310, 311
Is a gate. Memory timing generator 30 described above
3 controls the parity bit discrimination unit 307, the parity bit separation unit 308, and the gates 309, 310, and 311 also control the memory timing generation unit 303.

【0032】パリティビット判別部307は、現在のア
クセスがCPU10のメモリへの書き込みなのか読み出
しなのか、又は外部から(例えばホストから)のメモリ
への書き込みなのか読み出しなのかを判定し、パリティ
・チェックすべきD8を選んでパリティビット分離部3
08へ送る。
The parity bit determination unit 307 determines whether the current access is a write or read to the memory of the CPU 10 or an external (for example, from the host) write or read to the memory. Select D8 to be checked and select parity bit separation unit 3
Send to 08.

【0033】また、パリティビット分離部308は、パ
リティビット有効エリアへのメモリリードアクセス時に
1回目のアクセスで読み出して来たデータをラッチ(一
時的に保持)し、パリティビットと真データにそれぞれ
分離し、真データをデータバスのD0の出力を制御する
ゲート309に送るとともに、パリティビットD8をパ
リティビット判別部307に送る。
The parity bit separation unit 308 latches (temporarily holds) data read in the first access at the time of memory read access to the parity bit effective area, and separates the data into parity bits and true data. Then, the true data is sent to the gate 309 that controls the output of D0 of the data bus, and the parity bit D8 is sent to the parity bit discriminating unit 307.

【0034】本実施の形態例においては、以上の構成を
備え、例えば、パリティビット有効エリアへのメモリラ
イト時には、前半部分での1回目の/WRM出力時のメ
モリライトタイミングでCPU10よりのデータバス上
に出力されているメモリ20に書き込むべき有効データ
をD0/D8合成部306及びゲート310を経由して
そのままメモリ20のアドレスバスA0が「0」のA1
〜Axで特定されるメモリアドレスに書き込む。
In the present embodiment, the above configuration is provided. For example, at the time of memory writing to the parity bit effective area, the data bus from the CPU 10 is used at the memory writing timing at the time of the first / WRM output in the first half. The valid data to be written to the memory 20 output above is passed through the D0 / D8 synthesizing unit 306 and the gate 310 and the address bus A0 of the memory 20 is set to A1 of “0” as it is.
Write to the memory address specified by Ax.

【0035】同時にパリティビット発生部304でこの
データバス上のデータよりこのデータ内容に対応するパ
リティビットを生成してパリティビット判定部307に
供給する。パリティビット判定部307において、この
供給されたパリティビットがパリティ・チェック部30
5に送られるべきパリティデータであると判定される
と、このパリティデータはD0/D8合成部306に送
られ、後半部分の2回目の/WRM出力時のメモリライ
トタイミングでゲート310を経由してメモリ20に供
給され、メモリ20のアドレスバスA0が「1」のA1
〜Axで特定されるメモリアドレスに書き込む。
At the same time, the parity bit generation section 304 generates a parity bit corresponding to the data content from the data on the data bus, and supplies the parity bit to the parity bit determination section 307. In the parity bit determining unit 307, the supplied parity bit is used as the parity check unit 30.
5 is sent to the D0 / D8 synthesizing unit 306, and is passed through the gate 310 at the memory write timing at the time of the second / WRM output in the second half. A1 is supplied to the memory 20, and the address bus A0 of the memory 20 is "1" A1
Write to the memory address specified by Ax.

【0036】これにより、CPU10の一つのメモリラ
イトサイクル期間内に、互いに連続する2つのアドレス
に書き込み制御を行ない、1回目に真データ(実際の処
理データ)を書き込み、2回目にはD0/D8合成部3
06が真データのメモリ20への供給を停止し、真デー
タから発生させたパリティビットを書き込むことができ
る。
As a result, within one memory write cycle period of the CPU 10, write control is performed on two consecutive addresses, true data (actual processing data) is written for the first time, and D0 / D8 is written for the second time. Synthesizing unit 3
06 stops the supply of the true data to the memory 20, and the parity bit generated from the true data can be written.

【0037】このように制御することにより、ライトサ
イクルでは1度目のアサートで真データを第1のアドレ
スである偶数アドレスに書き込むと同時に、パリティビ
ットを生成し、2度目のアサート時に第2のアドレスで
ある奇数アドレスに生成したパリティビットを書き込む
ことができる。なお、このパリティビットは例えばD0
ビットあるいはD7ビットを割当てる。しかし、データ
バスのどのビットを割当てても良い。
With this control, in the write cycle, the true data is written to the even address which is the first address by the first assertion, the parity bit is generated at the same time, and the second address is generated at the second assertion. The generated parity bit can be written to an odd address. This parity bit is, for example, D0
Bit or D7 bit. However, any bit of the data bus may be assigned.

【0038】また、リードサイクル時は1度目のアサー
ト時に奇数アドレスを発生させてこのときのリードデー
タはラッチしておき、2度目のアサート時に偶数アドレ
スを発生させてこのときのリードデータとラッチしてお
いたデータと合わせてパリティ・チェックを行ない、異
常があればCPU10に割り込みを発生させることがで
きる。
In a read cycle, an odd address is generated at the first assertion and the read data at this time is latched, and an even address is generated at the second assertion and latched with the read data at this time. The parity check is performed together with the stored data, and an interrupt can be generated in the CPU 10 if there is an abnormality.

【0039】以上説明したように本発明によれば、メモ
リ制御部30は、CPU10の1ライトサイクルで2回
メモリ20をアクセスし、1度目でCPU10よりの書
き込みデータを偶数アドレスに書き込むと同時にパリテ
ィビットを生成し、2度目で奇数アドレスに生成したパ
リティビットを書き込むことができる。
As described above, according to the present invention, the memory control unit 30 accesses the memory 20 twice in one write cycle of the CPU 10, writes the write data from the CPU 10 to the even address at the first time, and simultaneously A bit can be generated and the generated parity bit can be written to an odd address a second time.

【0040】また、CPU10の1リードサイクルで2
回メモリをリードし、1度目に奇数アドレスを発生させ
てこのときのリードデータはラッチしておき、2度目に
偶数アドレスを発生させてこのときのリードデータとラ
ッチしておいたデータと合わせてパリティ・チェックを
行ない、異常があればCPU10に割り込みを発生させ
ることができる。
In one read cycle of the CPU 10, two
The memory is read twice, an odd address is generated first time, the read data at this time is latched, and an even address is generated second time, and the read data at this time is combined with the latched data. A parity check is performed, and if there is an abnormality, an interrupt can be generated in the CPU 10.

【0041】このため、システム規模に合った容量のパ
リティビット分のビット幅を有さない汎用メモリを使用
しても授受されるデータの信頼性を確保することがで
き、確実なパリティ・チェックを行なうことが出来る情
報処理装置を提供することができる。
For this reason, even if a general-purpose memory having no bit width corresponding to the parity bit having a capacity corresponding to the system scale is used, the reliability of data transmitted and received can be ensured, and a reliable parity check can be performed. It is possible to provide an information processing device that can perform the information processing.

【0042】なお、以上の説明はメモリを制御するのが
CPU10、ホスト40である場合を説明したが、デー
タを処理する各種I/O機器よりのメモリアクセスに対
しても全く同様のメモリ制御を行ない、同様にパリティ
・チェックを行なえることは勿論であり、更に、以上の
説明では、第1のアドレスを偶数アドレス、第2のアド
レスを奇数アドレスとしたが、本発明は以上の例に限定
されるものではなく、例えばD0〜D3を第1のアドレ
ス、D4〜D7を第2のアドレスとして設定しても良
く、あらゆるメモリアクセスを行なう情報処理装置に適
用できる。
In the above description, the case where the memory is controlled by the CPU 10 and the host 40 has been described. However, the same memory control is performed for the memory access from various I / O devices that process data. It is needless to say that the parity check can be performed in the same manner. Further, in the above description, the first address is an even address and the second address is an odd address. However, the present invention is limited to the above example. However, for example, D0 to D3 may be set as the first address, and D4 to D7 may be set as the second address, and the present invention can be applied to an information processing apparatus that performs all kinds of memory access.

【0043】[0043]

【発明の効果】以上説明したように本発明によれば、シ
ステム規模に合った容量のパリティビット分のビット幅
を有さない汎用メモリを使用しても確実なパリティ・チ
ェックを行なうことが出来る情報処理装置を提供するこ
とができる。
As described above, according to the present invention, a reliable parity check can be performed even when a general-purpose memory having no bit width for a parity bit having a capacity suitable for the system scale is used. An information processing device can be provided.

【0044】従って、低価格で安定供給の見込める汎用
メモリを使用し、従来と同様の安全性を保持したシステ
ムを組むことができる。
Therefore, it is possible to use a general-purpose memory which is expected to be stably supplied at a low price, and to assemble a system which maintains the same security as before.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明に係る一発明の実施の形態例のCPUと
メモリアクセス制御部の概略構成を示すブロック図であ
る。
FIG. 1 is a block diagram illustrating a schematic configuration of a CPU and a memory access control unit according to an embodiment of the present invention;

【図2】本実施の形態例のメモリ制御部の詳細構成を示
すブロック図である。
FIG. 2 is a block diagram illustrating a detailed configuration of a memory control unit according to the embodiment.

【符号の説明】[Explanation of symbols]

10 CPU 20 メモリ 30 メモリ制御部 301 アドレスデコーダ 302 メモリアドレス発生部 303 メモリタイミング発生部 304 パリティビット発生部 305 パリティ・チェック部 306 D0/D8合成部 307 パリティビット判定部 308 パリティビット分離部 309、310、311 ゲート Reference Signs List 10 CPU 20 Memory 30 Memory control unit 301 Address decoder 302 Memory address generation unit 303 Memory timing generation unit 304 Parity bit generation unit 305 Parity check unit 306 D0 / D8 synthesis unit 307 Parity bit determination unit 308 Parity bit separation unit 309, 310 , 311 gate

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 データの処理側よりの1回のメモリアク
セス要求に対してメモリを2回アクセス可能とし、所定
のデータビット幅のバスを介してデータの授受を行なう
情報処理装置であって、 前記メモリへのデータ書込み要求に対して、1回目のア
クセスで書き込み要求データをメモリの第1のアドレス
に書き込むとともに書き込み要求データよりパリティチ
ェックビットを生成するデータ書込み手段と、 2回目のアクセスで前記生成したパリティチェックビッ
トをメモリの第2のアドレスに書き込むチェックビット
書込み手段と、 1回目のアクセスで前記第2のアドレスよりパリティチ
ェックビットを読み出すチェックビット読出し手段と、 前記メモリへのデータ読出し要求に対して、2回目のア
クセスで前記第1のアドレスより前記書込み要求データ
を読出すデータ読出し手段と、 前記データ読出し手段で読み出した書き込み要求データ
と前記チェックビット読出し手段で読み出したチェック
ビットを用いてパリティ・チェックを行なうチェック結
果を報知する報知手段とを備え、 前記第1及び第2のアドレスを前記データの処理側より
の1つのアドレスデータより生成することを特徴とする
情報処理装置。
1. An information processing apparatus which enables a memory to be accessed twice in response to one memory access request from a data processing side, and transmits and receives data via a bus having a predetermined data bit width. In response to a data write request to the memory, data write means for writing write request data to a first address of the memory in a first access and generating a parity check bit from the write request data; Check bit writing means for writing the generated parity check bit to a second address of the memory; check bit reading means for reading the parity check bit from the second address in a first access; and a data read request to the memory. On the other hand, in the second access, the Data reading means for reading only the request data, and notifying means for notifying a check result of performing a parity check using the write request data read by the data reading means and the check bit read by the check bit reading means. An information processing apparatus, wherein the first and second addresses are generated from one address data from the data processing side.
【請求項2】 データの処理側よりの1回のメモリアク
セス要求に対してメモリを2回アクセス可能とし、所定
のデータビット幅のバスを介してデータの授受を行なう
情報処理装置における情報処理方法であって、 前記第1及び第2のアドレスを前記データの処理側より
の1つのアドレスデータより生成し、 前記メモリへのデータ書込み要求に対して、1回目のア
クセスで書き込み要求データをメモリの第1のアドレス
に書き込むとともに書き込み要求データよりパリティチ
ェックビットを生成し、2回目のアクセスで前記生成し
たパリティチェックビットをメモリの第2のアドレスに
書き込むとともに、 前記メモリへのデータ読出し要求に対して、1回目のア
クセスで前記第2のアドレスよりパリティチェックビッ
トを読み出し、2回目のアクセスで前記第1のアドレス
より前記書込み要求データを読み出し、前記読み出した
書き込み要求データとパリティチェックビットを用いて
パリティ・チェックを行ないパリティチェックエラーの
ときにチェックエラーを前記データ処理側に報知するこ
とを特徴とする情報処理方法。
2. An information processing method in an information processing apparatus which enables a memory to be accessed twice in response to one memory access request from a data processing side and transmits and receives data via a bus having a predetermined data bit width. Wherein the first and second addresses are generated from one piece of address data from the data processing side, and in response to a data write request to the memory, write request data is written to the memory by a first access. A parity check bit is generated from the write request data while writing to the first address, and the generated parity check bit is written to the second address of the memory in the second access, and the data read request to the memory is Reading the parity check bit from the second address in the first access, Reading the write request data from the first address by access, performing a parity check using the read write request data and a parity check bit, and notifying a check error to the data processing side when a parity check error occurs. An information processing method characterized by the following.
JP2000126372A 2000-04-26 2000-04-26 Information processor and its method Withdrawn JP2001306411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000126372A JP2001306411A (en) 2000-04-26 2000-04-26 Information processor and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000126372A JP2001306411A (en) 2000-04-26 2000-04-26 Information processor and its method

Publications (1)

Publication Number Publication Date
JP2001306411A true JP2001306411A (en) 2001-11-02

Family

ID=18636163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000126372A Withdrawn JP2001306411A (en) 2000-04-26 2000-04-26 Information processor and its method

Country Status (1)

Country Link
JP (1) JP2001306411A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007207062A (en) * 2006-02-03 2007-08-16 Hitachi Ltd Method for improving data reliability and information processor using the same
JP2011048543A (en) * 2009-08-26 2011-03-10 Seiko Epson Corp Storage device, and system including the same electrically connectable to host circuit
US8627190B2 (en) 2009-04-01 2014-01-07 Seiko Epson Corporation Memory device, circuit board, liquid receptacle, method of controlling a nonvolatile data memory section, and system including a memory device detachably connectable to a host circuit
US8782326B2 (en) 2009-04-01 2014-07-15 Seiko Epson Corporation Memory device and system including a memory device electronically connectable to a host circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007207062A (en) * 2006-02-03 2007-08-16 Hitachi Ltd Method for improving data reliability and information processor using the same
US8627190B2 (en) 2009-04-01 2014-01-07 Seiko Epson Corporation Memory device, circuit board, liquid receptacle, method of controlling a nonvolatile data memory section, and system including a memory device detachably connectable to a host circuit
US8782326B2 (en) 2009-04-01 2014-07-15 Seiko Epson Corporation Memory device and system including a memory device electronically connectable to a host circuit
JP2011048543A (en) * 2009-08-26 2011-03-10 Seiko Epson Corp Storage device, and system including the same electrically connectable to host circuit

Similar Documents

Publication Publication Date Title
US4698746A (en) Multiprocessor communication method and apparatus
US5606662A (en) Auto DRAM parity enable/disable mechanism
CN105373345B (en) Memory device and module
US7809899B2 (en) System for integrity protection for standard 2n-bit multiple sized memory devices
US7891556B2 (en) Memory access controller and method for memory access control
US20020049880A1 (en) Method and apparatus for selecting a separate functional space in a low pin count memory device
JP2001306411A (en) Information processor and its method
US6704820B1 (en) Unified cache port consolidation
JP2003345669A (en) System and method for preventing memory access error
EP0979454A1 (en) Method and apparatus for supporting multiple overlapping address spaces on a shared bus
JPH11102328A (en) Memory diagnostic system
JPH10133945A (en) Data processor
JP2853555B2 (en) Storage controller
JP2768022B2 (en) Memory controller
JPS603049A (en) Bus interface apparatus
JPH10198524A (en) Hard disk controller
JP3106448B2 (en) Processor unit
JPH0612270A (en) Test circuit
JP3341738B2 (en) Memory error detection method
JP2546002B2 (en) Parity circuit
JPH05120211A (en) Data bus width controller
JPH01161560A (en) I/o equipment controller
JP2000224174A (en) Atm communication controller
JPH06175947A (en) Data processor equipped with dma function
JPS63271589A (en) Reading and writing device for portable storage medium

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