KR940007872B1 - Circuit for calculating crc of atm cell head - Google Patents

Circuit for calculating crc of atm cell head Download PDF

Info

Publication number
KR940007872B1
KR940007872B1 KR1019910024028A KR910024028A KR940007872B1 KR 940007872 B1 KR940007872 B1 KR 940007872B1 KR 1019910024028 A KR1019910024028 A KR 1019910024028A KR 910024028 A KR910024028 A KR 910024028A KR 940007872 B1 KR940007872 B1 KR 940007872B1
Authority
KR
South Korea
Prior art keywords
circuit
crc
bit
exclusive
flop
Prior art date
Application number
KR1019910024028A
Other languages
Korean (ko)
Inventor
강구홍
이범철
김정식
박권철
Original Assignee
재단법인 한국전자통신연구소
경상현
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 재단법인 한국전자통신연구소, 경상현 filed Critical 재단법인 한국전자통신연구소
Priority to KR1019910024028A priority Critical patent/KR940007872B1/en
Application granted granted Critical
Publication of KR940007872B1 publication Critical patent/KR940007872B1/en

Links

Landscapes

  • Error Detection And Correction (AREA)
  • Detection And Correction Of Errors (AREA)

Abstract

The cyclic redundancy code (CRC) calculating circuit includes first and second 8-bit flip flops for retiming input and output data, an exclusive OR circuit for generating a next 8-bit register value for CRC calculation, an 8-bit register for latching data for CRC generation, a select circuit for inserting a CRC into a transfer data stream, and a delay circuit for supplying a control signal to the select circuit, thereby providing useful CRC calculation for high-speed data.

Description

ATM 셀 헤드에 대한 바이트 단위 CRC 계산 회로Byte-based CRC calculation circuit for ATM cell head

제 1 도는 종래의 회로 구성도.1 is a circuit diagram of a conventional circuit.

제 2 도는 본 발명의 블럭도.2 is a block diagram of the present invention.

제 3 도는 본 발명의 배타적 OR 회로도.3 is an exclusive OR circuit diagram of the present invention.

제 4 도는 본 발명의 8비트 레지스터, 선택회로, 지연회로에 대한 회로도.4 is a circuit diagram of an 8-bit register, selection circuit, and delay circuit of the present invention.

제 5 도는 본 발명의 주요 신호간 관계를 나타내는 타이밍도.5 is a timing diagram showing the relationship between main signals of the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

1, 5 : 8비트 플립플롭 2 : 배타적 OR 회로1, 5: 8-bit flip-flop 2: Exclusive OR circuit

3 : 8비트 레지스터 4 : 선택회로3: 8-bit register 4: selection circuit

6 : 지연회로6: delay circuit

본 발명은 ATM(Asynchrous transfer Mode) 셀(cell) 헤드(head)에 대한 바이트(byte) 단위 CRC(cyclic redundancy code) 계산회로에 관한 것이다.The present invention relates to a circuit for calculating a cyclic redundancy code (CRC) on a byte basis for an ATM (Asynchrous Transfer Mode) cell head.

ATM 셀 헤드는 5옥텟(octet)으로 구성되고 마지막 옥텟은 헤드에 대한 1비트 에러수정(head error control) 및 셀 경계 추출(cell delineation)을 위해 CRC로 사용된다. 이때 사용되는 생성 다항식(generator polynomial g(X)는 x8+x2+x+1이다.The ATM cell head consists of 5 octets and the last octet is used as the CRC for 1 bit head error control and cell delineation for the head. The generator polynomial g (X) used here is x 8 + x 2 + x + 1.

CRC 계산은 주로 비트(bit) 단위로 수행되었으나, 소프트웨어에 의한 CRC 계산시 바이트 단위의 처리의 용이성 및 계산 속도의 이유로 인해 테이블 룩업(table look-up) 알고리즘을 이용한 바이트 단위 계산이 1983년 Perez에 의해 제안되었다. 근래에 와서 폭발적인 데이터 량의 증가로 인해 고속의 데이터 전송이 불가피하고 이때 데이터의 완전성(intergrity)을 위한 종래의 쉬프트레지스터에 의한 CRC 계산회로는 고속데이터 처리에 따른 부품선정 및 설계의 어려움을 격고 있다.CRC calculations were performed mainly in bits, but due to the ease of processing in bytes and the speed of calculation in CRC calculations by software, byte calculations using table look-up algorithms were introduced in Perez in 1983. Proposed by. In recent years, high speed data transmission is inevitable due to the explosive increase in data volume. At this time, the CRC calculation circuit based on the conventional shift register for data integrity has difficulty in selecting and designing parts due to high speed data processing. .

본 발명의 목적은 상기 문제점을 완화하기 위해 8배의 속도 감소 효과를 지닌 바이트 단위 CRC 계산 회로를 제공하는데 있다.An object of the present invention is to provide a byte-by-byte CRC calculation circuit having an eight times speed reduction effect to alleviate the above problem.

본 발명은 상기 목적을 달성하기 위해 제 1 도와 같은 종래의 CRC 계산회로로부터 비트 단위 CRC 계산에 의한 8번 쉬프팅한 결과를 표 1과 같이 도표화해 그 결과를 바이트 단위로 계산하기 위한 배타적 OR 연산표를 구한다. 이때 배타적 OR 탭(tap) 수는 ATM 셀 헤드용 CRC 생성다항식이 사용된다. 표 1에서 SH는 쉬프트 휫수를, IN은 입력 데이터를, R1~R8은 각 레지스터 값을 각각 나타낸다. 한편, C1~C8은 레지스터의 초기값을 나타낸다. 표 1에서 최종 쉬프트가 완료된 마지막 단을 배타적 OR 함수가 지닌 4가지특성 즉, communtative(AB=BA), associativity(ABC=ACB), involutlon(AA=0), identity(A0=A)를 이용해 간략화 하면 표 2와 같다. 표 2로부터 배타적 OR 연산표를 구하기 위해 X1=C1 M1의 관계식을 이용해 표 3과 같이 다시 표현할 수 있다.Exemplary OR operation table for calculating the result of the shift by the bit shifted by bit CRC calculation from the conventional CRC calculation circuit as shown in Table 1 to calculate the result in byte unit to achieve the above object Obtain In this case, the exclusive OR tap number is a CRC generation polynomial for the ATM cell head. In Table 1, SH represents shift number, IN represents input data, and R1 to R8 represent each register value. In addition, C1-C8 represent the initial value of a register. In Table 1, the four stages of the exclusive OR function, that is, the last stage of the final shift, are called communtative (A B = B A), associativity (A B C = A C B), involutlon (A A = 0), identity (A Simplified using 0 = A) is shown in Table 2. To find the exclusive OR calculation table from Table 2 X 1 = C 1 Using the relation of M 1 can be re-expressed as shown in Table 3.

이하, 첨부된 도면을 참고하여 본 발명의 일실시예를 설명하면 다음과 같다.Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings.

제 2 도는 본 발명의 구성을 나타내는 블럭도로서, 1과 5는 8비트 플립플롭, 2는 배타적 OR 회로, 3은 8비트 레지스터, 4는 선택회로, 6은 지연회로를 각각 나타낸다. 입력 데이터 Din8~Din1은 8비트 플립플롭(1)에 의해 리타이밍 된다. 8비트 플립플롭(1)은 본 실시예에서 74LS374 IC 칩으로 구성되었으며, 출력 데이터 M1(1〈i〈8)의 파형은 제 5 도의 M1와 같다. 배타적 OR 회로(2)는 8비트 플립플롭(1)로부터 수신되는 실질적으로 전송할 데이터 M1와 현 8비트 레지스터(3)의 상태값 C1를 입력하여 다음 단(stage) 8비트 레지스터(3)의 상태값을 생성시킨다. 배타적 OR 회로(2)는 표 3의 관계식에 의해 제 3 도와 같이 개별적인 배타 OR 게이트에 의해 구현된다. 8비트 레지스터(3)는 배타적 OR 회로(2)에서 출력되는 CRC 생성을 위한 상태값 및 CRC를 일시적으로 저장하며, CRC 생성을 위해 매 바이트 단위 쉬프트시 상태값을 배타적 OR 회로(2)로 피트백 시킨다. 선택회로(4)는 8비트 플립플롭(1)으로부터 전송할 데이터와 8비트 레지스터(3)로부터 CRC를 각각 입력해 전송할 데이터 스트림 상에 CRC를 삽입한다. 지연회로(6)는 전송할 데이터 스트림상에 CRC를 실기위해 MR(Master Reset)을 해당 위치만큼 지연시켜 선택회로(4)로 제어신호를 전송한다. 선택회로(4)로부터 출력되는 최종 전송할 데이터는 8비트 플립플롭(5)에 의해 리타이밍되어 출력된다.2 is a block diagram showing the configuration of the present invention, where 1 and 5 are 8-bit flip-flops, 2 is an exclusive OR circuit, 3 is an 8-bit register, 4 is a selection circuit, and 6 is a delay circuit. The input data Din8 to Din1 are retimed by an 8-bit flip flop (1). The 8-bit flip-flop 1 is composed of a 74LS374 IC chip in this embodiment, and the waveform of the output data M 1 (1 < i < 8) is the same as M 1 in FIG. The exclusive OR circuit 2 inputs the substantially transmitted data M 1 received from the 8-bit flip-flop 1 and the state value C 1 of the current 8-bit register 3 to the next stage 8-bit register 3. Creates a status value of. The exclusive OR circuit 2 is implemented by individual exclusive OR gates as in the third diagram by the relations in Table 3. The 8-bit register 3 temporarily stores the CRC and the CRC output from the exclusive OR circuit 2, and fits the status value to the exclusive OR circuit 2 at every byte shift to generate the CRC. Let it back. The selection circuit 4 inputs the data to be transmitted from the 8-bit flip-flop 1 and the CRC from the 8-bit register 3 to insert the CRC onto the data stream to be transmitted. The delay circuit 6 transmits a control signal to the selection circuit 4 by delaying the MR (Master Reset) by the corresponding position in order to load the CRC on the data stream to be transmitted. The final data to be transmitted from the selection circuit 4 is retimed by the 8-bit flip-flop 5 and output.

제 4 도는 제 2 도의 8비트 레지스터(3), 선택회로(4), 지연회로(6)에 대한 구체적인 회로도로서 본 실시예에서는 8비트 레지스터(3)는 74LS273(7), 선택회로(4)는 74LS157(9)(10), 지연회로(6)는 74LS374(8)로 각각 구현된다. 74LS273(7)은 제 5 도의 ATM 셀 주기클럭 MR의 "로우"상태에서 리세트되어, 출력 C1가 "0"상태가 되어 CRC 생성 74LS273(7)을 "0"로 초기화 한다. 입력 데이터 M1가 4번 쉬프트 된후, 74LS273(7)은 ATM 셀 헤드의 CRC 값을 가지게 된다. 출력 데이터 파형 C1는 제 3 도의 C1과 같다. 74LS374(8)는 MR을 입력으로 수신해 클럭 CP에 의해 요구되는 휫수만큼 피드백시켜 제 5 도의 파형 Q를 만들어 74LS157(9)(10)의 선택단자로 입력시킨다. 74LS157(9)(10)은 전송할 데이터 스트림상에 CRC를 실기위해 제 2 도의 8비트 플립플롭(1)과 74LS273(7)에서 각각 수신되는 데이터를 74LS374(8)에서 출력되는 Q의 "하이"상테에서는 전송할 데이터 M1를 선택하고 "로우"상태에서는, CRC C1를 선택한다.4 is a detailed circuit diagram of the 8-bit register 3, the selection circuit 4, and the delay circuit 6 in FIG. 2. In this embodiment, the 8-bit register 3 is 74LS273 (7) and the selection circuit 4 in this embodiment. The 74LS157 (9) 10 and the delay circuit 6 are implemented as 74LS374 (8), respectively. The 74LS273 (7) is reset in the "low" state of the ATM cell cycle clock MR of FIG. 5, and the output C 1 is in the "0" state to initialize the CRC generation 74LS273 (7) to "0". After the input data M 1 is shifted four times, 74LS273 (7) has the CRC value of the ATM cell head. Output waveform data C 1 is equal to 1 ° C third. The 74LS374 (8) receives MR as an input and feeds it back as many times as required by the clock CP to generate waveform Q of FIG. 5 and input it to the selection terminal of 74LS157 (9) (10). The 74LS157 (9) (10) outputs the data received from the 8-bit flip-flop (1) and 74LS273 (7) of FIG. In the state, the data M 1 to be transmitted is selected, and in the "low" state, the CRC C 1 is selected.

[표 1a]TABLE 1a

[표 1b]TABLE 1b

[표 2]TABLE 2

[표 3]TABLE 3

따라서, 상기와 같이 구성되어 동작하는 본 발명은 종래의 쉬프트레지스터에 의한 비트 단위 CRC 계산속도를 8배 감소시키는 효과가 있어, 고속 데이터에 대한 CRC 계산시 매우 유용하게 사용될 것이다.Therefore, the present invention configured and operated as described above has an effect of reducing the bit-by-bit CRC calculation speed by the conventional shift register by 8 times, and thus will be very useful when calculating CRC for high-speed data.

Claims (2)

입력 및 출력 데이터를 리타이밍 하는 8비트 플립플롭(1)(5), 상기 8비트 플립플롭(1)에 연결되어 CRC(Cyclic Redundancy Code) 계산을 위해 다음번 8비트 레지스터 값을 생성하는 배타적 OR 회로(2), 상기 배타적 OR 회로(2)에 연결되어 매 쉬프팅마다 CRC 생성을 위한 데이터를 래치하는 8비트 레지스터(3), 상기 8비트 플립플롭(1)과 8비트 레지스터(3)에 연결되어 전송 데이터 스트림 상에 CRC를 삽입하는 선택회로(4), MR(Master Reset)을 수신해 상기 선택회로(4)에 제어신호 Q를 제공하는 지연회로(6)로 구성된 것을 특징으로 하는 ATM 셀 헤드에 대한 바이트 단위 CRC 계산회로.An 8-bit flip-flop (1) (5) for retiming input and output data, an exclusive OR circuit connected to the 8-bit flip-flop (1) to generate the next 8-bit register value for cyclic redundancy code (CRC) calculations. (2) an 8-bit register (3) connected to the exclusive OR circuit (2) for latching data for CRC generation at every shifting, and connected to the 8-bit flip-flop (1) and 8-bit register (3). An ATM cell head comprising a selection circuit 4 for inserting a CRC on a transmission data stream and a delay circuit 6 for receiving a master reset (MR) and providing a control signal Q to the selection circuit 4. CRC calculation circuit for bytes. 제 1 항에 있어서, 상기 8비트 플립플롭(1)(5)은 74LS374로, 상기 8비트 레지스터(3)는 74LS273으로, 상기 선택회로(4)는 2개의 74LS157로, 상기 지연회로(6)는 74LS374로, 상기 배타적 OR 회로(2)는 개별적 배타적 OR으 연결로 구성된 것을 특징으로 하는 ATM 셀 헤드에 대한 바이트 단위 CRC 계산회로.The delay circuit (6) according to claim 1, wherein the 8-bit flip-flop (1) (5) is 74LS374, the 8-bit register (3) is 74LS273, and the selection circuit (4) is two 74LS157. Denotes 74LS374, wherein the exclusive OR circuit (2) consists of a connection of individual exclusive ORs.
KR1019910024028A 1991-12-23 1991-12-23 Circuit for calculating crc of atm cell head KR940007872B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019910024028A KR940007872B1 (en) 1991-12-23 1991-12-23 Circuit for calculating crc of atm cell head

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019910024028A KR940007872B1 (en) 1991-12-23 1991-12-23 Circuit for calculating crc of atm cell head

Publications (1)

Publication Number Publication Date
KR940007872B1 true KR940007872B1 (en) 1994-08-26

Family

ID=19325701

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019910024028A KR940007872B1 (en) 1991-12-23 1991-12-23 Circuit for calculating crc of atm cell head

Country Status (1)

Country Link
KR (1) KR940007872B1 (en)

Similar Documents

Publication Publication Date Title
JP2655547B2 (en) CRC calculation method and HEC synchronizer in ATM switching system
US6192498B1 (en) System and method for generating error checking data in a communications system
US7751411B2 (en) System interface for cell and/or packet transfer
JPH06505587A (en) Maximum value search circuit
KR950009690B1 (en) Crc synchronizing apparatus
KR940007872B1 (en) Circuit for calculating crc of atm cell head
RU2271069C2 (en) Method and circuit for synchronous data reception during high-speed data transfer from subscriber to central point in optical data transfer system
KR0154852B1 (en) Apparatus for detecting frame synchronous signal
US5694405A (en) Encoder and decoder of an error correcting code
KR100249498B1 (en) Parallel processor of distributed sample scrambling apparatus
KR20010091311A (en) Programmable frequency divider by high speed counter
JP2967748B2 (en) ATM cell synchronization circuit
JP2001044976A (en) Inter-bit phase difference reduction transmission system in digital processor
JPH0779211A (en) Control circuit for multiplexer
JPH05151007A (en) Crc arithmetic unit
JPH1168690A (en) Frame synchronization circuit
KR100200566B1 (en) Crc generation circuit of atm switching system
KR100439225B1 (en) A circuit of error inspection for high rate data
KR19990043119A (en) Clock generator of data communication channel
KR20020090243A (en) Data and clock recovery circuit
KR950010771B1 (en) Crc apparatus of bound area of bite syncronized data
KR100307404B1 (en) Serial data combiner of channel card in radio port of the mobile communication system
Wang et al. Physical Coding Sublayer For 32Gbps SerDes Based On JESD204C
KR100273199B1 (en) A 16 bit parallel hec encoder
KR0118866Y1 (en) Hec bit generation equipment for atm cell

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070730

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee