JPH0273442A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0273442A
JPH0273442A JP63225577A JP22557788A JPH0273442A JP H0273442 A JPH0273442 A JP H0273442A JP 63225577 A JP63225577 A JP 63225577A JP 22557788 A JP22557788 A JP 22557788A JP H0273442 A JPH0273442 A JP H0273442A
Authority
JP
Japan
Prior art keywords
data
status
buffer memory
error
circuit
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
JP63225577A
Other languages
Japanese (ja)
Inventor
Isao Karasawa
唐沢 功
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63225577A priority Critical patent/JPH0273442A/en
Publication of JPH0273442A publication Critical patent/JPH0273442A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the capacity of a status buffer memory by writing only the status of the erroneous data to the status buffer memory and then reading the status out of the buffer memory only when the erroneous data is read out of the buffer memory. CONSTITUTION:In case the input data has no error, the data is stored in an error flag buffer memory 11 and the writing of the data is inhibited to a status buffer memory 6. When the input data has an error, the data is stored in the memory 11 and at the same time only the error status is stored in the memory 6. When the data and the status are read, an error bit is also read out of the memory 11. Then the status is read out of the memory 6 only when the error bit is valid. Therefore it is not required to store the status of a normal state into the memory 6. Thus the capacity of the menory 6 can be reduced.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、シリアルデータをパラレルデータに変換し
、このデータのエラーの有無を判定しそれのステータス
をデータとともに出力するデータ処理装置に関するもの
である。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a data processing device that converts serial data into parallel data, determines the presence or absence of errors in this data, and outputs its status along with the data. be.

[従来の技術] 第2図は従来のシリアルデータの入出力機能を有してい
るデータ処理装置の概略構成を示すブロック線図である
。図において、(1)は受信シリアルデータ入力端子、
(2)はシリアルデータを受信するデータ受信回路、(
3)はシリアルデータをパラレルデータに変換するシフ
トレジスタからなるデータ変換回路、(4)は変換され
たパラレルデータを格納するデータバッファメモリ回路
、(5)は受信データのエラーの有無を判定し、ステー
タスを生成するステータス生成回路、(6)はステータ
ス生成回路(5)で生成されたステータスを格納するス
テータスバッファメモリ回路、(7)はバッファメモリ
回路(4)(6)からデータ及びステータスを読出す内
部バス、(8)はデータ読出し線、(9)はステータス
読出し線である。
[Prior Art] FIG. 2 is a block diagram showing a schematic configuration of a conventional data processing device having a serial data input/output function. In the figure, (1) is a received serial data input terminal;
(2) is a data receiving circuit that receives serial data, (
3) is a data conversion circuit consisting of a shift register that converts serial data to parallel data; (4) is a data buffer memory circuit that stores the converted parallel data; (5) determines whether there is an error in the received data; A status generation circuit that generates status, (6) a status buffer memory circuit that stores the status generated by the status generation circuit (5), and (7) a buffer memory circuit that reads data and status from (4) and (6). (8) is a data read line, and (9) is a status read line.

次に動作について説明する。入力端子(1)への受信シ
リアルデータはデータ受信回路(2)によりデータ処理
装置内部に取込まれ、データ変換回路(3)によってパ
ラレルデータに変換され、その変換されたパラレルデー
タがデータバッファメモリ回路(4)に格納される。ま
た、同時にステータス生成回路(5)において、パリテ
ィエラー、フレーミングエラー及びオーバーランエラー
などがチエツクされてステータスが生成され、ステータ
スバッファメモリ(6)に格納される。このようにして
、受信データがなくなるまで、遂次、バッファメモリ(
4)(6)に格納される。これら格納されたデータ及び
ステータスは必要に応じて、データ読出し線(8)、ス
テータス読出し線(9)を介し内部バス(7)に読み出
される。
Next, the operation will be explained. The received serial data to the input terminal (1) is taken into the data processing device by the data receiving circuit (2), converted to parallel data by the data converting circuit (3), and the converted parallel data is stored in the data buffer memory. It is stored in the circuit (4). At the same time, the status generation circuit (5) checks for parity errors, framing errors, overrun errors, etc., generates a status, and stores it in the status buffer memory (6). In this way, the buffer memory (
4) Stored in (6). These stored data and status are read out to the internal bus (7) via the data read line (8) and status read line (9) as required.

[発明が解決しようとする課題] 従来のデータ処理装置は以上のように構成されているの
で、受信シリアルデータの内エラーのない正常なデータ
に対しても、ステータスを生成しバッファメモリに格納
しなければならず、そのために大容量のバッファメモリ
回路を必要とするという問題点があった。
[Problems to be Solved by the Invention] Since the conventional data processing device is configured as described above, it is possible to generate a status even for normal data without errors among the received serial data and store it in the buffer memory. Therefore, there was a problem in that a large capacity buffer memory circuit was required.

この発明は上記のような問題点を解消するためになされ
たもので、エラーのチエツク、ステータスの生成及び格
納が最小限の容量のステータスバッファメモリにて行な
いうるデータ処理装置を得ることを目的とする。
This invention has been made to solve the above-mentioned problems, and its purpose is to provide a data processing device that can perform error checking, status generation, and storage using a status buffer memory with a minimum capacity. do.

[課題を解決するための手段] この発明に係るデータ処理装置は、ステータス生成回路
において発生する入力データ毎のエラーの有無に応じた
エラービットを格納するエラーフラグバッファメモリ回
路を設け、ステータス生成回路により発生されるエラー
ビットに応じて、データバッファメモリ回路へのデータ
書込み時のステータスバッファメモリ回路へのステータ
スの書込みが、エラーフラグバッファメモリ回路から読
出されるエラーピントに応じて、データバッファメモリ
回路からのデータ読出し時のステータスバッファメモリ
回路からのステータスの読出しが、それぞれ制御される
よう構成したものである。
[Means for Solving the Problems] A data processing device according to the present invention is provided with an error flag buffer memory circuit that stores error bits according to the presence or absence of an error in each input data generated in the status generation circuit. When writing data to the data buffer memory circuit, the status is written to the status buffer memory circuit according to the error bit generated by the error flag buffer memory circuit. The configuration is such that reading of the status from the status buffer memory circuit when reading data from the status buffer memory circuit is controlled respectively.

[作 用コ この発明におけるデータ処理装置は、受信データのエラ
ーの有無に応じてステータス生成回路から出力されるエ
ラービットが有効か無効かによりステータスバッファメ
モリ回路へのステータスの書込みの制御が行なわれ、デ
ータバッファメモリ回路からのでデータの読出し時に、
同時にエラーフラグバッファメモリ回路から読出される
エラービットが有効か無効かによりステータスバッファ
メモリ回路からのステータスの読出しの制御が行なわれ
る。従って、エラーのあるデータのステータスのみをス
テータスバッファメモリ回路へ書込み、そして、データ
バッファメモリ回路からエラーのあるデータが読出され
る時のみ、それのステータスをステータスバッファメモ
リ回路から読出すようにすることができる。
[Function] The data processing device according to the present invention controls writing of the status to the status buffer memory circuit depending on whether the error bit output from the status generation circuit is valid or invalid depending on the presence or absence of an error in the received data. , when reading data from the data buffer memory circuit,
At the same time, reading of the status from the status buffer memory circuit is controlled depending on whether the error bit read from the error flag buffer memory circuit is valid or invalid. Therefore, only the status of erroneous data is written to the status buffer memory circuit, and the status is read from the status buffer memory circuit only when the erroneous data is read from the data buffer memory circuit. Can be done.

[実施例] 以下、この発明の一実施例を図について説明する。第1
図はこの発明の一実施例の概略構成を示すブロック線図
で、図において、(1)は受信シリアルデータ入力端子
、(2)はデータ受信回路、(3)はデータ変換回路、
(4)はデータバッファメモリ回路、(5)は受信デー
タのエラーの有無を判定してエラーがある時有効ビット
u 1 u、エラーがない時無効ビットII OIIを
発生するとともに、そのデータのステータスを生成する
ステータス生成回路、(6)はステータスバッファメモ
リ回路、(7)は内部バス、(8)はデータ読出し線、
(9)はステータス読出し線、(10)はステータス書
込み線、(11)はエラービットをデータ対応に格納す
るエラーフラグバッファメモリ回路、(12)はステー
タス生成回路(5)で発生されたエラーヒツトをエラー
フラグバッファメモリ回路(11)に出力するとともに
、ステータスバックアメモリ回路(6)への書込み制御
を行なうためのエラービット書込み線、(13)はエラ
ーフラグバッファメモリ回路(I2)からエラービット
を読出してステータスバッファメモリ回路(6)の読出
し制御を行なうためのエラーピント読出し線である。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram showing a schematic configuration of an embodiment of the present invention. In the figure, (1) is a reception serial data input terminal, (2) is a data reception circuit, (3) is a data conversion circuit,
(4) is a data buffer memory circuit; (5) determines whether there is an error in the received data, and when there is an error, it generates a valid bit U1U, and when there is no error, it generates an invalid bit II OII, and the status of the data. (6) is a status buffer memory circuit, (7) is an internal bus, (8) is a data read line,
(9) is a status read line, (10) is a status write line, (11) is an error flag buffer memory circuit that stores error bits in correspondence with data, and (12) is an error hit generated in the status generation circuit (5). An error bit write line (13) is used to output to the error flag buffer memory circuit (11) and to control writing to the status backup memory circuit (6).The line (13) reads error bits from the error flag buffer memory circuit (I2). This is an error focus readout line for controlling readout of the status buffer memory circuit (6).

次に動作について説明する。入力端子への受信シリアル
データはデータ受信回路(2)によりデータ処理装置内
部に取込まれ、データ変換回路(3)によってパラレル
データに変換され、その変換されたパラレルデータがデ
ータバッファメモリ回路(4)に格納される。また、同
時にステータス生成回路(5)において、パリティエラ
ー、フレーミングエラー及びオーバーランエラーなどが
チエツクされてエラービット及びステータスが生成され
る。
Next, the operation will be explained. The received serial data to the input terminal is taken into the data processing device by the data receiving circuit (2), converted to parallel data by the data converting circuit (3), and the converted parallel data is sent to the data buffer memory circuit (4). ). At the same time, a status generation circuit (5) checks parity errors, framing errors, overrun errors, etc., and generates error bits and status.

入力データにエラーがない場合は、エラービットは無効
ビットLL OI+となりエラービット書込み線(12
)を介してエラーフラグバッファメモリ回路(11)に
格納される。また、この無効ビットにより、ステータス
データバッファ回路(6)へのステータスの書込みは禁
止される。すなわち正常時のステータスは無効とされる
。次に入力データにエラーがある場合は、エラービット
は有効ビットrr I I+となりエラービット書込み
線(12)を介してエラーフラグバッファメモリ回路(
11)に格納される。この有効ビットにより、ステータ
スバッファメモリ(6)へのステータスの書込みは許可
され、エラーステータスのみがステータスバッファメモ
リ(6)に格納される。
If there is no error in the input data, the error bit becomes an invalid bit LL OI+ and the error bit write line (12
) is stored in the error flag buffer memory circuit (11). Furthermore, this invalid bit prohibits writing of the status to the status data buffer circuit (6). In other words, the normal status is invalid. Next, if there is an error in the input data, the error bit becomes a valid bit rr I I+ and is sent to the error flag buffer memory circuit (
11). This valid bit allows writing of the status to the status buffer memory (6), and only error status is stored in the status buffer memory (6).

データバッファメモリ回路(4)及びステータスバッフ
ァメモリ回路(6)から内部バス(7)への各データ、
ステータスの読出し時は、同時にその読出しデータに対
応したエラービットがエラーフラグバッファメモリ回路
(11)からエラービット読出し線(13)に読出され
る。この読出されたエラービットが無効ビットであれば
、ステータスバッファメモリ回路(6)からの読出しは
禁止され、ステータス読出し線(9)上には所定のステ
ータス(例えばオールO)が出力される。逆に、読出さ
れたエラービットが有効ビットであれば、ステータスバ
ッファメモリ回路(6)からの読出しは許可され、ステ
ータスバッファメモリ回路(6)から読出しデータに対
応したエラーステータスがステータス読出し線(9)を
介して内部バス(7)へ読出される。
Each data from the data buffer memory circuit (4) and the status buffer memory circuit (6) to the internal bus (7),
When reading the status, error bits corresponding to the read data are simultaneously read from the error flag buffer memory circuit (11) to the error bit read line (13). If the read error bit is an invalid bit, reading from the status buffer memory circuit (6) is prohibited, and a predetermined status (for example, all O's) is output on the status read line (9). Conversely, if the read error bit is a valid bit, reading from the status buffer memory circuit (6) is permitted, and the error status corresponding to the read data from the status buffer memory circuit (6) is transferred to the status read line (9). ) to the internal bus (7).

このように、ステータスバッファメモリ回路(6)には
エラーステータスのみが格納されるので、正常時のステ
ータスをステータスバッファメモリに格納する必要がな
くなり、ステータスバッファメモリの容量が削減できる
In this way, only the error status is stored in the status buffer memory circuit (6), so there is no need to store the normal status in the status buffer memory, and the capacity of the status buffer memory can be reduced.

上記の実施例では、エラーフラグバッファメモリ回路(
11)の内容により、ステータスデータバッファメモリ
回路(6)の読出しを制御するためのエラービット読出
し線(13)を設けたものを示したが、データバッファ
メモリ回路(4)にもエラービット読出し線(13)を
接続し、エラーを有するデータの読出し時には、エラー
フラグバッファメモリ(12)からのエラーフラグが、
データ出方のがわりにデータ読出し線(8)を介して内
部バス(7)に出力されるようにしてもよい。
In the above embodiment, the error flag buffer memory circuit (
11), an error bit read line (13) for controlling reading of the status data buffer memory circuit (6) is shown, but an error bit read line (13) is also provided for the data buffer memory circuit (4). (13) is connected, and when reading data with an error, the error flag from the error flag buffer memory (12) is
Alternatively, the data may be output to the internal bus (7) via the data read line (8).

[発明の効果] 以上のように、この発明によれば、ステータス生成回路
において発生する入力データ毎のエラーの有無に応じた
エラービットを格納するエラーフラグバッファメモリ回
路を設け、ステータス生成回路により発生されるエラー
ビットに応じて、データバッファメモリ回路へのデータ
書込み時のステータスバッファメモリ回路へのステータ
スの書込みが、エラーフラグバッファメモリ回路から読
出されるエラービットに応じて、データバッファメモリ
回路からのデータ読出し時のステータスバッファメモリ
回路からのステータスの読出しが、それぞれ制御される
よう構成したので、ステータスバッファメモリ回路の容
量を大幅に減少でき、一部のハードウェアを削減できる
ため、安価なデータ処理装置が得られる効果がある。
[Effects of the Invention] As described above, according to the present invention, an error flag buffer memory circuit is provided that stores error bits according to the presence or absence of errors in each input data generated in the status generation circuit, and The status is written to the status buffer memory circuit when writing data to the data buffer memory circuit, depending on the error bit read from the error flag buffer memory circuit. Since the reading of the status from the status buffer memory circuit during data reading is configured to be controlled individually, the capacity of the status buffer memory circuit can be significantly reduced and some hardware can be eliminated, resulting in inexpensive data processing. There is an effect that the device can obtain.

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

第1図は、この発明の一実施例の概略構成を示すブロッ
ク線図、第2図は従来のシリアルデータの入出力機能を
有しているデータ処理装置の概略構成を示すブロック線
図である。 図において、(1)は受信シリアルデータ入力端子、(
2)はデータ受信回路、(3)はデータ変換回路、(4
)はデータバッファメモリ回路、(5)はステータス生
成回路、(6)はステータスバッファメモリ回路、(7
)は内部バス、(8)はデータ読出し線、(9)はステ
ータス読出しg、 (10)はステータス書込み線、 
(11)はエラーフラグバッファメモリ回路、(12)
はエラービット書込み線、(13)はエラービット読出
し線である。 図中同一符号は同一あるいは相当部分を示す。 代 理 人   大  岩  増  雄第 図 受信シリアルデータ入力端子 内部バス データ読出し線 ステータス続出し線 ステータス書込み線 エラービット書込み線 エラービット読出し、線
FIG. 1 is a block diagram showing a schematic configuration of an embodiment of the present invention, and FIG. 2 is a block diagram showing a schematic configuration of a conventional data processing device having a serial data input/output function. . In the figure, (1) is the received serial data input terminal, (
2) is a data reception circuit, (3) is a data conversion circuit, (4)
) is the data buffer memory circuit, (5) is the status generation circuit, (6) is the status buffer memory circuit, (7
) is the internal bus, (8) is the data read line, (9) is the status read g, (10) is the status write line,
(11) is an error flag buffer memory circuit, (12)
(13) is an error bit write line, and (13) is an error bit read line. The same reference numerals in the figures indicate the same or corresponding parts. Representative Masuo Oiwa Figure Receive serial data input terminal Internal bus data read line Status continuous line Status write line Error bit write line Error bit read, line

