JPH0736280B2 - Shift register - Google Patents
Shift registerInfo
- Publication number
- JPH0736280B2 JPH0736280B2 JP62132252A JP13225287A JPH0736280B2 JP H0736280 B2 JPH0736280 B2 JP H0736280B2 JP 62132252 A JP62132252 A JP 62132252A JP 13225287 A JP13225287 A JP 13225287A JP H0736280 B2 JPH0736280 B2 JP H0736280B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- flip
- flop
- signal
- output
- 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
Links
Landscapes
- Shift Register Type Memory (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] この発明は、外部信号によりリセット可能なシフトレジ
スタに関するものである。TECHNICAL FIELD The present invention relates to a shift register that can be reset by an external signal.
[従来の技術] 第4図は、リセット機能を有する従来のn段のシフトレ
ジスタを示す図である。[Prior Art] FIG. 4 is a diagram showing a conventional n-stage shift register having a reset function.
図において、レジスタ40はn個のリセット端子付フリッ
プフロップが直列接続されたものである。各フリップフ
ロップは入力端子、出力端子、クロック端子およびリセ
ット端子を有し、クロック端子にクロックパルスが入力
された場合に、入力端子に入力されているデータを出力
端子から出力するようになっている。そして、リセット
端子に「0」レベルの信号が入力されると、フリップフ
ロップの内容が「0」にリセットされる。In the figure, a register 40 has n flip-flops with reset terminals connected in series. Each flip-flop has an input terminal, an output terminal, a clock terminal, and a reset terminal. When a clock pulse is input to the clock terminal, the data input to the input terminal is output from the output terminal. . Then, when a "0" level signal is input to the reset terminal, the content of the flip-flop is reset to "0".
各フリップフロップのクロック端子は、外部クロック端
子に共通接続され、その外部クロック端子にクロック信
号CKが入力される。The clock terminal of each flip-flop is commonly connected to the external clock terminal, and the clock signal CK is input to the external clock terminal.
また、各フリップフロップのリセット端子は、外部リセ
ット端子に共通接続され、その外部リセット端子にリセ
ット信号▲▼が入力される。The reset terminal of each flip-flop is commonly connected to the external reset terminal, and the reset signal ▲ ▼ is input to the external reset terminal.
初段のフリップフロップの入力端子にデータDIが入力さ
れ、最終段のフリップフロップの出力端子からデータY
が出力される。Data DI is input to the input terminal of the first-stage flip-flop, and data Y is output from the output terminal of the last-stage flip-flop.
Is output.
まず、リセット信号▲▼によりレジスタ40の全フリ
ップフロップの内容が「0」にリセットされる。そし
て、クロックパルスが1個入力されるごとに、入力端子
からデータDIが1つずつ入力されるとともに、各フリッ
プフロップに保持されているデータが後段のフリップフ
ロップへ順次シフトされて出力端子からデータYとして
1つずつ出力される。したがって、最終段のフリップフ
ロップの出力端子からn個の「0」が出力された後、入
力端子に入力されたデータDIが出力端子から順次出力さ
れることになる。First, the content of all the flip-flops of the register 40 is reset to "0" by the reset signal ▲ ▼. Then, each time one clock pulse is input, one data DI is input from the input terminal, and the data held in each flip-flop is sequentially shifted to the subsequent flip-flops, and the data is output from the output terminal. One is output as Y. Therefore, after n "0" s are output from the output terminal of the final stage flip-flop, the data DI input to the input terminal is sequentially output from the output terminal.
[発明が解決しようとする問題点] 上記シフトレジスタに用いられるリセット端子付フリッ
プフロップは、リセット端子のないフリップフロップに
比べてリセット可能のためにゲート数が増加している。
上記シフトレジスタは、全ビットにリセット端子付フリ
ップフロップを使用しているため、リセット機能のない
シフトレジスタに比べてゲート数が大幅に増加する。[Problems to be Solved by the Invention] The flip-flop with a reset terminal used in the shift register has a larger number of gates because it can be reset as compared with a flip-flop without a reset terminal.
Since the shift register uses flip-flops with reset terminals for all bits, the number of gates is significantly increased as compared with a shift register having no reset function.
また、外部リセット端子に多くのリセット端子が接続さ
れるので大きな負荷がかかることになり、リセットに要
する時間も増大する。Moreover, since many reset terminals are connected to the external reset terminal, a large load is applied, and the time required for resetting increases.
これらの現象はレジスト長が長くなればなるほど著しい
ものとなる。These phenomena become more remarkable as the resist length becomes longer.
そこで、この発明は、レジスト長が長くなってもリセッ
ト機能に要するゲート数が増加せず、またリセット端子
の負荷の増加が少ないシフトレジスタを提供することを
目的とする。Therefore, an object of the present invention is to provide a shift register in which the number of gates required for the reset function does not increase even if the resist length becomes long, and the load on the reset terminal is small.
[問題点を解決するための手段] この発明に係るシフトレジスタは、外部信号によりリセ
ット可能にシフトレジストであって、第1および第2の
レジスタ部と、カウンタ部と、第1および第2の出力制
御部とから構成されている。[Means for Solving Problems] A shift register according to the present invention is a shift resist that can be reset by an external signal, and includes first and second register sections, a counter section, and first and second And an output control unit.
第1のレジスタ部は、直列接続された複数のフリップフ
ロップからなり、クロックパルスが入力されるごとに、
初段のフリップフロップに入力されるデータ信号を順次
後段のフリップフロップに転送して最終段のフリップフ
ロップから出力するものである。The first register unit is composed of a plurality of flip-flops connected in series, and each time a clock pulse is input,
The data signal input to the first-stage flip-flop is sequentially transferred to the subsequent-stage flip-flop and output from the final-stage flip-flop.
第2のレジスタ部は、直列接続された複数のフリップフ
ロップからなり、クロックパルスが入力されるごとに、
初段のフリップフロップに入力される信号を順次後段の
フリップフロップに転送して最終段のフリップフロップ
から出力するものである。The second register section is composed of a plurality of flip-flops connected in series, and each time a clock pulse is input,
The signals input to the first-stage flip-flops are sequentially transferred to the subsequent-stage flip-flops and output from the final-stage flip-flops.
カウンタ部は、リセット機能を有し、外部信号によりリ
セットされた後、所定数のクロックパルスが入力された
後に所定の信号を出力するものである。The counter unit has a reset function, and outputs a predetermined signal after being input with a predetermined number of clock pulses after being reset by an external signal.
第1の出力制御部は、カウンタ部からの所定の信号に応
答して、第1のレジスタ部の出力信号を第2のレジスタ
部の入力に導出するものである。The first output control section is for deriving an output signal of the first register section to an input of the second register section in response to a predetermined signal from the counter section.
第2の出力制御部は、カウンタ部からの所定の信号に応
答して、第2のレジスタ部の出力信号を出力データ信号
として導出するものである。The second output control section is for deriving the output signal of the second register section as an output data signal in response to a predetermined signal from the counter section.
[作用] この発明にかかるシフトレジスタにおいては、まず、カ
ウンタ部をリセットすると、カウンタ部の出力信号によ
って、第1および第2の出力制御部がそれぞれ第1およ
び第2のレジスタ部の対応する出力信号を導出しない状
態となる。カウンタ部に所定数のクロックパルスが入力
されるまではこの状態が保たれる。一方、第1および第
2のレジスタ部の各々は、クロックパルスが入力される
ごとに、初段のフリップフロップに信号が入力されると
ともに、各フリップフロップの保持する信号が順次後段
のフリップフロップに転送されて最終段の出力フリップ
フロップから出力される。[Operation] In the shift register according to the present invention, first, when the counter section is reset, the output signals of the counter section cause the first and second output control sections to output corresponding outputs of the first and second register sections, respectively. The signal is not derived. This state is maintained until a predetermined number of clock pulses are input to the counter section. On the other hand, in each of the first and second register units, each time a clock pulse is input, a signal is input to the first-stage flip-flop, and the signal held by each flip-flop is sequentially transferred to the subsequent-stage flip-flop. It is output from the output flip-flop at the final stage.
所定数のクロックパルスが入力されると、カウンタ部か
ら所定の信号が出力され、これによって、第1および第
2の出力制御部は、それぞれ第1および第2のレジスタ
部の最終段のフリップフロップから出力される信号を導
出することになる。When a predetermined number of clock pulses are input, a predetermined signal is output from the counter section, whereby the first and second output control sections cause the final stage flip-flops of the first and second register sections, respectively. Will be derived.
[実施例] 以下、この発明の実施例を図面を用いて説明する。Embodiments Embodiments of the present invention will be described below with reference to the drawings.
第1図はこの発明によるシフトレジスタの実施例を示す
図である。FIG. 1 is a diagram showing an embodiment of a shift register according to the present invention.
この実施例は、特定の数のカウンタ、たとえば2m進カウ
ンタを用いて、任意の段数、たとえばn段のシフトレジ
ストを構成するものである。ここでは、2m+1<n<2m
+1となるようにmを選ぶものとする。このシフトレジス
タは、リセット機能を有さないで2m個のフリップフロッ
プからなる第1のレジスタ30と、リセット機能を有され
ない(n−2m−1)個のフリップフロップからなる第2
のレジスト31と、2m進カウンタ32と、リセット機能付フ
リップフロップ33と、2入力ANDゲートからなるマスク
ゲート34とから構成されている。In this embodiment, a specific number of counters, for example, a 2m-ary counter is used to configure a shift resister with an arbitrary number of stages, for example, n stages. Here, 2m + 1 <n <2m
Let m be chosen to be +1 . This shift register has a first register 30 which is composed of 2m flip-flops without a reset function and a second register 30 which is composed of (n-2m-1) flip-flops which is not equipped with a reset function.
The register 31, a 2m-ary counter 32, a flip-flop 33 with a reset function, and a mask gate 34 composed of a 2-input AND gate.
これら第1および第2のシフトレジスタ30および31を構
成するリセット機能を有さないフリップフロップの各々
は、入力端子、出力端子およびクロック端を有し、クロ
ック端子にクロックパルスが入力されたときに、入力端
子に入力されているデータを出力端子から出力して保持
するものである。Each of the flip-flops which does not have a reset function and which constitutes the first and second shift registers 30 and 31 has an input terminal, an output terminal and a clock terminal, and when a clock pulse is input to the clock terminal. The data input to the input terminal is output from the output terminal and held.
第1のレジスタ30の出力データDOAはフリップフロップ3
3の入力端子に入力され、フリップフロップ33の出力デ
ータDOBは第2のレジスタ31の入力端子に入力され、第
2のレジスタ31の出力データDOCはマスクゲート34の一
方の入力端子に入力される。また、第1のレジスタ30、
フリップフロップ33、第2のレジスタ31、およびカウン
タ32のクロック端子には、共通のクロック信号CKが入力
される。さらに、カウンタ32の出力信号Cはフリップフ
ロップ33のリセット端子およびマスクゲート34の他方の
入力端子に入力される。The output data DO A of the first register 30 is the flip-flop 3
3, the output data DO B of the flip-flop 33 is input to the input terminal of the second register 31, and the output data DO C of the second register 31 is input to one input terminal of the mask gate 34. To be done. In addition, the first register 30,
The common clock signal CK is input to the clock terminals of the flip-flop 33, the second register 31, and the counter 32. Further, the output signal C of the counter 32 is input to the reset terminal of the flip-flop 33 and the other input terminal of the mask gate 34.
2m進カウンタ32は、クロック端子、リセット端子および
出力端子を有し、第3図に示すように、m個のフリップ
フロップ51と(m−1)個のインバータ52とにより構成
されている。この2m進カウンタ32は、「0」レベルのリ
セット信号▲▼が入力されると、以後2m個のクロッ
クパルスが入力されるまで「0」レベルの信号を出力
し、m個のクロックパルスが入力された後には「1」レ
ベルの信号を出力する。The 2m-ary counter 32 has a clock terminal, a reset terminal, and an output terminal, and is composed of m flip-flops 51 and (m-1) inverters 52, as shown in FIG. When the reset signal ▲ ▼ of “0” level is input, the 2m-adic counter 32 outputs the signal of “0” level until 2m clock pulses are input, and the m clock pulses are input. Then, a "1" level signal is output.
このシフトレジスタは、まずリセット信号▲▼が
「0」レベルとなると、2m個のクロックパルスが入力さ
れるまでカウンタ32の出力信号Cは「0」レベルを保
ち、フリップフロップ33は「0」レベルの信号を出力
し、マスクゲート34は「0」レベルの信号Yを出力す
る。この間、リセット直後にレジスタ30の入力端子に入
力されたデータDIがレジスタ30の2m段目のフリップフロ
ップまでシフトされており、2m個のクロックパルスが入
力されるとフリップフロップ33のリセット状態が解除さ
れ、また、(n−2m−1)<2mであるので、(n−2m−
1)段のシフトレジスタ31の各フリップフロップは、フ
リップフロップ33の「0」レベルの出力信号を保持する
ことになる。In this shift register, when the reset signal ▲ ▼ becomes "0" level, the output signal C of the counter 32 keeps "0" level and the flip-flop 33 becomes "0" level until 2m clock pulses are input. And the mask gate 34 outputs the signal Y of "0" level. During this time, the data DI input to the input terminal of the register 30 is shifted to the 2mth stage flip-flop of the register 30 immediately after reset, and the reset state of the flip-flop 33 is released when 2m clock pulses are input. Also, since (n-2m-1) <2m, (n-2m-
Each flip-flop of the 1-stage shift register 31 holds the “0” level output signal of the flip-flop 33.
(2m+1)個目のクロックパルスでフリップフロップ33
の「0」レベルの出力信号が第2のレジスタ31の初段の
フリップフロップにラッチされるとともに、第1のシフ
トレジスタ30の出力データDOAがフリップフロップ33に
ラッチされる。また、マスクゲート34からは第2のレジ
スタ31の出力データDOCが出力される。Flip-flop 33 at the (2m + 1) th clock pulse
The output signal of “0” level is latched by the first stage flip-flop of the second register 31, and the output data DO A of the first shift register 30 is latched by the flip-flop 33. Further, the output data DO C of the second register 31 is output from the mask gate 34.
以後、クロックパルスが入力されるごとに、第1のレジ
スタ30の入力端子からDIが入力されるとともに、フリッ
プフロップ33の出力データDOBが順次第2のレジスタ31
にシフトされてゆく。このようにして((2m+1)+
(n−2m−1))個、すなわちn個のクロックパルスが
入力されるまではマスクゲート34からは「0」レベルの
信号Yが出力されるが、n個のクロックパルスが入力さ
れた後は、リセット直後に第1のレジスタ30に入力され
たデータDIが順次出力されることになる。Thereafter, every time a clock pulse is input, DI is input from the input terminal of the first register 30 and the output data DO B of the flip-flop 33 is sequentially input to the second register 31.
Will be shifted to. In this way ((2m + 1) +
(N−2m−1)), that is, the mask gate 34 outputs a signal Y of “0” level until n clock pulses are input, but after n clock pulses are input. Immediately after reset, the data DI input to the first register 30 is sequentially output.
表に、従来のリセット機能付シフトレジスタとこの発明
によるリセット機能付シフトレジスタとの比較結果を示
している。The table shows the results of comparison between the conventional shift register with reset function and the shift register with reset function according to the present invention.
表に示すように、シフトレジスタの段数nが30程度の場
合は、この発明によるシフトレジスタは従来のシフトレ
ジスタに対し3%程度のゲート数削減となっているが、
段数nが多くなるにつれてその割合が増加し、n=512
で18%程度のゲート数削減となる。 As shown in the table, when the number of stages n of the shift register is about 30, the shift register according to the present invention reduces the number of gates by about 3% as compared with the conventional shift register.
The ratio increases as the number of stages n increases, n = 512
Will reduce the number of gates by about 18%.
また、リセット機能を有さないシフトレジスタに対する
ゲート数増加の割合も、この発明によるシフトレジスタ
においては段数nが大きくなるにつれて減少し、n=51
2では2%程度の増加となる。The rate of increase in the number of gates with respect to the shift register having no reset function also decreases as the number of stages n increases in the shift register according to the present invention, and n = 51.
With 2, the increase is about 2%.
なお、外部リセット端子の負荷についても、この発明の
シフトレジスタにおいてはリセット信号はカウンタにの
み入力されるだけであるので、従来のシフトレジスタに
比べて著しく減少する。The load on the external reset terminal is significantly reduced as compared with the conventional shift register because the reset signal is input only to the counter in the shift register of the present invention.
[発明の効果] 以上のようにこの発明によれば、レジスタ部を構成する
フリップフロップによればリセット機能を必要としない
ので、各フリップフロップごとにリセット機能に必要な
ゲート数を削減することができ、また、リセット信号は
カウンタ部に入力されるだけであるので、外部リセット
端子の負荷も増加しない。[Effects of the Invention] As described above, according to the present invention, since the flip-flops forming the register section do not require the reset function, it is possible to reduce the number of gates required for the reset function for each flip-flop. Moreover, since the reset signal is only input to the counter unit, the load on the external reset terminal does not increase.
さらに、この発明によれば、シフトレジスタの段数で比
較的多く構成しなければならない場合であっても、シフ
トレジスタが直列に接続された2つのレジスタ部に分割
されているため、レジスタにリセットをかけるためのカ
ウンタの段数は、シフトレジスタ全体の段数のおよそ半
分でよく、シフトレジスタのリセットに必要なゲート数
をさらに減少させることができる。Further, according to the present invention, even if a relatively large number of shift register stages are required, the shift register is divided into two serially connected register units, and therefore the registers can be reset. The number of stages of the counter for multiplying may be about half the number of stages of the entire shift register, and the number of gates required for resetting the shift register can be further reduced.
また、この発明によれば、シフトレジスタが2つのレジ
スタ部に分割されているため、リセットに要する時間も
短縮することができる。Further, according to the present invention, since the shift register is divided into two register portions, the time required for resetting can be shortened.
第1図はこの発明によるシフトレジスタの実施例を示す
図、第2図は従来のシフトレジスタを示す図、第3図は
2m進カウンタの構成を示す図である。 図において、30は第1のレジスタ、31は第2のレジス
タ、32はカウンタ、34はマスクゲート、33はリセット機
能付フリップフロップ、CKはクロック信号、DIは入力デ
ータ、DOは出力データ、Yは出力データ、▲▼はリ
セット信号、Cは出力信号を示す。FIG. 1 is a diagram showing an embodiment of a shift register according to the present invention, FIG. 2 is a diagram showing a conventional shift register, and FIG.
It is a figure which shows the structure of a 2m-ary counter. In the figure, 30 is a first register, 31 is a second register, 32 is a counter, 34 is a mask gate, 33 is a flip-flop with a reset function, CK is a clock signal, DI is input data, DO is output data, and Y is Indicates output data, ▲ ▼ indicates a reset signal, and C indicates an output signal.
Claims (1)
スタであって、 複数のフリップフロップが直列接続されてなり、クロッ
クパルスが入力されるごとに、初段のフリップフロップ
に入力される入力データ信号を順次後段のフリップフロ
ップに転送して最終段のフリップフロップから出力する
第1のレジスタ部と、 複数のフリップフロップが直列接続されてなり、クロッ
クパルスが入力されるごとに、初段のフリップフロップ
に入力される信号を順次後段のフリップフロップに転送
して最終段のフリップフロップから出力する第2のレジ
スタ部と、 リセット機能を有し、前記外部信号によりリセットされ
た後所定数のクロックパルスが入力された後に所定の信
号を出力するカウンタ部と、 前記カウンタ部からの前記所定の信号に応答して、前記
第1のレジスタ部の出力信号を前記第2のレジスタ部の
入力に導出する第1の出力制御部と、 前記カウンタ部からの前記所定の信号に応答して、前記
第2のレジスタ部の出力信号を出力データ信号として導
出する第2の出力制御部とを備えた、シフトレジスタ。1. A shift register which can be reset by an external signal, wherein a plurality of flip-flops are connected in series, and an input data signal input to a first-stage flip-flop is sequentially input every time a clock pulse is input. A first register unit that transfers to the flip-flop of the subsequent stage and outputs from the flip-flop of the final stage and a plurality of flip-flops are connected in series. Every time a clock pulse is input, it is input to the flip-flop of the first stage. A second register unit for sequentially transferring a signal to a flip-flop in the subsequent stage and outputting it from the flip-flop in the final stage, and having a reset function, and after being reset by the external signal, a predetermined number of clock pulses are input. A counter unit that outputs a predetermined signal afterwards, and in response to the predetermined signal from the counter unit. A first output control unit for deriving an output signal of the first register unit to an input of the second register unit, and the second register unit in response to the predetermined signal from the counter unit. A second output control unit for deriving the output signal of the above as an output data signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62132252A JPH0736280B2 (en) | 1987-05-28 | 1987-05-28 | Shift register |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62132252A JPH0736280B2 (en) | 1987-05-28 | 1987-05-28 | Shift register |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63298800A JPS63298800A (en) | 1988-12-06 |
| JPH0736280B2 true JPH0736280B2 (en) | 1995-04-19 |
Family
ID=15076929
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62132252A Expired - Fee Related JPH0736280B2 (en) | 1987-05-28 | 1987-05-28 | Shift register |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0736280B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS605499A (en) * | 1983-06-23 | 1985-01-12 | Fujitsu Ltd | Resetting system of register file |
-
1987
- 1987-05-28 JP JP62132252A patent/JPH0736280B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63298800A (en) | 1988-12-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| IE50879B1 (en) | A logic circuit | |
| US4692640A (en) | Majority circuit comprising binary counter | |
| JPH0736280B2 (en) | Shift register | |
| EP0527636B1 (en) | Counter circuit using Johnson-type counter and applied circuit including the same | |
| GB1363707A (en) | Synchronous buffer unit | |
| US5337050A (en) | Serial-to-parallel converter circuit | |
| JPH04351118A (en) | Counter circuit | |
| JPH0683066B2 (en) | Counter circuit | |
| US4581751A (en) | Reversible shift register | |
| JP2690516B2 (en) | Ring counter | |
| JP2984429B2 (en) | Semiconductor integrated circuit | |
| JPH02181518A (en) | Rink counter circuit | |
| JP2643470B2 (en) | Synchronous counter | |
| JPS62229594A (en) | Data idle area detection circuit for fifo circuit | |
| KR930007789Y1 (en) | System reset prevent circuit though glitch | |
| JPS6390236A (en) | Alarm circuit for degradation of error rate | |
| JPH0628151A (en) | Parallel latch circuit for serial data | |
| JPH04243316A (en) | Start timing setting changeover system for pulse signal | |
| JPS6339938B2 (en) | ||
| JPH1013216A (en) | Counting device | |
| JPH034933B2 (en) | ||
| JPS6013527B2 (en) | counter circuit | |
| JPH0327463A (en) | Data transfer circuit | |
| JPH02201538A (en) | Counter | |
| JPH0758321B2 (en) | Counting circuit test method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |