JPH04217121A - Parallel/serial conversion circuit - Google Patents

Parallel/serial conversion circuit

Info

Publication number
JPH04217121A
JPH04217121A JP41153390A JP41153390A JPH04217121A JP H04217121 A JPH04217121 A JP H04217121A JP 41153390 A JP41153390 A JP 41153390A JP 41153390 A JP41153390 A JP 41153390A JP H04217121 A JPH04217121 A JP H04217121A
Authority
JP
Japan
Prior art keywords
data
parallel
registers
matrix
register
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.)
Pending
Application number
JP41153390A
Other languages
Japanese (ja)
Inventor
Eizaburo Itakura
英三郎 板倉
Yuichi Kojima
雄一 小島
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP41153390A priority Critical patent/JPH04217121A/en
Publication of JPH04217121A publication Critical patent/JPH04217121A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain efficient serial/parallel conversion by a small number of registers. CONSTITUTION:Registers R are arranged at the shape of the matrix of (n)X(n), and data selector S having two inputs (a/b) and one output are arranged on the input sides of the respective registers R. The registers R are horizontally connected through the (a) side inputs of these data selectors A, and the registers R are vertically connected through the inputs to the (b) sides. Input data are supplied to the vertical or horizontal direction of the matrix composed of the registers R, and output data are taken out in the horizontal or vertical direction of the matrix.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、例えば画像圧縮のため
のディジタル処理等に使用されるパラレル/シリアル変
換回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parallel/serial conversion circuit used, for example, in digital processing for image compression.

【0002】0002

【従来の技術】例えば画像圧縮で離散コサイン変換の変
換値を得る場合や、高速フーリエ変換における行列演算
、画像・音声等のディジタル処理に用いられる積和演算
回路等では、例えばn個のデータを並列処理してn個の
解を同時に得ることが行われている。そのような処理は
、一般にパラレルデータをシリアルデータに変換してビ
ット毎に処理するようにされている。
[Prior Art] For example, when obtaining transform values of discrete cosine transform in image compression, matrix calculations in fast Fourier transform, and product-sum calculation circuits used in digital processing of images, audio, etc., for example, n pieces of data are processed. Parallel processing is performed to obtain n solutions at the same time. Such processing generally involves converting parallel data into serial data and processing the data bit by bit.

【0003】そこでこのような処理に用いられるパラレ
ル/シリアル変換回路としては、従来から図6に示すよ
うなものが知られている。すなわち図の例は4ビットの
パラレルデータを4個ずつパラレル/シリアル変換する
場合を示している。この図において、Rはそれぞれ例え
ばD−フリップフロップからなる1ビットのレジスタで
ある。このレジスタRが例えば4個並列に設けられ、さ
らにこれらのレジスタRが4段縦続に接続されて、4×
4のシフトレジスタが形成される。また10は4ビット
のパラレルデータ入力部である。このパラレルデータ入
力部10からのデータの各ビットがそれぞれ上述のシフ
トレジスタを形成する左端のレジスタRに供給される。 さらにこれらのレジスタRが、上述の各段毎にそれぞれ
2入力(a/b)1出力のデータセレクタSのb側入力
を介して4個のレジスタR′に並列に接続される。これ
らの各段毎の4個のレジスタR′が順次データセレクタ
Sのa側入力を介して接続される。そしてこれら各段の
下端のレジスタR′がシリアルデータプロセッサー1〜
4に接続される。
[0003] Therefore, as a parallel/serial conversion circuit used for such processing, the one shown in FIG. 6 has been known. That is, the example shown in the figure shows a case where 4-bit parallel data is converted from parallel to serial in units of four. In this figure, each R is a 1-bit register consisting of, for example, a D-flip-flop. For example, four registers R are provided in parallel, and these registers R are further connected in four stages to form a 4×
4 shift registers are formed. Further, 10 is a 4-bit parallel data input section. Each bit of data from the parallel data input section 10 is supplied to the leftmost register R forming the above-mentioned shift register. Furthermore, these registers R are connected in parallel to four registers R' via the b-side input of a data selector S having two inputs (a/b) and one output for each of the above-mentioned stages. These four registers R' for each stage are sequentially connected via the a-side input of the data selector S. The registers R' at the bottom of each stage are serial data processors 1 to 1.
Connected to 4.

