JP2633852B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JP2633852B2
JP2633852B2 JP62143069A JP14306987A JP2633852B2 JP 2633852 B2 JP2633852 B2 JP 2633852B2 JP 62143069 A JP62143069 A JP 62143069A JP 14306987 A JP14306987 A JP 14306987A JP 2633852 B2 JP2633852 B2 JP 2633852B2
Authority
JP
Japan
Prior art keywords
data
memory access
access controller
frame
direct 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.)
Expired - Fee Related
Application number
JP62143069A
Other languages
Japanese (ja)
Other versions
JPS63307568A (en
Inventor
久郎 佐々木
志朗 馬場
泰 赤尾
健司 宮崎
俊夫 大河内
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62143069A priority Critical patent/JP2633852B2/en
Publication of JPS63307568A publication Critical patent/JPS63307568A/en
Application granted granted Critical
Publication of JP2633852B2 publication Critical patent/JP2633852B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、シリアルデータ通信制御技術、さらにはフ
レームのような一群のデータを区切りを認識可能にバッ
ファメモリに格納する制御技術に関し、例えば、ハイレ
ベルデータリンクコントローラ方式によるシリアルデー
タの転送制御を支援するシリアルチャネル及びダイレク
トメモリアクセス機能を備えたデータ処理装置に適用し
て有効な技術に関するものである。
The present invention relates to a serial data communication control technique, and further to a control technique for storing a group of data, such as a frame, in a buffer memory so that a break can be recognized. The present invention relates to a technique effective when applied to a data processing device having a serial channel and a direct memory access function for supporting transfer control of serial data by a high-level data link controller method.

〔従来技術〕(Prior art)

プロセッサ間などでビットシリアルに情報伝達を行う
ためのシリアルチャネルもしくはシリアルインタフェー
スコントローラは、調歩同期方式、バイナリシンクロナ
スコミュニケーション方式、ハイレベルデータリンクコ
ントロール(以下単にHDLCとも記す)方式、ローカルエ
リアネットワークコントロール方式などをサポートする
が、例えば、HDLC方式などでは、フレームと呼ばれる単
位でデータの送受が行われる。斯る場合に、データの転
送レートが速かったり、フレーム毎に転送すべきデータ
が多量である場合には、ダイレクトメモリアクセス制御
方式によって、バッファメモリのような書き換え可能な
メモリとシリアルチャネルとの間でのデータ転送制御を
行うことが、システム効率を向上させるために望まし
い。
A serial channel or serial interface controller for transmitting bit-serial information between processors, such as a start-stop synchronization method, a binary synchronous communication method, a high-level data link control (hereinafter simply referred to as HDLC) method, and a local area network control method For example, in the HDLC system, data is transmitted and received in units called frames. In such a case, if the data transfer rate is high or the amount of data to be transferred for each frame is large, a direct memory access control method may be used to transfer data between a rewritable memory such as a buffer memory and a serial channel. It is desirable to perform the data transfer control in order to improve the system efficiency.

ところで、フレーム毎に送受信データを転送する場合
に、等フレームに含まれる制御フィールドやエラーチェ
ックフィールドのようなソフトウェア的な通信プロトコ
ルの対象に対する後処理などのためには、フレームの区
切りを認識可能な形態で送受信データをバッファメモリ
に格納しておくようなフレーム切り換え処理が必要とさ
れる。
By the way, when transmitting / receiving data is transferred for each frame, a frame delimiter can be recognized for post-processing of a target of a software communication protocol such as a control field and an error check field included in an equal frame. In such a case, a frame switching process for storing transmission / reception data in a buffer memory is required.

本発明者らは、このフレーム切り換え処理として、シ
リアルチャネルがフレームの末尾を意味するような終了
フラグを検出することに呼応して中央処理装置に割込み
を要求して、ダイレクトメモリアクセス制御をリセット
する方式について検討した。即ち、この割込みによる方
式は、中央処理装置の制御フローが所定の割込みルーチ
ンに分岐すると、当該フレームの終了を意味する区切り
記号をバッファメモリの所定領域に書き込む動作を指示
するコマンドや、次のフレームの転送先アドレスを変え
るためのコマンドなどをダイレクメモリアクセスコント
ローラに発行してフレーム切り換え処理を実行させるも
のである。
The present inventors reset the direct memory access control by requesting an interrupt to the central processing unit in response to detecting the end flag indicating that the serial channel indicates the end of the frame, as the frame switching process. The method was discussed. That is, when the control flow of the central processing unit branches to a predetermined interrupt routine, a command instructing an operation of writing a delimiter signifying the end of the frame into a predetermined area of the buffer memory or a next frame is used. A command for changing the transfer destination address is issued to the direct memory access controller to execute the frame switching process.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

本発明者らの検討によれば、前記した中央処理装置に
対する割込みによってフレームの切り換え処理を行う方
式では、ダイレクトメモリアクセス制御をリセットする
ための各種コマンドの実行サイクル数が多くなり、フレ
ームの切り換えに与えられた時間内で所定の処理を終了
することができなくなる虞があり、更には、中央処理装
置の負担も軽減することができなくなる。
According to the study of the present inventors, in the above-described method of performing the frame switching process by interruption to the central processing unit, the number of execution cycles of various commands for resetting the direct memory access control is increased, and the frame switching is performed. There is a possibility that the predetermined processing cannot be completed within the given time, and the load on the central processing unit cannot be reduced.

更に、それに関連した本発明者らの検討によれば、ダ
イレクトメモリアクセスコントローラと中央処理装置と
は共にバスマスタとして機能するものであるから、それ
らが別チップで構成される場合には、バス調停に時間が
かかり、前記したフレーム切り換え処理のための割込み
処理もそれに応じて遅れる結果になり、前記問題点が助
長されることが明らかにされた。
Further, according to the study of the present inventors related thereto, since both the direct memory access controller and the central processing unit function as a bus master, when they are configured as separate chips, the bus arbitration is performed. It takes time, and the interrupt processing for the above-described frame switching processing is also delayed accordingly, and it has been clarified that the above problem is exacerbated.

本発明の目的は、交換されるべき一群のデータの区切
りを認識可能にそのデータを一群毎にダイレクトメモリ
アクセス制御方式でメモリに格納する場合に、一群のデ
ータに対する格納先の切り換え処理を直接ダイレクトメ
モリアクセスコントローラによって可能とするデータ処
理装置を提供することにある。
An object of the present invention is to provide a direct memory access control method for storing a group of data to be exchanged in a memory by a direct memory access control method so that the storage location can be switched directly to a group of data. It is to provide a data processing device enabled by a memory access controller.

本発明の別の目的は、交換されるべき一群のデータの
区切りを認識可能にそのデータを一群毎にメモリにダイ
レクトメモリアクセス制御方式で格納する処理の高速
化、さらには、通信プロトコルに対する汎用性を有する
データ処理装置を提供することにある。
Another object of the present invention is to increase the speed of processing for storing a group of data to be exchanged in a memory by a direct memory access control method so that a segment of a group of data to be exchanged can be recognized. The object of the present invention is to provide a data processing device having:

本発明の前記ならびにそのほかの目的と新規な特徴
は、本明細書の記述及び添付図面から明らかなになるで
あろう。
The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

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

本願において開示される発明のうち代表的なものの概
要を簡単に説明すれば下記の通りである。
The outline of a representative invention among the inventions disclosed in the present application will be briefly described as follows.

すなわち、本発明の代表的な実施例は、 バス(EBUS,IBUS)に相互に結合されたメモリ(DM)
と中央処理装置(CPU)とダイレクトメモリアクセスコ
ントローラ(DMAC)とシリアルチャネル(SIC)とを具
備し、 上記ダイレクトメモリアクセスコントローラ(DMAC)
は上記バス(EBUS,IBUS)を介しての上記メモリ(DM)
と上記シリアルチャネル(SIC)との間での直接情報転
送を制御し、 上記シリアルチャネル(SIC)は外部装置との間でビ
ットシリアルに情報伝達を行うためのシリアルインター
フェイスコントローラであって、 上記シリアルチャネル(SIC)と上記外部装置との間
の上記情報伝達は一群の情報としてのフレームを単位と
するものであり、該フレームは該当フレームの末尾を示
す終了フラグを含む転送データ方式の通信を可能とする
データ処理装置であって、 上記メモリ(DM)は上記フレームのデータを格納する
複数の格納先領域(BA1…BAn)を含み、 上記シリアルチャネル(SIC)と上記ダイレクトメモ
リアクセスコントローラ(DMAC)との間に上記バス(EB
US,IBUS)とは別に信号線(CL)を設け、 上記シリアルチャネル(SIC)が上記ビットシリアル
の上記情報伝達の上記フレームの末尾を示す上記終了フ
ラグを認識した時、上記信号線(CL)を介して上記シリ
アルチャネル(SIC)は該認識を上記ダイレクトメモリ
アクセスコントローラ(DMAC)に通知せしめ、該通知に
応答して上記ダイレクトメモリアクセスコントローラ
(DMAC)は上記バス(EBUS,IBUS)を介して上記シリア
ルチャネル(SIC)から上記メモリ(DM)へ一群の情報
を転送して格納する際に上記メモリ(DM)の上記複数の
格納先領域(BA1…BAn)の格納切り換え処理を実行する
ことを特徴とする(第1図、第2図参照)。
That is, a representative embodiment of the present invention is a memory (DM) interconnected to a bus (EBUS, IBUS).
And a central processing unit (CPU), a direct memory access controller (DMAC), and a serial channel (SIC).
Is the memory (DM) via the bus (EBUS, IBUS)
The serial channel (SIC) is a serial interface controller for transmitting information bit-serially to and from an external device, the serial channel (SIC) being a serial interface controller; The information transmission between the channel (SIC) and the external device is performed in units of a frame as a group of information, and the frame is capable of transmitting data communication including an end flag indicating the end of the frame. The memory (DM) includes a plurality of storage destination areas (BA1... BAn) for storing data of the frame, the serial channel (SIC) and the direct memory access controller (DMAC). Between the above bus (EB
A signal line (CL) is provided separately from the US and IBUS. When the serial channel (SIC) recognizes the end flag indicating the end of the frame of the bit serial information transmission, the signal line (CL) The serial channel (SIC) notifies the recognition to the direct memory access controller (DMAC) via the direct memory access controller (DMAC) via the bus (EBUS, IBUS). When transferring a group of information from the serial channel (SIC) to the memory (DM) and storing the information, the storage switching process of the plurality of storage destination areas (BA1... BAn) of the memory (DM) is performed. Features (see FIGS. 1 and 2).

〔作 用〕(Operation)

上述の特徴の本発明によれば、シリアルチャネル(SI
C)がビットシリアルの情報伝達のフレームの末尾を示
す終了フラグを認識した時、バス(EBUS,IBUS)とは別
にシリアルチャネル(SIC)とダイレクトメモリアクセ
スコントローラ(DMAC)との間に設けられた信号線(C
L)を介して終了フラグ認識情報がシリアルチャネル(S
IC)からダイレクトメモリアクセスコントローラ(DMA
C)に通知される。この通知に応答してダイレクトメモ
リアクセスコントローラ(DMAC)は、バス(EBUS,IBU
S)を介してシリアルチャネル(SIC)からメモリ(DM)
へ一群の情報を転送して格納する際にメモリ(DM)の複
数の格納先領域(BA1…BAn)の格納切り換え処理を実行
するものである。
According to the invention having the features described above, the serial channel (SI
When C) recognizes the end flag indicating the end of the frame of the bit serial information transmission, it is provided between the serial channel (SIC) and the direct memory access controller (DMAC) separately from the bus (EBUS, IBUS). Signal line (C
L) through the end channel recognition information via the serial channel (S
Direct memory access controller (DMA) from IC
C) will be notified. In response to this notification, the direct memory access controller (DMAC) sets the bus (EBUS, IBU
Memory (DM) from serial channel (SIC) via S)
When a group of information is transferred and stored in the memory (DM), a storage switching process of a plurality of storage destination areas (BA1... BAn) of the memory (DM) is executed.

従って、フレーム情報の伝達終了の終了フラグ認識情
報はシリアルチャネル(SIC)からダイレクトメモリア
クセスコントローラ(DMAC)へバス(EBUS,IBUS)を使
用することなく専用の信号線(CL)を介して通知され
る。
Therefore, the end flag recognition information of the end of transmission of the frame information is notified from the serial channel (SIC) to the direct memory access controller (DMAC) via the dedicated signal line (CL) without using the bus (EBUS, IBUS). You.

その結果、この終了フラグ認識情報の通知のために、
バス(EBUS,IBUS)の使用の要求信号(リクエスト信
号)と承認信号(アクノリッジ信号)との発生(即ち、
バス使用アビトレーション)が不必要となり、メモミ
(DM)の複数の格納先領域(BA1…BAn)の格納切り換え
処理を高速で実行することが可能となる。
As a result, to notify the end flag recognition information,
Generation of a request signal (request signal) for use of the bus (EBUS, IBUS) and an acknowledgment signal (acknowledge signal) (ie,
This eliminates the need for bus use arbitration, and makes it possible to execute high-speed storage switching processing for a plurality of storage destination areas (BA1... BAn) of memos (DM).

〔実施例〕〔Example〕

第1図は本発明に係るデータ処理装置の1実施例であ
るマイクロコンピュータを示すブロック図である。同図
に示されるマイクロコンピュータMCUは、公知の半導体
集積回路製造技術によって1つの半導体基板に形成され
た、所謂シングルチップマイクロコンピュータである。
FIG. 1 is a block diagram showing a microcomputer which is one embodiment of a data processing device according to the present invention. The microcomputer MCU shown in FIG. 1 is a so-called single-chip microcomputer formed on one semiconductor substrate by a known semiconductor integrated circuit manufacturing technique.

第1図のマイクロコンピュータMCUは、特に制限され
ないが、RAM(ランダム・アクセス・メモリ)によって
構成されるような書き換え可能なメモリDMなどが接続さ
れているシステムバスのような外部バスEBUSに結合され
ている。このこのマイクロコンピュータMCUには、特に
制限されないが、中央処理装置CPU、ダイレクトメモリ
アクセスコントローラDMAC、シリアルチャネルSICが、
夫々内部バスIBUSに結合されて代表的に示されている。
1 is coupled to an external bus EBUS such as a system bus to which a rewritable memory DM such as a RAM (random access memory) is connected, although not particularly limited. ing. Although not particularly limited, this microcomputer MCU includes a central processing unit CPU, a direct memory access controller DMAC, and a serial channel SIC.
Each is representatively shown coupled to an internal bus IBUS.

前記シリアルチャネルSICは、図示しない外部装置と
の間でビットシリアルに情報伝達を行うためのシリアル
インタフェースコントローラであり、特に制限されない
が、調歩同期方式、バイナリシンクロナスコミュニケー
ション方式、HDLC方式、ローカルエリアネットワークコ
ントロール方式を切り換え可能にサポートする。HDLC方
式における転送データ形式は、一群の情報としてのフレ
ームを単位とするもので、例えば、1フレームは、開始
フラグ、アドレスフィールド、エラーがあったらデータ
を再度転送するというようなソフトウェア的なプロトコ
ルの対象とされるコントロールフィールド、実質的なデ
ータとされるインフォメーションフィールド、CRCエラ
ーチェックフィールド、及び終了フラグによって達成さ
れる。
The serial channel SIC is a serial interface controller for transmitting information bit-serial with an external device (not shown), and is not particularly limited. Asynchronous mode, binary synchronous communication mode, HDLC mode, local area network The control method is supported to be switchable. The transfer data format in the HDLC system is a unit of a frame as a group of information. For example, one frame includes a start flag, an address field, and a software protocol such as transferring data again if an error occurs. This is achieved by the target control field, the information field that is the substantial data, the CRC error check field, and the end flag.

このシリアルチャネルSICは、例えばHDLC方式が選択
されると、フレームを単位としたビットシリアルな形態
で情報交換を行う場合に必要な制御信号や制御手順を支
援して、フラグパターンの検出、アドレスフィールドの
比較、チェックコードの生成比較などを介してデータの
入出力動作を実行する。
For example, when the HDLC method is selected, the serial channel SIC supports a control signal and a control procedure necessary for exchanging information in a bit-serial format in units of frames, detects a flag pattern, and detects an address field. , An input / output operation of data through a comparison of generation of a check code, and the like.

前記ダイレクトメモリアクセスコントローラDMACは、
EBUS,IBUSを介して交換すべき情報を少なくとも前記メ
モリDMとシリアルチャネルSICとの間で直接転送制御す
る、チェーン機能を備えたコントローラである。
The direct memory access controller DMAC,
A controller having a chain function for directly controlling the transfer of information to be exchanged via EBUS and IBUS at least between the memory DM and the serial channel SIC.

前記中央処理装置CPUは、ダイレクトメモリアクセス
コントローラDMACを介して前記シリアルチャネルSICか
らメモリDMにフレームを単位としてデータ転送する場合
の各種通信制御プロトコルに対処可能な汎用性を有する
ものである。例えば、その汎用性とは、シリアルチャネ
ルSICにHDLC方式が選択された場合に、その転送データ
形式であるフレームに含まれる前記コントロールフィー
ルドのようなソフトウェア的な通信プロトコルの種類に
対して柔軟に対処することができるという意味である。
The central processing unit CPU has general versatility capable of coping with various communication control protocols when data is transferred from the serial channel SIC to the memory DM in units of frames via the direct memory access controller DMAC. For example, its versatility means that when the HDLC method is selected for the serial channel SIC, it flexibly handles the type of software communication protocol such as the control field included in a frame that is the transfer data format. It means you can do it.

第1図においてCLは、前記フレームの末尾を示す終了
フラグをシリアルチャネルSICが認識したときにそれを
前記ダイレクトメモリアクセスコントローラDMACに知ら
せるための信号線である。この信号線CLによって、ダイ
レクトメモリアクセスコントローラDMACに受信フレーム
の終了が通知されると、このダイレクトメモリアクセス
コントローラDMACが、シリアルチャネルSICからメモリD
Mにデータをフレーム毎に区切りを認識可能に転送る場
合のフレーム切り換え処理をそれ自身で実行制御する。
斯るフレーム切り換え処理は、例えば、当該フレームの
終了を意味する区切り信号を、前記メモリDMにおける当
該フレームのための格納先領域に書き込む動作や、次の
フレームの転送先アドレスを変えるための動作である。
In FIG. 1, CL is a signal line for notifying the direct memory access controller DMAC when the serial channel SIC recognizes the end flag indicating the end of the frame. When the end of the received frame is notified to the direct memory access controller DMAC by the signal line CL, the direct memory access controller DMAC sends the memory D from the serial channel SIC to the memory D.
When the data is transferred to M for each frame so that the delimiter can be recognized, the frame switching processing is controlled by itself.
Such a frame switching process is, for example, an operation of writing a delimiter signal indicating the end of the frame in a storage destination area for the frame in the memory DM or an operation of changing a transfer destination address of the next frame. is there.

次に、このフレーム切り換え処理を、前記ダイレクト
メモリアクセスコントローラDMACのチェーン機能との関
連で説明する。
Next, the frame switching process will be described in relation to the chain function of the direct memory access controller DMAC.

ここでチェーン機能とは、前記メモリDMのようなバッ
ファメモリ上に比較的小さなバッファ領域を多数用意
し、それらをポインタとして機能する記述子によって識
別可能に次々と連結させるようにしてデータをブロック
毎に格納可能とするような機能である。
Here, the chain function means that a relatively large number of relatively small buffer areas are prepared on a buffer memory such as the memory DM, and these are successively connected so that they can be identified by a descriptor functioning as a pointer, so that data is stored in blocks. This is a function that can be stored in

このチェーン機能の詳細な一例を第2図に基づいて説
明すると、前記メモリDM上に、所定の記憶要領を持つ多
数のバッファ領域BA1乃至BAnと、記述子DD1乃至DDnと
を、1対1対応で夫々設定して、各バッファ領域BA1
至BAnを順次識別可能に連結させるものである。各記述
子DD1乃至DDnは、第1ポインタPNT1、第2ポインタPNT
2、及び指示欄DESを有する。前記第1ポインタPNT1に
は、1フレームの受信データを格納可能な、当該ポイン
タを含む記述子に対応するバッファ領域の先頭アドレス
が記述され、また、第2ポインタPNT2には、当該ポイン
タを含む記述子の次に続く記述子が設定されているメモ
リ領域の先頭アドレスが記述される。前記指示欄DESに
は、それが含まれる記述子によって指示されたバッファ
領域で受信データが終了しているか否かを示すデータ区
切り信号が記述される。
When a detailed example of this chain function on the basis of FIG. 2, on the memory DM, a plurality of buffer areas BA 1 to BAn having a predetermined storage procedure, the descriptors DD 1 to DDn, 1 pair 1 corresponds in each set, in which are successively identified linked to each buffer area BA 1 to BAn. Each descriptor DD 1 to DDn is first pointer PNT1, second pointer PNT
2, and an instruction column DES. The first pointer PNT1 describes a head address of a buffer area that can store one frame of received data and corresponds to a descriptor including the pointer, and the second pointer PNT2 describes a description including the pointer. The start address of the memory area in which the descriptor following the child is set is described. In the instruction column DES, a data delimiter signal indicating whether or not the reception data has ended in the buffer area indicated by the descriptor included therein is described.

各バッファ領域BA1乃至BAn、記述子DD1乃至DDnに対す
るアクセスは前記ダイレクトメモリアクセスコントロー
ラDMACが行う。前記シリアルチャネルSICがHDLC方式に
よってフレーム単位で外部からデータ転送を受ける場
合、ダイレクトメモリアクセスコントローラDMACは、前
記記述子に対する参照及びデータ区切り記号の書き込み
などを経て、受信データをフレーム毎に区切りをつけて
次々と識別可能に連続させてバッファ領域に格納する。
Each buffer areas BA 1 to BAn, access to the descriptor DD 1 to DDn is the direct memory access controller DMAC is performed. When the serial channel SIC receives data transfer from the outside in a frame unit by the HDLC method, the direct memory access controller DMAC delimits the received data for each frame through reference to the descriptor and writing of a data delimiter. Then, they are stored in the buffer area in such a way that they can be identified one after another.

前記記述子を用いた、複数のフレームから成る受信デ
ータの格納手順の一例を説明すると、先ず、未使用バッ
ファ領域に対応する記述子を先頭に、転送フレーム数に
対応する数の一連の記述子に含まれる各第2ポインタ
に、次に続く記述子が設定されているメモリ領域の先頭
アドレスを記述する。例えば、未使用バッファ領域に対
応する記述子がDD1とするなら、当該記述子DD1の第2ポ
インタPNT2には次の記述子DD2の先頭アドレスを記述
し、記述子DD2の第2ポインタPNT2には次の記述子DD3
先頭アドレスを記述し、以下、転送フレーム数に対応す
る数の一連の記述子に含まれる各第2ポインタに対して
同様の記述を行っておく。このような初期設定は前記中
央処理装置CPUによって行うこともできる。
An example of a procedure for storing received data composed of a plurality of frames using the descriptor will be described. First, a descriptor corresponding to an unused buffer area is first, and a series of descriptors corresponding to the number of transfer frames are described. Describes the start address of the memory area in which the next following descriptor is set in each second pointer included in. For example, if the descriptor corresponding to the unused buffer space and DD 1, the second pointer PNT2 of the descriptor DD 1 describes the start address of the next descriptor DD 2, the second descriptor DD 2 describes the start address of the next descriptor DD 3 is a pointer PNT2, hereinafter, they are processed similar description for each second pointers included in a series of descriptors number corresponding to the number of transfer frames. Such initialization can also be performed by the central processing unit CPU.

ダイレクトメモリアクセスコントローラDMACによるフ
レーム転送の実行に際しては、先ず、先頭の記述子(DD
1)に含まれる第1ポインタPNT1のデータをダイレクト
メモリアクセスコントローラDMACが参照して、その参照
アドレスデータから順次最初の1フレームのデータをバ
ッファ領域(BA1)に格納する。前記シリアルチャネルS
ICが当該最初のフレームにおける終了フラグを検出する
と、前記信号線CLを介して当該受信フレームの終了がダ
イレクトメモリアクセスコントローラDMACに通知され
る。そうすると、ダイレクトメモリアクセスコントロー
ラDMACは、先頭の記述子(DD1)に含まれる指示欄DESに
データ区切り信号を記述し、更に、当該先頭の記述子
(DD1)に含まれる第2ポインタPNT2に記述されている
アドレスデータを参照して、次の記述子(DD2)におけ
る第1ポインタPNT1から次のバッファ領域(BA2)の先
頭ドレスデータを読み出す。このようにしてダイレクト
メモリアクセスコントローラDMACは、中央処理装置CPU
の介在を必要とすることなく、フレーム切り換え処理を
高速に実行する。
When performing frame transfer by the direct memory access controller DMAC, first, the first descriptor (DD
The direct memory access controller DMAC refers to the data of the first pointer PNT1 included in 1 ), and stores the data of the first frame sequentially from the reference address data in the buffer area (BA 1 ). The serial channel S
When the IC detects the end flag in the first frame, the end of the received frame is notified to the direct memory access controller DMAC via the signal line CL. Then, the direct memory access controller DMAC describes the data delimiter signal in the instruction column DES included in the first descriptor (DD 1 ), and further writes the second pointer PNT2 in the first descriptor (DD 1 ). With reference to the described address data, the head address data of the next buffer area (BA 2 ) is read from the first pointer PNT1 in the next descriptor (DD 2 ). In this way, the direct memory access controller DMAC uses the central processing unit CPU
The frame switching process is performed at high speed without the need for intervention.

次いで、次のフレームに係るデータが転送されると、
ダイレクトメモリアクセスコントローラDMACは、当該フ
レーム切り換え処理に際して次の記述子(DD2)におけ
る第1ポインタPNT1から得たアドレスデータに基づい
て、前記同様に、第2番目の1フレームのデータを順次
バッファ領域(BA2)に格納する。以下最終フレームま
で同様の処理を行って、一連のデータをフレーム枚に区
切りを付けて、且つ、識別可能にメモリDMに格納する。
Next, when data relating to the next frame is transferred,
As described above, the direct memory access controller DMAC sequentially transfers the data of the second one frame to the buffer area based on the address data obtained from the first pointer PNT1 in the next descriptor (DD 2 ) in the frame switching process. and stores it in the (BA 2). Thereafter, the same processing is performed until the last frame, and a series of data is divided into frames and stored in the memory DM in an identifiable manner.

本実施例に従えば、一連のデータがメモリDMに格納さ
れた後には、各フレーム毎にそれに含まれるコントロー
ルフィールドに対する処理が中央処理装置CPUによって
実行される。このとき、中央処理装置CPUはコントロー
ルフィールドなどに対する各種通信制御プロトコルを処
理可能な汎用性を有するものであるから、シリアルチャ
ネルSICで選択可能な各種HDLC方式に対して柔軟に対処
することができる。
According to the present embodiment, after a series of data is stored in the memory DM, processing for a control field included in each frame is executed by the central processing unit CPU. At this time, since the central processing unit CPU has general versatility capable of processing various communication control protocols for control fields and the like, it can flexibly cope with various HDLC schemes that can be selected by the serial channel SIC.

前記実施例によれば以下の作用効果を得るものであ
る。
According to the above embodiment, the following operation and effect can be obtained.

(1)前記シリアルチャネルSICがフレームにおける終
了フラグを検出すると、信号線CLを介して当該受信フレ
ームの終了がダイレクトメモリアクセスコントローラDM
ACに直接通知され、それに基づいて当該ダイレクトメモ
リアクセスコントローラDMACは、記述子に含まれる指示
欄DESにデータ区切り信号を記述し、更に、当該記述子
に含まれる第2ポインタPNT2に記述されているアドレス
データを参照して、次の記述子における第1ポインタPN
T1から次のバッファ領域の先頭ドレスデータを読み出す
ようにして、順次中央処理装置CPUの介在を必要とする
ことなく、フレーム切り換え処理を高速に実行すること
ができる。したがって、フレームの切り換え処理を中央
処理装置CPUに対する割込み処理で対処する場合に比べ
て、フレーム切り換え処理を著しく高速に行うことがで
きる。
(1) When the serial channel SIC detects an end flag in a frame, the end of the received frame is notified by the direct memory access controller DM via the signal line CL.
Directly notified to the AC, the direct memory access controller DMAC describes the data delimiter signal in the instruction column DES included in the descriptor based on the notification, and is further described in the second pointer PNT2 included in the descriptor. Referring to the address data, the first pointer PN in the next descriptor
By reading the first dress data of the next buffer area from T1, the frame switching process can be executed at high speed without requiring the intervention of the central processing unit CPU. Therefore, the frame switching process can be performed at a remarkably high speed as compared with the case where the frame switching process is handled by an interrupt process for the central processing unit CPU.

(2)特にシリアルチャネルSICとダイレクトメモリア
クセスコントローラDMACとが同一チップに含まれる場
合、両者は必ず同期動作するから、前記信号線CLを介し
てシリアルチャネルSICからダイレクトメモリアクセス
コントローラDMACに与えられる受信フレームの終了通知
に対して、特別なアクノリッジ信号が必要とされず、そ
れによって、フレーム切り換え処理を一層高速に行うこ
とができる。
(2) In particular, when the serial channel SIC and the direct memory access controller DMAC are included in the same chip, they always operate synchronously. Therefore, the reception provided from the serial channel SIC to the direct memory access controller DMAC via the signal line CL is performed. No special acknowledgment signal is required for the end notification of the frame, so that the frame switching process can be performed at higher speed.

(3)前記作用効果(1)、さらには(2)より、バッ
ファメモリ上に比較的小さなバッファ領域を多数用意
し、それらをポインタとして機能する記述子によって識
別可能に次々と連結させるようにしてデータをブロック
毎に格納可能とするようなチェーン機能を有するダイレ
クトメモリアクセス制御方式でデータのフレーム転送を
行うようにして、データ転送レートの高速化に対処しよ
うとする意図を、最大限に発揮させることができる。
(3) According to the effects (1) and (2), a large number of relatively small buffer areas are prepared in the buffer memory, and these are successively connected so that they can be identified by a descriptor functioning as a pointer. Data frames are transferred using a direct memory access control method that has a chain function that enables data to be stored in blocks, thereby maximizing the intent to deal with a higher data transfer rate. be able to.

(4)中央処理装置CPUはコントロールフィールドなど
に対する各種通信制御プロトコルを処理可能な汎用性を
有するものであるから、シリアルチャネルSICで選択可
能な各種HDLC方式などに対して柔軟に対処することがで
きる。したがって、汎用中央処理装置CPUの代わりに一
定の通信制御プロトコル専用のコントローラを内蔵する
ものに比べてその処理可能範囲は著しく広くなる。
(4) Since the central processing unit CPU has general versatility capable of processing various communication control protocols for control fields and the like, it can flexibly cope with various HDLC schemes that can be selected by the serial channel SIC. . Therefore, the processable range is remarkably wider than that in which a controller dedicated to a certain communication control protocol is built in instead of the general-purpose central processing unit CPU.

(5)少なくともHDLC方式をサポートするシリアルチャ
ネルSICと、交換すべき情報をメモリDMとシリアルチャ
ネルSICとの間で直接転送制御する、チェーン機能を備
えたダイレクトメモリアクセスコントローラDMACと、ダ
イレクトメモリアクセスコントローラDMACを介して前記
シリアルチャネルSICからメモリDMにデータをフレーム
毎に転送する場合の各種通信制御プロトコルに対処可能
な汎用中央処理装置とが、1つの半導体基板に形成され
て、通信機能付きシングルチップマイクロコンピュータ
を構成することにより、本来共にバスマスタとして機能
し得るダイレクトメモリアクセスコントローラと中央処
理装置とが同一チップで構成されるから、バス調停に必
要な時間は相互に別チップで構成されている場合に比べ
て少なくなり、フレーム切り換え処理をも含めて、一群
のデータを夫々区切りを付けてダイレクトメモリアクセ
ス制御方式でメモリに格納するような通信制御処理の高
速化を全体として図ることができる。
(5) A serial channel SIC supporting at least the HDLC method, a direct memory access controller DMAC having a chain function for directly controlling the exchange of information to be exchanged between the memory DM and the serial channel SIC, and a direct memory access controller A general-purpose central processing unit capable of coping with various communication control protocols when transferring data from the serial channel SIC to the memory DM via the DMAC to the memory DM frame by frame is formed on one semiconductor substrate, and a single chip with a communication function is formed. By configuring a microcomputer, the direct memory access controller and the central processing unit, which can both function as a bus master, are configured on the same chip, so the time required for bus arbitration is configured on separate chips. Frame switching In addition, the speed of the communication control process can be improved as a whole, such that a group of data is separated and stored in the memory by the direct memory access control method, including the data processing.

以上本発明によってなされた発明を実施例に基づいて
具体的に説明したが、本発明は前記実施例に限定され
ず、その要旨を逸脱しない範囲において各種変更するこ
とができる。
Although the invention made by the present invention has been specifically described based on the embodiments, the present invention is not limited to the embodiments, and various modifications can be made without departing from the gist of the invention.

例えば、交換すべき一群の情報としてフレームの末尾
を示すデータを、シリアルチャネルが認識したときに、
その認識をチェーン機能付きダイレクトメモリアクセス
コントローラに知らせるための信号線を設ける構成につ
いては、上記実施例のように、シリアルチャンネル及び
ダイレクトメモリアクセスコントローラを同一チップに
含めなくてもよい。その場合に、シリアルチャンネル及
びダイレクトメモリアクセスコントローラが相互に非同
期動作するなら、その受信フレームなどの終了通知に対
するアクノリッジ信号をシリアルチャンネルに与えるこ
とが必要とされる。
For example, when the serial channel recognizes data indicating the end of a frame as a group of information to be exchanged,
As for the configuration in which a signal line for notifying the recognition to the direct memory access controller with a chain function is provided, the serial channel and the direct memory access controller do not have to be included in the same chip as in the above embodiment. In this case, if the serial channel and the direct memory access controller operate asynchronously with each other, it is necessary to provide the serial channel with an acknowledgment signal for the end notification such as the received frame.

また、シリアルチャネルと、チェーン機能を備えたダ
イレクトメモリアクセスコントローラと、ダイレクトメ
モリアクセスコントローラを介して前記シリアルチャネ
ルからメモリにデータをフレーム毎に転送る場合の各種
通信制御プロトコルに対処可能な汎用中央処理装置と
を、1つの半導体基板に形成した、通信機能付きシング
ルチップマイクロコンピュータとする構成においては、
フレームの末尾を示すデータを、シリアルチャネルが認
識したときに、その認識をチェーン機能付きダイレクト
メモリアクセスコントローラに知らせるための信号線を
設けなくてもよく、中央処理装置に対する割込みでフレ
ーム切り換え処理を実行するようにしてもよい。
Also, a direct memory access controller having a serial channel, a chain function, and a general-purpose central processing unit capable of coping with various communication control protocols when transferring data from the serial channel to the memory through the direct memory access controller to the memory frame by frame. In a configuration in which the device and a single-chip microcomputer with a communication function are formed on one semiconductor substrate,
When the data indicating the end of the frame is recognized by the serial channel, there is no need to provide a signal line for notifying the recognition to the direct memory access controller with a chain function, and the frame switching process is executed by interruption to the central processing unit. You may make it.

また、ダイレクトメモリアクセスコントローラが備え
るチェーン機能は前記実施例で説明した形式に限定され
ず、バッファ領域を多数用意し、それらをポインタとし
て機能する記述子のようなデータ格納領域によって識別
可能に次々と連結させるようにしてデータを一群毎に格
納可能とする種々の形式を採用することができる。
Further, the chain function provided in the direct memory access controller is not limited to the format described in the above embodiment, and a large number of buffer areas are prepared, and they can be identified one after another by a data storage area such as a descriptor that functions as a pointer. Various formats can be adopted that allow data to be stored for each group by linking.

以上の説明では主として本発明者によってなされた発
明をその背景となった利用分野であるハイレベルデータ
リンクコントロール方式によるシリアルデータの転送制
御を支援するシリアルチャネル及びダイレクトメモリア
クセス機能を備えた通信機能付きシングルチップマイク
ロコンピュータに適用した場合について説明したが、本
発明はそれに限定されるものではなく、フレームのよう
な一群のデータを区切りを認識可能にバッファメモリに
格納可能なデータ処理装置一般に適用することができ
る。本発明は少なくとも、情報交換のための制御手順な
どを支援するシリアルチャネルと、交換すべき情報をメ
モリとシリアルチャネルとの間で直接転送制御する、チ
ェーン機能を備えたダイレクトメモリアクセスコントロ
ーラとを有する通信機能をサポートする条件のものに適
用することができる。
In the above description, the invention made mainly by the inventor is provided with a communication function having a serial channel and a direct memory access function which supports transfer control of serial data by a high level data link control system which is a use field which is a background of the invention. Although the description has been given of the case where the present invention is applied to a single-chip microcomputer, the present invention is not limited to this. The present invention is generally applied to a data processing device capable of storing a group of data such as a frame in a buffer memory so that a partition can be recognized. Can be. The present invention has at least a serial channel that supports a control procedure for information exchange and the like, and a direct memory access controller with a chain function that directly controls the transfer of information to be exchanged between the memory and the serial channel. It can be applied to those that support the communication function.

〔発明の効果〕〔The invention's effect〕

本願において開示された発明のうち代表的なものによ
って得られるものの効果を簡単に説明すれば下記の通り
である。
The following is a brief description of the effects obtained by the representative inventions out of the inventions disclosed in the present application.

すなわち、第1の発明によれば、シリアルチャネルか
らメモリにデータをフレーム毎に区切りを認識可能に転
送る場合に、データ格納先アドレス変更などのフレーム
切り換え処理を、前記信号線から供給されるデータに基
づいてダイレクトメモリアクセスコントローラが実行す
ることにより、中央処理装置の介在を必要とせずに、そ
の処理時間を著しく短縮することができる。
That is, according to the first aspect, when data is transferred from the serial channel to the memory so that the delimiter of each frame can be recognized, the frame switching processing such as the change of the data storage address is performed by the data supplied from the signal line. , The processing time can be remarkably reduced without requiring the intervention of a central processing unit.

第2の発明によれば、シリアルチャネルとダイレクト
メモリアクセスコントローラとを相互に同一チップ内で
内部バス調停すれば足りることにより、交換されるべき
一群のデータの区切りを認識可能にそのデータを一群毎
にメモリにダイレクトアクセス制御方式で格納する処理
の高速化を達成することができると共に、汎用中央処理
装置により、通信プロトコルに対する高い汎用性を得る
ことができる。
According to the second invention, it is sufficient that the serial channel and the direct memory access controller mutually arbitrate the internal bus in the same chip, so that a group of data to be exchanged can be recognized in a group. In addition, the speed of the process of storing data in the memory by the direct access control method can be increased, and the versatility of the communication protocol can be obtained by the general-purpose central processing unit.

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

第1図は本発明に係るデータ処理装置の1実施例である
マイクロコンピュータを示すブロック図、 第2図はダイレクトメリアクセスコントローラが有する
チェーン機能の詳細な一例を示す説明図である。 MCU……マイクロコンピュータ、CPU……中央処理装置、
DMAC……ダイレクトメモリアクセスコントローラ、SIC
……シリアルチャネル、DM……メモリ、CL……信号線、
DD1乃至DDn……記述子、BA1乃至BAn……バッファ領域。
FIG. 1 is a block diagram showing a microcomputer which is an embodiment of a data processing apparatus according to the present invention, and FIG. 2 is an explanatory diagram showing a detailed example of a chain function of a direct access controller. MCU ... microcomputer, CPU ... central processing unit,
DMAC: Direct memory access controller, SIC
…… Serial channel, DM …… Memory, CL …… Signal line,
DD 1 or DDn ...... descriptor, BA 1 or BAn ...... buffer area.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 宮崎 健司 青梅市今井2326番地 株式会社日立製作 所デバイス開発センタ内 (72)発明者 大河内 俊夫 青梅市今井2326番地 株式会社日立製作 所デバイス開発センタ内 (56)参考文献 特開 昭59−62938(JP,A) FACOM230−75ハードウェア解説 書▲I▼,昭48.11発行,P.111−P. 145 ──────────────────────────────────────────────────の Continuing from the front page (72) Inventor Kenji Miyazaki 2326 Imai, Ome City, Hitachi, Ltd.Device Development Center (72) Inventor Toshio Okochi 2326 Imai, Ome City, Device Development Center, Hitachi, Ltd. 56) References JP-A-59-62938 (JP, A) FACOM 230-75 Hardware Description I, published 48.11, 111-P.145

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】バスに相互に結合されたメモリと中央処理
装置とダイレクトメモリアクセスコントローラとシリア
ルチャネルとを具備し、 上記ダイレクトメモリアクセスコントローラは上記バス
を介しての上記メモリと上記シリアルチャネルとの間で
の直接情報転送を制御し、 上記シリアルチャネルは外部装置との間でビットシリア
ルに情報伝達を行うためのシリアルインターフェイスコ
ントローラであって、 上記シリアルチャネルと上記外部装置との間の上記情報
伝達は一群の情報としてフレームを単位とするものであ
り、該フレームは該当フレームの末尾を示す終了フラグ
を含む転送データ方式の通信を可能とするデータ処理装
置であって、 上記メモリは上記フレームのデータを格納する複数の格
納先領域を含み、 上記シリアルチャネルと上記ダイレクトメモリアクセス
コントローラとの間に上記バスとは別に信号線を設け、 上記シリアルチャネルが上記ビットシリアルの上記情報
伝達の上記フレームの末尾を示す上記終了フラグを認識
した時、上記信号線を介して上記シリアルチャネルは該
認識を上記ダイレクトメモリアクセスコントローラに通
知せしめ、該通知に応答して上記ダイレクトメモリアク
セスコントローラは上記バスを介して上記シリアルチャ
ネルから上記メモリへ一群の情報を転送して格納する際
に上記メモリの上記複数の格納先領域の格納切り換え処
理を実行することを特徴とするデータ処理装置。
A memory, a central processing unit, a direct memory access controller, and a serial channel interconnected by a bus, wherein the direct memory access controller communicates with the memory and the serial channel via the bus. The serial channel is a serial interface controller for transmitting information bit-serial with an external device, and the information transmission between the serial channel and the external device. Is a data processing device which enables communication of a transfer data method including an end flag indicating the end of the frame as a group of information, wherein the frame is a data unit of the frame. And a plurality of storage destination areas for storing A signal line is provided separately from the bus between the direct memory access controller and the direct memory access controller. When the serial channel recognizes the end flag indicating the end of the frame of the bit serial information transmission, the signal line is connected to the signal line. The serial channel notifies the direct memory access controller of the recognition via the bus, and in response to the notification, the direct memory access controller transfers and stores a group of information from the serial channel to the memory via the bus. A data processing device for performing a storage switching process of the plurality of storage destination areas of the memory when performing the processing.
【請求項2】上記メモリの上記複数の格納先領域のそれ
ぞれに1対1対応の複数の記述子が上記メモリに設定さ
れ、 上記複数の記述子のそれぞれは、当該記述子に対応する
格納先領域の先頭アドレスが記述される第1ポインタ
と、当該記述子の次に続く記述子により指示される格納
先領域の先頭アドレスが記述される第2ポインタと、当
該記述子によって指示される格納先領域のデータ転送が
終了しているか否かを示す区切り情報が記述される指示
欄とを含み、 上記複数の記述子の上記指示欄の上記区切り情報を用い
て上記ダイレクトメモリアクセスコントローラは上記メ
モリの上記複数の格納先領域の格納切り換え処理を実行
することを特徴とする特許請求の範囲第1項に記載のデ
ータ処理装置。
2. A plurality of one-to-one descriptors corresponding to each of the plurality of storage destination areas of the memory are set in the memory, and each of the plurality of descriptors is a storage destination corresponding to the descriptor. A first pointer in which the head address of the area is described, a second pointer in which the head address of the storage area specified by the descriptor following the descriptor is described, and a storage destination specified by the descriptor An instruction column in which delimiter information indicating whether or not data transfer of the area has been completed is described, and the direct memory access controller uses the delimiter information in the instruction column of the plurality of descriptors to The data processing apparatus according to claim 1, wherein storage switching processing of the plurality of storage destination areas is performed.
【請求項3】上記情報伝達はハイレベルデータリンクコ
ントロール方式であることを特徴とする特許請求の範囲
第1項または第2項のいずれかに記載のデータ処理装
置。
3. The data processing device according to claim 1, wherein said information transmission is performed by a high-level data link control system.
JP62143069A 1987-06-10 1987-06-10 Data processing device Expired - Fee Related JP2633852B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62143069A JP2633852B2 (en) 1987-06-10 1987-06-10 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62143069A JP2633852B2 (en) 1987-06-10 1987-06-10 Data processing device

Publications (2)

Publication Number Publication Date
JPS63307568A JPS63307568A (en) 1988-12-15
JP2633852B2 true JP2633852B2 (en) 1997-07-23

Family

ID=15330196

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62143069A Expired - Fee Related JP2633852B2 (en) 1987-06-10 1987-06-10 Data processing device

Country Status (1)

Country Link
JP (1) JP2633852B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4361876A (en) * 1978-09-05 1982-11-30 Motorola, Inc. Microcomputer with logic for selectively disabling serial communications

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FACOM230−75ハードウェア解説書▲I▼,昭48.11発行,P.111−P.145

Also Published As

Publication number Publication date
JPS63307568A (en) 1988-12-15

Similar Documents

Publication Publication Date Title
JP3604398B2 (en) High-speed parallel packetized module arbitration control and data bus
ES2349488T3 (en) DIRECT MEMORY ACCESS CONTROLLER (DMAC) TO MANAGE TRANSFERS OF UNKNOWN LENGTHS.
JP3807250B2 (en) Cluster system, computer and program
JP2561759B2 (en) Multiprocessor system and message transmission / reception control device thereof
JPH04233055A (en) Server architecture for terminal apparatus
JP4903801B2 (en) Subscriber interface connecting FlexRay communication module and FlexRay subscriber device, and method of transmitting message via subscriber interface connecting FlexRay communication module and FlexRay subscriber device
JPH077374B2 (en) Interface circuit
JPS62206658A (en) Memory controller
KR20020009823A (en) Bus system and bus arbitration method thereof
GB2377138A (en) Ring Bus Structure For System On Chip Integrated Circuits
CN109992539B (en) Double-host cooperative working device
JP2633852B2 (en) Data processing device
JP2624989B2 (en) Data transfer control device
JP2528879B2 (en) Communication processing device
CN113704151B (en) Chip interconnection architecture and interconnection method based on TileLink bus
JPS63293657A (en) Serial communication controller
JP3201439B2 (en) Direct memory access control circuit
JP2687716B2 (en) Information processing device
JP2969744B2 (en) Data transmission method of computer system
JPH0713881A (en) Communication processor
JPH0581185A (en) Inter-cpu communication system
EP1193606B1 (en) Apparatus and method for a host port interface unit in a digital signal processing unit
JP2632049B2 (en) Multiprocessor system
JPH01145754A (en) Data transfer system
JPH03262063A (en) Bus control circuit for dma transfer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees