JP3193830B2 - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JP3193830B2
JP3193830B2 JP15237194A JP15237194A JP3193830B2 JP 3193830 B2 JP3193830 B2 JP 3193830B2 JP 15237194 A JP15237194 A JP 15237194A JP 15237194 A JP15237194 A JP 15237194A JP 3193830 B2 JP3193830 B2 JP 3193830B2
Authority
JP
Japan
Prior art keywords
signal
selector
shift register
circuit
selection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15237194A
Other languages
Japanese (ja)
Other versions
JPH0816363A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP15237194A priority Critical patent/JP3193830B2/en
Publication of JPH0816363A publication Critical patent/JPH0816363A/en
Application granted granted Critical
Publication of JP3193830B2 publication Critical patent/JP3193830B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、数値演算処理及び信号
処理用のディジタル・シグナル・プロセッサ(以下、D
SPと略称する)等に設けられる演算回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital signal processor (hereinafter referred to as D) for numerical operation processing and signal processing.
(Hereinafter abbreviated as SP).

【0002】[0002]

【従来の技術】ここで、図7を用いてパスメトリックの
計算及びパスの選択の原理について説明する。図7は、
符号化率1/2、拘束長4の時刻tから時刻t+1の状
態遷移を表すトレリス図である。一般に、拘束長kの場
合の状態数は k−1 である。図7の場合は、k=4で
あるので、状態数は 4−1 =8となる。図7に
おいて、S0(t)、・・・、S7(t)は時刻tにおけ
る状態を示し、S0(t+1)、・・・、S7(t+1)
は時刻t+1における状態を示す。ここで状態S0
(t)、・・・、S7(t)に対応するパスメトリックを
P0(t)、・・・、P7(t)と表し、時刻t+1での
受信信号から得られるブランチメトリックをBm(t+
1)と表す(mは任意整数)。例えば、状態S0(t+
1)におけるパスメトリックP0(t+1)は、下記の
式(1)又は(2) P0(t+1)=P0(t)+B0(t+1) ・・・(1) P0(t+1)=P1(t)−B0(t+1) ・・・(2) を計算することにより求められた2つのP0(t+1)
のうちで、尤度の高いものである。
2. Description of the Related Art The principle of calculating a path metric and selecting a path will be described with reference to FIG. FIG.
It is a trellis diagram showing the state transition from time t of the coding rate 1/2 and the constraint length 4 to time t + 1. In general, the number of states for a constraint length k is 2 k−1 . In the case of FIG. 7, since k = 4, the number of states is 2 4-1 = 2 3 = 8. In FIG. 7, S0 (t),..., S7 (t) indicate the state at time t, and S0 (t + 1),.
Indicates a state at time t + 1. Here, state S0
, S7 (t) are represented by P0 (t),..., P7 (t), and the branch metric obtained from the received signal at time t + 1 is represented by Bm (t +
1) (m is an arbitrary integer). For example, state S0 (t +
The path metric P0 (t + 1) in 1) is given by the following equation (1) or (2): P0 (t + 1) = P0 (t) + B0 (t + 1) (1) P0 (t + 1) = P1 (t) − B0 (t + 1) (2) Two P0 (t + 1) obtained by calculating
Among them, those with high likelihood.

【0003】ここで、図7を用いて時刻tから時刻t+
1における従来の演算回路の動作を具体的に説明する。
初めに、演算回路はP0(t)とP1(t)とB0(t
+1)とを入力し、式(1)及び(2)を計算して2つ
のP0(t+1)を求める。そして、求められた2つの
P0(t+1)のうちで尤度の高いP0(t+1)の値
を選択し、どちらかを選択したビットデータ”0”又
は”1”をレジスタに格納する。ここで、状態S0(t
+1)、…、S7(t+1)に対応するビットデータを
b0、…、b7とする。次に、演算回路はP0(t)、
P1(t)、B0(t+1)の値をそのまま保持し、式 P4(t+1)=P0(t)−B0(t+1) …(3) P4(t+1)=P1(t)+B0(t+1) …(4) を計算して2つのP4(t+1)を求める。そして、求
められた2つのP4(t+1)のうちで尤度の高いP4
(t+1)の値を選択し、どちらかを選択した識別符
号”0”又は”1”をレジスタに格納する。このよう
に、状態S0(t+1)のパスメトリックを計算した後
すぐに状態S4(t+1)のパスメトリックを計算する
と、状態S0(t+1)でパスメトリックを計算する時
に用いた同じデータP0(t)、P1(t)、 B0
(t+1)をもう一度入力する必要がなくなる。同様に
して、パスメトリックP1(t)、P5(t)、P3
(t)、P7(t)が計算される。そのため、従来の演
算回路のシフトレジスタにはP0(t)、P4(t)、
P1(t)、P5(t)、P2(t)、P6(t)、P
3(t)、P7(t)の順番でビットデータが格納され
る。このとき、ビットデータが格納される順番は、b
0、b4、b1、b5、b2、b6、b3、b7であ
る。
[0003] Here, referring to FIG.
1 will be described in detail.
First, the arithmetic circuit calculates P0 (t), P1 (t) and B0 (t
+1), and the equations (1) and (2) are calculated to obtain two P0 (t + 1). Then, a value of P0 (t + 1) having a high likelihood is selected from the two obtained P0 (t + 1), and bit data “0” or “1” of which one is selected is stored in the register. Here, the state S0 (t
+1),..., S7 (t + 1) are denoted by b0,. Next, the arithmetic circuit calculates P0 (t),
The values of P1 (t) and B0 (t + 1) are held as they are, and the equation P4 (t + 1) = P0 (t) -B0 (t + 1) (3) P4 (t + 1) = P1 (t) + B0 (t + 1) ( 4) is calculated to obtain two P4 (t + 1). Then, of the two obtained P4 (t + 1), P4 having a high likelihood
The value of (t + 1) is selected, and the selected identification code “0” or “1” is stored in the register. As described above, if the path metric of the state S4 (t + 1) is calculated immediately after calculating the path metric of the state S0 (t + 1), the same data P0 (t) used when calculating the path metric in the state S0 (t + 1) is obtained. , P1 (t), B0
There is no need to input (t + 1) again. Similarly, path metrics P1 (t), P5 (t), P3
(T) and P7 (t) are calculated. Therefore, P0 (t), P4 (t),
P1 (t), P5 (t), P2 (t), P6 (t), P
Bit data is stored in the order of 3 (t) and P7 (t). At this time, the order in which the bit data is stored is b
0, b4, b1, b5, b2, b6, b3, b7.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、パスの
選択を行う場合、シフトレジスタに格納されたビットデ
ータは、b0、b1、b2、b3、b4、b5、b6、
b7の順番に読みだされなければならない。そのため、
シフトレジスタに格納されたビットデータをb0、b
1、b2、b3、b4、b5、b6、b7の順番に並べ
替えるためのプログラムが必要となるという問題点があ
った。
However, when a path is selected, the bit data stored in the shift register includes b0, b1, b2, b3, b4, b5, b6,
Must be read in the order of b7. for that reason,
The bit data stored in the shift register is represented by b0, b
There is a problem that a program for rearranging in the order of 1, b2, b3, b4, b5, b6, and b7 is required.

