JPH01181142A - Parity control system for dual port memory - Google Patents

Parity control system for dual port memory

Info

Publication number
JPH01181142A
JPH01181142A JP63005962A JP596288A JPH01181142A JP H01181142 A JPH01181142 A JP H01181142A JP 63005962 A JP63005962 A JP 63005962A JP 596288 A JP596288 A JP 596288A JP H01181142 A JPH01181142 A JP H01181142A
Authority
JP
Japan
Prior art keywords
data
parity
written
transferred
port memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63005962A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Sudo
須藤 一義
Hitoshi Takeuchi
均 竹内
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 JP63005962A priority Critical patent/JPH01181142A/en
Publication of JPH01181142A publication Critical patent/JPH01181142A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To eliminate the occurrence of parity errors in a read state by writing the dummy data into a sub-memory SAM forming a dual port memory and then transferring the data to a RAM from the SAM even in case the number of data transferred and written into the SAM is smaller than the capacity of the SAM. CONSTITUTION:A DMA control circuit 4 counts the data which are transferred and written into a SAM1-1 forming a dual port memory 1. If the count value of the data is smaller than the capacity of the SAM1-1, the remaining dummy data (with parity) are transferred and written to the SAM1-1. Then data are transferred to a RAM1-2 from the SAM1-1. In such a constitution where the dummy data written even in case the number of data transferred to the SAM1-1 is smaller than the capacity of the SAM1-1, no parity error occurs when data are read out.

Description

【発明の詳細な説明】 〔概要〕 デュアルポートメモリに書き込むデータのパリティビッ
トを付加するパリティ制御方式に関し、デュアルポート
メモリのSAMに書き込むデータに残余が発生した場合
にパリティビットを付加したダミーデータを書き込み、
信頼性を向上させることを目的とし、 デュアルポートメモリを構成するSAMに対し、データ
にパリティビットを付加して書き込み、この書き込み数
を計数して当該SAMの容量に満たない場合に、その満
たない容量分のパリティビットを付加したダミーデータ
を書き込むように構成する。
[Detailed Description of the Invention] [Summary] Regarding a parity control method that adds a parity bit to data written to a dual-port memory, when residual data is generated in the SAM of the dual-port memory, dummy data with a parity bit added is generated. write,
For the purpose of improving reliability, a parity bit is added to the data and written to the SAM that constitutes the dual port memory, and the number of writes is counted and if the capacity of the SAM is not reached, the data is It is configured to write dummy data with parity bits added for the capacity.

〔産業上の利用分野〕[Industrial application field]

本発明は、デュアルポートメモリに書き込むデータのパ
リティビットを付加するパリティ制御方式に関するもの
である。
The present invention relates to a parity control method that adds a parity bit to data written to a dual port memory.

〔従来の技術と発明が解決しようとする問題点〕デュア
ルポートメモリは、DRAMのように入出力ポートが1
つであるために生じるバスの競合による処理速度の低下
を解決して、複数の入出力ボートを持ち、少量のメモリ
構成で有効なデータ転送を行うようにされている。この
デュアルポートメモリを用いてデータ転送などを行う場
合、データの信頬性を向上させるために、データにパリ
ティビットを付加することが不可欠である。しかし、デ
ュアルポートメモリは、第3図に示すように、内部でD
RAMによって構成されるRAM21−2と、サブメモ
リであるSAM21−1との間でブロック転送を行うた
めにパリティが壊れてしまうという問題点があった。以
下第3図および第4図を用いて簡単に説明する。
[Problems to be solved by conventional technology and invention] Dual port memory has only one input/output port like DRAM.
This solves the problem of reduced processing speed due to bus contention, which occurs due to the fact that the controller has multiple input/output ports, and allows effective data transfer with a small amount of memory. When performing data transfer using this dual port memory, it is essential to add a parity bit to the data in order to improve the authenticity of the data. However, as shown in Figure 3, dual port memory has an internal D
There is a problem in that parity is destroyed because block transfer is performed between the RAM 21-2, which is a RAM, and the SAM 21-1, which is a sub-memory. A brief explanation will be given below using FIGS. 3 and 4.

第3図に示すように、通信制御LSI23が受(言した
データに対してパリティジェネレータ/チエフカ22に
よってパリティビットを付加し、これら両者をデータバ
スを介してデュアルポートメモリ21を構成するSAM
21−1にDMA転送して書き込む。この際、第4図(
イ)左下がりの斜線を用いて示すようにDMA転送して
SAM21−1に書き込んだが、図中縦線を用いて示す
ようにこのSAM21−1にパリティビットが書き込ま
れない領域が発生してしまう。この第4図(イ)の状態
で、SAM21−1の内容を、RAM21−2にブロッ
ク転送して書き込むと、第4図(ロ)領域A D +に
ついてはパリティビットが付加されており、読み出し時
にパリティエラーが発生しない。しかし、領域A D 
zについてはパリティビットが付加されていなく、読み
出し時にパリティエラーが発生してしまうという問題点
があった。
As shown in FIG. 3, a parity generator/chiever 22 adds a parity bit to the data received by the communication control LSI 23, and sends both of them to the SAM that constitutes the dual port memory 21 via a data bus.
DMA transfer and write to 21-1. At this time, as shown in Figure 4 (
b) DMA transfer was performed and written to SAM21-1 as shown by the diagonal line downward to the left, but as shown by the vertical line in the figure, an area where parity bits are not written occurs in SAM21-1. . When the contents of the SAM 21-1 are block transferred and written to the RAM 21-2 in the state shown in FIG. 4 (a), a parity bit is added to the area A D + in FIG. Sometimes parity errors do not occur. However, area A D
As for z, no parity bit is added and there is a problem in that a parity error occurs during reading.

本発明は、デュアルポートメモリのSAMに書き込むデ
ータに残余が発生した場合にパリティビットを付加した
ダミーデータを書き込み、信転性を向上させることを目
的としている。
An object of the present invention is to improve reliability by writing dummy data with a parity bit added when residual data is generated in the SAM of a dual port memory.

〔問題点を解決するための手段〕[Means for solving problems]

第1図を参照して問題点を解決するための手段を説明す
る。
Means for solving the problem will be explained with reference to FIG.

第1図において、デュアルポートメモリ1は、SAMI
−1およびRAMl−2などから構成され、複数の入出
力ボートを持つメモリである。
In FIG. 1, dual port memory 1 is SAMI
-1 and RAM1-2, etc., and has multiple input/output ports.

パリティエラ−ク2−L 2−2は、データに対してパ
リティビットを付加するものである。
Parity error 2-L 2-2 is for adding a parity bit to data.

DMA制御回路4は、SAMI−1と通信制御LSI7
との間のデータ転送を制御などするものである。
The DMA control circuit 4 includes the SAMI-1 and the communication control LSI 7.
It controls data transfer between.

〔作用〕[Effect]

本発明は、第1図に示すように、DMA制御回路4が、
デュアルポートメモリ1を構成するSAMl−1に対し
てデータ転送して書き込んだデータ数を計数し、当該S
 A M 1 1の容量分に満たない時に、この満たな
い残余のダミーデータ(パリティ付き)を更にSAMI
−1にデータ転送して書き込んだ後ミSAM4−1から
RAMl−2にデータ転送するようにしている。
In the present invention, as shown in FIG. 1, the DMA control circuit 4
Count the number of data transferred and written to SAM1-1 that constitutes dual port memory 1, and
When the capacity of A M 1 1 is not reached, the remaining dummy data (with parity) is further stored in SAMI.
After data is transferred and written to RAM 1-1, the data is transferred from SAM 4-1 to RAM 1-2.

従って、デュアルポートメモリ1を構成するSAM 1
−1に対してデータ転送されたデータ数が当該sAM1
−Lの容量分に満たない時でも、ダミーデータ(パリテ
ィビット付き)が書き込まれるので、読み出し時にパリ
ティエラーが発生しな(、データの信鯨性を向上させる
ことが可能となる。
Therefore, SAM 1 constituting dual port memory 1
-1, the number of data transferred to the corresponding sAM1
Since dummy data (with parity bits) is written even when the capacity is less than -L, parity errors do not occur during reading (and data accuracy can be improved).

〔実施例〕〔Example〕

次に、第1図および第2図を用いて本発明の1実施例の
構成および動作を順次詳細に説明する。
Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 1 and 2.

第1図において、パリティチエッカ3は、SAMl−1
、RAM1−2から読み出されたデータのパリティチエ
ツクを行うものである。
In FIG. 1, the parity checker 3 is SAM1-1
, performs a parity check on data read from RAM1-2.

DMA制御回路4は、タイマ5およびレジスタ6などを
持ち、SAMI−1と通信制御LSI7との間のデータ
転送を制御すると共に、SAMI−1にデータ転送した
データ数が当該SAMI−1の容量分に満たないときに
この満たない残余に対応するダミーデータ(パリティビ
ット付き)をSAMI−1にデータ転送などするもので
ある。
The DMA control circuit 4 has a timer 5, a register 6, etc., and controls the data transfer between the SAMI-1 and the communication control LSI 7. When this is not achieved, dummy data (with a parity bit) corresponding to the unsatisfied remainder is transferred to SAMI-1.

メモリ調停回路8は、DMA制御回路4からの指示に基
づいて、SAMI−1からRAM l −2にデータ転
送などするものである。
The memory arbitration circuit 8 transfers data from the SAMI-1 to the RAM l-2 based on instructions from the DMA control circuit 4.

通信制41LSI7は、同軸ケーブルを介してデータの
授受(通信)を制御するものである。
The communication system 41LSI 7 controls data exchange (communication) via a coaxial cable.

次に、第2図フローチャートを用いて第1図構成の動作
を順次詳細に説明する。
Next, the operation of the configuration shown in FIG. 1 will be explained in detail using the flowchart shown in FIG.

第2図において、図中■は、通信制御LSI7が割込み
によってDMA制御回路4に対して、データを受信した
旨を通知することを示す。
In FIG. 2, the symbol (■) in the figure indicates that the communication control LSI 7 notifies the DMA control circuit 4 by an interrupt that data has been received.

図中■は、初期設定を行うことを示す。これは、図中■
で割込みによって受信通知を受けたDMA制御回路4が
、DMA転送に先立って、タイマ5のスタートビット5
−1をセント、およびレジスタ6のDMAスタートビッ
トをセントするなどの初期設定を行うことを意味してい
る。
■ in the figure indicates that initial settings are to be made. This is shown in the figure.
The DMA control circuit 4, which received the reception notification by an interrupt, sets the start bit 5 of the timer 5 before starting the DMA transfer.
This means that initial settings such as setting -1 and setting the DMA start bit of register 6 are performed.

図中■は、データ数を計数することを示す。これは、D
MA制御回路4がタイマ5を用いて、通信制御LSI7
からローカルバスを介して、SAMl−1に対してDM
A転送されて書き込まれたデータ数(クロック数)を計
数することを意味している。
■ in the figure indicates that the number of data is counted. This is D
The MA control circuit 4 uses the timer 5 to
DM to SAMl-1 via local bus from
This means counting the number of data transferred and written (number of clocks).

図中■は、タイマ値がK (SAMI−1の容里値K、
例えば256ハイト)か否かを判別することを示す。Y
ESの場合には、SAMI−1の容量分だけのデータ転
送が行われたので、図中■でDMA制御回路4はメモリ
調停回路8に対してトランスファを指示し、SAMI−
1からRAMl−2にデータ転送させた後、図中■でタ
イマ5をクリアし、図中■以下を実行する。NOの場合
であって、かつ割込みによってDMA制御回路4に対し
て受信完了が通知された場合、図中■以下で、本発明に
係わる処理、即ち、SAMI−1に書き込まれていない
残余の領域に対して、ダミーデータ(パリティビット付
き)を書き込んだ後、SAMl−1からRAMl−2に
データ転送するようにする。
■ in the figure indicates that the timer value is K (the capacity value K of SAMI-1,
For example, 256 heights). Y
In the case of ES, data transfer equal to the capacity of SAMI-1 was performed, so the DMA control circuit 4 instructs the memory arbitration circuit 8 to transfer data at ■ in the figure, and transfers data corresponding to the capacity of SAMI-1.
After data is transferred from 1 to RAM 1-2, the timer 5 is cleared at 2 in the figure, and the following steps are executed at 2 in the figure. In the case of NO, and when the completion of reception is notified to the DMA control circuit 4 by an interrupt, the process related to the present invention, that is, the remaining area not written to SAMI-1, After writing dummy data (with parity bit) to the memory, the data is transferred from SAM1-1 to RAM1-2.

図中■は、タイマ値をリードすることを示す。■ in the figure indicates that the timer value is read.

これは、DMA制御回路4中に設けたタイマ5中に格納
されているデータ転送数KLをリードすることを意味し
ている。
This means reading the data transfer number KL stored in the timer 5 provided in the DMA control circuit 4.

図中■は、K  Kiを計算することを示す、これは、
SAMI−1の容量分からデータ転送したデータ数を減
算した残余のデータ数を算出することを意味している。
■ in the figure indicates that K Ki is calculated, which means
This means calculating the remaining number of data by subtracting the number of transferred data from the capacity of SAMI-1.

図中■は、マニュアルトランスファビット6−2をセン
トすることを示す、これは、DMA!I]13111回
路4に設けたレジスタ6中のマニュアルトランスファビ
ット6−2をセントして、ダミーデータをSAMI−1
にこれから書き込むことを表示することを意味している
■ in the figure indicates that manual transfer bit 6-2 is sent. This is DMA! I] Set the manual transfer bit 6-2 in the register 6 provided in the 13111 circuit 4 and transfer the dummy data to SAMI-1.
It is meant to display what will be written.

図中[相]は、残りの(K−Ki)個のダミーデータ(
パリティビット付き)をSAMI−1中にライトするこ
とを示す。
In the figure, [phase] represents the remaining (K-Ki) dummy data (
(with parity bit) is written into SAMI-1.

図中■は、DMA制御回路4がメモリ調停回路8に対し
てトランスファを指示し、SAMI−1からRAMl−
2にデータ転送させることを示す。
■ in the figure indicates that the DMA control circuit 4 instructs the memory arbitration circuit 8 to transfer data from SAMI-1 to RAM1-1.
2 indicates that data is to be transferred.

以上のように、通信制411LSI7によって受信して
SAMI−1にDMA転送して書き込んだデータ数が、
当該SAMI−1の容量分に満たない時に、この満たな
い残余に対応するダミーデータ(パリティビット付き)
をデータ転送して書き込み、その後に、SAMI−1か
らRAM1−2にデータ転送することにより、SAMI
−1にデータ転送したデータ数が端数であっても、読み
出し時にパリティエラーが検出されることがなく、デー
タの信転性を向上させることが可能となる。
As mentioned above, the number of data received by the communication system 411LSI7, DMA transferred to SAMI-1, and written is
When the capacity of the SAMI-1 is not reached, dummy data (with parity bit) corresponding to the remaining capacity
By transferring data and writing, and then transferring data from SAMI-1 to RAM1-2, SAMI
Even if the number of data transferred to -1 is a fraction, no parity error will be detected during reading, making it possible to improve data reliability.

尚、通信制御LSI7からローカルハスを介してSAM
I−1に対してデータをDMA転送する際に、パリティ
ジェネレータ2−1によってパリティビットが付加され
て書き込まれる。また、RAM 1−2、SAMI−1
から読み出されたデータ(パリティビット付き)は、パ
リティチエ・ツカ3によってパリティビットを用いてデ
ータの誤りがチエツクされる。
In addition, the SAM is sent from the communication control LSI 7 via the local lotus.
When data is transferred by DMA to I-1, a parity bit is added and written by the parity generator 2-1. In addition, RAM 1-2, SAMI-1
The data (with a parity bit) read out is checked for errors by a parity checker 3 using the parity bit.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、デュアルポート
メモリ1を構成するSAMI−1に対してデータ転送し
て書き込んだデータ数が当該SAMl−1の容量分に満
たない時でも、ダミーデータ(パリティビット付き)を
書き込み、その後にSAMI−1からRAMl−2にデ
ータ転送する構成を採用しているため、読み出し時にパ
リティエラーが発生することがなく、データの信顛性を
向上させることができる。
As explained above, according to the present invention, even when the number of data transferred and written to SAMI-1 constituting the dual port memory 1 is less than the capacity of SAMI-1, dummy data ( Since it uses a configuration in which data is written (with a parity bit) and then data is transferred from SAMI-1 to RAM1-2, parity errors do not occur during reading, improving data reliability. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の1実施例構成図、第2図は本発明の動
作説明フローチャート、第3図は従来技術の説明図、第
4図は従来技術の動作説明図を示す。 図中、1はデュアルポートメモリ、1−1はSAM(サ
ブメモリ)、1−2はRAM、2−1゜2−2はパリテ
ィジェネレータ、3はパリティチエッカ、4はDMA制
御回路、5はタイマ、6はレジスタ、7は通信制御LS
I、8はメモリ調停回路を表す。 、&光8月の・Th 6 t B月フローナヤートち 
 2  図 Q7一
FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a flowchart explaining the operation of the present invention, FIG. 3 is an explanatory diagram of the prior art, and FIG. 4 is an explanatory diagram of the operation of the prior art. In the figure, 1 is a dual port memory, 1-1 is a SAM (sub memory), 1-2 is a RAM, 2-1゜2-2 is a parity generator, 3 is a parity checker, 4 is a DMA control circuit, and 5 is a Timer, 6 is register, 7 is communication control LS
I,8 represents a memory arbitration circuit. , & Light August・Th 6 t B Month Hronayatchi
2 Figure Q7-1

Claims (1)

【特許請求の範囲】[Claims] デュアルポートメモリに書き込むデータのパリテイビッ
トを付加するパリテイ制御方式において、デュアルポー
トメモリを構成するサブメモリ(以下SAMという)に
対し、データにパリテイビットを付加して書き込み、こ
の書き込み数を計数して当該SAMの容量に満たない場
合に、その満たない容量分のパリテイビットを付加した
ダミーデータを書き込むように構成したことを特徴とす
るデュアルポートメモリにおけるパリテイ制御方式。
In a parity control method that adds a parity bit to data written to a dual port memory, data is written with a parity bit added to the submemory (hereinafter referred to as SAM) that makes up the dual port memory, and the number of writes is counted. 1. A parity control method in a dual port memory, characterized in that when the capacity of the SAM is not reached, dummy data to which parity bits corresponding to the unsatisfactory capacity are added is written.
JP63005962A 1988-01-14 1988-01-14 Parity control system for dual port memory Pending JPH01181142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63005962A JPH01181142A (en) 1988-01-14 1988-01-14 Parity control system for dual port memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63005962A JPH01181142A (en) 1988-01-14 1988-01-14 Parity control system for dual port memory

Publications (1)

Publication Number Publication Date
JPH01181142A true JPH01181142A (en) 1989-07-19

Family

ID=11625507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63005962A Pending JPH01181142A (en) 1988-01-14 1988-01-14 Parity control system for dual port memory

Country Status (1)

Country Link
JP (1) JPH01181142A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996039004A3 (en) * 1995-06-01 1997-02-06 Micron Technology Inc Transferring data in a multi-port dram

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996039004A3 (en) * 1995-06-01 1997-02-06 Micron Technology Inc Transferring data in a multi-port dram

Similar Documents

Publication Publication Date Title
US4174537A (en) Time-shared, multi-phase memory accessing system having automatically updatable error logging means
CN110720126B (en) Method for transmitting data mask, memory controller, memory chip and computer system
JPH0137787B2 (en)
JP4829408B2 (en) Image processing method and image processing apparatus
JPH01181142A (en) Parity control system for dual port memory
JPS6155708B2 (en)
JPH10187600A (en) Bus arbiter
JP3049922B2 (en) Access control method for dual port RAM
JPH0562384B2 (en)
JP4182321B2 (en) Dual port memory system
JPS63196967A (en) Data transfer control equipment
JPS58178454A (en) Memory controlling system
JPH02125358A (en) Multibus memory access arbitrating system
JPS58107932A (en) Common bus failure check system
JPS60198939A (en) Transfer system of split data
JPS63201810A (en) Time system for information processing system
JPS63251846A (en) Storage device control system
JPS60169967A (en) Information transfer system
JPS61202266A (en) Data transfer circuit
JPH01145753A (en) Direct memory access controller
JPH04178750A (en) Information processor
JPS63305406A (en) Programmable controller
JPS60222951A (en) Data transfer system
JPS63142446A (en) Address generating system
JPH03201053A (en) Dma controller