JPS63194422A - Parallel-serial conversion circuit - Google Patents

Parallel-serial conversion circuit

Info

Publication number
JPS63194422A
JPS63194422A JP2783087A JP2783087A JPS63194422A JP S63194422 A JPS63194422 A JP S63194422A JP 2783087 A JP2783087 A JP 2783087A JP 2783087 A JP2783087 A JP 2783087A JP S63194422 A JPS63194422 A JP S63194422A
Authority
JP
Japan
Prior art keywords
bit
data
parallel
shift register
flop
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
JP2783087A
Other languages
Japanese (ja)
Inventor
Takao Oda
小田 隆男
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2783087A priority Critical patent/JPS63194422A/en
Publication of JPS63194422A publication Critical patent/JPS63194422A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To make the provision of a counter unnecessary, by providing an FF which inverts and holds the least significant bit of a parallel data, detecting the completion of a conversion operation by the propagation of the above n-bit values from a first bit to the (n-1)-th bit of a shift register of n-bits, and generating the next parallel load signal. CONSTITUTION:When the parallel data is set at the shift register 1 of n-bits, the inverted data of the least significant bit of the above data is set at the FF4. Afterwards, the data inputted to the register 1 is shifted out in order, and simultaneously, the bit value held by the FF4 is inputted to a final stage. At a time when an n-th bit is shifted to the most significant bit, the data from the (n-1)-th bit to the least significant bit becomes the same data as that of the FF4. A coincidence circuit 3 detects the above state, and recognizes it as the completion of conversion, and generates the parallel load signal on the register 1 with the next clock. Hereafter, the above operation is repeated at every n-bits.

Description

【発明の詳細な説明】 〔概要〕 パラレル−シリアル変換回路において1 nビットのパ
ラレルデータのうち最下位ビットをインバータにより反
転して保持するフリップフロップを設けると共に、この
フリップフロップの出力をシリアルデータ出力動作のシ
フト時にシフト入力データとしてシフトレジスタに注入
し9反転された最下位ピントの値がnビットシフトレジ
スタの1番目からn−1番目までのシフトレジスタ段に
伝播したことにより9 シリアルデータ出力動作の終了
を検出し1次のパラレルデータをセットするパラレルロ
ード信号を発生するようにし1 カウンタを不要にする
と共に回路規模を小さくできるようにする。   ・ 〔産業上の利用分野〕 本発明は、パラレル−シリアル変換回路、特に一定長の
複数のパラレルデータを連続的にシリアルデータに変換
するパラレル−シリアル変換回路に関する。
[Detailed Description of the Invention] [Summary] In a parallel-serial conversion circuit, a flip-flop is provided that inverts and holds the least significant bit of 1n bits of parallel data using an inverter, and the output of this flip-flop is output as serial data. 9 Serial data output operation occurs because the inverted value of the lowest pinpoint, which is injected into the shift register as shift input data at the time of shift operation, is propagated to the 1st to (n-1)th shift register stages of the n-bit shift register. A parallel load signal for setting primary parallel data is generated by detecting the end of the 1 counter, and the circuit size can be reduced. - [Industrial Application Field] The present invention relates to a parallel-to-serial conversion circuit, and particularly to a parallel-to-serial conversion circuit that continuously converts a plurality of parallel data of a fixed length into serial data.

