CA1099022A - Parallel calculation of serial cyclic redundancy check - Google Patents

Parallel calculation of serial cyclic redundancy check

Info

Publication number
CA1099022A
CA1099022A CA284,163A CA284163A CA1099022A CA 1099022 A CA1099022 A CA 1099022A CA 284163 A CA284163 A CA 284163A CA 1099022 A CA1099022 A CA 1099022A
Authority
CA
Canada
Prior art keywords
result
accumulator
data word
alu
data
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
Application number
CA284,163A
Other languages
French (fr)
Inventor
Gary J. Goss
Robert C. Miller
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.)
Bull HN Information Systems Inc
Original Assignee
Honeywell Information Systems Inc
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 Honeywell Information Systems Inc filed Critical Honeywell Information Systems Inc
Application granted granted Critical
Publication of CA1099022A publication Critical patent/CA1099022A/en
Expired legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/09Error detection only, e.g. using cyclic redundancy check [CRC] codes or single parity bit

Landscapes

  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

ABSTRACT
A method and apparatus for assuring the accuracy of data received by any device in a computer system from any other device in the same computer system or from another computer system. The existing hardware of a computer system is utilized to generate a cyclic redundant check character each time a unit of data is transmitted. The cyclic redundant check character is concatenated to the right of such data transmitted. Each time that the particular data is received, the check character and the data with which it is associated, is again manipulated in the same manner as in generating the check character. If the data received is the same as the data transmitted, the result of such manipulation is zero.

Description

~0~9~2Z

BACK~7ROUND OF THE INVENTIOrll Field of the Invention This invention relates to computer sy~tems and tele-conmmmication systems utilizing computers and more particularly to a method and apparatus for mani~ulating data to generate a cycllc redundancy check character, ~nd for utilizing the cyclic redulldancy check character generated and the data which it re-presents ~o ascertain that the data has not been altered.
Description of the Prior Art LO A variety of different forms of error detection are built into data handling equipment. Such error detecting apparatus ass~ne particular importance when data is transmitted from one particular device to another device within a data processing system or from one data processing syste~ to another, where the probability of losing or obliterating ~everal sequential bit~
is greater due to noise in transmission. Of course, changing even one bit would change the sense of an entire message.
Several scheme~ and devices have been utilized in erro~
control. Perhaps the most common method of detecting errors is the use of parity. ~ith this method, the digits of a binary word are inspected and an extra digit or bit ~binary-digit) is added. This digit is chosen to be "zero" or "one", as necessary to keep the total number of digits in the "one" state either odd or e~en according to a predetermined co~vention. Another single-error correcting code is the Hamming code where parity checked digits are assigned to particular positions where their weights indicate which digits of the whole code are in error. Still other techniqueg utilize sur~l checks.
When information is transmitted through data links using public telephone networks or other such co~munication devices,
-2- ~

the type of error encountered is different from those pre-viously considered. Because the digits are transmltted serially, impulsive noise from the communication channel affects a sequence of ad~acent digits as well. One technique utilizes a cyclic redundant check character for detecting such errors. In this technique a finite length of an original sequence of characters ig divided by an operator to produce a remainder; the actual transmission comprises the original sequ~nce followed by the remainder. At the receiver, a similar L0 division process produces a locally generated remainder fbr comparison with that sent by the transmitter. Any differences result frGm the introduction of error sequences which cannot be divided exactly by the chosen operator.
In implementing this technique additional hardware is re-quired both at the transmittin~ and receiving end. Ihis hardware usually takesthe form of an additional shift register, exclusive OR circuits and comparator. Since computer networks, where one computer ~ystem communicates with another, are beginning to mush-room, and since not all computer systems are equipped with this additional hardware, univer~al checking for transmission errors via this technique is not f~asible unless the existing hardware of each existing computer system can be utilized to implement this technique.
One way of utilizing existing hardware is to provide soft-ware techniques that utilize a program for manipul~tion of the data to generate the character. However, such a scheme is too slow to keep up with the rate of transmission or rec~ption and of utilization of modern-day data communication systems. ~7hat is needed is a control means and/or method for utilizing existing B 30 computer hardware at a rate greater ~ or equal to the rate of transmission or reception in generating and utilizing a cyclic.
redundant check character. ~oreover, such control means and/or method should not require additional hardware, and should require only a modicl~m of modification to any computer system.
OBJECTS OF T~IE INVENTION
It is a primary object of the invention therefore to pro-vide an improved error control system for a computer ~ystem.
It is another ob;ect of the invention to provide an improved error control system for a communication channel utilized by two or more computer systems.
It is still a further ob~ect of the invention to provide an improved error control system for computers utilized in a computer network.
Still another object of the invention i6 to provide an improved error control system for a computer network system utilizing existing hardware of the network ~ystem.
A more specific object of the invention is to provide an improved error control system which generates and utilizes a cyclic redundant check character similar to that generated by prior art equipment but not requiring additional hardware as in prior art equipment.
SU~RY O~ THE INVENTION
In accordance wi.h the above and other objects of the in-vention, there is provided a method and apparatus for assuring the accuracy of data received by any device in a computer system from any other device in the same computer system or from another computer syste~. The existing hardware of a computer system i8 utilized to generate a cyclic redundant check character each time a unit of data is transmitted. This is accomplished by micro-programming the Read Only Memory (ROM) of a c~mputer system to ~9~22 control the existing arithmetic logic unit (ALU) and accumulator (AC) together with the scratchpad memory (SPM) of a computer system to generate and utilize a cyclic redundant check character. The check character is concatenated to the right of a unit of data and is transmitted along with the unit of data with which it is associated. A device receiving the unit of data together with its check character manipulates them in the same manner as in generating the check character utilizing its own SPM, AC and ROM microprogrammed in the same manner as in generating the cyclic redundancy check character. lf the data received is the same as the data transmitted, the result of such manipulation is zero.
According to one broad aspect of the present invention, there is provided the method of generating a cyclic redundant check character in a general purpose computer comprising: generating a first result by exclusive OR'ing with a previously generated cyclic redundant check character, the -new data for which a cyclic redundant check character is to be generated;
left shifting the first result by a predetermined number of bits; generating a second result by exclusive OR'ing the unshifted first result with the left shifted first result; generating a third result by AND'ing each bit of the second result with a respective bit in a predetermined constant;
generating a fourth result by right rotating the third result by a predeter-mined number of bits; generating a fifth result by right rotating the fourth result; generating a sixth result by OR'ing the fourth result with the sixth result; generating a seventh result by AND'ing each bit respectively of the sixth result with a respective bit of a predetermined constant whereby the new cyclic redundant check character is generated.
According to another broad aspect of the present invention, there is provided in a computing system comprising an arithmetic and logic unit (ALU), accumulator (AC), scratchpad memory (SPM), and register, coupled for communicating with each other via an input-output (I/O) bus, apparatus for generating a cyclic redundant check character comprising: means for storing first coded signals in said SPM representing a cyclic redundant check character; means for loading in said AC second coded signals representing ~,. ~".

new data for which a cyclic redundant check character is to be generated; a control store comprising: first instruction means for controlling said ALU
to exclusive OR said first coded signals with said second coded signals to generate a first result; second instruction means for controlling said AC to left shift said first result by a predetermined number of bits; third instruc-tion means for controlling said ALU to exclusive OR said first result with said left shifted first result ~o generate a second result; fourth instruc-tion means for controlling said ALU to AND said second result with a pre-determined constant to generate a third result; fifth instruction means for controlling said AC to right rotate said third result by a predetermined number of bit positions to generate a fourth result; sixth instruction means for controlling said AC to right rotate said fourth result by a predeter-mined number of bit positions to generate a fifth result; seventh instruc-tion means for controlling said ALU to OR said fourth result and said fifth result to generate a sixth result; and eighth instruction means for control-ling said ALU to AND said sixth result with a predetermined constant, whereby a cyclic redundant check character is generated; and microprogram control means for actuating said first through eighth instruction means in the above-stated sequence after said first and second coded signals have been stored in said first and second means, respectively, to generate a cyclic redundant check character for said new data.
The invention will now be described in greater detail with refer-ence to the accompanying drawings, in which:
Figure 1 is the prior art apparatus for generating and utilizing the cyclic redundant check character of the invention;
Figure 2 are the states of the device of Figure 1 at various times t;
Figure 3 is an intermediate arrangement of the bits utilized in generating the cyclic redundant check character of the invention;
Figure 4 is a portion of a prior art computer system utilized to practice the invention, -5a-1~i99~2Z

Figure 5 is the microprogram for microprogramming the control store and the various state of the bit character as a result of each step;
Figure 6 shows the hardware for providing AND operations for an alternate embodiment of the invention; and Figure 7 shows the hardware for providing OR operations for an alternate embodiment of the invention.
DESCRIPTION OF THE PREFERRED EMBODIMENT OF THE INVENTION
General Since the invention performs the same functions of generating a cyclic redundant check character and utilizing it as do prior -5b-~W90Z2 art apparatus added to a computer ~ystem, but does no~ require any additional hardware to be ~dded to a compûter ~ystem other than that already present in most prior art computer systems, it would be helpful ln understandlng the invention, to further discu~s in greater det~il the prior art hardware ~peclfically utilized for generating the cyclic redundant check character~
Moreover, it i~ desirable to discuss the prior art hardware existing in most computer 8y8temg such as the arithmetic and logic unit (ALU), accumulator and 8cratchpad memory which does not 8;enerate or utilize a cyclic redundant character, but c~n be modified by microprogramming the control store or ROM, to control th.e ALU, accumulator altd gcratchpad memory so that these elements cooperate and function with each other to generate and utilize the cyclic redundant check character for error control.
Referring, therefore, to Figure 1 there is shown prior art shift: registers 101, 102 and 103. Shift register 103 stores and ~;hifts a unit of data comprised of 6 bits do through d5 (It ~hould be understood that any number of bits may be utilized as a unit of data). Shift register 101 stores half a unit of data comprised of 3 bits CO through C2 whereas shift register 102 stores the other half of a unit of data comprised of 3 bits C3 - C5.
Between shift register 101 and 102 there is an exclusive OR circuit B 104 coupling the X shift rc~gicter together; and between shift regi3ters 102 and 103 there is an exclusive OR circui.t 104 coupling 7C~o those X shift registers together. ~.oreover, the output of ex-clusive OR circuit 105 is applied to exclusive OR circuit 104 and the data signal in the first bit position of shift register 101 is applied to exclusive OR circuit 105. The result of serially shifting each bit from right to left through the vàrious lO~Z~

bit positions of regi~ters 101, 102 at different times to ~ t6 t~ is shown ~n Figure 2. Referring to Figure 2 it will be seen that at time to a bit CO iQ. stored at bit position O of shift register 101; at bit position 1, a bit Cl is stored; at bit position 2, a bit C2 is stored; at bit position 3, a bit C3 is stored; at bit position 4, a bit C4 is stored; whereas at bit position 5, a bit ('5 is stored. At the next time interval tl all bits shift to the left and in doing so certain of the bits are exclusive OR'ed. Hence at time interval tl bit Cl is stored~ at b~t position 0; at. bit position 1, bit C2 is stored; at bit position 2 the ex-clusive OR addition or the modulo 2 sum of bits 0, 3 and the first bit of register 103 is stored resulting in the exclusive OR'ed charn~ter CO, exclusive OR'ed to do which in turn is exclusive OR'ed to C3; at bit position 3 the bit C4 i8 6tored; at bit position 4 the bit C5 is stored; and at bit position 5 the modulo 2 sum of bit CO and do is stored. At the next time interval t:2 there is a shift of all bits to the left again with certain of the bits being exclusive OR'ed as îndicated in the column under t2. This procedure is repeated until at time period t6 theshift registers 101 and 102 contain the cyclic redundant check character shown in column t6 of Figure 2, which is appended to the unit of data (in this example comprising 6 bits~ for which the cyclic redundant check character was generated.
The unit of data (i.e. the 6 bit character) and the concatenated cyclic redundant check character are then stored for further use or used immediately or transmitted to another portion of the computer system or to another computer system. Upon receip~ of this unit of data and its appended cyclic redundant check character, the apparatu~ of Figure 1 would again be utilized in the same manner and in the same sequence whereupon at time interval t6 ~99~zz there is a 0 result if all the bits of the received unit of data are correct and have not been altered in the transmission process. Hence the same apparatus is utilized both in generat-ing and in utilizing the cyclic redundant check character. The cyclic redundant check character in the diagram of Figure 2 is the result of all the modulo 2 operations represented under column t6. It can readily be appreciated that in order for this system to be implemented, each transmitting and receiving computer system must be equipped with the hardware of Figure 1.
This means additional cost in material and labor. However, since most computer systems are equipped with prior art hardware as shown on Figures 4, 5, 6 and 7, the instant invention produces the same eyelie redundant cheek eharaeter as that produeed under eolumn t6 by merely utilizing the prior art hardware of Figures 4, 5, 6 and 7 in a new and unobvious manner by generating firm-ware via miero-programming the miero-program eontrol unit. The term firmware is used herein as defined by Sippl and Sippl on Page 186 of "Computer Dietionary and Handbook" i.e. logie eir-euits in read-only memory that may be altered by the software under eertain eireumstanees. This firmware then beeomes a permanent additional funetion of the old eomputer system pro-viding it with additional eapability it did not possess pre-viously. Ge~erating firmware via miero-programming teehniques is well known in the eomputer art and is deseribed in a book entitled "Mieroprogramming Handbook" seeond edition, published by Miero Data Corporation, 644 East Young Street, Santa Anna, California and also a book entitled "Mieroprogramming:
Prineiples and Praetiees" by Samir S. Husson, published by Prentiee-Hall Ine., Englewood Cliffs, New Jersey.
Referring to Figure 4, a portion of a prior art B

105~9C~22 micro-programmed computer which is utilized by the invention is shown. Moreover, such well known computer systems as the Honeywell Series 60, and the IBM* Series 360 and 370 may be utilized to practice the invention. Referring to Figure 4 there is shown a micro-program control store * Trade Mark -8a-~'099~ZZ

412 which for this particular computer is 16 bits wide, although any other length may be utilized, and is expandable to a maximum of 4,000 words. This amount of addressability is sufficient to permit the practice of the instant inven-tion. The output of the microprogram control store 412 isclocked into the microprogram instruction register 413 at the leading edge of each clock cycle generated by central clock 415. Additionally, the microprogram address counter 411 is advanced at the leading edge of every clock cycle to indicate the new address. Thus, as one microinstruction is stored in the microprogram instruction register 413 for execution, the microprogram address counter 411 changes to access the next microinstruction by incrementing by one.
When a branch command is executed, however, the increment function of microprogram address counter 411 is inhibited by techniques well known in the computer art and the microprogram instruction register 413 is loaded with the output of the microprogram address selector 410. As previously noted, the output of control store 412 is stored in instruction register 413 for execution. The 3 high order bits of each microinstruc-tion are coded to indicate the type of command and comprise the op-code of the microinstruction. The op-code decoder 414 decodes the 3 high order bits of the instruction register and applies the output to a time pulse distributor 416 which in turn distributes control pulses to various hardware units to control hardware operations. A more detailed description of microprogrammed control units equivalent to microprogram con-trol unit 401 described supra may be found in the above refer-enced books. Moreover, typical microprogrammed control units are disclosed in U.S. Patent 3,380,025 issued April 23, 1968;
and in U.S. Patent 3,955,180 issued May 4, 1976.

1~99(~ZZ

The unit denoted by the reference numeral 402 shows in block diagram format the arithmetic logic unit 422, scratch-pad memory 424 and accumulator 425 controlled by the control signals generated by control unit 401. Information from the accumulator, scratchpad memory, bus interface register 420 and instruction register is applied to the arithmetic logic unit ALU
422 by means of multiplexer 421 which selects among others one of these registers. The arithmetic and logic unit performs arithmetic and logic operations depending on the coding of the microinstruction in mocro-program instruction register 413 being executed. The accumulator 425 is a 9-bit register which is used for temporary storage of the output of the ALU 422.
Additionally, the contents of the accumulator can be right ro-tated one bit position while left shift operations can be per-formed by the ALU 422. (Arithmetic logic units and accumulators are well known in the prior art, some typical ones being disclos-ed in U.S. Patents 3,404,378 issued on 10/1/68 and in 3,238,508 issued 3/1/66. Also multiplexers are well known and commercially available from such companies as Texas Instruments Inc., of 20 Dallas, Texas. See pages 9-339 through 9-364 of the Integrated Circuits Catalog for Design Engineers, published by Texas Instruments of Dallas, Texas for description and availability of data selectors, and data multiplexers). The scratchpad memory 424 of the prior art system being described herein is comprised of 256 9-bit words for storing data, status commands, etc., although any other word size or quantity may be utilized. Typi-cal scratchpad memories are disclosed in U.S. Patents 3,248,708 issued 4/26/66 and in 3,351,909 issued 11/7/67. Data may be written into scratchpad memory 424 from the ALU operand multi-plexer 421 which permits any visible register to serve as an input local _-~

~'099Q2Z

register. Data out from the scratchpad memory 424 is applied to the ALU operand multiplexer 421. An 8 bit SPM address counter 423 is loaded with the result of an ALU operation and can be incremented at each clock cycle. The output of the SPM address counter is applied to the ALU operand multiplexer 421; moreover, SPM address counter 426 is also utilized to address the scratch-pad memory 424. The central clock 415 is an 8 MHZ crystal oscillator which is divided to obtain a 250ns clock cycle. The clock cycles developed from the central clock 415 are then dis-tributed to the various elements of Figure 4. Crystal oscil-lators for providing clock cycles are well known in the prior art.
(Typical computer timing and control systems are shown in U.S.
Patents 3,254,329 issued 5/31/66 and in U.S. Patent 3,417,379 issued 12/17/68).
Detailed Description and Operation of the Invention Referring now to Figure 3 and Figure 5, a detailed description and operation of the invention is presented. It should be noted that one of the objects of the invention is to obtain the results in column t6 of Figure 2 without utilizing the additional prior art hardware of Figure 1. Aceordingly, one of the first objectives of the firmware eontrol of the invention is to arrange the various bits of a word being reeeived in a definite pattern relative to the bits of the pre- -vious word reeeived. Inspeetion of eolumn t6 shows that the first bit in eaeh row of that column has a partieular sequence whieh is also shown in row 1, of Figure 3. Similarly, the sequenee of bits in eolumns 2, 3 and 4 within eolumn t6 f Figure 2 are shown in rows 2, 3 and 4 respeetively of Figure 3.
By exelusive OR'ing the data eontained in the bit positions of various rows of Figure 3, the result desired is obtained. How , ~

1~99C12Z

this is performed by the firmware is shown in Figure 5.
Figure 5 illustrates the micro-program of the inven-tion and shows the results of each step. Referring now once again to Figure 5, row ~ shows the old residue in scratchpad memory 424 as a result of the previous manipulation in obtaining the cyclic redundant check character. Row/~ shows the new data which has been received in the accumulator 425. On step number 1, the old residue is exclusive OR'ed bit by bit by the arithmetic and logic unit ALU with the new data in the arithmetic and logic unit ALU 422 and the result is temporarily stored in the accumulator. In step l(a), the results stored in the accumu-lator 425 are transferred and stored in a predetermined location in scratchpad memory 424; moreover the result in the accumulator is also left shifted 3 bits so that zeroes occupy the first 3 bit positions of the accumulator. In step number 3 the left shifted result of the accumulator is exclusive OR'ed with the previously stored results of step l(a) in scratchpad memory and temporarily stored in the accumulator. Once again the ALU is utilized for this operation. In step number 4 each bit in the accumulator is AND'ed with one bit of the constant K=000111111. This oper-ation is performed in the ALU 422. However, an alternative embodiment is shown in Figure 6. Three inputs are applied to each AND gate 601-609. One input for each AND gate is one digit respectively of the constant K=000111111; another input of each AND gate is the signal stored in a respective bit position of the accumulator; finally a clock pulse is applied as another input to each AND gate 601-609 to enable each gate; thus giving the results at iwsc~

the output of each AND gate. This result is temporarily stored in the accumulator. In step number 5, the accumu-lator is right rotated 3 bits and the result saved in a predetermined address in the scratchpad memory 424.
Another right rotation of the accumulator is performed in step 6. It should be noted that the first 3 bit positions of the accumulator store a quantity which is meaningless in step 6, and is denoted in Figure 5 by the symbol X. In step number 7, the right rotated result stored in the accumu-lator is OR'ed with the value saved in scratchpad memory424 in step 5. This is done in the preferred embodime~t by the ALU 422. An alternative apparatus for doing this is shown on Figure 7. To each OR gate 701-709 there is applied 2 inputs, one input on each OR gate from a respective bit of the resulting bits of data saved in the scratchpad memory 424 and another input on each gate respectively from a respective bit of the resulting bits of data stored in the accumulator 425. Accordingly, on OR gates 701, 702 and 703 a meaningless output signal denoted by the letter X is obtained at each output terminal. On OR gates 704-709 where a respective input is OR'ed with zero, the output of each gate is merely the other input of the respective OR gate. These outputs of OR
gates 701-709 are temporarily stored in accumulator 425. In step number 8, each bit of the accumulator is once again AND'ed with each bit respectively of the constant K=000111111 as previously described supra. Finally, step number 9 stores the result of the accumulator in a predetermined position in scratchpad memory as a residue and is the cyclic redundant check character for the word just received. It should be noted by comparing the last row of Figure 5 with the last column t6 of Figure 2 that the results are identical. This has been accomplished by utilizing existing hardware in the computer 1~99Q22 system by micro-programming the micro-programmed control unit to produce the firmware herein. Accordingly, not only has the invention produced a new combination and a new use of an old machine but a synergistic result as well, since the computer system has been given additional capability by utilizing the old elements of the computer to perform in a manner which is greater than the sum of its parts i.e. do something the old elements could not do singly or in combination.

B

Claims (26)

THE EMBODIMENTS OF THE INVENTION IN WHICH AN EXCLUSIVE
PROPERTY OR PRIVILEGE IS CLAIMED ARE DEFINED AS FOLLOWS:
1. The method of generating a cyclic redundant check character in a general purpose computer comprising:
(a) generating a first result by exclusive OR'ing with a previously generated cyclic redundant check character, the new data for which a cyclic redundant check character is to be generated;
(b) left shifting the first result by a predetermined number of bits;
(c) generating a second result by exclusive OR'ing the unshifted first result with the left shifted first result;
(d) generating a third result by AND'ing each bit of the second result with a respective bit in a predetermined constant;
(e) generating a fourth result by right rotating the third result by a predetermined number of bits;
(f) generating a fifth result by right rotating the fourth result;
(g) generating a sixth result by OR'ing the fourth result with the sixth result;
(h) generating a seventh result by AND'ing each bit respectively of the sixth result with a respective bit of a predetermined constant whereby the new cyclic redundant check character is generated.
2. The method as recited in Claim 1 wherein said predetermined number of bits in step (b) is 3.
3. The method as recited in Claim 2 wherein said predetermined number of bits in step (e) is 3.
4. The method as recited in Claim 3 wherein the constant in step (d) is 000111111.
5. The method as recited in Claim 4 wherein the constant in step (h) is 000111111.
6. In a general purpose computer comprising at least a microprogrammed control unit, arithmetic and logic unit, accumulator, scratchpad memory, and registers coupled for communicating with each other via an input/output bus, a method of generating a cyclic redundant check character comprising the steps of:
(a) storing in said scratchpad memory a first cyclic redundant check character calculated in previous operations, i.e., old residue;
(b) storing in said accumulator new data received;
(c) exclusive OR'ing in said arithmetic and logic unit the old residue with the new data thus generating a first result;
(d) storing said first result in the accumulator;
(e) additionally storing said first result in said scratchpad memory;
(f) left shifting the first result in said accumulator by 3 bits;
(g) exclusive OR'ing in said arithmetic and logic unit the left shifted first result stored in said accumulator with the unshifted first result stored in said scratchpad memory thus generating a second result;
(h) storing the second result in said accumulator;
(i) AND'ing each bit of the second result with each bit respectively on a bit for bit basis with a predetermined constant thus generating a third result;
(j) storing the third result in said accumulator;
(k) right rotating the third result in said accumulator by 3 bits thus generating a fourth result;

(l) storing said fourth result in scratch pad memory;
(m) right rotating the fourth result in the accumulator;
thus generating a fifth result;
(n) OR'ing the right rotated fifth result in said accumulator with the fourth result in scratch pad memory thus generating a sixth result;
(o) storing said sixth result in said scratch pad memory; and, (p) AND'ing each bit of said fifth result with each bit respectively on a one for one basis with a predetermined constant.
7. The steps as recited in Claim 6 wherein the constant in said step (i) is 000111111.
8. The steps as recited in Claim 7 wherein the constant in said step (p) is 000111111.
9. A method for controlling a general purpose computer which facilitates the generation of a cyclic redundant check (CRC) character for checking the transmission and/or reception of blocks of data to and from a storage device, comprising an arithmetic and logic unit (ALU), an accumulator coupled to said ALU, an addressable scratchpad memory coupled to said ALU
and to said accumulator, said scratchpad memory having a plurality of storage locations, a bus data register coupled to said ALU for storing data words sequentially for application to said ALU, and a microprogrammed processing unit including a cycled addressable control store including a plurality of storage locations for storing a corresponding number of microinstruction words, a first group of said locations including a predetermined sequence of microinstruction words, decoder circuits coupled to said control store, said decoder circuits being operatively coupled to said ALU, said accumulator and to said scratchpad memory for generating signals for controlling the operation of said computer during a cycle of operation, said method compris-ing the steps of:
(a) initially storing in a first memory location of said scratchpad memory, coded signals representative of a pre-determined constant value;
(b) storing in a second scratchpad memory location, a CRC residue character generated from a previous cycle of oper-ation stored in said accumulator;
(c) conditioning said ALU for transferring a first data word to said accumulator from said data register received from said device;
(d) generating a second data word for storage in said accumulator by said ALU exclusive ORing said first data word contents of said accumulator with said CRC residue character read out from said second scratchpad location in response to signals generated by said decoder circuit upon the readout of a first one of said microinstruction words of said sequence;
(e) transferring signals representative of said second data word stored in said accumulator to said second scratchpad memory location, in response to signals generated by said decoder circuit upon the readout of a second one of said microinstruction words of said sequence;
(f) generating a third data word by said ALU shift-ing said second data word contents of said accumulator left a predetermined number of bits in said ALU in response to signals generated by said decoder circuit upon the readout of a third one of said microinstruction words of said sequence;
(g) exclusive ORing said third data word accumulator contents with said second data word readout from said second scratchpad memory location by said ALU to produce a fourth data word in said accumulator in response to signals generated by said decoder circuit upon the readout of a fourth one of said microinstruction words of said sequence;
(h) ANDing said fourth data word accumulator contents with said predetermined constant readout from said first scratch-pad memory location by said ALU for storage of said accumulator of a fifth data word in response to signals generated by said decoder circuit upon the readout of a fifth one of said micro-instruction words of said sequence;
(i) generating a sixth data word for storage in said second scratchpad memory location by said accumulator rotating said fifth data word contents of said accumulator right a pre-determined number of bits in response to signals generated by said decoder circuit upon the readout of a sixth one of said microinstruction words of said sequence;
(j) generating a seventh data word by said accumu-lator rotating said sixth data word contents of said accumulator right a predetermined number of bits in response to signals generated by said decoder circuit upon the readout of a seventh one of said microinstruction word of said sequence;
(k) generating an eighth data word for storage in said accumulator by said ALU exclusive ORing said seventh data word contents of said accumulator with said sixth data word readout from said second scratchpad location in response to signals generated by said decoder circuit upon the readout of a seventh one of said microinstruction word of said sequence;
(1) ANDing said eighth data word accumulator contents with said predetermined constant readout from said first scratch-pad memory location by said ALU for storage of said accumulator of a ninth data word representative of a CRC residue character in response to signals generated by said decoder circuit upon readout of an eighth one of said microinstruction words of said sequence; and, (m) transferring said CRC residue character from said accumulator to said second scratchpad memory location in response to signals generated by said decoder circuit in response to a ninth one of said microinstruction words of said sequence.
10. The method as recited in claim 9 wherein steps (c) through (m) are repeated a predetermined number of said cycles of operation after which said CRC residue character corresponds to said CRC character.
11. The method as recited in claim 10 wherein said method further includes the step of checking to verify that said CRC
character has a value equal to ZERO after said predetermined number of said cycles of operation.
12. The method as recited in claim 9 wherein said pre-determined number of bits in step (f) is 3.
13. The method as recited in claim 12 wherein said pre-determined number of bits in step (j) is 3.
14. The method as recited in claim 13 wherein the constant in step (h) is coded to have a value of 000 111 111.
15. The method as recited in claim 14 wherein the constant in step (1) is coded to have a value of 000 111 111.
16. Computer apparatus for facilitating the generation of a cyclic redundant check (CRC) character for checking the trans-mission and reception of data words of a block to and from a storage device during the sequential transfer of a number of units of data, each unit having a plurality of bits, said apparatus comprising: arithmetic and logic circuit means for performing logic and arithmetic operations; accumulator means coupled to said arithmetic and logic circuit means for providing temporary storage of the results produced by said arithmetic and logic circuit (ALU) means; an addressable scratchpad memory coupled to said arithmetic and logic circuit means and to said accumulator means, said memory including a plurality of storage locations for storing data words and a predetermined constant value; a bus data register coupled to said arithmetic and logic circuit means for receiving each of said data words sequentially for application to said arithmetic and logic circuit means; a microprogrammed processing unit including: a cycled addressable control store including a plurality of storage locations for storing a corresponding number of microinstruction words, a first group of said locations storing a predetermined sequence of microinstruction words coded for generating said CRC
character; decoder circuit for generating signals for control-ling the operation of said computer during a cycle of operation, coupled to said control store, said decoder circuit being oper-atively coupled to said arithmetic and logic circuit means, to said accumulator means and to said scratchpad memory; said scratchpad memory being conditioned for initially storing in a first memory location, coded signals representative of a pre-determined constant value, and storing in a second memory lo-cation, said CRC residue character generated from a previous cycle of operation; said data register being conditioned for storing a first data word and transferring said first data word to said accumulator means; said ALU means being operative during a first cycle of operation for exclusive ORing said first data word with said CRC residue character to generate a second data word in said accumulator means in response to signals generated by said decoder circuit upon readout of a first microinstruction word of said sequence from said control store; said second scratchpad memory location being operative during a second cycle of operation for storing said second data word in response to signals generated upon readout of a second microinstruction word of said sequence from said control store; said ALU means being operative during a third cycle of operation for shifting said second data word left a predetermined number of bits to gener-ate a third data word in said accumulator means in response to signals generated upon readout of a third microinstruction word of said sequence from said control store; said ALU means being operative during a fourth cycle of operation for exclusive OR-ing said third data word with said second word in said second scratchpad memory location to generate a fourth data word in said accumulator means in response to signals generated upon readout of a fourth microinstruction word of said sequence from said control store; said ALU means being operative during a fifth cycle of operation for ANDing said fourth data word in said accumulator means with said predetermined constant value readout from said scratchpad memory to generate a fifth data word in said accumulator means in response to signals generated upon readout of a fifth microinstruction word of said sequence from said control store; said accumulator means being operative during a sixth cycle of operation for rotating said fifth data word right a predetermined number of bits to generate a sixth data word in said accumulator means and said scratchpad memory being conditioned to receive said sixth data word in response to signals generated upon readout of a sixth microinstruction word of said sequence from said control store; said accumulator means being operative during a seventh cycle of operation for rotating said sixth data word right a predetermined number of bits to generate a seventh data word in said accumulator means in response to signals generated upon readout of a seventh microinstruction word of said sequence from said control store;
said ALU means being operative during an eighth cycle of oper-ation for exclusive ORing said seventh data word in said accumulator means with said sixth data word in said scratchpad memory to generate an eighth data word in said accumulator in response to signals generated upon readout of an eighth micro-instruction word of said sequence from said control store; said ALU means being operative during a ninth cycle of operation for ANDing said eighth data word in said accumulator means with said predetermined constant value readout from said scratchpad memory to generate a ninth data word in said accumulator means in response to signals generated upon readout of a ninth micro-instruction word of said sequence from said control store; and, said second scratchpad memory location being operative during a tenth cycle of operation for storing said ninth data word representative of said CRC residue character in response to signals generated upon readout of a tenth microinstruction word of said sequence from said control store.
17. The apparatus of claim 16 wherein said cycle of operation is repeated a predetermined number of times after which said CRC residue character corresponds to said CRC
character.
18. The apparatus of claim 17 wherein said CRC character is checked to verify that said CRC character has a value equal to ZERO after said predetermined number of said cycles of operation.
19. The apparatus of claim 16 wherein said predetermined number of bits of left shifting is 3 bits.
20. The apparatus of claim 19 wherein said predetermined number of bits of right rotating is 3 bits.
21. The apparatus of claim 20 wherein said predetermined constant is 000 111 111.
22. In a computing system comprising an arithmetic and logic unit (ALU), accumulator (AC), scratchpad memory (SPM), and register, coupled for communicating with each other via an input-output (I/O) bus, apparatus for generating a cyclic redundant check character comprising:
a) means for storing first coded signals in said SPM representing a cyclic redundant check character;
b) means for loading in said AC second coded signals representing new data for which a cyclic redundant check character is to be generated;
c) a control store comprising:
i) first instruction means for controlling said ALU to exclusive OR said first coded signals with said second coded signals to generate a first result;
ii) second instruction means for controlling said AC to left shift said first result by a predetermined number of bits;
iii) third instruction means for controlling said ALU to exclusive OR said first result with said left shifted first result to generate a second result;
iv) fourth instruction means for controlling said ALU to AND said second result with a predetermined constant to generate a third result;
v) fifth instruction means for controlling said AC to right rotate said third result by a predetermined number of bit positions to generate a fourth result;
vi) sixth instruction means for controlling said AC to right rotate said fourth result by a predetermined number of bit positions to generate a fifth result;
vii) seventh instruction means for controlling said ALU to OR said fourth result and said fifth result to generate a sixth result; and viii) eighth instruction means for controlling said ALU to AND said sixth result with a predetermined constant, whereby a cyclic redundant check character is generated; and d) microprogram control means for actuating said first through eighth instruction means in the above-stated sequence after said first and second coded signals have been stored in said first and second means, respectively, to generate a cyclic redundant check character for said new data.
23. The apparatus set forth in claim 22 wherein said second instruction means controls said AC to left shift said first result three bit positions.
24. The apparatus set forth in claim 23 wherein said fourth instruction means controls said ALU to AND said second result with the binary constant 000111111.
25. The apparatus set forth in claim 24 wherein said fifth instruction means controls said AC to right rotate said third result three bit positions.
26. The apparatus set forth in claim 25 wherein said eighth instruction means controls said ALU and AND said sixth result with the binary constant 000111111.
CA284,163A 1976-08-12 1977-08-05 Parallel calculation of serial cyclic redundancy check Expired CA1099022A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US71407476A 1976-08-12 1976-08-12
US714,074 1976-08-12