Claims (1)

【特許請求の範囲】[Claims] シリアルデータを受信するデータ受信回路、受信したシ
リアルデータをパラレルデータに変換するデータ変換回
路、変換されたパラレルデータを格納するデータバッフ
ァメモリ回路、上記変換されたパラレルデータのエラー
の有無を判定し、それのステータスを生成し出力するス
テータス生成回路、この回路からのステータスを格納す
るステータスバッファメモリ回路、及びこれらバッファ
メモリ回路に格納されたデータ及びステータスを読出す
ための内部バスを備えたデータ処理装置において、上記
ステータス生成回路において発生する入力データ毎のエ
ラーの有無に応じたエラービットを格納するエラーフラ
グバッファメモリ回路を設け、上記ステータス生成回路
により発生されるエラービットに応じて、上記データバ
ッファメモリ回路へのデータ書込み時の上記ステータス
バッファメモリ回路へのステータスの書込みが、上記エ
ラーフラグバッファメモリ回路から読出されるエラービ
ットに応じて、上記データバッファメモリ回路からのデ
ータ読出し時の上記ステータスバッファメモリ回路から
のステータスの読出しが、それぞれ制御されるよう構成
したことを特徴とするデータ処理装置。
a data receiving circuit that receives serial data, a data conversion circuit that converts the received serial data into parallel data, a data buffer memory circuit that stores the converted parallel data, and determines whether or not there is an error in the converted parallel data; A data processing device that includes a status generation circuit that generates and outputs the status, a status buffer memory circuit that stores the status from this circuit, and an internal bus that reads the data and status stored in these buffer memory circuits. An error flag buffer memory circuit is provided to store error bits corresponding to the presence or absence of an error in each input data generated in the status generation circuit, and the data buffer memory The writing of the status to the status buffer memory circuit when writing data to the circuit is determined according to the error bit read from the error flag buffer memory circuit, and the status buffer memory when reading data from the data buffer memory circuit. A data processing device characterized in that reading of status from the circuits is controlled respectively.
JP63225577A 1988-09-09 1988-09-09 Data processor Pending JPH0273442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63225577A JPH0273442A (en) 1988-09-09 1988-09-09 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63225577A JPH0273442A (en) 1988-09-09 1988-09-09 Data processor

Publications (1)

Publication Number Publication Date
JPH0273442A true JPH0273442A (en) 1990-03-13

Family

ID=16831491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63225577A Pending JPH0273442A (en) 1988-09-09 1988-09-09 Data processor

Country Status (1)

Country Link
JP (1) JPH0273442A (en)

Similar Documents

Publication Publication Date Title
US4799199A (en) Bus master having burst transfer mode
JP2639012B2 (en) Image processing device
JPH0273442A (en) Data processor
US5590279A (en) Memory data copying apparatus
JPH0746323B2 (en) Main memory for compressing partial write access
JPH0140432B2 (en)
JP2751822B2 (en) Memory control method for FIFO memory device
JP2600376B2 (en) Memory controller
JPH06274462A (en) Asynchronous writing system for shared memory
US5479165A (en) Two-dimensional coding apparatus
JPH04115340A (en) Duplex storage circuit
JP2699482B2 (en) Data transfer control device
JP2944193B2 (en) Data receiving device
JP2604604B2 (en) Stack control device
JPS6020779B2 (en) Composite computer system
JPH0514293B2 (en)
JPS58169398A (en) Memory system
JPS59123918A (en) Buffer memory controlling system
JPH0315217B2 (en)
JPH038040A (en) 1-bit error information storage device
JPS61161565A (en) Storage device
JPH0793243A (en) Channel device
JPH05298133A (en) Data transfer device
JPS63153655A (en) Memory access control system
JPH07113905B2 (en) Main memory controller