JPS5829025B2 - Data transfer control circuit - Google Patents
Data transfer control circuitInfo
- Publication number
- JPS5829025B2 JPS5829025B2 JP54036423A JP3642379A JPS5829025B2 JP S5829025 B2 JPS5829025 B2 JP S5829025B2 JP 54036423 A JP54036423 A JP 54036423A JP 3642379 A JP3642379 A JP 3642379A JP S5829025 B2 JPS5829025 B2 JP S5829025B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- register
- crc
- adapter
- control 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.)
- Expired
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0041—Arrangements at the transmitter end
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Detection And Correction Of Errors (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】
本発明は、データ伝送における送受信データのサイクリ
ック リダンダンシー チェックを行なうCRC制御回
路を有するデータ転送制御回路に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data transfer control circuit having a CRC control circuit that performs a cyclic redundancy check of transmitted and received data during data transmission.
データ伝送はI−l−1DLc(Hi]1evel
DataLink Control )手順、同期ベ
ーシック伝送手順(SYN同期手順)などにより行なわ
れるが、いずれ(・こしてもエラー防止のため上記CR
Cが、また簡易な方法としてはパリティチェックなどが
行なわれる。Data transmission is I-l-1DLc (Hi) 1 level
DataLink Control) procedure, synchronization basic transmission procedure (SYN synchronization procedure), etc.
A parity check is also performed as a simple method.
HDLCの場合信号フォーマットはフラグF1アドレス
A1コントロールC,データD1〜Dn1チェックビッ
トFC8I 、Fe12、フラグFに固定されており、
フラグ間の全ブロックA、C・・・・・・・・・をすべ
てデータとして取扱ってCRCを行なえばよいのでコン
トロールは容易であり、CRC演算レジスタを設けこれ
をプログラムで制御して行なうという通常の方式で充分
であり、プログラムに負担がか\り過ぎるという問題は
ない。In the case of HDLC, the signal format is fixed to flag F1 address A1 control C, data D1 to Dn1 check bits FC8I, Fe12, flag F,
Control is easy because all blocks A, C, etc. between the flags can be treated as data and CRC can be performed, and the usual method is to provide a CRC calculation register and control this using a program. The above method is sufficient and there is no problem of putting too much burden on the program.
ところが、SYN同期手順では信号フォーマットはSY
N 、SYN 、STX 、D1〜DieSYN 、D
j〜Dn、ETX 、BCC、BCCの構成をとり、通
常同期キャラクタSYN以外に例えば5TX(Star
t of Text)等の制御キャラクタもCRC
演算の対象から列すので、ハードウェアたけでCRCの
制御を行なうにはハードウェア側でデータの識別をせね
ばならず、回路が複雑となる。However, in the SYN synchronization procedure, the signal format is SY
N, SYN, STX, D1~DieSYN, D
j to Dn, ETX, BCC, and BCC, and in addition to the normal synchronization character SYN, for example, 5TX (Star
Control characters such as t of Text) are also CRC
Since the data is processed first, if the CRC is controlled by hardware alone, data must be identified on the hardware side, making the circuit complex.
このため、従来はハードウェア側でCRC制御を行なう
形態はとらず、全て制御はプログラムで行なうようにし
ていた。For this reason, conventionally, CRC control was not performed on the hardware side, and all control was performed by a program.
しかしながら、CRCの演算は通常排他オアなどを用い
てビットシリアルに行なうので、か\る演算の制御を行
なうことはプログラム【ことって大きな負担となる。However, since CRC calculations are usually performed bit-serial using exclusive OR, controlling such calculations places a heavy burden on the program.
本発明は、SYN同期手順などのデータとは見做さない
ブロックが散在するフォーマットの信号のCRCに際し
てプログラムの負担を軽減させようとするものであり、
その特徴とする所は処理部と、回線に接続されたアダプ
タとを有し、該アダプタは該処理部と回線との間のデー
タの受渡しを行なうとともに該受渡されるデータの内所
定のデータを演算して当該データの検査コードを作成す
るデータ転送制御回路において、該アダプタに、該受渡
されるデータが蓄積されるデータレジスタと、該データ
レジスタ【こ蓄積されたデータに対し、該演算を行う演
算手段と、該処理部lこより制御ビットをセットされ、
該演算の手段の起動の有無を示す制御レジスタとを設け
、該アダプタは該データレジスタ(こ蓄積される回線又
は処理部に受渡されるべきデータの内鉄制御レジスタが
セントされた場合に、検査コードを算出せしめる点にあ
る。The present invention aims to reduce the burden on a program when performing CRC on a signal in a format in which blocks not considered as data such as SYN synchronization procedures are interspersed.
Its characteristic feature is that it has a processing unit and an adapter connected to the line, and the adapter transfers data between the processing unit and the line, and also transfers predetermined data among the data transferred. In a data transfer control circuit that performs calculations to create a check code for the data, the adapter has a data register in which the transferred data is stored, and a data register that performs the calculations on the stored data. a calculation means and a control bit set by the processing unit;
The adapter is provided with a control register that indicates whether or not the calculation means is activated, and the adapter performs an inspection when the data register (the internal control register of the data to be transferred to the line to be stored or the processing unit is sent) is sent. The point is to have the code calculated.
以下図面を参照してこれを詳細に説明する。This will be explained in detail below with reference to the drawings.
第1図は通常のデータ伝送システムの一部を示し、3は
共通バスであってこれに中央処理装置2、主記憶装置4
、回線制御用チャネル5などが接続される。FIG. 1 shows a part of a normal data transmission system, in which 3 is a common bus connected to a central processing unit 2, a main memory 4,
, line control channel 5, etc. are connected.
メインチャネル5には複数本の回線6がバス7、ライン
アダプタ1を介して接続される。A plurality of lines 6 are connected to the main channel 5 via a bus 7 and a line adapter 1.
ラインアダプタ1の回線6との接続部には伝送制御用の
集積回路が置かれるが、本発明者は種々の機能を持たせ
た該集積回路(LSI)を開発した。An integrated circuit for transmission control is placed at the connection part of the line adapter 1 with the line 6, and the inventor has developed this integrated circuit (LSI) with various functions.
このLSIはHDL C手順の他にSYN同期手順の伝
送制御も可能であり、第2図に示す構成を有する。This LSI is capable of controlling transmission of the SYN synchronization procedure in addition to the HDLC procedure, and has the configuration shown in FIG.
限定するものではないが本発明はか\るLSIのCRC
制御に用いて好適である。Although not limited to, the present invention is applicable to CRC of some LSI.
Suitable for use in control.
第3図は本発明の一実施例を示し、第2図のLSIの一
部に相当する。FIG. 3 shows an embodiment of the present invention, and corresponds to a part of the LSI shown in FIG.
第1図のLAバス7からのライトデータWDは、レジス
タアドレスRAにより選択されるライトデ−タレジスタ
10にパラレルに書き込まれた後、送信側のCRC演算
レジスタ11およびP/S レジスタ12へ転送され
る。Write data WD from the LA bus 7 in FIG. 1 is written in parallel to the write data register 10 selected by the register address RA, and then transferred to the CRC calculation register 11 and P/S register 12 on the transmitting side. .
P/S (パラレルシリーズ変換)レジスタ12に入
ったライトデータWDは該レジスタから直列形式で続み
出され回線16を通して送出される。The write data WD that has entered the P/S (parallel series conversion) register 12 is sequentially output from the register in a serial format and sent out through the line 16.
ライトデータWDはCRC演算レジスタへは直列形式で
書き込まれ、こ\でCRC演算が行なわれるが、前述の
ように1フレームの信号内にはこの演算対象となるブロ
ック(lブロックは例えば1バ、イトつまり8ビツトか
らなる)と演算対象としないブロックがあるからこれを
区別する必要があり、プログラム等が複雑になる。The write data WD is written in a serial format to the CRC calculation register, where the CRC calculation is performed, but as mentioned above, within one frame signal there are blocks to be subjected to this calculation (l block is, for example, 1 bar, Since there are blocks (consisting of 8 bits) and blocks that are not subject to calculations, it is necessary to distinguish between these blocks, which complicates the program.
そこで本発明ではCRC演算レジスタの他Iこその制御
用(SCCNT) のレジスタ15を設け、ライトデ
ータレジスタ10にデータおよびデータ以外のキャラク
タが書き込まれる毎に、該キャラクタがデータであるか
データ以外のキャラクタであるかを指示する情報を5C
CNTレジスタ154こ書き込む。Therefore, in the present invention, in addition to the CRC calculation register, a register 15 for control (SCCNT) is provided, and each time data or a character other than data is written to the write data register 10, it is determined whether the character is data or not. 5C information indicating whether it is a character
Write to CNT register 154.
この書き込みはやはりレジスフアドレス線13およびラ
イトデータ線14を用いて行なう。This writing is also performed using the register address line 13 and write data line 14.
5CCNTレジスタ15は2ビツトであり、その内容が
第1表左欄の時、対応する右欄の指示をCRC演算レジ
スタ11に与える。The 5CCNT register 15 has 2 bits, and when the contents are in the left column of Table 1, the corresponding instruction in the right column is given to the CRC calculation register 11.
上表で分類番号(1)における×は2進数0.1のいず
れでもよいことを示す。In the above table, × in classification number (1) indicates that any binary number 0.1 may be used.
CRC演算レジスタ11は、5CCNTレジスク15の
内容によってSYN同期手順のCRC作成を行なうが、
これを第4図のタイムチャートを参照しながら説明する
。The CRC calculation register 11 creates a CRC for the SYN synchronization procedure according to the contents of the 5CCNT register 15.
This will be explained with reference to the time chart of FIG.
第4図aはSYN同期手順のデータ フォーマットを示
し、フレームの頭部には同期キャラクタSYNが2つ連
続し、その後にSTXが、更にデータD1〜D4、同期
キャラクタSYN、・・・・・・・・・データDnおよ
びETX(End of Text)が続く。Figure 4a shows the data format of the SYN synchronization procedure, where two consecutive synchronization characters SYN are placed at the beginning of the frame, followed by STX, then data D1 to D4, synchronization characters SYN, etc. ...Data Dn and ETX (End of Text) follow.
同gbはライトデータレジスタ10へノ書キ込みを示し
ており、2番目のSYNからETXまでがプログラムに
よって書き込まれ、前述のよう(こP/S レジスタ
12、回線16を介して送出される。The gb indicates writing to the write data register 10, and data from the second SYN to ETX is written by the program, and is sent out via the P/S register 12 and line 16 as described above.
同図Cは5CCNTレジスタ15に書き込む内容を分類
番号(0) 、 (1) 、 (2)で示し、同図dは
データ送出可能なタイミング(セントまたはレシーブバ
ッファ エンプティ)を、また同図eはプログラムの処
理を示す。Figure C shows the contents to be written to the 5CCNT register 15 using classification numbers (0), (1), and (2), Figure d shows the timing at which data can be sent (cent or receive buffer empty), and Figure e shows the timing at which data can be sent (cent or receive buffer empty). Shows the processing of the program.
CRC演算レジスタ11は第4図aのライトデータSY
N 、SYN 、・・・・・・・・・ETXのうちデー
タ部DI +D2 +・・・・・・・・・Dnだけを演
算対象とするので、5CCNTレジスタ15は第4図C
のように2番目の5YN(フレーム開始を示す5YN)
;を分類番号(0)で「加算せず」を指示し、またST
Xに対しては分類番号(2)で「初期化」を指示する。The CRC calculation register 11 stores the write data SY in FIG. 4a.
Since only the data portion DI +D2 +......Dn of N, SYN, ......ETX is subject to calculation, the 5CCNT register 15 is as shown in Fig. 4C.
Second 5YN (5YN indicating start of frame) as in
; is specified by the classification number (0) to "not add", and ST
For X, "initialization" is instructed using the classification number (2).
初期化とは、CRC演算レジスタ11をオールOまたは
オール1にプリセットすることをいう。Initialization means presetting the CRC calculation register 11 to all O's or all 1's.
そして、ライトデータレジスタ10に第4図すのタイミ
ングでデータD1 が書き込まれると5CCNTレジス
タ15に書込む内容は分類番号(1)とし、CRC演算
レジスタ11に「加算する」を指示する。When the data D1 is written to the write data register 10 at the timing shown in FIG. 4, the content to be written to the 5CCNT register 15 is the classification number (1), and the CRC calculation register 11 is instructed to "add".
以下同様にしてレジスタ10に書き込まれるデータD2
.D3・・・・・・・・・Dnを加算させ(クロックと
してのSYNはレジスタ11には書き込まれない)、最
終データDn(Dnが最終ということはレジスタ10に
は2つのアドレスADD1.ADD2を持たせておき、
データD −D を書き込むときはア1
[1−1
ドレス信号をADD 1とし、データDnを書き込むと
きはアドレス信号をADD2とすること(こより識別で
きる。Data D2 is subsequently written to register 10 in the same manner.
.. D3......Dn is added (SYN as a clock is not written to the register 11), and the final data Dn (Dn is the final means that two addresses ADD1 and ADD2 are added to the register 10). Let me have it,
When writing data D - D, A1
[1-1 The address signal should be ADD 1, and when writing data Dn, the address signal should be ADD 2 (this can be identified).
勿論ETXを判明してもよい)の加算が終了するときそ
の演算結果BCCをP/S レジスタ12に送出させ
る。Of course, when the addition of ETX is completed, the calculation result BCC is sent to the P/S register 12.
P/S レジスタ12はこうしてレジスタ10の出力
5YN−ETXおよびCRC演算レジしク11の演算結
果BCC,B’CCを第4図aのシリアルフォーマット
に変換して送信回線16へ送出する。The P/S register 12 thus converts the output 5YN-ETX of the register 10 and the calculation results BCC and B'CC of the CRC calculation register 11 into the serial format shown in FIG.
受信側についても同様のことが独立して行なわれる。The same thing is done independently on the receiving side.
即ち、第3図の受信回線17からの受信データはS/P
レジスタ18でパラレルに変換された後リードデー
タレジスタ19【こ転送される。That is, the received data from the receiving line 17 in FIG.
After being converted into parallel data in the register 18, the data is transferred to the read data register 19.
レジスタ19に書き込まれるリードデータRDのフォー
マットも第4図aと同様であるが、送信側と異なりプロ
グラムは現在レジスタ19に書き込まれたものがデータ
であるか否かを判別した後でなければ、受信側のRCC
NTレジスタ20に指示を与えることはできない。The format of the read data RD written to the register 19 is also the same as that shown in FIG. Receiving side RCC
No instructions can be given to the NT register 20.
RCCNTレジスタ20はやはり2ビツトであり、その
内容が第2表左欄の時、対応する右欄の指示をチェック
用のCRC演算レジスタ21へ与える。The RCCNT register 20 also has 2 bits, and when its contents are in the left column of Table 2, the corresponding instruction in the right column is given to the CRC calculation register 21 for checking.
上表で分類番号(0)〜(2)は送信側と同様であるが
、分類番号(3)の「チェック結果の通知」は受信側特
有のものであり、全データに対するCRC演算レジスタ
21の加算が終了した時点で受信制御回路22から演算
結果ANSをプログラムに通知信号再送(エラーのとき
)、次の信号送出要求(エラー4.、(しのとき)など
を行わせる。In the above table, classification numbers (0) to (2) are the same as those on the sending side, but the classification number (3) "Notification of check results" is unique to the receiving side, and is the CRC calculation register 21 for all data. When the addition is completed, the reception control circuit 22 sends the calculation result ANS to the program to resend the notification signal (in the case of an error), request the next signal transmission (in the case of error 4., (in the case of error), etc.).
尚、第3図におけるP/S レジスタ12およびS/
P レジスタ18は第2図の回線S−P変換制御部3
(Iこ含まれ、また5CCNTレジスタ15およびRC
CNTレジスタ20は第2図のラインコントロールレジ
スタ31の制御ビットとして定義される。In addition, the P/S register 12 and S/S register in FIG.
The P register 18 is the line S-P conversion control unit 3 in FIG.
(Includes 5CCNT registers 15 and RC
CNT register 20 is defined as a control bit of line control register 31 in FIG.
ライトデータレジスタ10およびリードデータレジスタ
19はそれぞれ第2図の送信データレジスタ32および
受信レジスタ33であり、また受信側のCRC演算レジ
スタ21は第2図のCRCチェック回路34に相当する
。The write data register 10 and the read data register 19 correspond to the transmit data register 32 and the receive register 33 in FIG. 2, respectively, and the CRC calculation register 21 on the receiving side corresponds to the CRC check circuit 34 in FIG.
レジスタアドレスRAはデコーダ35のデコード出力で
ある。Register address RA is the decoded output of decoder 35.
またプログラムへの通知(割込み)は割込み制御回路3
6の出力IRQにより行なわれる。Also, notifications (interrupts) to the program are made by the interrupt control circuit 3.
This is done by the output IRQ of 6.
上述した本発明のサイクリック リダンダンシーチェッ
ク制御回路によれば、CRC演算およびその制御は送受
信共にハードウェアで行なわれる。According to the above-described cyclic redundancy check control circuit of the present invention, the CRC calculation and its control are performed by hardware for both transmission and reception.
従って、プログラムでは第1表、第2表の指示を与える
簡単な制御を行なうだけでよいので、SYN同期手順に
おけるCRCの負担が著しく軽減される利点がある。Therefore, since the program only needs to carry out simple control that gives the instructions in Tables 1 and 2, there is an advantage that the burden of CRC in the SYN synchronization procedure is significantly reduced.
更にはHDLC手順の場合にも、計算するビットを立て
るようにするたけで良く、SYN同期手順であろうとH
DLC手順であろうと使用でき、汎用性が高い装置が実
現される。Furthermore, even in the case of the HDLC procedure, all that is required is to set the bit to be calculated, and whether it is a SYN synchronization procedure or
A highly versatile device that can be used regardless of the DLC procedure is realized.
第1図は端末装置の一例を示す概略ブロック図、第2図
は第1図のラインアダプタとして用いられるLSIのブ
ロック図、第3図は本発明の一実施例を示すブロック図
、第4図はCRC作成のタイムチャートである。
図中、1はラインアダプタ、15.20はCRC制御用
レジスタ、11.21はCRC演算レジスタである。FIG. 1 is a schematic block diagram showing an example of a terminal device, FIG. 2 is a block diagram of an LSI used as the line adapter in FIG. 1, FIG. 3 is a block diagram showing an embodiment of the present invention, and FIG. 4 is a time chart of CRC creation. In the figure, 1 is a line adapter, 15.20 is a CRC control register, and 11.21 is a CRC calculation register.
Claims (1)
アダプタは該処理部と回線との間のデータの受渡しを行
なうとともに該受渡されるデータの内所定のデータを演
算して当該データの検査コードを作成するデータ転送制
御回路において、該アダプタに、該受渡されるデータが
蓄積されるデータレジスタと、該データレジスタに蓄積
されたデータ(こ対し該演算を行う演算手段と、該処理
部により制御ビットをセットされ、該演算の手段の起動
の有無を示す制御レジスタとを設け、該アダプタは該デ
ータレジスタに蓄積される回線又は処理部lこ受渡され
るべきデータの内核制御レジスタがセットされた場合に
、検査コードを算出せしめる事を特徴とするデータ転送
制御回路。1. It has a processing unit and an adapter connected to the line, and the adapter transfers data between the processing unit and the line, and calculates predetermined data from the transferred data. In a data transfer control circuit that creates a test code, the adapter has a data register in which the data to be transferred is stored, a calculation means for performing the calculation, and a data register to store the data to be transferred. The adapter is provided with a control register in which a control bit is set by the data register to indicate whether or not the arithmetic means is activated. A data transfer control circuit that is characterized by causing an inspection code to be calculated when set.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP54036423A JPS5829025B2 (en) | 1979-03-28 | 1979-03-28 | Data transfer control circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP54036423A JPS5829025B2 (en) | 1979-03-28 | 1979-03-28 | Data transfer control circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS55128946A JPS55128946A (en) | 1980-10-06 |
| JPS5829025B2 true JPS5829025B2 (en) | 1983-06-20 |
Family
ID=12469408
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP54036423A Expired JPS5829025B2 (en) | 1979-03-28 | 1979-03-28 | Data transfer control circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5829025B2 (en) |
-
1979
- 1979-03-28 JP JP54036423A patent/JPS5829025B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS55128946A (en) | 1980-10-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5810236A (en) | Interface circuit | |
| JPS62233870A (en) | Sequential communication controller | |
| JPS63294146A (en) | Communication control device | |
| US5838892A (en) | Method and apparatus for calculating an error detecting code block in a disk drive controller | |
| JPH08161259A (en) | Serial data receiving device and serial data transferring device | |
| JPS5829025B2 (en) | Data transfer control circuit | |
| JP2692773B2 (en) | Error correction device | |
| US4016367A (en) | Communication multiplexer module | |
| CA1269173A (en) | Combined analog/digital ccis data transmitter/receiver circuit | |
| US6105081A (en) | UART character matching used for address matching on a register-by-register basis | |
| JPH0746323B2 (en) | Main memory for compressing partial write access | |
| KR0154470B1 (en) | Circuit for interfacing between auxiliary processor and external device | |
| JPH05298179A (en) | Memory control system | |
| JPH05114925A (en) | Serial data transmission interface | |
| JPS6379439A (en) | Serial communication equipment | |
| JPH01158554A (en) | Data processing system providing dma device | |
| JPS58200357A (en) | Information processing system | |
| JP2751879B2 (en) | Communication system between processors | |
| JP2823625B2 (en) | Data processing device | |
| JPS59123913A (en) | Dma access system | |
| JPH0638239B2 (en) | Error correction mechanism | |
| JPH04369135A (en) | Data transmission method | |
| JPS589274A (en) | Write data buffer control device | |
| JPH0644749B2 (en) | Data transceiver | |
| JPS5932049A (en) | Error correction code generating circuit combinedly used for error correcting integrated circuit |