Publications (1)

Publication Number Publication Date
CA1099022A true CA1099022A (en) 1981-04-07

Family

ID=24868662

Family Applications (1)

Application Number Title Priority Date Filing Date
CA284,163A Expired CA1099022A (en) 1976-08-12 1977-08-05 Parallel calculation of serial cyclic redundancy check

Country Status (6)

Country Link
JP (1) JPS6027420B2 (en)
AU (1) AU2770077A (en)
CA (1) CA1099022A (en)
DE (1) DE2735806A1 (en)
FR (1) FR2361699A1 (en)
GB (1) GB1541539A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2023895B (en) * 1978-06-21 1982-10-13 Data General Corp Error detection circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1366833A (en) * 1973-01-26 1974-09-11 Post Office Telemunications systems

Also Published As

Publication number Publication date
DE2735806A1 (en) 1978-02-16
GB1541539A (en) 1979-03-07
AU2770077A (en) 1979-02-15
FR2361699A1 (en) 1978-03-10
JPS6027420B2 (en) 1985-06-28
FR2361699B1 (en) 1984-12-28
JPS5322341A (en) 1978-03-01

Similar Documents

Publication Publication Date Title
US4312068A (en) Parallel generation of serial cyclic redundancy check
US4108359A (en) Apparatus for verifying the execution of a sequence of coded instructions
US4686621A (en) Test apparatus for testing a multilevel cache system with graceful degradation capability
US3470542A (en) Modular system design
US3931505A (en) Program controlled data processor
US3037697A (en) Information handling apparatus
US3418630A (en) Double check signal test self-correcting communication system
US3831144A (en) Multi-level error detection code
US3114130A (en) Single error correcting system utilizing maximum length shift register sequences
US4454600A (en) Parallel cyclic redundancy checking circuit
EP0234038A2 (en) Apparatus for identifying the LRU storage unit in a memory
US3887901A (en) Longitudinal parity generator for mainframe memories
US2861744A (en) Verification system
US3697947A (en) Character correcting coding system and method for deriving the same
US3898443A (en) Memory fault correction system
JPS62117200A (en) Unchanged memory
US4462102A (en) Method and apparatus for checking the parity of disassociated bit groups
KR840001731A (en) Addressing device with sequential word order
EP0006480B1 (en) Method and apparatus for generating error locating and parity check bytes
JPH022173B2 (en)
US4498178A (en) Data error correction circuit
US3571795A (en) Random and burst error-correcting systems utilizing self-orthogonal convolution codes
JPH0439929B2 (en)
US3218612A (en) Data transfer system
CA1099022A (en) Parallel calculation of serial cyclic redundancy check

Legal Events

Date Code Title Description
MKEX Expiry