【0005】本発明は、パスを選択する時にシフトレジ
スタの出力データを並び替えるためのプログラム処理を
行わず、ハードウェア処理を行うことを目的とする。
An object of the present invention is to perform hardware processing without performing a program processing for rearranging output data of a shift register when a path is selected.

【0006】[0006]

【課題を解決するための手段】本発明の演算回路は第一
の信号と第二の信号とを入力して加算若しくは減算を行
い第一の演算結果信号を出力する第一の加減算手段と、
第三の信号と第四の信号とを入力して第三の信号と第四
の信号のいずれか一方を選択して第一の選択信号を出力
する第一の選択手段と、前記第二の信号と前記第一の演
算結果信号とを入力して前記第二の信号と前記第一の演
算結果信号のいずれか一方を選択して第二の選択信号を
出力する第二の選択手段と、前記第一の選択信号と前記
第二の選択信号とを入力して、前記第一の選択信号が前
記第三の信号でかつ前記第二の選択信号が前記第二の信
号のときに加算若しくは減算し、前記第一の選択信号が
前記第四の信号でかつ前記第二の選択信号が前記第一の
演算結果信号のときに減算し、第二の演算結果信号とし
て前記第四の信号を出力する第二の加減算手段と、第一
の演算結果信号と、前記第三の信号と前記第二の信号と
を演算した前記第四の信号とを入力し、さらに前記第四
の信号と前記第一の演算結果信号とを演算した前記第四
の信号の符号信号を入力して、符号信号の値が負の値を
示すときに前記第一の演算結果信号を選択し、符号信号
の値が正の値を示すときに前記第二の信号と前記第三の
信号とを演算した前記第四の信号を選択し、第三の選択
信号を出力する第三の選択手段とにより構成される。
An arithmetic circuit according to the present invention includes a first adder / subtractor for inputting a first signal and a second signal, performing addition or subtraction, and outputting a first operation result signal;
The third signal and the fourth signal are input and the third signal and the fourth signal are input.
Select one of the signals and output the first selection signal
First selecting means for performing, the second signal and the first
Inputting the second signal and the first operation
Select one of the calculation result signals and set the second selection signal
Second selection means for outputting, the first selection signal and the
Inputting a second selection signal and the first selection signal
The third signal and the second selection signal are the second signal.
Addition or subtraction at the time of the signal, the first selection signal is
The fourth signal and the second selection signal is the first signal
Subtraction is performed at the time of the operation result signal to obtain the second operation result signal.
Second adding / subtracting means for outputting the fourth signal,
Operation result signal, the third signal and the second signal
And the fourth signal calculated as
The fourth calculation result signal and the first calculation result signal
Input the sign signal of the signal of
Select the first operation result signal when
The second signal and the third signal when the value of
Selecting the fourth signal calculated with the signal, and selecting the third signal
And third selection means for outputting a signal .

【0007】[0007]

【0008】[0008]

【0009】[0009]

【作用】上記のように構成された演算回路においては、
第一及び第二の選択手段の出力を演算した第二の加減算
手段の結果に応じてパスメトリックを出力する。
In the arithmetic circuit configured as described above,
Second addition / subtraction operation of outputs of the first and second selection means
The path metric is output according to the result of the means.

【0010】[0010]

【実施例】以下、本発明による演算回路の第一の実施例
を図面を参照して説明する。ここで、図1は、第一の実
施例の詳細構成を示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of an arithmetic circuit according to the present invention will be described below with reference to the drawings. Here, FIG. 1 is a block diagram showing a detailed configuration of the first embodiment.

【0011】本発明の演算回路は、データバス1と、第
一の加減算回路21と、第二の加減算回路22と、比較
回路3と、第一のシフトレジスタ4と、第一のセレクタ
5と、マルチプレクサ6とにより構成されている。
The arithmetic circuit according to the present invention comprises a data bus 1, a first addition / subtraction circuit 21, a second addition / subtraction circuit 22, a comparison circuit 3, a first shift register 4, a first selector 5, , A multiplexer 6.

【0012】データバス1は第一の加減算回路21及び
第二の加減算回路22と接続され、各加減算回路21、
22は各々比較回路3及び第一のセレクタ5と接続され
ている。比較回路3は第一のシフトレジスタ4及び第一
のセレクタ5と接続され、第一のシフトレジスタ4はマ
ルチプレクサ6と接続されている。そして、第一のセレ
クタ5及びマルチプレクサ6はデータバス1と接続され
ている。
The data bus 1 is connected to a first adding / subtracting circuit 21 and a second adding / subtracting circuit 22.
Reference numerals 22 are connected to the comparison circuit 3 and the first selector 5, respectively. The comparison circuit 3 is connected to a first shift register 4 and a first selector 5, and the first shift register 4 is connected to a multiplexer 6. The first selector 5 and the multiplexer 6 are connected to the data bus 1.

【0013】次に、図2及び図7を用いて本発明による
演算回路の第一の実施例の動作を説明すると共に、マル
チプレクサ6を詳細に説明する。図2は符号化率1/
2、拘束長4の時刻tから時刻t+1における本発明の
演算回路の動作を示すフローチャートである。
Next, the operation of the first embodiment of the arithmetic circuit according to the present invention will be described with reference to FIGS. 2 and 7, and the multiplexer 6 will be described in detail. FIG. 2 shows the coding rate 1 /
2 is a flowchart showing the operation of the arithmetic circuit of the present invention from time t to time t + 1 of the constraint length 4.

【0014】初めに、第一の加減算回路21はデータバ
ス1からパスメトリックP0(t)及びブランチメトリ
ックB0(t+1)を入力し、第二の加減算回路22は
データバス1からパスメトリックP1(t)及びブラン
チメトリックB0(t+1)を入力する。そして、第一
の加減算回路21は式P0(t)+B0(t+1)を計
算してパスメトリックP0(t+1)を求め、第二の加
減算回路22は式P1(t)+B1(t+1)(=P1
(t)−B0(t+1)、すなわちB1(t+1)=−
B0(t+1))を計算してパスメトリックP0(t+
1)を求める(ステップ1)。比較回路3は第一の加減
算回路21及び第二の加減算回路22からパスメトリッ
クP0(t+1)を入力し、2つのパスメトリックP0
(t+1)の尤度を比較して尤度の高さを比較する。そ
して、尤度の高いP0(t+1)をパスメトリックと判
断する。ここで、比較回路3は比較結果として『0』ま
たは『1』を出力し、例えば、第一の加減算回路21か
ら入力されたP0(t+1)の尤度が高い場合は『0』
を出力し、第二の加減算回路22から入力されたP0
(t+1)の尤度が高い場合は『1』を出力する。ここ
では、比較回路3は比較結果としてb0(データ長は、
1ビット)を出力する。第一のシフトレジスタ4は、比
較回路3からの比較結果を入力すると同時に、現在入力
されているデータを1ビットずつシフトしてnビット
(nは任意整数)分蓄える(ステップ2、3)。ここ
で、例えば、16ビットの固定小数点型DSPの場合
は、16ビットのレジスタを使用する。ここでは、状態
数8であることより、比較結果は8ビット分蓄えられ
る。第一のセレクタ5は比較回路3から比較結果を入力
し、比較回路3において尤度が高いと判断されたP0
(t+1)を選択してデータバス1に出力する(ステッ
プ5)。
First, the first addition / subtraction circuit 21 receives the path metric P0 (t) and the branch metric B0 (t + 1) from the data bus 1, and the second addition / subtraction circuit 22 receives the path metric P1 (t) from the data bus 1. ) And the branch metric B0 (t + 1). Then, the first addition / subtraction circuit 21 calculates the expression P0 (t) + B0 (t + 1) to obtain the path metric P0 (t + 1), and the second addition / subtraction circuit 22 calculates the expression P1 (t) + B1 (t + 1) (= P1
(T) -B0 (t + 1), that is, B1 (t + 1) =-
B0 (t + 1)) to calculate the path metric P0 (t +
1) is obtained (step 1). The comparison circuit 3 receives the path metric P0 (t + 1) from the first addition / subtraction circuit 21 and the second addition / subtraction circuit 22, and receives the two path metrics P0.
The likelihood of (t + 1) is compared and the likelihood is compared. Then, P0 (t + 1) having a high likelihood is determined as a path metric. Here, the comparison circuit 3 outputs “0” or “1” as a comparison result. For example, when the likelihood of P0 (t + 1) input from the first addition / subtraction circuit 21 is high, “0” is output.
And outputs P0 input from the second addition / subtraction circuit 22.
If the likelihood of (t + 1) is high, “1” is output. Here, the comparison circuit 3 outputs b0 (the data length is
1 bit). The first shift register 4 receives the comparison result from the comparison circuit 3 and simultaneously shifts the currently input data one bit at a time and stores n bits (n is an arbitrary integer) (steps 2 and 3). Here, for example, in the case of a 16-bit fixed-point DSP, a 16-bit register is used. Here, since the number of states is 8, the comparison result is stored for 8 bits. The first selector 5 receives the comparison result from the comparison circuit 3, and the comparison result of P0 that has been determined to be high by the comparison circuit 3 is high.
(T + 1) is selected and output to the data bus 1 (step 5).

【0015】同様にして、演算回路は、パスメトリック
をP4(t+1)→P1(t+1)→P5(t+1)→
P2(t+1)→P6(t+1)→P3(t+1)→P
7(t+1)の順番に求める。
Similarly, the arithmetic circuit calculates the path metric from P4 (t + 1) → P1 (t + 1) → P5 (t + 1) →
P2 (t + 1) → P6 (t + 1) → P3 (t + 1) → P
7 (t + 1).

【0016】以上のような動作を行うと、第一のシフト
レジスタ4には比較結果が、b0→b4→b1→b5→
b2→b6→b3→b7の順番に記憶される。ここで、
マルチプレクサ6は、図3に示したようにアドレス番号
0→2→4→5→1→3→5→7の順番で第一のシフト
レジスタ4に記憶されているデータを読み出す。すると
データは、b0→b1→b2→b3→b4→b5→b6
→b7の順番でデータバス1に出力される(ステップ
4、7)。次に、本発明による演算回路の第二の実施例
を図面を参照して説明する。ここで、図4は第二の実施
例の詳細構成を示すブロック図であり、図1と同一、対
応部分には、同一符号を付して示している。
When the above operation is performed, the comparison result is stored in the first shift register 4 as b0 → b4 → b1 → b5 →
It is stored in the order of b2 → b6 → b3 → b7. here,
The multiplexer 6 reads the data stored in the first shift register 4 in the order of the address numbers 0 → 2 → 4 → 5 → 1 → 3 → 5 → 7 as shown in FIG. Then, the data is b0 → b1 → b2 → b3 → b4 → b5 → b6
→ Output to the data bus 1 in the order of b7 (steps 4 and 7). Next, a second embodiment of the arithmetic circuit according to the present invention will be described with reference to the drawings. Here, FIG. 4 is a block diagram showing a detailed configuration of the second embodiment, and the same reference numerals are given to the same and corresponding parts as in FIG.

【0017】本発明の演算回路は、データバス1と、第
一の加減算回路21と、第二の加減算回路22と、比較
回路3と、第一のシフトレジスタ4と、第一のセレクタ
5と、マルチプレクサ6と、第二のセレクタ51とによ
り構成されている。
The arithmetic circuit of the present invention comprises a data bus 1, a first addition / subtraction circuit 21, a second addition / subtraction circuit 22, a comparison circuit 3, a first shift register 4, and a first selector 5. , A multiplexer 6, and a second selector 51.

【0018】データバス1は第一の加減算回路21及び
第二の加減算回路22と接続され、各加減算回路21、
22は各々比較回路3及び第一のセレクタ5と接続され
ている。比較回路3は第一のシフトレジスタ4及び第一
のセレクタ5と接続され、第一のシフトレジスタ4はマ
ルチプレクサ6及び第二のセレクタ51と接続され、マ
ルチプレクサ6は第二のセレクタ51と接続されてい
る。そして、第一のセレクタ5及び第二のセレクタ51
はデータバス1と接続されている。
The data bus 1 is connected to a first adding / subtracting circuit 21 and a second adding / subtracting circuit 22.
Reference numerals 22 are connected to the comparison circuit 3 and the first selector 5, respectively. The comparison circuit 3 is connected to the first shift register 4 and the first selector 5, the first shift register 4 is connected to the multiplexer 6 and the second selector 51, and the multiplexer 6 is connected to the second selector 51. ing. Then, the first selector 5 and the second selector 51
Are connected to the data bus 1.

【0019】次に、本発明による演算回路の第二の実施
例の動作を説明する。図1と同一符号を付した各回路部
においては、第一の実施例と同一の動作を行うため、以
下、第二のセレクタ51の動作について説明する。
Next, the operation of the second embodiment of the arithmetic circuit according to the present invention will be described. In each of the circuit units denoted by the same reference numerals as in FIG. 1, the same operation as in the first embodiment is performed, and therefore, the operation of the second selector 51 will be described below.

【0020】第二のセレクタ51は、図示しない命令デ
コーダから出力される制御信号により、b0→b1→b
2→b3→b4→b5→b6→b7の順番で並んだマル
チプレクサ6の出力と、b0→b4→b1→b5→b2
→b6→b3→b7の順番で並んだ第一のシフトレジス
タ4の出力とを選択する。
The second selector 51 receives b0 → b1 → b by a control signal output from an instruction decoder (not shown).
The outputs of the multiplexer 6 arranged in the order of 2 → b3 → b4 → b5 → b6 → b7 and b0 → b4 → b1 → b5 → b2
The first shift register in the order of → b6 → b3 → b7
4 is selected.

【0021】本発明の第二の実施例は以上説明したよう
に構成されているので、回路構成により、b0→b1→
b2→b3→b4→b5→b6→b7の順番からなるマ
ルチプレクサ6からの出力と、b0→b4→b1→b5
→b2→b6→b3→b7の順番からなる第一のシフト
レジスタ4からの出力とが選択できる。
Since the second embodiment of the present invention is configured as described above, b0 → b1 →
The output from the multiplexer 6 in the order of b2 → b3 → b4 → b5 → b6 → b7 and b0 → b4 → b1 → b5
First shift consisting of → b2 → b6 → b3 → b7
The output from the register 4 can be selected.

【0022】次に、本発明による演算回路の第三の実施
例を図面を参照して説明する。ここで、図5は第三の実
施例の詳細構成を示すブロック図であり、図1と同一、
対応部分には、同一符号を付して示している。
Next, a third embodiment of the arithmetic circuit according to the present invention will be described with reference to the drawings. Here, FIG. 5 is a block diagram showing a detailed configuration of the third embodiment, which is the same as FIG.
Corresponding parts are denoted by the same reference numerals.

【0023】本発明の演算回路は、データバス1と、第
一の加減算回路21と、第二の加減算回路22と、比較
回路3と、第二のシフトレジスタ41と、第三のシフト
レジスタ42と、第一のセレクタ5と、第三のセレクタ
52と、第四のセレクタ53とにより構成されている。
The arithmetic circuit of the present invention comprises a data bus 1, a first addition / subtraction circuit 21, a second addition / subtraction circuit 22, a comparison circuit 3, a second shift register 41, and a third shift register 42. , A first selector 5, a third selector 52, and a fourth selector 53.

【0024】データバス1は第一の加減算回路21及び
第二の加減算回路22と接続され、各加減算回路21、
22は各々比較回路3及び第一のセレクタ5と接続され
ている。比較回路3は第一のセレクタ5及び第三のセレ
クタ52と接続され、第三のセレクタ52は第二のシフ
トレジスタ41及び第三のシフトレジスタ42と接続さ
れ、第二のシフトレジスタ41及び第三のシフトレジス
タ42は第四のセレクタ53と接続されている。そし
て、第一のセレクタ5及び第四のセレクタ53はデータ
バス1と接続されている。
The data bus 1 is connected to a first adding / subtracting circuit 21 and a second adding / subtracting circuit 22.
Reference numerals 22 are connected to the comparison circuit 3 and the first selector 5, respectively. The comparison circuit 3 is connected to the first selector 5 and the third selector 52, and the third selector 52 is connected to the second shift register 41 and the third shift register 42, and the second shift register 41 and the third The third shift register 42 is connected to the fourth selector 53. The first selector 5 and the fourth selector 53 are connected to the data bus 1.

【0025】次に、本発明による演算回路の第三の実施
例の動作を説明する。図1と同一符号を付した各回路部
においては、第一の実施例と同一の動作を行うため、以
下、第二のシフトレジスタ41、第三のシフトレジスタ
42、第三のセレクタ52及び第四のセレクタ53の動
作について説明する。
Next, the operation of the third embodiment of the arithmetic circuit according to the present invention will be described. In each of the circuit units denoted by the same reference numerals as those in FIG. 1, the same operation as in the first embodiment is performed, so that the second shift register 41, the third shift register 42, the third selector 52, and the The operation of the fourth selector 53 will be described.

【0026】比較回路3は、比較結果をb0→b4→b
1→b5→b2→b6→b3→b7の順番で出力する。
第三のセレクタ52は、入力された比較結果を交互に第
二のシフトレジスタ41及び第三のシフトレジスタ42
に出力する。初めに、第三のセレクタ52は比較結果b
0を第二のシフトレジスタ41に出力し、第二のシフト
レジスタ41は格納されているデータを1ビットシフト
して比較結果b0を格納する。次に、第三のセレクタ5
2は比較結果b4を第三のシフトレジスタ42に出力
し、第三のシフトレジスタ42は格納されているデータ
を1ビットシフトして比較結果b4を格納する。以下こ
のような動作を行うと、第二のシフトレジスタ41は比
較結果をb0→b1→b2→b3の順番で格納し、第三
のシフトレジスタ42は比較結果をb4→b5→b6→
b7の順番で格納する。そして、第四のセレクタ53
は、第二のシフトレジスタ41及び第三のシフトレジス
タ42に格納された比較結果をデータバス1に出力す
る。初めに、第四のセレクタ53は第二のシフトレジス
タ41に格納されている比較結果b0〜b3を出力し、
次に、第四のセレクタ53は第三のシフトレジスタ42
に格納されている比較結果b4〜b7を出力する。する
と、データバス1には比較結果がb0→b1→b2→b
3→b4→b5→b6→b7の順番に出力される。
The comparison circuit 3 calculates the comparison result as b0 → b4 → b
Output in the order of 1 → b5 → b2 → b6 → b3 → b7.
The third selector 52 alternately outputs the input comparison result to the second shift register 41 and the third shift register 42.
Output to First, the third selector 52 sets the comparison result b
0 is output to the second shift register 41, and the second shift register 41 shifts the stored data by one bit and stores the comparison result b0. Next, the third selector 5
2 outputs the comparison result b4 to the third shift register 42, and the third shift register 42 shifts the stored data by one bit and stores the comparison result b4. When the above operation is performed, the second shift register 41 stores the comparison result in the order of b0 → b1 → b2 → b3, and the third shift register 42 stores the comparison result in the order of b4 → b5 → b6 →
Stored in the order of b7. Then, the fourth selector 53
Outputs the comparison result stored in the second shift register 41 and the third shift register 42 to the data bus 1. First, the fourth selector 53 outputs the comparison results b0 to b3 stored in the second shift register 41,
Next, the fourth selector 53 sets the third shift register 42
And outputs the comparison results b4 to b7 stored in. Then, the comparison result is displayed on the data bus 1 as b0 → b1 → b2 → b
They are output in the order of 3 → b4 → b5 → b6 → b7.

