JPS6364091B2 - - Google Patents

Info

Publication number
JPS6364091B2
JPS6364091B2 JP58093521A JP9352183A JPS6364091B2 JP S6364091 B2 JPS6364091 B2 JP S6364091B2 JP 58093521 A JP58093521 A JP 58093521A JP 9352183 A JP9352183 A JP 9352183A JP S6364091 B2 JPS6364091 B2 JP S6364091B2
Authority
JP
Japan
Prior art keywords
code
shift register
bit
serial
parity check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP58093521A
Other languages
Japanese (ja)
Other versions
JPS59219018A (en
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 filed Critical
Priority to JP9352183A priority Critical patent/JPS59219018A/en
Publication of JPS59219018A publication Critical patent/JPS59219018A/en
Publication of JPS6364091B2 publication Critical patent/JPS6364091B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)

Description

【発明の詳細な説明】 (a) 発明の技術分野 本発明は符号変換回路に係り、特に並列符号を
直列符号に変換して1ビツトの所定符号を付加す
る符号挿入回路の改良に関す。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a code conversion circuit, and more particularly to an improvement in a code insertion circuit that converts parallel codes into serial codes and adds a 1-bit predetermined code.

(b) 従来技術と問題点 第1図はこの種符号変換回路における従来ある
符号挿入回路の一例を示す図であり、第2図は第
1図の動作過程の一例を示す図である。第1図お
よび第2図において、5ビツトA、B、C、Dお
よびEから構成される並列符号s0は、5段構成
のシフトレジスタSFRに設定された後、クロツ
ク信号clkに同期して右方向に1ビツト宛送られ、
シフトレジスタSFRの出力段である最右段から
クロツク信号clkの第1周期にビツトAが、第2
周期にビツトBが、以下同様に第5周期にビツト
Eが順次送出され、直列符号s1として送出され
る。該直列符号s1はゲートG1およびパリテイ
符号発生回路PGに伝達される。パリテイ符号発
生回路PGは、伝達される直列符号s1に対する
所定のパリテイ検査則に基づき1ビツトのパリテ
イ検査符号pを作成し、ゲートG2に伝達する。
一方計数回路CNTは、シフトレジスタSFRを歩
進させるクロツク信号clkを計数し、第1乃至第
5周期を計数する間は論理値0の制御信号c1を
出力し、第6周期を計数する間は論理値1の制御
信号c1を出力し、ゲートG1およびG2に伝達
する。従つてクロツク信号clkの第1乃至第5周
期の間はゲートG1が導通状態、ゲートG2が阻
止状態となり、シフトレジスタSFRの最右段か
ら送出される直列符号s1がゲートG1およびG
3を介して出力され、第6周期の間はゲートG2
が導通状態、ゲートG1が阻止状態となり、パリ
テイ符号発生回路PGから送出されるパリテイ検
査符号pがゲートG2およびG3を介して出力さ
れる。その結果ゲートG3からは、ビツトA乃至
Eの次に1ビツトのパリテイ検査符号pが付加さ
れたパリテイ付直列符号s2が送出されることと
なる。
(b) Prior Art and Problems FIG. 1 is a diagram showing an example of a conventional code insertion circuit in this type of code conversion circuit, and FIG. 2 is a diagram showing an example of the operation process of FIG. 1. In FIGS. 1 and 2, a parallel code s0 consisting of 5 bits A, B, C, D and E is set in a 5-stage shift register SFR and then shifted to the right in synchronization with the clock signal clk. One bit is sent in the direction,
Bit A is output from the rightmost stage, which is the output stage of the shift register SFR, in the first period of the clock signal clk, and in the second
Bit B is sent out in the same cycle, and bit E is sent out in the same manner in the fifth period, and is sent out as a serial code s1. The serial code s1 is transmitted to the gate G1 and the parity code generation circuit PG. The parity code generation circuit PG generates a 1-bit parity check code p based on a predetermined parity check rule for the transmitted serial code s1, and transmits it to the gate G2.
On the other hand, the counting circuit CNT counts the clock signal clk that increments the shift register SFR, outputs a control signal c1 with a logic value of 0 while counting the first to fifth periods, and outputs a control signal c1 with a logic value of 0 while counting the sixth period. A control signal c1 with a logic value of 1 is output and transmitted to gates G1 and G2. Therefore, during the first to fifth periods of the clock signal clk, the gate G1 is in a conductive state and the gate G2 is in a blocked state, and the serial code s1 sent from the rightmost stage of the shift register SFR is transmitted to the gates G1 and G2.
3, and during the sixth period, the gate G2
is in a conductive state, gate G1 is in a blocked state, and parity check code p sent from parity code generation circuit PG is outputted via gates G2 and G3. As a result, a serial code s2 with parity is sent from the gate G3, in which a 1-bit parity check code p is added next to bits A to E.

以上の説明から明らかな如く、従来ある符号挿
入回路においては、並列符号s0から変換した直
列符号s1にパリテイ検査符号pを付加する為
に、ゲートG1乃至G3を設ける必要があり、当
該符号変換回路の経済性を損なう恐れが有つた。
As is clear from the above explanation, in a conventional code insertion circuit, in order to add the parity check code p to the serial code s1 converted from the parallel code s0, it is necessary to provide gates G1 to G3. There was a risk that the economic efficiency of the project would be impaired.

(c) 発明の目的 本発明の目的は、前述の如き従来ある符号挿入
回路の欠点を除去し、当該符号変換回路の経済性
を損なうこと無く、変換後の直列符号に1ビツト
から成る所定符号を付加することに在る。
(c) Object of the Invention The object of the present invention is to eliminate the drawbacks of the conventional code insertion circuit as described above, and add a predetermined code consisting of 1 bit to the converted serial code without impairing the economic efficiency of the code conversion circuit. It consists in adding.

(d) 発明の構成 この目的は、モード指定信号により左右両方向
にシフトできるシフトレジスタを用いてNビツト
の並列符号を直列符号に変換する符号変換回路に
おいて、前記モード指定信号を送出しながら前記
シフトレジスタを歩進させるクロツク信号をN個
計数した時、送出中の前記モード指定信号を前記
クロツク信号の一周期の間だけ切り替える計数回
路と、前記シフトレジスタから出力される直列符
号を計数して1ビツトのパリテイ検査符号を発生
するパリテイ符号発生回路とを設け、前記シフト
レジスタに前記並列符号を設定した後入力される
クロツク信号に同期して前記モード指定信号の指
定方向にシフトしながら前記シフトレジスタの出
力段から前記並列符号の各ビツトを順次直列に送
出し、Nビツトの送出が終了した後、切り替えら
れた前記モード指定信号により逆方向にシフトさ
せると共に、前記パリテイ検査符号を前記シフト
レジスタの出力段に設定することにより、前記直
列符号に前記パリテイ検査符号を付加して送出す
ることにより達成される。
(d) Structure of the Invention The object of the present invention is to provide a code conversion circuit that converts an N-bit parallel code into a serial code using a shift register that can shift in both left and right directions according to a mode designation signal. When counting N clock signals for incrementing the register, the counting circuit switches the mode designation signal being sent for only one period of the clock signal, and the serial code output from the shift register is counted to 1. and a parity code generation circuit that generates a bit parity check code, and after setting the parallel code in the shift register, the shift register is shifted in the direction specified by the mode designation signal in synchronization with the input clock signal. Each bit of the parallel code is sequentially sent out serially from the output stage of the code, and after the sending of N bits is completed, the parity check code is shifted in the opposite direction by the switched mode designation signal, and the parity check code is transferred to the shift register. This is achieved by adding the parity check code to the serial code and sending it out by setting it in the output stage.

(e) 発明の実施例 以下、本発明の一実施例を図面により説明す
る。第3図は本発明の一実施例による符号挿入回
路を示す図であり、第4図は第3図の動作過程の
一例を示す図である。なお、全図を通じて同一符
号は同一対象物を示す。第3図においては、符号
変換回路はモード指定信号により右送りおよび左
送りを切替え可能なシフトレジスタSFR′と、計
数回路CNTと、パリテイ符号発生回路PGとから
構成され、ゲートG1乃至G3(第1図)は除去
されている。シフトレジスタSFR′は、計数回路
CNTから伝達されるモード指定信号c2が論理
値0に設定された場合はクロツク信号clkに同期
して右方向に1ビツト宛歩進し、またモード指定
信号c2が論理値1に設定された場合にはクロツ
ク信号clkに同期して左方向に1ビツト宛歩進す
る。第3図および第4図において、5ビツトA、
B、C、DおよびEから構成される並列符号S0
はシフトレジスタSFR′に設定される。計数回路
CNTは、シフトレジスタSFR′を歩進させるクロ
ツク信号clkを計数し、第1乃至第5周期の間は
論理値0に設定したモード指定信号c2をシフト
レジスタSFR′に伝達し、第6周期の間は論理値
1に設定したモード指定信号c2をシフトレジス
タSFR′に伝達する。従つてシフトレジスタ
SFR′は、第1乃至第5周期の間はクロツク信号
clkに同期して右方向に1ビツト宛歩進し、出力
段である最右段からクロツク信号clkの第1周期
にビツトA、第2周期にビツトB、以下同様に第
5周期にビツトEを直列符号s1として順次送出
する。該直列符号s1は出力されると共にパリテ
イ符号発生回路PGにも伝達される。パリテイ符
号発生回路PGは、伝達される直列符号s1に対
する所定のパリテイ検査則に基づき1ビツトのパ
リテイ検査符号pを作成し、シフトレジスタ
SFR′の最右段に伝達する。第6周期にはモード
指定信号c2が論理値1に設定される為、シフト
レジスタSFR′は左方向に1歩進し、パリテイ符
号発生回路PGから伝達されるパリテイ検査符号
pを最右段に設定し、直列符号s1に続き送出す
る。なお第5周期において最右段に設定されてい
たビツトEも、最右段の左段に送られている。第
7周期にはモード指定信号c2が再び論理値0に
設定される為、シフトレジスタSFR′は右方向に
歩進し、出力段からはビツトEが再び送出され
る。その結果シフトレジスタSFR′の最右段から
は、クロツク信号Hclkの第1乃至第5周期にビ
ツトA乃至E、第6周期にパリテイ検査符号p、
第7周期にビツトEが送出されるパリテイ付直列
符号s2′が出力される。
(e) Embodiment of the invention An embodiment of the invention will be described below with reference to the drawings. FIG. 3 is a diagram showing a code insertion circuit according to an embodiment of the present invention, and FIG. 4 is a diagram showing an example of the operation process of FIG. 3. Note that the same reference numerals indicate the same objects throughout the figures. In FIG. 3, the code conversion circuit is composed of a shift register SFR' which can be switched between right feed and left feed by a mode designation signal, a counting circuit CNT, and a parity code generation circuit PG, and includes gates G1 to G3 (gates G1 to G3). Figure 1) has been removed. Shift register SFR′ is a counting circuit
When the mode designation signal c2 transmitted from the CNT is set to a logical value of 0, the clock advances one bit in the right direction in synchronization with the clock signal clk, and when the mode designation signal c2 is set to a logical value of 1. Then, the bit is incremented by one bit in the left direction in synchronization with the clock signal clk. In FIGS. 3 and 4, 5 bits A,
Parallel code S0 consisting of B, C, D and E
is set in shift register SFR'. counting circuit
CNT counts the clock signal clk that advances the shift register SFR', transmits the mode designation signal c2 set to a logic value of 0 to the shift register SFR' during the first to fifth periods, and in the sixth period During this period, a mode designation signal c2 set to a logical value of 1 is transmitted to the shift register SFR'. Therefore shift register
SFR' is the clock signal during the first to fifth periods.
The clock signal clk is incremented by one bit in the right direction in synchronization with clock signal clk, and from the rightmost output stage, bit A is output in the first period of the clock signal clk, bit B is generated in the second period, and in the same manner, bit E is input in the fifth period. are sequentially transmitted as a serial code s1. The serial code s1 is output and also transmitted to the parity code generation circuit PG. The parity code generation circuit PG creates a 1-bit parity check code p based on a predetermined parity check rule for the serial code s1 to be transmitted, and outputs it to the shift register.
It is transmitted to the rightmost stage of SFR′. In the sixth period, the mode designation signal c2 is set to a logical value of 1, so the shift register SFR' advances one step to the left, and shifts the parity check code p transmitted from the parity code generation circuit PG to the rightmost stage. It is set and transmitted following the serial code s1. Note that bit E, which was set at the rightmost stage in the fifth period, is also sent to the leftmost right stage. In the seventh period, the mode designation signal c2 is again set to the logic value 0, so the shift register SFR' steps to the right, and bit E is sent out from the output stage again. As a result, from the rightmost stage of the shift register SFR', bits A to E are transmitted in the first to fifth periods of the clock signal Hclk, parity check code p is transmitted in the sixth period,
A serial code with parity s2' in which bit E is sent out in the seventh period is output.

以上の説明から明らかな如く、本実施例によれ
ば、シフトレジスタSFR′をクロツク信号clkの第
1乃至第5周期には右送りによりビツトA乃至E
を直列符号s1として送出し、第6周期には左送
りによりパリテイ検査符号pを送出することによ
りパリテイ付直列符号s2′が出力され、第1図
におけるが如くゲートG1乃至G3を必要としな
い。
As is clear from the above description, according to the present embodiment, the shift register SFR' is shifted to the right in the first to fifth periods of the clock signal clk to shift bits A to E.
is sent out as a serial code s1, and in the sixth period, a parity check code p is sent out by leftward feeding, thereby a serial code with parity s2' is outputted, and gates G1 to G3 are not required as in FIG.

なお、第3図および第4図はあく迄本発明の一
実施例に過ぎず、例えばシフトレジスタSFR′の
歩進方向は図示されるものに限定されることは無
く、最左段を出力段として反転させることも考慮
されるがかかる場合にも本発明の効果は変わらな
い。また並列符号s0は5ビツトにより構成され
るものに限定されることは無く、シフトレジスタ
SFR′の段数を変更することにより任意ビツトか
ら構成される並列信号を変換することも考慮され
るが、何れの場合にも本発明の効果は変わらな
い。また直列符号s1に付加する符号はパリテイ
検査符号pに限定されることは無く、例えばフレ
ーム符号等他に幾多の変形が考慮されるが、何れ
の場合にも本発明の効果は変らない。
Note that FIGS. 3 and 4 are only one embodiment of the present invention, and for example, the advancing direction of the shift register SFR' is not limited to that shown, and the leftmost stage is the output stage. It is also possible to consider reversing it as such, but the effect of the present invention does not change even in such a case. In addition, the parallel code s0 is not limited to one composed of 5 bits, but can be a shift register.
Although it may be considered to convert a parallel signal composed of arbitrary bits by changing the number of stages of SFR', the effects of the present invention remain the same in either case. Furthermore, the code added to the serial code s1 is not limited to the parity check code p; for example, many other modifications such as a frame code may be considered, but the effects of the present invention do not change in any case.

(f) 発明の効果 以上、本発明によれば、当該符号変換回路の経
済性を損なうこと無く、変換後の直列符号に1ビ
ツトから成る所定符号を付加することが可能とな
る。
(f) Effects of the Invention As described above, according to the present invention, it is possible to add a predetermined code consisting of 1 bit to a converted serial code without impairing the economic efficiency of the code conversion circuit.

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

第1図は従来ある符号挿入回路の一例を示す
図、第2図は第1図の動作過程の一例を示す図、
第3図は本発明の一実施例による符号挿入回路を
示す図、第4図は第3図の動作過程の一例を示す
図である。 図において、c1は制御信号、c2はモード指
定信号、clkはクロツク信号、CNTは計数回路、
G1乃至G3はゲート、pはパリテイ検査符号、
PGはパリテイ符号発生回路、s0は並列符号、
s1は直列符号、s2およびs2′はパリテイ付
直列符号、SFRおよびSFR′はシフトレジスタ、
を示す。
FIG. 1 is a diagram showing an example of a conventional code insertion circuit, FIG. 2 is a diagram showing an example of the operation process of FIG. 1,
FIG. 3 is a diagram showing a code insertion circuit according to an embodiment of the present invention, and FIG. 4 is a diagram showing an example of the operation process of FIG. 3. In the figure, c1 is a control signal, c2 is a mode designation signal, clk is a clock signal, CNT is a counting circuit,
G1 to G3 are gates, p is a parity check code,
PG is a parity code generation circuit, s0 is a parallel code,
s1 is a serial code, s2 and s2' are serial codes with parity, SFR and SFR' are shift registers,
shows.

Claims (1)

【特許請求の範囲】 1 モード指定信号により左右両方向にシフトで
きるシフトレジスタを用いてNビツト(Nは正の
整数)の並列符号を直列符号に変換する符号変換
回路において、 前記モード指定信号を送出しながら前記シフト
レジスタを歩進させるクロツク信号をN個計数し
た時、送出中の前記モード指定信号を前記クロツ
ク信号の一周期の間だけ切り替える計数回路と、
前記シフトレジスタから出力される直列符号を計
数して1ビツトのパリテイ検査符号を発生するパ
リテイ符号発生回路とを設け、 前記シフトレジスタに前記並列符号を設定した
後入力されるクロツク信号に同期して前記モード
指定信号の指定方向にシフトしながら前記シフト
レジスタの出力段から前記並列符号の各ビツトを
順次直列に送出し、Nビツトの送出が終了した
後、切り替えられた前記モード指定信号により逆
方向にシフトさせると共に、前記パリテイ検査符
号を前記シフトレジスタの出力段に設定すること
にり、前記直列符号に前記パリテイ検査符号を付
加して送出することを特徴とする符号挿入回路。
[Claims] 1. In a code conversion circuit that converts an N-bit (N is a positive integer) parallel code into a serial code using a shift register that can be shifted in both left and right directions according to a mode designation signal, the mode designation signal is sent out. a counting circuit that switches the mode designating signal being sent for only one cycle of the clock signal when counting N clock signals that increment the shift register;
a parity code generation circuit that counts the serial codes output from the shift register and generates a 1-bit parity check code; Each bit of the parallel code is serially transmitted from the output stage of the shift register while shifting in the direction specified by the mode designation signal, and after the transmission of N bits is completed, the mode designation signal is switched in the opposite direction. 2. A code insertion circuit characterized in that the parity check code is added to the serial code and transmitted by shifting the serial code and setting the parity check code in an output stage of the shift register.
JP9352183A 1983-05-27 1983-05-27 Code inserting circuit Granted JPS59219018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9352183A JPS59219018A (en) 1983-05-27 1983-05-27 Code inserting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9352183A JPS59219018A (en) 1983-05-27 1983-05-27 Code inserting circuit

Publications (2)

Publication Number Publication Date
JPS59219018A JPS59219018A (en) 1984-12-10
JPS6364091B2 true JPS6364091B2 (en) 1988-12-09

Family

ID=14084626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9352183A Granted JPS59219018A (en) 1983-05-27 1983-05-27 Code inserting circuit

Country Status (1)

Country Link
JP (1) JPS59219018A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5381029A (en) * 1976-12-27 1978-07-18 Toshiba Corp Information conversion circuit unit
JPS5541571A (en) * 1978-09-19 1980-03-24 Nec Corp Serial input/output device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5381029A (en) * 1976-12-27 1978-07-18 Toshiba Corp Information conversion circuit unit
JPS5541571A (en) * 1978-09-19 1980-03-24 Nec Corp Serial input/output device

Also Published As

Publication number Publication date
JPS59219018A (en) 1984-12-10

Similar Documents

Publication Publication Date Title
US4472788A (en) Shift circuit having a plurality of cascade-connected data selectors
US4780894A (en) N-bit gray code counter
US4618849A (en) Gray code counter
US5079548A (en) Data packing circuit in variable length coder
US4387294A (en) Shift register-latch circuit driven by clocks with half cycle phase deviation and usable with a serial alu
EP0186866B1 (en) Majority circuit
JPS6364091B2 (en)
US6091794A (en) Fast synchronous counter
US5337050A (en) Serial-to-parallel converter circuit
EP0766402A2 (en) Counter circuit
US4914616A (en) Coded incrementer having minimal carry propagation delay
JPH05258589A (en) Variable length shift register
US5239499A (en) Logical circuit that performs multiple logical operations in each stage processing unit
JP3008637B2 (en) Digital demodulation circuit
JP2508291B2 (en) Serial input / output circuit
JP2629737B2 (en) accumulator
JP2643470B2 (en) Synchronous counter
SU1633391A1 (en) Operand shifter
JP3083738B2 (en) Binary selection encoder
SU1691893A2 (en) Device for shifting information with checking
JPH0145774B2 (en)
EP0173570A2 (en) Shift register circuit
SU1195346A1 (en) Device for selecting maximum number
SU920710A1 (en) Serial adder
SU1164728A1 (en) Transformer of representation form of logic function