【0004】従ってこの回路において、データ入力部1
0からのパラレルデータがそれぞれレジスタRに供給さ
れ、これらのデータが順次図面の水平方向にシフトされ
る。このデータが4データ分入力された時点でデータセ
レクタSがレジスタR側に切換られ、レジスタRに書き
込まれたデータがレジスタR′に転送される。さらにデ
ータセレクタSがレジスタR′を順次接続する側に切換
られ、レジスタR′に書き込まれたデータが垂直方向に
シフトされる。これによって4ビットのパラレルデータ
が4個ずつパラレル/シリアル変換されて、シリアルデ
ータプロセッサー1〜4に供給される。またこのレジス
タR′のデータが垂直方向にシフトされる間に、後続の
パラレルデータがデータ入力部10からレジスタRに供
給されて、順次水平方向にシフトされる。
Therefore, in this circuit, the data input section 1
Parallel data starting from 0 is supplied to each register R, and these data are sequentially shifted in the horizontal direction of the drawing. When four pieces of data have been input, the data selector S is switched to the register R side, and the data written in the register R is transferred to the register R'. Furthermore, the data selector S is switched to the side that sequentially connects the registers R', and the data written in the registers R' is shifted in the vertical direction. As a result, 4 bits of parallel data are parallel/serial converted four by four and supplied to the serial data processors 1-4. Further, while the data in register R' is being shifted in the vertical direction, subsequent parallel data is supplied from the data input section 10 to register R and sequentially shifted in the horizontal direction.

【0005】ところがこの回路の場合、例えば上述の4
(ビット)×4(個)のデータをパラレル/シリアル変
換するのに必要なレジスタR、R′の数は、変換される
データの総ビット数、4×4=16の2倍の32個にな
っている。一方、レジスタRに書き込まれたデータは、
そのデータがレジスタR′に転送された後は不要である
。ところが上述の回路では、データが転送された後もレ
ジスタRには前のデータが残っている。このデータは後
続のパラレルデータが供給されて順次水平方向にシフト
されるまで残っている。このことはレジスタR、R′が
有効に利用されていないことを意味している。またこの
ように不要なデータが残っていると、その分の電力が無
駄に消費されることにもなる。
However, in the case of this circuit, for example, the above-mentioned 4
The number of registers R and R' required to convert (bits) x 4 (pieces) data from parallel to serial is 32, which is twice the total number of bits of the data to be converted, 4 x 4 = 16. It has become. On the other hand, the data written to register R is
It is not needed after the data is transferred to register R'. However, in the above-described circuit, the previous data remains in register R even after the data is transferred. This data remains until subsequent parallel data is supplied and sequentially shifted horizontally. This means that registers R and R' are not effectively used. Furthermore, if such unnecessary data remains, that amount of power will be wasted.

【0006】[0006]

【発明が解決しようとする課題】解決しようとする問題
点は、レジスタR、R′が有効に利用されておらず、ま
た電力が無駄に消費されていることである。
The problem to be solved is that the registers R and R' are not used effectively and power is wasted.

【0007】[0007]

【課題を解決するための手段】本発明は、それぞれ1ビ
ットのレジスタRがn×n(4×4)のマトリクス状に
配置され、各上記レジスタRの入力に2入力1出力のデ
ータセレクタSが設けられ、各上記データセレクタSの
2入力の一方にて上記マトリクスを垂直方向に接続し、
他方にて上記マトリクスを水平方向に接続するようにし
、入力データ(データ入力部10の出力)を上記マトリ
クスの垂直方向または水平方向に供給すると共に、出力
データ(シリアルデータプロセッサー1〜4の入力)を
上記マトリクスの水平方向または垂直方向に取出すよう
にしたパラレル/シリアル変換回路である。
[Means for Solving the Problems] In the present invention, registers R each having one bit are arranged in an n×n (4×4) matrix, and a data selector S having two inputs and one output is connected to the input of each register R. is provided, and one of the two inputs of each data selector S connects the matrix in the vertical direction,
On the other hand, the matrix is connected horizontally, and input data (output of the data input section 10) is supplied vertically or horizontally to the matrix, and output data (input of the serial data processors 1 to 4) is supplied to the matrix. This is a parallel/serial conversion circuit that extracts the above matrix in the horizontal or vertical direction.

【0008】[0008]

【作用】これによれば、レジスタをマトリクス状に配置
し、入力データをマトリクスの垂直方向または水平方向
に供給すると共に、出力データをマトリクスの水平方向
または垂直方向に取出すようにしたことによって、少数
のレジスタで効率のよいパラレル/シリアル変換を行う
ことができる。
[Operation] According to this, registers are arranged in a matrix, input data is supplied in the vertical or horizontal direction of the matrix, and output data is taken out in the horizontal or vertical direction of the matrix. Efficient parallel/serial conversion can be performed using registers.

【0009】[0009]

【実施例】図1の例は4ビットのパラレルデータを4個
ずつパラレル/シリアル変換する場合を示している。こ
の図において、Rはそれぞれ例えばD−フリップフロッ
プからなる1ビットのレジスタである。このレジスタR
が例えば4×4のマトリクス状に配置される。括弧内の
数字はマトリクス上の位置を示す。またSはそれぞれ2
入力(a/b)1出力のデータセレクタである。これら
のデータセレクタSがそれぞれレジスタRの入力側に設
けられる。そしてこれらのデータセレクタSを通じて、
レジスタRが水平及び垂直方向に接続される。すなわち
例えばデータセレクタSのa側の入力を通じてレジスタ
Rが水平方向(11〜14、21〜24、31〜34、
41〜44)に接続される。またデータセレクタSのb
側の入力を通じてレジスタRが垂直方向(11〜41、
12〜42、13〜43、14〜44)に接続される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The example shown in FIG. 1 shows a case where 4 bits of parallel data are converted from parallel to serial in groups of four. In this figure, each R is a 1-bit register consisting of, for example, a D-flip-flop. This register R
are arranged, for example, in a 4×4 matrix. Numbers in parentheses indicate positions on the matrix. Also, each S is 2
This is a data selector with one input (a/b) and one output. These data selectors S are provided on the input side of the register R, respectively. And through these data selectors S,
A resistor R is connected horizontally and vertically. That is, for example, the register R is set in the horizontal direction (11 to 14, 21 to 24, 31 to 34,
41 to 44). Also, b of data selector S
Through the side inputs, register R is connected vertically (11 to 41,
12-42, 13-43, 14-44).

【0010】また10は、例えば4ビットのパラレルデ
ータ入力部である。このパラレルデータ入力部10から
のデータが、それぞれ例えばマトリクスの左端のレジス
タR(11、21、31、41)の入力側に設けられた
データセレクタSのa側の入力に供給される。またパラ
レルデータ入力部10からのデータが、それぞれ例えば
マトリクスの上端のレジスタR(11、12、13、1
4)の入力側に設けられたデータセレクタSのb側の入
力に供給される。なおレジスタR(11)の入力側に設
けられたデータセレクタSには、a、b側の入力共に同
じデータが供給されるので、この部分のデータセレクタ
Sは省略できる。
Further, 10 is a 4-bit parallel data input section, for example. The data from the parallel data input section 10 is supplied to the a-side input of a data selector S provided on the input side of the register R (11, 21, 31, 41) at the left end of the matrix, respectively. Further, the data from the parallel data input section 10 is inputted to the registers R (11, 12, 13, 1) at the upper end of the matrix, respectively.
4) is supplied to the b-side input of the data selector S provided on the input side. Note that the data selector S provided on the input side of the register R (11) is supplied with the same data for both inputs on the a and b sides, so the data selector S in this part can be omitted.

【0011】さらに例えばマトリクスの右端のレジスタ
R(14、24、34、44)の出力側にもデータセレ
クタS′が設けられる。そしてレジスタR(14、24
、34、44)の出力データがデータセレクタS′のa
側の入力を通じてシリアルデータプロセッサー1〜4に
供給される。また例えばマトリクスの下端のレジスタR
(41、42、43、44)の出力データがデータセレ
クタS′のb側の入力を通じてシリアルデータプロセッ
サー1〜4に供給される。なおレジスタR(44)の出
力側に設けられたデータセレクタS′には、a、b側の
入力共に同じデータが供給されるので、この部分のデー
タセレクタS′は省略できる。
Further, for example, a data selector S' is also provided on the output side of the register R (14, 24, 34, 44) at the right end of the matrix. and register R (14, 24
, 34, 44) is sent to a of data selector S'.
Serial data processors 1 to 4 are supplied through side inputs. For example, register R at the lower end of the matrix
The output data (41, 42, 43, 44) is supplied to the serial data processors 1-4 through the b-side input of the data selector S'. Note that the data selector S' provided on the output side of the register R (44) is supplied with the same data for both inputs on the a and b sides, so the data selector S' in this part can be omitted.

【0012】従ってこの回路において、まず例えばデー
タセレクタS、S′がa側の入力を選択している状態で
は、回路の構成は図2に示すようになる。この状態でパ
ラレルデータ入力部10からのデータはレジスタRのマ
トリクスを水平方向にシフトされる。そして4個のデー
タが供給された時点T4でレジスタRに書き込まれたデ
ータは図示のようになる。
Therefore, in this circuit, for example, in a state where the data selectors S and S' select the input on the a side, the circuit configuration becomes as shown in FIG. 2. In this state, the data from the parallel data input section 10 is shifted through the matrix of the register R in the horizontal direction. The data written to the register R at time T4 when the four pieces of data are supplied becomes as shown in the figure.

【0013】次の時点T5でデータセレクタS、S′が
b側の入力を選択する。これによって回路の構成は図3
に示すようになる。この状態でパラレルデータ入力部1
0からのデータはレジスタRのマトリクスを垂直方向に
シフトされる。そしてこのとき時点T4までにレジスタ
Rに書き込まれたデータが順次下端のレジスタR(41
、42、43、44)から取り出され、データセレクタ
S′のb側の入力を通じてシリアルデータプロセッサー
1〜4に供給される。これによってシリアルデータプロ
セッサー1〜4には、データ入力部10からパラレルデ
ータで供給されたデータが、シリアルデータに変換され
て供給される。
At the next time T5, the data selectors S and S' select the b-side input. As a result, the circuit configuration is shown in Figure 3.
It becomes as shown in . In this state, parallel data input section 1
Data from 0 is shifted vertically through the matrix of register R. At this time, the data written to the register R up to time T4 is sequentially stored in the lower register R (41
, 42, 43, 44) and supplied to the serial data processors 1-4 through the b-side input of the data selector S'. As a result, data supplied from the data input section 10 in the form of parallel data is converted into serial data and supplied to the serial data processors 1 to 4.

【0014】さらに時点T8でレジスタRに書き込まれ
たデータは図4に示すようになる。そして次の時点T9
でデータセレクタS、S′は再びa側の入力を選択する
。これによって回路の構成は図5に示すようになる。 この状態でパラレルデータ入力部10からのデータはレ
ジスタRのマトリクスを水平方向にシフトされる。そし
てこのとき時点T8までにレジスタRに書き込まれたデ
ータが順次右端のレジスタR(14、24、34、44
)から取り出され、データセレクタS′のa側の入力を
通じてシリアルデータプロセッサー1〜4に供給される
。これによってシリアルデータプロセッサー1〜4には
、データ入力部10からパラレルデータで供給されたデ
ータが、シリアルデータに変換されて供給される。
Furthermore, the data written to register R at time T8 is as shown in FIG. And the next point T9
Then, the data selectors S and S' again select the input on the a side. As a result, the circuit configuration becomes as shown in FIG. 5. In this state, the data from the parallel data input section 10 is shifted through the matrix of the register R in the horizontal direction. At this time, the data written to register R up to time T8 is sequentially written to the rightmost register R (14, 24, 34, 44).
) and supplied to the serial data processors 1 to 4 through the a-side input of the data selector S'. As a result, data supplied from the data input section 10 in the form of parallel data is converted into serial data and supplied to the serial data processors 1 to 4.

【0015】こうしてこの回路によれば、レジスタRを
マトリクス状に配置し、入力データ(データ入力部10
の出力)をマトリクスの垂直方向または水平方向に供給
すると共に、出力データ(シリアルデータプロセッサー
1〜4の入力)をマトリクスの水平方向または垂直方向
に取出すようにしたことによって、少数のレジスタRで
効率のよいパラレル/シリアル変換を行うことができる
ものである。
Thus, according to this circuit, the registers R are arranged in a matrix, and input data (data input section 10
By supplying the output data (outputs of serial data processors 1 to 4) in the vertical or horizontal direction of the matrix and taking out the output data (inputs of serial data processors 1 to 4) in the horizontal or vertical direction of the matrix, efficiency can be achieved with a small number of registers R. This allows for good parallel/serial conversion.

【0016】すなわち上述の回路によれば、例えば上述
の4(ビット)×4(個)のデータをパラレル/シリア
ル変換するのに必要なレジスタRの数は16個である。 これは変換されるデータの総ビット数、4×4=16に
等しく、従来の技術で述べた回路に比して半減している
。また上述の説明からも明らかなように、レジスタRに
は、常に変換に必要なデータのみが書き込まれている。 従ってレジスタRが有効に利用されると共に、不要なデ
ータの残留によって電力が無駄に消費されることもない
。これは特に回路を高速動作させる場合に有利である。
That is, according to the above-mentioned circuit, the number of registers R required for parallel/serial conversion of the above-mentioned 4 (bits) x 4 (pieces) data is 16, for example. This is equal to the total number of bits of data to be converted, 4×4=16, which is halved compared to the circuit described in the prior art. Furthermore, as is clear from the above description, only data necessary for conversion is always written in register R. Therefore, the register R is effectively used, and power is not wasted due to unnecessary data remaining. This is especially advantageous when operating the circuit at high speed.

【0017】なお上述の回路は、例えば上述の4(ビッ
ト)×4(個)のデータをパラレル/シリアル変換する
場合に限らず、任意のn(ビット)×n(個)のデータ
のパラレル/シリアル変換に適用できる。
Note that the above-mentioned circuit is not limited to parallel/serial conversion of 4 (bits) x 4 (pieces) data as described above, but can also be used for parallel/serial conversion of arbitrary n (bits) x n (pieces) data. Applicable to serial conversion.

【0018】[0018]

【発明の効果】この発明によれば、レジスタをマトリク
ス状に配置し、入力データをマトリクスの垂直方向また
は水平方向に供給すると共に、出力データをマトリクス
の水平方向または垂直方向に取出すようにしたことによ
って、少数のレジスタで効率のよいパラレル/シリアル
変換を行うことができるようになった。
According to the present invention, registers are arranged in a matrix, input data is supplied in the vertical or horizontal direction of the matrix, and output data is taken out in the horizontal or vertical direction of the matrix. This has made it possible to perform efficient parallel/serial conversion with a small number of registers.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明によるパラレル/シリアル変換回路の構
成図である。
FIG. 1 is a configuration diagram of a parallel/serial conversion circuit according to the present invention.

【図2】パラレル/シリアル変換回路の時点T4の状態
を示す説明図である。
FIG. 2 is an explanatory diagram showing the state of the parallel/serial conversion circuit at time T4.

【図3】パラレル/シリアル変換回路の時点T5の状態
を示す説明図である。
FIG. 3 is an explanatory diagram showing the state of the parallel/serial conversion circuit at time T5.

【図4】パラレル/シリアル変換回路の時点T8の状態
を示す説明図である。
FIG. 4 is an explanatory diagram showing the state of the parallel/serial conversion circuit at time T8.

【図5】パラレル/シリアル変換回路の時点T9の状態
を示す説明図である。
FIG. 5 is an explanatory diagram showing the state of the parallel/serial conversion circuit at time T9.

【図6】従来のパラレル/シリアル変換回路の構成図で
ある。
FIG. 6 is a configuration diagram of a conventional parallel/serial conversion circuit.

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

1〜4  シリアルデータプロセッサー10  データ
入力部 R  レジスタ S  データセレクタ
1 to 4 Serial data processor 10 Data input section R Register S Data selector

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  それぞれ1ビットのレジスタがn×n
のマトリクス状に配置され、各上記レジスタの入力に2
入力1出力のデータセレクタが設けられ、各上記データ
セレクタの2入力の一方にて上記マトリクスを垂直方向
に接続し、他方にて上記マトリクスを水平方向に接続す
るようにし、入力データを上記マトリクスの垂直方向ま
たは水平方向に供給すると共に、出力データを上記マト
リクスの水平方向または垂直方向に取出すようにしたパ
ラレル/シリアル変換回路。
[Claim 1] There are n×n registers of 1 bit each.
are arranged in a matrix, and two inputs are input to each of the above registers.
A data selector with one input and one output is provided, one of the two inputs of each data selector connects the matrix in the vertical direction, and the other connects the matrix in the horizontal direction, and the input data is connected to the matrix in the horizontal direction. A parallel/serial conversion circuit configured to supply data in the vertical or horizontal direction and to take out output data in the horizontal or vertical direction of the matrix.
JP41153390A 1990-12-18 1990-12-18 Parallel/serial conversion circuit Pending JPH04217121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP41153390A JPH04217121A (en) 1990-12-18 1990-12-18 Parallel/serial conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP41153390A JPH04217121A (en) 1990-12-18 1990-12-18 Parallel/serial conversion circuit

Publications (1)

Publication Number Publication Date
JPH04217121A true JPH04217121A (en) 1992-08-07

Family

ID=18520527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP41153390A Pending JPH04217121A (en) 1990-12-18 1990-12-18 Parallel/serial conversion circuit

Country Status (1)

Country Link
JP (1) JPH04217121A (en)

Similar Documents

Publication Publication Date Title
JPS6131890B2 (en)
JPH04217121A (en) Parallel/serial conversion circuit
JPS58124325A (en) Shift register with variable number of delay stages
JPH0677792A (en) Multiplexer circuit and demultiplexer circuit
JP3139137B2 (en) Digital signal processing circuit that performs filter operation of digital filter processing
JPS634969B2 (en)
JPH07253872A (en) Input output circuit for processor
JP3008637B2 (en) Digital demodulation circuit
JPH07141148A (en) Pipeline parallel multiplier
JPH02210920A (en) Bit interleaver parity check circuit
JPS61248159A (en) Data processor
JPS60140430A (en) Multiplier circuit
JPS59178577A (en) Decimal binary conversion system
JP2643576B2 (en) Address generation circuit for fast Fourier transform
JPH05143289A (en) Adder circuit
JPH01265715A (en) Two-dimension digital filter
JPS63115229A (en) Element shift system
JPS61136169A (en) High-speed arithmetic unit
JPH0962488A (en) Arithmetic synchronizing circuit
JPH08167849A (en) Code conversion method and code converter
JPS615345A (en) Serial multiplication method
JPS60110038A (en) Digital arithmetic device
JPH0738592B2 (en) Conversion circuit
JPS60221826A (en) Shifting circuit
JPS61153765A (en) Pipe line digital summer of digital correlator