(従来の技術〕 パラレルデータをシリアルデータに変換するパラレル−
シリアル変換回路は、デジタル回路において広く用いら
れている。
(Prior technology) Parallel converting parallel data to serial data
Serial conversion circuits are widely used in digital circuits.

第5図は、従来のパラレル−シリアル変換回路を示す図
である。
FIG. 5 is a diagram showing a conventional parallel-to-serial conversion circuit.

第5図において、11はnビットシフトレジスタ、12
はタイミング発生部、13はn進カウンタである。
In FIG. 5, 11 is an n-bit shift register, 12
1 is a timing generator, and 13 is an n-ary counter.

まず、タイミング発生部12社変換開始信号が入力され
ると、タイミング発生部12からパラレルロード信号が
出力され、nビットシフトレジスタ11にパラレルデー
タがセットされる。
First, when a timing generator 12 conversion start signal is input, a parallel load signal is output from the timing generator 12, and parallel data is set in the n-bit shift register 11.

続いて、nビットシフトレジスタ11にクロックが人力
される毎にシリアルデータの各ビットが次々に出力され
、同時にn進カウンタ13によりクロックがカウントさ
れる。nビット出力し終わったところでn進カウンタ1
3からオーバーフロー出力を生じ、タイミング発生部1
2に与えられる。その結果、タイミング発生部12から
パラレルロード信号が再び出力され1次のパラレルデー
タがnビットシフトレジスタ11にセントされる。
Subsequently, each bit of the serial data is output one after another each time a clock is manually input to the n-bit shift register 11, and at the same time, the clock is counted by the n-ary counter 13. When n bits have been output, the n-ary counter 1
3 generates an overflow output, and the timing generator 1
given to 2. As a result, the parallel load signal is output again from the timing generator 12 and the primary parallel data is sent to the n-bit shift register 11.

以後、nクロック毎に上記の動作を繰り返す。Thereafter, the above operation is repeated every n clocks.

シリアルデータ有効信号は、シリアルデータの有効/無
効を表示する信号で、変換開始後、最初のシリアルデー
タが出力されるのと同時に有効となる。
The serial data valid signal is a signal that indicates whether serial data is valid or invalid, and becomes valid at the same time as the first serial data is output after conversion starts.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来例では、パラレルロード信号を生成するためにn進
カウンタが必要であり、その分だけ回路の規模が大きく
なるという問題があった。
In the conventional example, an n-ary counter is required to generate the parallel load signal, and there is a problem in that the scale of the circuit increases accordingly.

c問題点を解決するための手段〕 本発明は、nビットのパラレルデータのうち最下位ビッ
トをインバータにより反転して保持するフリップフロッ
プを設けると共に、その出力をnビットシフトレジスタ
のシフト入力データとし。
Means for Solving Problem c] The present invention provides a flip-flop that inverts and holds the least significant bit of n-bit parallel data using an inverter, and uses the output as shift input data of an n-bit shift register. .

nビットシフトレジスタの1番目からn−1番目。1st to n-1st of the n-bit shift register.

までのシフトレジスタ段の各内容とフリップフロップの
内容とが一致するかどうかを検出し、一致していればパ
ラレルロード信号を発生することにより、カウンタを不
要にすると共に回路規模を小さくできるようにするもの
である。
By detecting whether the contents of each shift register stage up to and including the contents of the flip-flop match, and generating a parallel load signal if they match, it is possible to eliminate the need for a counter and reduce the circuit scale. It is something to do.

第1図は2本発明の基本構成を示す図である。FIG. 1 is a diagram showing the basic configuration of the present invention.

第1図において、1はnビットシフトレジスタ。In FIG. 1, 1 is an n-bit shift register.

2はタイミング発生部、3は一数構出回路、4はフリッ
プフロップ、5はインバータである。
2 is a timing generator, 3 is a one-digit circuit, 4 is a flip-flop, and 5 is an inverter.

nビットシフトレジスタ1は、nビットのパラレルデー
タを入力し、シリアルデータに変換して出力する。
The n-bit shift register 1 inputs n-bit parallel data, converts it into serial data, and outputs it.

タイミング発生部2は、変換開始信号を人力すると共に
パラレルロード信号を出力する。
The timing generator 2 generates a conversion start signal and outputs a parallel load signal.

−数構出回路3は、nビ、トシフトレジスタ1の1番目
からn−1番目までのシフトレジスタ段の各内容とフリ
ップフロップ4の内容とが一致するかどうかを検出し、
一致していればパラレルロード信号を発生する。
- the number output circuit 3 detects whether the contents of the first to n-1st shift register stages of the n-bit shift register 1 match the contents of the flip-flop 4;
If they match, a parallel load signal is generated.

フリップフロップ4は、nビットのパラレルデータのう
ち最下位ビットをインバータ5により反転して保持する
Flip-flop 4 inverts and holds the least significant bit of n-bit parallel data by inverter 5.

インバータ5は、フリップフロップ4に印加スるnビッ
トのパラレルデータのうち最下位ビットを反転するため
のものである。
The inverter 5 is for inverting the least significant bit of the n-bit parallel data applied to the flip-flop 4.

〔作用〕[Effect]

まず、タイミング発生部2に変換開始信号が印加され、
タイミング発生部2からパラレルロード信号が出力され
る。
First, a conversion start signal is applied to the timing generator 2,
A parallel load signal is output from the timing generator 2.

出力されたパラレルロード信号は、nビットシフトレジ
スタ1に印加され、nビットシフトレジスタ1にパラレ
ルデータがセットされる。この時。
The output parallel load signal is applied to the n-bit shift register 1, and parallel data is set in the n-bit shift register 1. At this time.

フリップフロップ4に、nビットのパラレルデー夕のう
ち最下位ビットをインバータ5により反転したデータが
セントされる。
Data obtained by inverting the least significant bit of the n-bit parallel data by an inverter 5 is sent to the flip-flop 4.

その後、nビットシフトレジスタ1に入力されたパラレ
ルデータは、クロックにより順次シフトアウトされ、同
時に最下位段にはフリップフロップ4が保持するビット
値が入力される。
Thereafter, the parallel data input to the n-bit shift register 1 is sequentially shifted out by a clock, and at the same time, the bit value held by the flip-flop 4 is input to the lowest stage.

nビット目が最上位ビットにシフトされた時点で、nビ
ットシフトレジスタ1のn−1ビツトから最下位ビット
までのデータは、フリップフロップ4と同じデータとな
る。この状態は、−数構出回路3により検出される。
When the n-th bit is shifted to the most significant bit, the data from the n-1 bit to the least significant bit of the n-bit shift register 1 becomes the same data as that of the flip-flop 4. This state is detected by the minus number construction circuit 3.

nビットシフトレジスタ1のn−1ビツトから最下位ビ
ットまでのデータが、フリップフロップ4と同じデータ
であることを検出した一致検出回路3は、変換終了と認
識して5次のクロックでnビットシフトレジスタ1にパ
ラレルデータをセットするようにパラレルロード信号を
発生する。
The coincidence detection circuit 3 detects that the data from the n-1 bit to the least significant bit of the n-bit shift register 1 is the same data as the flip-flop 4, recognizes that the conversion is completed, and shifts the n-bit data at the fifth clock. A parallel load signal is generated to set parallel data in shift register 1.

以後、nビット毎に上記の動作を繰り返す。Thereafter, the above operation is repeated every n bits.

〔実施例〕〔Example〕

第2図は各部の動作タイミング図である。 FIG. 2 is an operation timing diagram of each part.

第2図を用いて、シフトレジスタ、フリップフロップ及
び−数構出回路の動作を説明する。
The operations of the shift register, flip-flop, and -number structure circuit will be explained using FIG.

シフトレジスタは、タイミング【。でパラレルロードを
行い、タイミングt、xjyの間シフト動作(シリアル
出力)を行う。
The shift register is timing [. Parallel loading is performed at , and shift operation (serial output) is performed between timing t and xjy.

フリップフロップは、タイミングt0でFFセットを行
い、タイミングt1〜t、の間FF−Q出力をシフトレ
ジスタの最下位ビットへ入力端する。
The flip-flop performs FF setting at timing t0, and inputs the FF-Q output to the least significant bit of the shift register during timing t1 to t.

一致検出回路は、タイミングt、で一致検出を行う。The coincidence detection circuit performs coincidence detection at timing t.

第3図は、シフトレジスタの動作説明図である。FIG. 3 is an explanatory diagram of the operation of the shift register.

第3図は、8ビツトシフトレジスタの場合を例にしてい
る。
FIG. 3 shows an example of an 8-bit shift register.

第3図を用いて、シフトレジスタの動作を詳細に説明す
る。
The operation of the shift register will be explained in detail with reference to FIG.

タイミングt0で、パラレルデータ、例えば“0100
1101”が入力されたとする。この場合、最下位ビッ
トは1゛であるから、この最下位ビット“1”がインバ
ータにより反転されて#0′がフリップフロンブヘ印加
される。
At timing t0, parallel data, for example “0100
1101" is input. In this case, the least significant bit is 1", so this least significant bit "1" is inverted by the inverter and #0' is applied to the flip-flop.

タイミング1.で、1ビツトづつシフトされ。Timing 1. Then, it is shifted one bit at a time.

最上位ビット“0″がシリアル出力され、最下位ビット
には、フリップフロップが保持している“0”が入力さ
れる。
The most significant bit "0" is serially output, and the least significant bit is inputted with "0" held by the flip-flop.

タイミングt2〜t、の間は、タイミングt1での動作
と同様に、1ビツトづつシフトされ、i上位ビ・/トが
シリアル出力され、最下位ピントに。
Between timings t2 and t, the bits are shifted one bit at a time in the same way as the operation at timing t1, and the i upper bits are serially outputted to the lowest bits.

フリップフロップが保持している“0″が入力される。“0” held by the flip-flop is input.

タイミングt、では、1ビツトづつシフトされ。At timing t, the bits are shifted one bit at a time.

最上位ビットがシリアル出力され、最下位ビットに、フ
リップフロップが保持している“0”が入力されるとこ
ろまでは、タイミングt1〜t、の間と同様であるが、
最上位ビットの次のビットから最下位ビットまでの内容
(この例では“000oooo”)とフリップフロップ
が保持している内容(この例では“O”)とが一致して
いるかどうかを一致検出回路で検出する。
The most significant bit is serially output and the least significant bit is inputted with "0" held by the flip-flop, which is the same as between timings t1 and t.
A match detection circuit detects whether the content from the bit next to the most significant bit to the least significant bit (“000ooooo” in this example) matches the content held by the flip-flop (“O” in this example). Detect with.

第4図に一致検出回路の1例を示す。FIG. 4 shows an example of a coincidence detection circuit.

第4図において、3は一致検出回路、6.7はAND回
路、8はOR回路である。
In FIG. 4, 3 is a coincidence detection circuit, 6.7 is an AND circuit, and 8 is an OR circuit.

AND回路6は、フリップフロップが保持している内容
及び最上位ビットの次のビットから最下位ビットまでの
内容が全て“1”の場合を検出するためのものである。
The AND circuit 6 is for detecting a case where the contents held by the flip-flop and the contents from the bit next to the most significant bit to the least significant bit are all "1".

AND回路7は、フリップフロップが保持している内容
及び最上位ビットの次のビットから最下位ピントまでの
内容が全て“0”の場合を検出するためのものである。
The AND circuit 7 is for detecting a case where the contents held by the flip-flop and the contents from the bit next to the most significant bit to the least significant bit are all "0".

OR回路8は、フリップフロップが保持している内容及
び最上位ビットの次のビットから最下位ビットまでの内
容が全て“1°の場合とフリップフロップが保持してい
る内容及び最上位ビットの次のビットから最下位ビット
までの内容が全て“0”の場合の両方の場合に機能する
ようにするためのものである。
The OR circuit 8 determines whether the contents held by the flip-flop and the contents from the bit next to the most significant bit to the least significant bit are all "1 degree," the contents held by the flip-flop, and the contents next to the most significant bit. This is intended to function in both cases where the contents from the bit to the least significant bit are all "0".

〔発明の効果〕〔Effect of the invention〕

本発明では、カウンタを用いていないから2回路の規模
を小さくすることができる。
In the present invention, since no counter is used, the scale of the two circuits can be reduced.

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

第1図は本発明の基本構成を示す図、第2図は各部の動
作タイミング図、第3図はシフトレジスタの動作説明図
、第4図は一致検出回路を示す図。 第5図は従来例を示す図である。 第1図において。 1:nビットシフトレジスタ 2:タイミング発生部 3ニ一敗検出回路 4:フリツプフロツプ 5:インバータ
FIG. 1 is a diagram showing the basic configuration of the present invention, FIG. 2 is an operation timing chart of each part, FIG. 3 is an explanatory diagram of the operation of a shift register, and FIG. 4 is a diagram showing a coincidence detection circuit. FIG. 5 is a diagram showing a conventional example. In FIG. 1: n-bit shift register 2: Timing generator 3 Ni-failure detection circuit 4: Flip-flop 5: Inverter

Claims (1)

【特許請求の範囲】 nビットのパラレルデータを入力としクロックによりシ
フト動作を行うnビットシフトレジスタ(1)及びシフ
トレジスタ(1)に対するパラレルロード信号を発生す
るタイミング発生部(2)からなるパラレル−シリアル
変換回路において、 nビットのパラレルデータのうち最下位ビットをインバ
ーク(5)により反転して保持するフリップフロップ(
4)を設け、このフリップフロップ(4)の出力をnビ
ットシフトレジスタ(1)に接続し、 nビットシフトレジスタ(1)のシフト動作時に、その
1番目からn−1番目までのシフトレジスタ段の各内容
とフリップフロップ(4)の内容とが一致するかどうか
を検出し、一致していればパラレルロード信号を発生す
る一致検出回路(3)をタイミング発生部(2)に設け
たことを特徴とするパラレル−シリアル変換回路。
[Claims] A parallel register comprising an n-bit shift register (1) that receives n-bit parallel data and performs a shift operation based on a clock, and a timing generator (2) that generates a parallel load signal for the shift register (1). In the serial conversion circuit, a flip-flop (
4), the output of this flip-flop (4) is connected to the n-bit shift register (1), and when the n-bit shift register (1) shifts, the first to n-1st shift register stages are connected. The timing generator (2) is provided with a coincidence detection circuit (3) that detects whether each content of and the content of the flip-flop (4) match and generates a parallel load signal if they match. Features a parallel-to-serial conversion circuit.
JP2783087A 1987-02-09 1987-02-09 Parallel-serial conversion circuit Pending JPS63194422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2783087A JPS63194422A (en) 1987-02-09 1987-02-09 Parallel-serial conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2783087A JPS63194422A (en) 1987-02-09 1987-02-09 Parallel-serial conversion circuit

Publications (1)

Publication Number Publication Date
JPS63194422A true JPS63194422A (en) 1988-08-11

Family

ID=12231860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2783087A Pending JPS63194422A (en) 1987-02-09 1987-02-09 Parallel-serial conversion circuit

Country Status (1)

Country Link
JP (1) JPS63194422A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5012240A (en) * 1988-12-28 1991-04-30 Nippon Hoso Kyokai Parallel to serial converter with complementary bit insertion for disparity reduction

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6035400A (en) * 1983-08-05 1985-02-23 Sharp Corp Complementary type metal oxide film semiconductor device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6035400A (en) * 1983-08-05 1985-02-23 Sharp Corp Complementary type metal oxide film semiconductor device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5012240A (en) * 1988-12-28 1991-04-30 Nippon Hoso Kyokai Parallel to serial converter with complementary bit insertion for disparity reduction

Similar Documents

Publication Publication Date Title
US5103451A (en) Parallel cyclic redundancy check circuit
US5010510A (en) Multiplying unit circuit
JPS63194422A (en) Parallel-serial conversion circuit
US4013879A (en) Digital multiplier
JP2766133B2 (en) Parallel-serial data conversion circuit
JP3052848B2 (en) Frame synchronization protection circuit
JP2599984B2 (en) Input data peak value detection circuit
JP2674810B2 (en) Multiplexed N-unit coincidence protection circuit
JP3270659B2 (en) Arithmetic circuit and arithmetic method
JPS63284930A (en) Mbnb code converting circuit
JPH039661B2 (en)
JPS6072022A (en) Arithmetic unit
JP2731881B2 (en) Mark ratio setting circuit
JP2811671B2 (en) Synchronous signal detection device
JP3155026B2 (en) Accumulator
JPH0715344A (en) Data converter
JPH0779247B2 (en) Decode circuit
SU1277095A1 (en) Device for taking sum of n-bit binary numbers
JPS6134677A (en) Image outline processing circuit
JPH0628151A (en) Parallel latch circuit for serial data
JPH06348458A (en) Serial data adder
JPS63279632A (en) Coincidence detection circuit
JPH0324619A (en) Binary negative number display converter
JPH0370028A (en) Logical arithmetic circuit for serial data
JPH02146842A (en) Serial interface circuit