【0027】本発明の第三の実施例は以上説明したよう
に構成されているので、一つのシフトレジスタで構成さ
れた演算回路よりも倍のデータ長を処理することが可能
となる。また、シフトレジスタを複数有するため、一つ
のシフトレジスタの記憶能力が限界に達した時点でパス
メトリック及び比較結果を退避させるメモリ(図示しな
い)を設ける必要がなくなる。
Since the third embodiment of the present invention is configured as described above, it is possible to process a data length twice as long as that of the arithmetic circuit formed by one shift register. Further, since a plurality of shift registers are provided, there is no need to provide a memory (not shown) for saving the path metric and the comparison result when the storage capacity of one shift register reaches the limit.

【0028】次に、本発明による演算回路の第四の実施
例を図面を参照して説明する。ここで、図は第四の実
施例の詳細構成を示すブロック図であり、図1と同一、
対応部分には、同一符号を付して示している。
Next, a fourth embodiment of the arithmetic circuit according to the present invention will be described with reference to the drawings. Here, FIG. 6 is a block diagram showing a detailed configuration of the fourth embodiment, which is the same as FIG.
Corresponding parts are denoted by the same reference numerals.

【0029】本発明の演算回路は、データバス1と、第
二の加減算回路22と、第三の加減算回路23と、第一
のセレクタ5と、第五のセレクタ54と、第六のセレク
タ55と、第一のシフトレジスタ4と、マルチプレクサ
6とにより構成されている。データバス1は第二の加減
算回路22、第五のセレクタ54及び第六のセレクタ5
5と接続され、第五のセレクタ54及び第六のセレクタ
55は第三の加減算回路23と接続されている。第三の
加減算回路23は第一のシフトレジスタ4、第一のセレ
クタ5及び第五のセレクタ54と接続され、第二の加減
算回路22は第一のセレクタ5及び第六のセレクタ55
と接続されている。そして、第一のシフトレジスタ4は
マルチプレクサ6と接続され、マルチプレクサ6及び第
一のセレクタ5はデータバス1と接続されている。
The arithmetic circuit of the present invention comprises a data bus 1, a second addition / subtraction circuit 22, a third addition / subtraction circuit 23, a first selector 5, a fifth selector 54, and a sixth selector 55. , A first shift register 4 and a multiplexer 6. The data bus 1 is connected to the second adder / subtracter 22, the fifth selector 54 and the sixth selector 5
5, the fifth selector 54 and the sixth selector 55 are connected to the third addition / subtraction circuit 23. The third addition / subtraction circuit 23 is connected to the first shift register 4, the first selector 5, and the fifth selector 54, and the second addition / subtraction circuit 22 is connected to the first selector 5 and the sixth selector 55
Is connected to The first shift register 4 is connected to the multiplexer 6, and the multiplexer 6 and the first selector 5 are connected to the data bus 1.

【0030】次に、本発明による演算回路の第四の実施
例の動作を説明する。図1と同一符号を付した各回路部
においては、第一の実施例と同一の動作を行う。以下、
図7を用いて、第三の加減算回路23、第五のセレクタ
54及び第六のセレクタ55の動作について詳細に説明
する。
Next, the operation of the fourth embodiment of the arithmetic circuit according to the present invention will be described. In each of the circuit units denoted by the same reference numerals as those in FIG. 1, the same operation as in the first embodiment is performed. Less than,
The operation of the third addition / subtraction circuit 23, the fifth selector 54, and the sixth selector 55 will be described in detail with reference to FIG.

【0031】第五のセレクタ54はデータバス1からパ
スメトリックP0(t)を入力して第三の加減算回路2
3に出力し、第六のセレクタ55はデータバス1からブ
ランチメトリックB0(t+1)を入力して第三の加減
算回路23に出力する。そして、第三の加減算回路23
は式P0(t)+B0(t+1)を計算しパスメトリッ
クP0(t+1)を求め、求められたP0(t+1)を
第一のセレクタ5及び第五のセレクタ54に出力する。
また、第二の加減算回路22はデータバス1からパスメ
トリックP1(t)及びブランチメトリックB0(t+
1)を入力して式P1(t)−B0(t+1)を計算し
パスメトリックP0(t+1)を求め、求められたP0
(t+1)を第一のセレクタ5及び第六のセレクタ55
に出力する。
The fifth selector 54 receives the path metric P0 (t) from the data bus 1 and
3 and the sixth selector 55 receives the branch metric B0 (t + 1) from the data bus 1 and outputs it to the third addition / subtraction circuit 23. Then, the third addition / subtraction circuit 23
Calculates the equation P0 (t) + B0 (t + 1), finds the path metric P0 (t + 1), and outputs the found P0 (t + 1) to the first selector 5 and the fifth selector 54.
The second addition / subtraction circuit 22 outputs a path metric P1 (t) and a branch metric B0 (t +
1) to calculate the equation P1 (t) -B0 (t + 1) to obtain the path metric P0 (t + 1).
(T + 1) is replaced by the first selector 5 and the sixth selector 55
Output to

【0032】第五のセレクタ54及び第六のセレクタ5
5は各々パスメトリックを第三の加減算回路23に出力
し、第三の加減算回路23は(第五のセレクタ54から
入力したP0(t+1))−(第六のセレクタ55から
入力したP0(t+1))を計算する。そして、第三の
加減算回路23は、計算の結果がプラス(+)またはマ
イナス(−)であるかを判断してその結果を第一のシフ
トレジスタ4及び第一のセレクタ5に出力する。第一の
セレクタ5は、第三の加減算回路23の結果に応じてパ
スメトリックP0(t+1)をデータバス1に出力す
る。そして、マルチプレクサ6により、データバス1に
は比較結果がb0→b1→b2→b3→b4→b5→b
6→b7の順番に出力される。
Fifth selector 54 and sixth selector 5
5 output path metrics to the third addition / subtraction circuit 23, and the third addition / subtraction circuit 23 outputs (P0 (t + 1) input from the fifth selector 54)-(P0 (t + 1) input from the sixth selector 55). )). Then, the third addition / subtraction circuit 23 determines whether the result of the calculation is plus (+) or minus (−), and outputs the result to the first shift register 4 and the first selector 5. The first selector 5 outputs the path metric P0 (t + 1) to the data bus 1 according to the result of the third addition / subtraction circuit 23. Then, the comparison result is stored on the data bus 1 by the multiplexer 6 in the order of b0 → b1 → b2 → b3 → b4 → b5 → b
The data is output in the order of 6 → b7.

【0033】本発明の第四の実施例は以上説明したよう
に構成されているので、2つのパスメトリックから1つ
のパスメトリックを選択するための比較回路を設ける必
要がなく、比較回路がなくなる分の消費電力及び回路規
模が小さくなる。
Since the fourth embodiment of the present invention is configured as described above, there is no need to provide a comparison circuit for selecting one path metric from two path metrics, and the amount of the comparison circuit is eliminated. Power consumption and circuit scale are reduced.

【0034】本発明の演算回路は以上説明したように構
成されているので、パスを選択する時にシフトレジスタ
の出力データを並び替えるためのプログラム処理の必要
がなくなり、パスの選択を行うための処理を短時間で済
ませることが可能となる。また、比較回路がなくなる分
の消費電力及び回路規模が小さくなるという効果があ
る。
Since the arithmetic circuit of the present invention is configured as described above, it is not necessary to perform a program process for rearranging the output data of the shift register when selecting a path, and a process for selecting a path. Can be completed in a short time. In addition, there is no comparison circuit.
Power consumption and circuit size are reduced.
You.

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

【図1】本発明の演算回路の第一の実施例の構成を示す
ブロック図である。
FIG. 1 is a block diagram showing a configuration of a first embodiment of an arithmetic circuit according to the present invention.

【図2】本発明の演算回路の動作を示すフローチャート
である。
FIG. 2 is a flowchart showing the operation of the arithmetic circuit of the present invention.

【図3】本発明のマルチプレクサの動作を示す図であ
る。
FIG. 3 is a diagram illustrating the operation of the multiplexer of the present invention.

【図4】本発明の演算回路の第二の実施例の構成を示す
ブロック図である。
FIG. 4 is a block diagram showing a configuration of a second embodiment of the arithmetic circuit of the present invention.

【図5】本発明の演算回路の第三の実施例の構成を示す
ブロック図である。
FIG. 5 is a block diagram showing a configuration of a third embodiment of the arithmetic circuit of the present invention.

【図6】本発明の演算回路の第四の実施例の構成を示す
ブロック図である。
FIG. 6 is a block diagram showing a configuration of a fourth embodiment of the arithmetic circuit according to the present invention.

【図7】パスメトリック演算の動作を示すトレリス図で
ある。
FIG. 7 is a trellis diagram illustrating an operation of a path metric calculation.

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

21、22、23 加減算回路 3 比較回路 4、41、42 シフトレジスタ 5、51、52、53、54、55 セレクタ 6 マルチプレクサ 21, 22, 23 Addition / subtraction circuit 3 Comparison circuit 4, 41, 42 Shift register 5, 51, 52, 53, 54, 55 Selector 6 Multiplexer

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 7/00 G06F 7/24 H03H 17/02 681 H03M 13/23 Continuation of front page (58) Fields investigated (Int.Cl. 7 , DB name) G06F 7/00 G06F 7/24 H03H 17/02 681 H03M 13/23

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第一の信号と第二の信号とを入力して加
算若しくは減算を行い第一の演算結果信号を出力する第
一の加減算手段と、第三の信号と第四の信号とを入力して第三の信号と第四
の信号のいずれか一方を選択して第一の選択信号を出力
する第一の選択手段と、 前記第二の信号と前記第一の演算結果信号とを入力して
前記第二の信号と前記第一の演算結果信号のいずれか一
方を選択して第二の選択信号を出力する第二の選択手段
と、 前記第一の選択信号と前記第二の選択信号とを入力し
て、前記第一の選択信号が前記第三の信号でかつ前記第
二の選択信号が前記第二の信号のときに加算若しくは減
算し、前記第一の選択信号が前記第四の信号でかつ前記
第二の選択信号が前記第一の演算結果信号のときに減算
し、第二の演算結果信号として前記第四の信号を出力す
る第二の加減算手段と、 第一の演算結果信号と、前記第三の信号と前記第二の信
号とを演算した前記第四の信号とを入力し、さらに前記
第四の信号と前記第一の演算結果信号とを演算した前記
第四の信号の符号信号を入力して、符号信号の値が負の
値を示すときに前記第一の演算結果信号を選択し、符号
信号の値が正の値を示すときに前記第二の信号と前記第
三の信号とを演算した前記第四の信号を選択し、第三の
選択信号を出力する第三の選択手段と により構成される
ことを特徴とする演算回路。
A first signal and a second signal are input and added.
Calculation or subtraction and outputs the first calculation result signal
One addition / subtraction means,The third signal and the fourth signal are input and the third signal and the fourth signal are input.
Select one of the signals and output the first selection signal
A first selection means to Inputting the second signal and the first operation result signal
Any one of the second signal and the first operation result signal
Selecting means for selecting one of the two and outputting a second selection signal
When, Inputting the first selection signal and the second selection signal
The first selection signal is the third signal and the
Addition or subtraction when the second selection signal is the second signal
The first selection signal is the fourth signal and the
Subtract when the second selection signal is the first calculation result signal
And outputs the fourth signal as a second operation result signal.
Second addition / subtraction means, A first operation result signal, the third signal, and the second signal;
And the fourth signal obtained by calculating the
The fourth signal and the first operation result signal calculated
The sign signal of the fourth signal is input, and the value of the sign signal is negative.
Select the first operation result signal when indicating a value, and sign
When the value of the signal indicates a positive value, the second signal and the second signal
Select the fourth signal calculated with the third signal, the third signal
Third selection means for outputting a selection signal; Composed of
An arithmetic circuit characterized by the above.
【請求項2】 前記符号信号を入力して1ビットずつ格
納するシフトレジスタ手段と、 前記シフトレジスタ手段に格納された前記符号信号を入
力して所定の順番に並べ替えるマルチプレクサ手段と
より構成されることを特徴とする請求項1に記載の演算
回路。
(2)The code signal is input and the
Shift register means for storing; Receiving the code signal stored in the shift register means;
Multiplexer means for forcing and rearranging in a predetermined order; To
2. The operation according to claim 1, further comprising:
circuit.
JP15237194A 1994-07-04 1994-07-04 Arithmetic circuit Expired - Fee Related JP3193830B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15237194A JP3193830B2 (en) 1994-07-04 1994-07-04 Arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15237194A JP3193830B2 (en) 1994-07-04 1994-07-04 Arithmetic circuit

Publications (2)

Publication Number Publication Date
JPH0816363A JPH0816363A (en) 1996-01-19
JP3193830B2 true JP3193830B2 (en) 2001-07-30

Family

ID=15539072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15237194A Expired - Fee Related JP3193830B2 (en) 1994-07-04 1994-07-04 Arithmetic circuit

Country Status (1)

Country Link
JP (1) JP3193830B2 (en)

Also Published As

Publication number Publication date
JPH0816363A (en) 1996-01-19

Similar Documents

Publication Publication Date Title
US5946361A (en) Viterbi decoding method and circuit with accelerated back-tracing and efficient path metric calculation
AU652896B2 (en) Arithmetic apparatus
EP1058185A1 (en) A multiply and accumulate apparatus and a method thereof
JP3487903B2 (en) Arithmetic device and arithmetic method
JPH07210369A (en) Circuit and method for execution of parallel addition and average operation
US6257756B1 (en) Apparatus and method for implementing viterbi butterflies
US5742621A (en) Method for implementing an add-compare-select butterfly operation in a data processing system and instruction therefor
US9009209B2 (en) Processor, control method of processor, and computer readable storage medium storing processing program for division operation
JP3193830B2 (en) Arithmetic circuit
EP0677928A1 (en) Process and device for the implementation of the Viterbi algorithm using a metric memory with reduced bandwidth (longer cycle access time)
EP0936537B1 (en) Cyclic redundancy check in a computer system
JP3711290B2 (en) Digital arithmetic circuit
JP3850512B2 (en) Reed-Solomon decoder
JP2917577B2 (en) Arithmetic unit
JP2664750B2 (en) Arithmetic device and arithmetic processing method
JP3237267B2 (en) Arithmetic unit
JP2524035Y2 (en) Multiplier for convolution arithmetic circuit
JP3250363B2 (en) Arithmetic unit
JP3984790B2 (en) Viterbi decoding processor
JPH06214754A (en) Rounding arithmetic circuit and picture processor having it
JPH0746145A (en) Arithmetic unit
JPH06112848A (en) Viterbi decoding arithmetic unit
JP3523407B2 (en) Information processing equipment
KR0157337B1 (en) Multi-bit adder for digital signal process
JP2001211083A (en) Crc output processing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010515

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090525

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100525

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100525

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110525

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120525

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120525

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130525

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140525

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees