JP2674507B2 - Bit error number calculation circuit - Google Patents

Bit error number calculation circuit

Info

Publication number
JP2674507B2
JP2674507B2 JP6119926A JP11992694A JP2674507B2 JP 2674507 B2 JP2674507 B2 JP 2674507B2 JP 6119926 A JP6119926 A JP 6119926A JP 11992694 A JP11992694 A JP 11992694A JP 2674507 B2 JP2674507 B2 JP 2674507B2
Authority
JP
Japan
Prior art keywords
bit
addition
carry
output
error
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 - Lifetime
Application number
JP6119926A
Other languages
Japanese (ja)
Other versions
JPH07325706A (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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP6119926A priority Critical patent/JP2674507B2/en
Publication of JPH07325706A publication Critical patent/JPH07325706A/en
Application granted granted Critical
Publication of JP2674507B2 publication Critical patent/JP2674507B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はビット誤り数算出回路に
関し、特にPCM通信に用いられるフレーム同期検出回
路におけるフレーム同期パターンのビット誤り数算出回
路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bit error number calculation circuit, and more particularly to a bit error number calculation circuit for a frame synchronization pattern in a frame synchronization detection circuit used for PCM communication.

【0002】[0002]

【従来の技術】従来のビット誤り数算出回路は、図6に
示すように、PCMデータのフレーム同期パターン中の
各ビットの誤りを検出するビット誤り判定部1と、ビッ
ト誤り判定部から出力される各ビット毎の誤り情報から
フレーム同期コード中に含まれる誤りビット数の算出を
カスケード構造の加算器で行うキャリールックアヘッド
加算器2と、キャリーリックアヘッド加算器からの誤り
ビット数を誤りビット許容数との間で誤りビット数の大
小比較を行うルックアヘッド比較器3とを有している。
2. Description of the Related Art As shown in FIG. 6, a conventional bit error number calculating circuit outputs from a bit error judging section 1 for detecting an error of each bit in a frame synchronization pattern of PCM data and a bit error judging section. The carry-look-ahead adder 2 that calculates the number of error bits contained in the frame synchronization code from the error information for each bit by a cascade-structured adder and the error bit number from the carry-like ahead adder And a look-ahead comparator 3 that compares the number of error bits with the number.

【0003】従来のキャリールックアヘッド加算器2の
構成例を図7に示す。この例では、フレーム同期パター
ンをL=32ビットとした場合について示している。フ
レーム同期パターンの構成ビットのうち誤り発生ビット
はビット誤り判定部により2値表現にて“1”となっ
ており、各ビットと順次加算していくカスケード型に配
されたフルアダーにより構成されている。この場合、フ
ルアダーを20段通すことにより、最終加算結果が得ら
れており、得られたビット誤り数はルックアヘッド比較
にて許容ビット誤り数との間で比較され、大小判定
の結果が出力される。
An example of the structure of a conventional carry look-ahead adder 2 is shown in FIG. This example shows the case where the frame synchronization pattern is L = 32 bits. The error occurrence bit of the constituent bits of the frame synchronization pattern is "1" in the binary representation by the bit error determination unit 1 , and is composed of a cascaded full adder that sequentially adds each bit. There is. In this case, the final addition result is obtained by passing the full adder through 20 stages, and the obtained bit error number is compared with the allowable bit error number by the look-ahead comparator 3, and the result of the magnitude judgment is obtained. Is output.

【0004】このキャリールックアヘッド加算器2で
は、図7に示す如く、1〜3ビットがフルアダー00に
て全加算され、この加算出力Sと次の4,5ビットとが
フルアダー10にて全加算され、この加算出力Sと次の
6,7ビットとがフルアダー20にて全加算されるとい
う処理が32ビット目まで繰返される。そして、フルア
ダー150の全加算出力Sがビット誤り数の最下位ビッ
ト(LSB)であるboとなる。
In the carry look-ahead adder 2, as shown in FIG. 7, 1 to 3 bits are fully added by the full adder 00, and the addition output S and the next 4, 5 bits are fully added by the full adder 10. The addition output S and the next 6 and 7 bits are fully added by the full adder 20 until the 32nd bit. The full addition output S of the full adder 150 becomes bo which is the least significant bit (LSB) of the bit error number.

【0005】フルアダー00〜150の各桁上げ出力C
(16ビット)がフルアダー01,11,21,……
…,71にて全加算され、フルアダー71の全加算出力
Sがビット誤り数の2ビット目b1となる。これ等フル
アダー01,11,21,……,71の各桁上げ出力C
(8ビット)がフルアダー02,12,22,32によ
り全加算され、フルアダー32の全加算出力Sがビット
誤り数の3ビット目b2となる。
Carry output C of full adder 00-150
(16 bits) are full adders 01, 11, 21, ...
The total addition output S of the full adder 71 becomes the second bit b1 of the bit error number. These carry adders 01, 11, 21, ..., 71 carry outputs C
(8 bits) are fully added by the full adders 02, 12, 22, 32, and the full addition output S of the full adder 32 becomes the third bit b2 of the bit error number.

【0006】以下、同様にして最終段のフルアダー04
の加算出力Sと桁上げ出力Cとがビット誤り数の5ビッ
ト目b4と最上位ビット(MSB)b5となる。
In the same manner, the final full adder 04
The addition output S and the carry output C are the fifth bit b4 of the bit error number and the most significant bit (MSB) b5.

【0007】この場合(L=32ビット)のキャリール
ックアヘッド加算器の加算段数は、図7の下に示す如
く、20段となっている。
In this case (L = 32 bits), the carry-look-ahead adder has 20 stages as shown in the lower part of FIG.

【0008】[0008]

【発明が解決しようとする課題】この従来の誤りビット
数算出回路では、ビット誤り数の加算のためにカスケー
ド構造のキャリールックアヘッド加算器を用いて加算を
行っているため、フレーム同期パターン長をL、最終加
算結果を得るまでに必要な加算段数をNとした場合、 N={INT (L/2)−1}+INT (log2L)…………(1) となり、加算段数の増加による計算速度の低下を招いて
いた。
In this conventional error bit number calculating circuit, since the carry-look-ahead adder having a cascade structure is used to add the bit error numbers, the frame synchronization pattern length is calculated. L, where N is the number of addition stages required to obtain the final addition result, N = {INT (L / 2) -1} + INT (log2L) ………… (1), which is calculated by increasing the number of addition stages. It caused a decrease in speed.

【0009】また、最終段の加算までキャリールックア
ヘッド加算の手法にて加算結果を用いて S=ΣSi 2i …………(2) で表される2i の重みを持つ2値(0,1)のSi を求
めるまで加算を行うため、キャリーセーブ加算に比べ
て、加算段数の増大を招き、結果として計算速度の低下
につながっていた。
Further, using the result of addition by the carry-look-ahead addition method until the final stage of addition, a binary value (0, 0, 2 having a weight of 2 i represented by S = ΣS i 2 i (2) Since addition is performed until Si of 1) is obtained, the number of addition stages is increased as compared with carry-save addition, resulting in a reduction in calculation speed.

【0010】尚、(1),(2)式において、INT
(X)はXの整数値を示し、Si はビットバイナリーで
表される加算結果の各ビットに対応し、Sは加算結果を
表す。本発明の目的は、加算段数を縮小して計算速度の
向上を図るようにしたビット誤り数算出回路を提供する
ことである。
In the equations (1) and (2), INT
(X) indicates an integer value of X, Si corresponds to each bit of the addition result represented by bit binary, and S indicates the addition result. It is an object of the present invention to provide a bit error number calculation circuit that reduces the number of addition stages to improve the calculation speed.

【0011】[0011]

【課題を解決するための手段】本発明によるビット誤り
数算出回路は、所定ビット数からなるデータパターンの
各構成ビットの誤りをビット対応に夫々表示したビット
誤り情報を入力としてその誤り数を算出するビット誤り
数算出回路であって、前記ビット誤り情報の各構成ビッ
トを複数グループに分割し、各グループ毎に、各構成ビ
ットを夫々全加算し、これ等全加算の加算出力同士及び
桁上げ出力同士を夫々独立に全加算し、これ等全加算結
果のキャリー出力が1ビットになるまで加算処理を繰返
し、各グループ毎の途中の加算処理の加算出力の溢れビ
ットと前記1ビットとを夫々同一重みビット同士でキャ
リーセーブ型全加算処理し、これ等キャリーセーブ型全
加算処理の各加算出力と各桁上げ出力とをビット誤り数
としたことを特徴とする。
A bit error number calculation circuit according to the present invention calculates the number of errors by inputting bit error information indicating the error of each constituent bit of a data pattern consisting of a predetermined number of bits corresponding to each bit. A bit error number calculation circuit for dividing each of the constituent bits of the bit error information into a plurality of groups, for each group, performing full addition of each constituent bit, and adding outputs of these full additions and carry. totally adding outputs together each independently, which like repeated addition process to carry output of full adder result is 1 bit, overflow of the adder output in the middle of the addition process for each group-bi
Bit and the above-mentioned 1 bit are stored in the same weight bit respectively.
Carry save type full addition processing
It is characterized in that each addition output and each carry output of the addition processing are the number of bit errors.

【0012】本発明による他のビット誤り数算出回路
は、データストリーム中のフレーム同期パターンを検出
するフレーム同期検出部において前記フレーム同期パタ
ーンの各構成ビットの誤りが検出され、前記構成ビット
の各々の誤りがビット対応に夫々表示されたビット誤り
情報を入力としてその誤り数を算出するビット誤り数算
出回路であって、前記ビット誤り情報の各構成ビットを
複数グループに分割し、各グループ毎に、各構成ビット
を夫々全加算し、これ等全加算の加算出力同士及び桁上
げ出力同士を夫々独立に全加算し、これ等全加算結果の
キャリー出力が1ビットになるまで加算処理を繰返し、
各グループ毎の途中の加算処理の加算出力の溢れビット
と前記1ビットとを夫々同一重みビット同士でキャリー
セーブ型全加算処理し、これ等キャリーセーブ型全加算
処理の各加算出力と各桁上げ出力とをビット誤り数とし
たことを特徴とする。
Another bit error number calculating circuit according to the present invention detects a frame synchronization pattern in a data stream.
In the frame synchronization detector, the frame synchronization pattern
Error in each constituent bit of the
A bit error number calculation circuit for calculating the number of errors by inputting bit error information in which each error is displayed corresponding to each bit, and dividing each constituent bit of the bit error information into a plurality of groups. For each of them, each constituent bit is fully added, and the addition outputs of these full additions and carry outputs are independently added individually, and addition processing is performed until the carry output of these full addition results becomes 1 bit. Repeat,
The overflow bit of the addition output in the middle of the addition process for each group and the above-mentioned 1 bit are carry save type full addition process with the same weight bits, and each addition output and carry of these carry save type full addition process It is characterized in that the output and the number of bit errors are set.

【0013】[0013]

【作用】誤りビットは“1となっており、この“1”の
ビットの総数を知れば良いことから、従来のキャリール
ックアヘッド加算ではなく、各ビットをフルアダーにて
夫々加算し、これ等加算結果の加算出力同士及びキャリ
ー出力同士を夫々独立に全加算し、これ等全加算結果の
キャリー出力が1ビットになるまで加算処理を繰返すこ
とで、加算段数が少くて早い結果が得られることにな
る。
Since the error bit is "1" and it is sufficient to know the total number of "1" bits, each bit is added by a full adder instead of the conventional carry look ahead addition, and these additions are performed. By performing full addition of the result addition outputs and carry outputs independently and repeating the addition process until the carry output of these addition results becomes 1 bit, it is possible to obtain a fast result with a small number of addition stages. Become.

【0014】[0014]

【実施例】以下、図面を用いて本発明の実施例について
説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】図1は本発明の一実施例のブロック図であ
る。本実施例では、フレーム同期パターンのビット数L
が32の場合を示しており、ビット誤り検出部1はフレ
ーム同期パターンの各構成ビットの誤りを検出するもの
であり、入力フレーム同期パターンの各ビットと基準パ
ターンの各ビットとの一致不一致が判定され、不一致で
あれば入力フレーム同期パターンの構成ビットが誤りで
あることから、その対応ビットが“1”となって導出さ
れ、一致であればその対応ビットが“0”となって導出
される。
FIG. 1 is a block diagram of one embodiment of the present invention. In this embodiment, the number of bits of the frame synchronization pattern is L
Is 32, the bit error detection unit 1 detects an error in each constituent bit of the frame synchronization pattern, and it is determined whether each bit of the input frame synchronization pattern matches each bit of the reference pattern. If they do not match, the corresponding bit of the input frame synchronization pattern is erroneous, so the corresponding bit is derived as "1", and if they match, the corresponding bit is derived as "0". .

【0016】このビット誤り判定部1からの32ビット
のビット誤り情報出力は、いわゆるツリー型キャリール
ックアヘッド加算器4a〜4cへ入力され高速加算処理
が行われる。本例では、より高速動作を得べく、3つの
ツリー型キャリールックアヘッド加算器4a〜4cを並
列に設け、これ等各加算器4a〜4cへ32ビットの入
力を3グループ(L/3として示している)に分割して
供給するようになっている。
The 32-bit bit error information output from the bit error determination unit 1 is input to so-called tree type carry look ahead adders 4a to 4c and subjected to high speed addition processing. In this example, three tree-type carry-look-ahead adders 4a to 4c are provided in parallel in order to obtain a higher speed operation, and 32-bit inputs to each of these adders 4a to 4c are shown as three groups (L / 3). It is designed to be supplied separately.

【0017】ツリー型キャリールックアヘッド加算器の
具体例を図2に示しており、ビット誤り判定部1からの
32ビットのビット誤り情報出力のうち第1〜第12の
12ビットを加算器4aへ、第13〜第24の12ビッ
トを加算器4bへ,残りの第25〜第32の8ビットを
加算器4cへ夫々入力して、各グループ毎に並列に高速
処理を行うものである。
A concrete example of the tree-type carry-look-ahead adder is shown in FIG. 2, in which the first to twelfth 12 bits of the 32-bit bit error information output from the bit error determination unit 1 are sent to the adder 4a. , The 13th to 24th 12 bits are input to the adder 4b and the remaining 25th to 32nd 8 bits are input to the adder 4c to perform high-speed processing in parallel for each group.

【0018】複数グループに分けて並列加算を行う他
に、更に、ツリー型のキャリールックアヘッド加算を行
って高速化を図るようにしたものであり、入力されるビ
ット誤り情報の各ビットは重みを有しているわけではな
いので、先ず図2に示す如く、第1〜第12ビットの3
ビットずつを4つのフルアダー00〜03にて全加算処
理する。尚、第13〜第24ビットの3ビットずつも、
加算器4bにて並列に行われ、第25〜第32ビットの
3ビット×2と2ビットについても加算器4Cにて並列
に行われるもので、以下同じとする。
In addition to performing parallel addition by dividing it into a plurality of groups, tree-type carry-look-ahead addition is further performed to increase the speed, and each bit of the input bit error information is weighted. First, as shown in FIG. 2, 3 of the 1st to 12th bits are not included.
Each bit is subjected to full addition processing by four full adders 00-03. It should be noted that each of the 13th to 24th bits, 3 bits at a time,
The addition is performed in parallel by the adder 4b and is also performed in parallel by the adder 4C for 3 bits × 2 and 2 bits of the 25th to 32nd bits, and the same applies hereinafter.

【0019】3つのフルアダー00〜02の3つの加算
出力S同士は次段のフルアダー10にて全加算処理さ
れ、その加算出力Sと前段のフルアダー03の加算出力
Sとが次々段のフルアダー20にて全加算処理される。
The three addition outputs S of the three full adders 00 to 02 are fully added by the next full adder 10, and the addition output S and the addition output S of the previous full adder 03 are sent to the next full adder 20. Is fully added.

【0020】3つのフルアダー00〜02の3つのキャ
リー出力C同士はフルアダー30にて全加算され、フル
アダー10と20及び03の各キャリー出力Cはフルア
ダー31にて全加算される。このとき、フルアダー20
の加算出力Sは溢れビットとなり、これが加算結果の第
1ビット(LSB)b00として出力される。
The three carry outputs C of the three full adders 00 to 02 are fully added by the full adder 30, and the carry outputs C of the full adders 10, 20 and 03 are fully added by the full adder 31. At this time, full adder 20
Of the addition result S becomes an overflow bit, and this is output as the first bit (LSB) b00 of the addition result.

【0021】フルアダー30と31との加算出力S同士
はフルアダー40にて全加算され、このキャリー出力C
とフルアダー30のキャリー出力Cとフルアダー31の
キャリー出力Cとがフルアダー50にて全加算される。
フルアダー40,50の各加算出力が溢れビットとなっ
て、これ等が加算結果の第2のビットb01,第3ビッ
トb02となって出力される。
The addition outputs S of the full adders 30 and 31 are fully added by the full adder 40, and the carry output C
The carry output C of the full adder 30 and the carry output C of the full adder 31 are fully added by the full adder 50.
The addition outputs of the full adders 40 and 50 become overflow bits, which are output as the second bit b01 and the third bit b02 of the addition result.

【0022】最終的に加算結果のキャリー出力Cが1ビ
ットになるまで上記加算処理が繰返えされるが、本例で
は、フルアダー50のキャリー出力Cがそれに相当し、
このキャリー出力Cが加算結果の最上位ビット(MS
B)b03となって出力されるのである。
The above addition process is repeated until the carry output C of the addition result finally becomes 1 bit. In this example, the carry output C of the full adder 50 corresponds to that.
This carry output C is the most significant bit (MS
B) It is output as b03.

【0023】他のグループのフリー型キャリールックア
ヘッド加算器4b,4cにおいても、同様にして、加算
結果としてb10〜b13,b20〜b23が夫々得ら
れる。そして、これ等各4ビットの加算結果はキャリー
セーブ加算・比較器5にて誤り許容ビット数(予め設定
されている)と比較され、比較出力として導出されるよ
うになっている(図1参照)。
In the free carry carry look-ahead adders 4b and 4c of the other groups, similarly, b10 to b13 and b20 to b23 are respectively obtained as addition results. Then, the addition result of each of these 4 bits is compared with the error allowable bit number (preset) by the carry save addition / comparator 5, and is derived as a comparison output (see FIG. 1). ).

【0024】このツリー型キャリールックアヘッド加算
器を用いてL=32ビットの加算を、3グループに分割
して並列処理すれば、図2に示す如く、加算段数は6段
となり、著しく段数が減少し加算速度は向上すること明
らかである。
If L = 32-bit addition is divided into three groups and processed in parallel using this tree-type carry-look-ahead adder, the number of addition stages becomes 6, as shown in FIG. It is clear that the addition speed is improved.

【0025】図3は図1のキャリーセーブ加算・比較器
5の例を示す図である。図2のツリー型キャリールック
アヘッド加算器4a〜4cの各4ビットの加算結果は、
各重みを考慮して、フルアダー5a〜5dへ夫々入力さ
れる。すなわち(b00,b10,b20)の3ビット
がフルアダー5aへ入力され、(b01,b11,b2
1)の3ビットがフルアダー5bへ入力され、(b0
2,b12,b22)の3ビットがフルアダー5Cへ入
力され、(b03,b13,b23)の3ビットがフル
アダー5dへ入力される。
FIG. 3 is a diagram showing an example of the carry save adder / comparator 5 of FIG. The 4-bit addition results of the tree-type carry lookahead adders 4a to 4c shown in FIG.
In consideration of each weight, they are input to the full adders 5a to 5d, respectively. That is, 3 bits of (b00, b10, b20) are input to the full adder 5a, and (b01, b11, b2)
3 bits of 1) are input to the full adder 5b, and (b0
3 bits (2, b12, b22) are input to the full adder 5C, and 3 bits (b03, b13, b23) are input to the full adder 5d.

【0026】この加算においては各ビットのキャリービ
ットC1〜C4は保存され、MSB側の次のビットの桁
のフルアダーへは伝播されず、キャリーセーブ比較器
(5e〜5i)へ入力される。このキャリーセーブ比較
器へ入力されるデータは、常に2i の重みを有するSi
とCiとの2ビットからなり、 bAi=(Si+Ci)2i =Vi2i にて表される。尚、Viは(0,1,2)の3値を有す
るものとする。
In this addition, the carry bits C1 to C4 of each bit are preserved and are not propagated to the full adder of the digit of the next bit on the MSB side, and are input to the carry save comparators (5e to 5i). The data input to this carry save comparator is always Si with a weight of 2 i.
And Ci, and is represented by bAi = (Si + Ci) 2 i = Vi2 i . Note that Vi has three values of (0, 1, 2).

【0027】キャリーセーブ比較器5e〜5iでは、こ
の3値の重みViを有する2進数で表現される加算結果
ΣbAiと、許容ビット誤り数ΣbRiとをキャリーセ
ーブ比較を行う。この比較は上位桁から下位桁へ向けて
順次行われる。
Carry save comparators 5e to 5i carry out a carry save comparison between the addition result ΣbAi represented by a binary number having the ternary weight Vi and the allowable bit error number ΣbRi. This comparison is performed sequentially from the upper digit to the lower digit.

【0028】図4はこのキャリーセーブ比較器5e〜5
iの具体例の回路図である。図において、2ビットにて
入力される加算結果ビットbAは、キャリー抽出部6a
に入力され、桁上がりビットbACと2ビットの和を表
す和ビットbASが出力される。
FIG. 4 shows the carry save comparators 5e-5.
It is a circuit diagram of a specific example of i. In the figure, the addition result bit bA input in 2 bits is the carry extraction unit 6a.
And a carry bit bAC and a sum bit bAS representing the sum of two bits are output.

【0029】bA>bR判定部6bは、上位のキャリー
セーブ比較器(以下CSCと略す)からのbAとbRの
大小判定結果bA>bR信号を入力し、bAがbRより
大きい(bA>bR信号の論理“1”)か、または桁上
がりビットbACの論理が“1”か、または、和ビット
bASが基準値bRより大きい(bAS>bR)なら
ば、加算結果ビットbAが基準値bRより大きいと判定
し、bA>bR信号を論理“1”として出力する。
The bA> bR determination unit 6b inputs the magnitude determination result bA> bR of bA and bR from the upper carry save comparator (hereinafter abbreviated as CSC), and bA is larger than bR (bA> bR signal). Of the carry bit bAC is "1" or the sum bit bAS is larger than the reference value bR (bAS> bR), the addition result bit bA is larger than the reference value bR. Then, the bA> bR signal is output as a logic “1”.

【0030】但し、上位のCSCからのbAとbRの大
小判定結果(bA<bR)信号を入力し、上位のCSC
にてbAがbRより小さい((bA<bR)信号の論理
“1”)ならば、bA>bR信号を論理“0”として出
力し、bA<bR判定部からのbAとbRの大小の判定
結果信号であるbA<bR信号及び(bA<bR)信号
にて大小判定を行う。
However, the signal of the judgment result (bA <bR) of bA and bR from the upper CSC is input to the upper CSC.
If bA is smaller than bR ((bA <bR) signal logic “1”), the bA> bR signal is output as logic “0”, and the bA <bR determination unit determines whether bA and bR are large or small. The magnitude is determined by the bA <bR signal and the (bA <bR) signal which are the result signals.

【0031】bA<bR判定部6cは、bA>bR判定
部6bからの和ビットbASと基準値bRが等しくない
ことを表すbAS≠bR信号と、bAがbRに等しい
か、小さいことを示すbA≦bR信号を入力し、論理が
真であるならば、加算結果ビットbAが基準値bRより
小さいことを示す(bA<bR)信号を出力する。但し
上位のCSSからのbAとbRの大小判定の結果、加算
結果ビットbAが基準bRより小さいことが確定したこ
とを示すbA<bR信号の論理が真(“1”)ならば、
(bA<bR)信号及びbA<bR信号を論理“1”に
て出力し下位のCSCに出力する。
The bA <bR determination unit 6c outputs a bAS≠bR signal indicating that the sum bit bAS from the bA> bR determination unit 6b is not equal to the reference value bR, and bA indicating that bA is equal to or smaller than bR. If the signal ≦ bR is input and the logic is true, a signal (bA <bR) indicating that the addition result bit bA is smaller than the reference value bR is output. However, if the logic of the bA <bR signal is true (“1”), which indicates that the addition result bit bA is determined to be smaller than the reference bR as a result of the magnitude judgment of bA and bR from the upper CSS,
The (bA <bR) signal and the bA <bR signal are output as logic “1” and output to the lower CSC.

【0032】bA<bR信号は、上位のCSCにて、か
つ(bA<bR)信号の論理が“1”(加算結果ビット
bAが基準値bRより小さい)であり、かつ、桁上がり
ビットbACの論理が“0”の状態において、和ビット
bASの論理が“0”(下位のCSCからの桁上がりに
よる上位CSCへの桁上げが起こらない状態)または、
基準値bRの論理が“1”(下位のCSCからの桁上げ
により上位CSCへの桁上げが発生しても、和ビットb
ASが基準値bRより小さくなる状態)ならば、加算結
果ビットbAが基準値bRより小さい値となることが確
定したと判定し、bA<bR信号を論理“1”にて出力
する。
The bA <bR signal is in the higher CSC, the logic of the (bA <bR) signal is “1” (the addition result bit bA is smaller than the reference value bR), and the carry bit bAC is the same. When the logic is "0", the logic of the sum bit bAS is "0" (a carry to the upper CSC does not occur due to a carry from the lower CSC), or
The logic of the reference value bR is "1" (even if the carry from the lower CSC to the upper CSC occurs, the sum bit b
If AS is smaller than the reference value bR), it is determined that the addition result bit bA has a value smaller than the reference value bR, and the bA <bR signal is output as a logic “1”.

【0033】上記の大小判定を上位のCSC5iから下
位のCSC5eへ順次実施することにより、最終的に基
準値に対する大小比較を行うことができる。
By carrying out the above-mentioned size judgment sequentially from the upper CSC 5i to the lower CSC 5e, it is possible to finally carry out the size comparison with respect to the reference value.

【0034】上記実施例では、フレーム同期パターンの
ビット誤り情報の構成ビット(L=32)を3グループ
化しているが、このグループ化する場合、1グループ中
のビット数が3つの整数倍になることが最も効率良くフ
ルアダーを使用することができる(フルアダーは3入力
であるため)。従って、32ビットの例では、単純に3
で割ると10.6ビットづつとなるが、第1グループ4
aのビット数としては、12ビットとした方が効率が良
く、よって第1,第2グループを各12ビットとし、第
3グループを残りの8ビットとして、最も効率良くフル
アダーを用いているのである。
In the above embodiment, the constituent bits (L = 32) of the bit error information of the frame synchronization pattern are grouped into three groups. In this grouping, the number of bits in one group becomes an integral multiple of three. That is the most efficient way to use a full adder (because a full adder has 3 inputs). Therefore, in the 32-bit example, it is simply 3
It is 10.6 bits each when divided by, but the first group 4
It is more efficient to use 12 bits as the number of bits of a. Therefore, the first and second groups have 12 bits each, and the third group has the remaining 8 bits, so that the full adder is used most efficiently. .

【0035】また、3グループとしたのは、これまた次
段のキャリーセーブ加算部(図3)のフルアダー5a〜
5bが3ビット入力であることに起因するものであり、
効率使用が可能なためである。
The three groups are the full adders 5a to 5a of the carry save adder (FIG. 3) in the next stage.
5b is a 3-bit input,
This is because it can be used efficiently.

【0036】尚、3グループとして並列処理を行わない
でも、入力のL=32ビットをそのまま単一のツリー型
キャリールックアヘッド加算器へ供給しても、図7に示
した従来の加算段数20よりは段数が少くなる。その例
を図5に示している。
Even if the parallel processing is not performed as three groups and the input L = 32 bits is directly supplied to the single tree carry-look-ahead adder, the conventional addition stage number 20 shown in FIG. Has fewer steps. An example thereof is shown in FIG.

【0037】図5の例から判る様に、従来は20段あっ
たものが、12段の加算処理で済むことになり、これだ
けでもより高速となることは明白である。
As can be seen from the example of FIG. 5, it is obvious that the conventional 20 stages has been completed by the addition process of 12 stages, which alone makes the speed higher.

【0038】[0038]

【発明の効果】以上述べた如く、本発明によれば、キャ
リールックアヘッド加算をツリー型構造としたので、加
算段数を著しく減少させることができ、高速処理可能と
なる。更に、入力ビットを複数グループ(3グループが
理想的)に分割して各グループ毎にツリー型キャリール
ックアヘッド加算を並列処理することにより、更なる加
算段数の減少及び高速化が可能となる。
As described above, according to the present invention, since carry-look-ahead addition has a tree structure, the number of addition stages can be significantly reduced and high-speed processing can be performed. Furthermore, by dividing the input bits into a plurality of groups (3 groups are ideal) and performing the tree-type carry look-ahead addition in parallel for each group, the number of addition stages can be further reduced and the speed can be increased.

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

【図1】本発明の実施例のシステムブロック図である。FIG. 1 is a system block diagram of an embodiment of the present invention.

【図2】図1のツリー型キャリールックアヘッド加算器
の一例を示す図である。
FIG. 2 is a diagram showing an example of a tree-type carry lookahead adder shown in FIG. 1;

【図3】図1のキャリーセーブ加算・比較器の一例を示
す図である。
3 is a diagram showing an example of a carry save adder / comparator in FIG. 1. FIG.

【図4】図3のキャリーセープ比較器(CSC)の具体
例回路図である。
FIG. 4 is a specific circuit diagram of the carry-save comparator (CSC) shown in FIG.

【図5】本発明の他の実施例の回路図である。FIG. 5 is a circuit diagram of another embodiment of the present invention.

【図6】従来のビット誤り算出回路のシステムブロック
図である。
FIG. 6 is a system block diagram of a conventional bit error calculation circuit.

【図7】図6のキャリールックアヘッド加算器の一例を
示す回路図である。
7 is a circuit diagram showing an example of the carry look ahead adder shown in FIG. 6;

【符号の説明】[Explanation of symbols]

1 ビット誤り判定部 4a〜4c ツリー型キャリールックアヘッド加算器 5 キャリーセーブ加算・比較器 1-bit error determination unit 4a to 4c Tree type carry look-ahead adder 5 Carry save adder / comparator

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定ビット数からなるデータパターンの
各構成ビットの誤りをビット対応に夫々表示したビット
誤り情報を入力としてその誤り数を算出するビット誤り
数算出回路であって、前記ビット誤り情報の各構成ビッ
トを複数グループに分割し、各グループ毎に、各構成ビ
ットを夫々全加算し、これ等全加算の加算出力同士及び
桁上げ出力同士を夫々独立に全加算し、これ等全加算結
果のキャリー出力が1ビットになるまで加算処理を繰返
し、各グループ毎の途中の加算処理の加算出力の溢れビ
ットと前記1ビットとを夫々同一重みビット同士でキャ
リーセーブ型全加算処理し、これ等キャリーセーブ型全
加算処理の各加算出力と各桁上げ出力とをビット誤り数
としたことを特徴とするビット誤り数算出回路。
1. A bit error number calculation circuit for calculating the number of errors by inputting bit error information in which an error of each constituent bit of a data pattern having a predetermined number of bits is displayed corresponding to each bit. Each configuration bit of each is divided into multiple groups, and each configuration
The total output of each
The carry outputs are added independently, and the totals are added together.
Repeat the addition process until the carry output of the result becomes 1 bit.
However, the overflow output of the addition output of the addition processing in the middle of each group
Bit and the above-mentioned 1 bit are stored in the same weight bit respectively.
Carry save type full addition processing
Number of bit errors between each addition output and each carry output of addition processing
The bit error rate computation circuit, characterized in that the the.
【請求項2】 データストリーム中のフレーム同期パタ
ーンを検出するフレーム同期検出部において前記フレー
ム同期パターンの各構成ビットの誤りが検出され、前記
構成ビットの各々の誤りがビット対応に夫々表示された
ビット誤り情報を入力としてその誤り数を算出するビッ
ト誤り数算出回路であって、前記ビット誤り情報の各構
成ビットを複数グループに分割し、各グループ毎に、各
構成ビットを夫々全加算し、これ等全加算の加算出力同
士及び桁上げ出力同士を夫々独立に全加算し、これ等全
加算結果のキャリー出力が1ビットになるまで加算処理
を繰返し、各グループ毎の途中の加算処理の加算出力の
溢れビットと前記1ビットとを夫々同一重みビット同士
でキャリーセーブ型全加算処理し、これ等キャリーセー
ブ型全加算処理の各加算出力と各桁上げ出力とをビット
誤り数としたことを特徴とするビット誤り数算出回路。
2. A frame synchronization pattern in a data stream.
In the frame synchronization detection unit for detecting frames, the frame
Error in each constituent bit of the system synchronization pattern is detected,
A bit error number calculation circuit for calculating the number of errors by inputting bit error information in which each error of the component bits is displayed corresponding to each bit, wherein each component bit of the bit error information is grouped into a plurality of groups. , Each constituent bit is fully added for each group, and the addition outputs of these full additions and carry outputs are independently added individually, and the carry output of these full addition results is 1 bit. The addition process is repeated until the following, and the overflow bit of the addition output of the addition process in the middle of each group and the above-mentioned 1 bit are carry-save full addition process with the same weight bits respectively, and carry-save full addition process is performed. A bit error number calculation circuit, wherein each addition output and each carry output is set as a bit error number.
【請求項3】 前記ビット誤り数と予め設定された誤り
ビット許容数との間で大小比較を行うよう構成したこと
を特徴とする請求項1または2記載のビット誤り数算出
回路。
3. The bit error number calculation circuit according to claim 1, wherein the bit error number calculation circuit is configured to perform magnitude comparison between the bit error number and a preset allowable error bit number.
JP6119926A 1994-06-01 1994-06-01 Bit error number calculation circuit Expired - Lifetime JP2674507B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6119926A JP2674507B2 (en) 1994-06-01 1994-06-01 Bit error number calculation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6119926A JP2674507B2 (en) 1994-06-01 1994-06-01 Bit error number calculation circuit

Publications (2)

Publication Number Publication Date
JPH07325706A JPH07325706A (en) 1995-12-12
JP2674507B2 true JP2674507B2 (en) 1997-11-12

Family

ID=14773597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6119926A Expired - Lifetime JP2674507B2 (en) 1994-06-01 1994-06-01 Bit error number calculation circuit

Country Status (1)

Country Link
JP (1) JP2674507B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08139613A (en) * 1994-11-15 1996-05-31 Nec Corp Code coincidence detecting system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5815333A (en) * 1981-07-21 1983-01-28 Nec Corp Counting system
JPS616934A (en) * 1984-06-21 1986-01-13 Fujitsu Ltd Supervisory system of standby system
JPH0310532A (en) * 1989-06-08 1991-01-18 Toshiba Corp Line quality diagnostic device
JPH0378337A (en) * 1989-08-22 1991-04-03 Anritsu Corp Code error counting circuit
JP2518548B2 (en) * 1990-10-17 1996-07-24 富士通株式会社 Multi-input adder circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
特許庁編「技術動向シリーズ 特許から見たコンピュータシステム」発明協会発行(昭56−4−10)p.330−335

Also Published As

Publication number Publication date
JPH07325706A (en) 1995-12-12

Similar Documents

Publication Publication Date Title
US6983300B2 (en) Arithmetic unit
JP3492638B2 (en) Floating point multiplier
JP3736741B2 (en) Data processing unit
CN106682258A (en) Method and system for multi-operand addition optimization in high-level synthesis tool
JP2674507B2 (en) Bit error number calculation circuit
JPH0317132B2 (en)
KR100627993B1 (en) Three input split-adder
US4823300A (en) Performing binary multiplication using minimal path algorithm
US5126965A (en) Conditional-sum carry structure compiler
US7124162B2 (en) Adder tree structure digital signal processor system and method
JPH0511980A (en) Overflow detecting method and circuit
CN112783470A (en) Device and method for executing floating point logarithm operation
US5781465A (en) Method and apparatus for fast carry generation detection and comparison
KR100309520B1 (en) Multiplication methods and multiplication circuits with round-off capability
JPH087670B2 (en) Adder circuit
US7599974B2 (en) Data processing apparatus and method for comparing floating point operands
US6343303B1 (en) Method of determining a scaling factor
JPH086766A (en) Sine and cosine arithmetic device
KR100252766B1 (en) Sticky signal generator operating at high-speed
US7469265B2 (en) Methods and apparatus for performing multi-value range checks
CN110598172B (en) Convolution operation method and circuit based on CSA adder
JP3675111B2 (en) 3-input comparator
US6654776B1 (en) Method and apparatus for computing parallel leading zero count with offset
JP3539077B2 (en) Division method by parallel operation method
JP3257278B2 (en) Normalizer using redundant shift number prediction and shift error correction