JPH0656953B2 - Digital circuit - Google Patents
Digital circuitInfo
- Publication number
- JPH0656953B2 JPH0656953B2 JP62149374A JP14937487A JPH0656953B2 JP H0656953 B2 JPH0656953 B2 JP H0656953B2 JP 62149374 A JP62149374 A JP 62149374A JP 14937487 A JP14937487 A JP 14937487A JP H0656953 B2 JPH0656953 B2 JP H0656953B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- mode
- data
- flip
- clock
- 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 - Lifetime
Links
- 239000013256 coordination polymer Substances 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 101100329504 Mus musculus Csnka2ip gene Proteins 0.000 description 5
- 239000000470 constituent Substances 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Shift Register Type Memory (AREA)
Description
【発明の詳細な説明】 (イ)産業上の利用分野 本発明はデジタル回路に関するものであり、更に詳しく
言えばカウンタ動作,シリアル入力シフトレジスタ動作
およびパラレル入出力シフトレジスタ動作を少ない回路
素子数で実現するデジタル回路の構成に関するものであ
る。The present invention relates to a digital circuit, and more specifically, to counter operation, serial input shift register operation, and parallel input / output shift register operation with a small number of circuit elements. The present invention relates to a configuration of a realized digital circuit.
(ロ)従来の技術 デジタル回路を必要に応じてカウンタとして動作させた
り、あるいはシリアル入出力又はパラレル入出力シフト
レジスタとして動作させる場合、該回路の構成は複雑な
ものとなっていた。(B) Conventional Technology When a digital circuit is operated as a counter or as a serial input / output or parallel input / output shift register as needed, the configuration of the circuit is complicated.
第5図はこのような機能を備えるデジタル回路のブロッ
ク図である。図において、(1)はトグル型フリップフロ
ップ回路であり、n個縦続接続されてnビットカウンタ
を構成している。JはJ入力であり、プリセットイネー
ブル入力(PE)に入力するクロック(CLK2)によ
り制御されて各ビットのカウントを初期設定する。なお
カウントはT入力に入力するクロック(CLK1)に同
期して行われる。第6図(a)はトグル型フリップフロッ
プ回路(1)の回路構成を示す図である。FIG. 5 is a block diagram of a digital circuit having such a function. In the figure, (1) is a toggle-type flip-flop circuit, which is connected in cascade to form an n-bit counter. J is a J input, which is controlled by the clock (CLK2) input to the preset enable input (PE) to initialize the count of each bit. The counting is performed in synchronization with the clock (CLK1) input to the T input. FIG. 6 (a) is a diagram showing the circuit configuration of the toggle flip-flop circuit (1).
(2)はD型フリップフロップ回路であり、n個縦続接続
されてnビットシフトレジスタを構成している。P/S
入力はパラレルモードかシリアルモードかを選択する制
御入力であり、パラレルモードのときにはPD入力から
のデータ入力を許容し、シリアルモードのときにはSD
入力からのデータ入力を許容する。レジスタはクロック
(CLK3)により動作する。(2) is a D-type flip-flop circuit, which is connected in cascade to form an n-bit shift register. P / S
The input is a control input for selecting the parallel mode or the serial mode. In the parallel mode, data input from the PD input is permitted, and in the serial mode, SD is input.
Allow data input from input. The register operates by the clock (CLK3).
なお、PIo〜PInはカウンタ側に入力するパラレル
データ,POo〜POnはカウンタ側から出力するパラ
レルデータ,ISELは外部から入力するPIo〜PI
nか又はシフトレジスタの出力データかを選択する制御
信号,OPEはレジスタにシリアルデータを入力するか
又はレジスタからシリアルデータを出力するかを選択す
る制御信号である。第6図(b)はD型フリップフロップ
回路(2)の回路構成を示す図である。PI o to PIn are parallel data input to the counter side, PO o to POn are parallel data output from the counter side, and ISEL is PI o to PI input from the outside.
n is a control signal for selecting n or shift register output data, and OPE is a control signal for selecting serial data input to the register or serial data output from the register. FIG. 6 (b) is a diagram showing the circuit configuration of the D-type flip-flop circuit (2).
(ハ)発明が解決しようとする問題点 ところで、従来例の回路によればカウンタ回路とシフト
レジスタ回路とを単に寄せ集めた構成のため、集積回路
化した場合にも多くの素子数を必要とし、形成面積が大
きくなるという問題がある。(C) Problems to be Solved by the Invention By the way, according to the circuit of the conventional example, since the counter circuit and the shift register circuit are simply gathered together, a large number of elements are required even when integrated into a circuit. However, there is a problem that the formation area becomes large.
本発明はかかる従来の問題に鑑みて創作されたものであ
り、カウンタ機能およびシフトレジスタ機能を兼ね備え
た構成素子数の少ないデジタル回路の提供を目的とす
る。The present invention was created in view of the above conventional problems, and an object of the present invention is to provide a digital circuit having both a counter function and a shift register function and a small number of constituent elements.
(ニ)問題点を解決するための手段 本発明のデジタル回路は複数個のマスター・スレーブ型
フリップフロップ回路を有し、かつ前段のフリップフロ
ップ回路の出力は次段のクロック入力(CKT)に接
続されている。すなわち縦続接続されている。(D) Means for Solving the Problems The digital circuit of the present invention has a plurality of master-slave flip-flop circuits, and the output of the flip-flop circuit of the previous stage is connected to the clock input (CKT) of the next stage. Has been done. That is, they are connected in cascade.
また各フリップフロップ回路はトグル動作用の第1のク
ロック入力(CKT)とシフト動作用の第2のクロック
入力(CKD)とトグル動作制御入力(TGL)とシリ
アルデータ入力(SD)とシリアルデータ選択制御入力
(ESD)とパラレルデータ入力(PD)とパラレルデ
ータ選択制御入力(EPD)とを備えている。更に、ト
グル動作制御入力がアクティブになるとき、各フリップ
フロップ回路がトグル動作してカウンタモードになり、
シリアルデータ選択制御入力がアクティブになるとき、
各フリップフロップ回路がシフト動作をすると共にシリ
アルデータ入力が選択されてシフトレジスタモードにな
り、また、パラレルデータ選択制御入力がアクティブの
とき各フリップフロップ回路がシフト動作をすると共に
パラレルデータが選択されてパラレルロードモードにな
るように制御する論理回路を有している。Each flip-flop circuit has a first clock input (CKT) for toggle operation, a second clock input (CKD) for shift operation, a toggle operation control input (TGL), serial data input (SD), and serial data selection. It has a control input (ESD), a parallel data input (PD) and a parallel data selection control input (EPD). Further, when the toggle operation control input becomes active, each flip-flop circuit toggles to enter the counter mode,
When the serial data selection control input becomes active,
When each flip-flop circuit performs a shift operation and serial data input is selected to enter the shift register mode, when each parallel data selection control input is active, each flip-flop circuit performs a shift operation and parallel data is selected. It has a logic circuit for controlling the parallel load mode.
(ホ)作用 トグル動作制御入力がアクティブになると、各段の論理
回路は各フリップフロップ回路の各々の出力を各々の
フリップフロップ回路のデータ入力に帰還をかける。こ
の後、第1のクロック入力(CKT)が入力すると各フ
リップフロップ回路はトグル動作して該クロックの数を
カウントする。(E) Action When the toggle operation control input becomes active, the logic circuit of each stage feeds back each output of each flip-flop circuit to the data input of each flip-flop circuit. After that, when the first clock input (CKT) is input, each flip-flop circuit toggles to count the number of clocks.
シリアルデータ選択制御入力がアクティブになると、論
理回路は初段のフリップフロップ回路のデータ入力から
データが入力することを可能にする。この後、第2のク
ロック入力(CKD)が入力すると、該クロックに同期
して各フリップフロップ回路のデータは順次シフトす
る。When the serial data selection control input is activated, the logic circuit allows data to be input from the data input of the first stage flip-flop circuit. After that, when the second clock input (CKD) is input, the data of each flip-flop circuit is sequentially shifted in synchronization with the clock.
パラレルデータ選択制御入力がアクティブになると、論
理回路は各フリップフロップ回路に対しデータがパラレ
ルに入力して初期設定することを可能とする。この後、
モード切換えることにより、カウンタモードとして、あ
るいはシフトレジスタモードとして動作することができ
る。When the parallel data selection control input is activated, the logic circuit allows data to be input in parallel to each flip-flop circuit for initialization. After this,
By switching the mode, it is possible to operate as the counter mode or the shift register mode.
(ヘ)実施例 次に図を参照しながら本発明の実施例について説明す
る。第1図は本発明の実施例に係るカウンタ機能および
シフトレジスタ機能を備えるデジタル回路の構成ブロッ
ク図である。(3)はその基本構成をなすマスター・スレ
ーブ型のフリップフロップ回路である。第2図にはその
フリップフロップ回路(3)の詳細な等価回路図を示して
いる。CKTはトグル動作用の第1のクロック入力であ
る。このCKT入力は、初段では第1のクロック信号
(CLK1)が入力し2段以降では前段の力に接続さ
れている。TGLはフリップフロップ回路(3)がトグル
動作するように制御するトグル動作制御入力であり、カ
ウンタモード制御信号(CTMOD)が入力する。(F) Example Next, an example of the present invention will be described with reference to the drawings. FIG. 1 is a configuration block diagram of a digital circuit having a counter function and a shift register function according to an embodiment of the present invention. (3) is a master-slave type flip-flop circuit that forms the basic configuration. FIG. 2 shows a detailed equivalent circuit diagram of the flip-flop circuit (3). CKT is the first clock input for toggle operation. This CKT input receives the first clock signal (CLK1) at the first stage and is connected to the force at the previous stage after the second stage. TGL is a toggle operation control input for controlling the flip-flop circuit (3) to perform a toggle operation, and receives a counter mode control signal (CTMOD).
CKDはシフトレジスタ動作用の第2のクロック入力を
示している。各フリップフロップ回路のCKD入力には
パラレルに第2のクロック信号(CLK2)が入力して
いる。CKD represents the second clock input for shift register operation. The second clock signal (CLK2) is input in parallel to the CKD input of each flip-flop circuit.
ESDはシリアルデータ選択制御入力であり、シフトレ
ジスタモード制御信号(SRMOD)が入力する。SD
はシリアルデータ入力であり、初段のフリップフロップ
(3)のSDにはシリアルデータ入出力(SDATA)が
接続され、2段以降のフリップフロップ(3)のSDには
前段のフリップフロップ(3)のQ出力が接続される。シ
フトレジスタモードの場合には、第2のクロック信号
(CLK2)に同期してシリアルデータが初段のフリッ
プフロップ(3)のシリアルデータ入力SDに供給され
る。EPDはパラレルデータ選択制御入力であり、パラ
レルロードモード制御信号(PLMOD)が入力する。
PDはパラレルデータ入力であり、パラレルロードモー
ドのとき、第2のクロック信号(CLK2)に同期して
パラレルデータ信号(PIo〜PIn)が各フリップフ
ロップ回路(3)に並列に入力し、これを初期設定する。ESD is a serial data selection control input, and receives the shift register mode control signal (SRMOD). SD
Is the serial data input and the first stage flip-flop
Serial data input / output (SDATA) is connected to SD of (3), and Q output of the flip-flop (3) of the previous stage is connected to SD of the flip-flops (3) of the second and subsequent stages. In the shift register mode, serial data is supplied to the serial data input SD of the first-stage flip-flop (3) in synchronization with the second clock signal (CLK2). EPD is a parallel data selection control input and receives a parallel load mode control signal (PLMOD).
PD is a parallel data input, and in the parallel load mode, the parallel data signals (PI o to PIn) are input in parallel to each flip-flop circuit (3) in synchronization with the second clock signal (CLK2), Is initialized.
なお、OPEは入出力制御用バッファ(4)を制御するシ
リアル出力イネーブル信号であり、この信号がアクティ
ブのとき最終段のフリップフロップ回路(3)のQ出力か
らデータが順次シリアルに入出力制御用バッファ(4)を
介してシリアルデータ入出力(SDATA)に出力され
ると共に、初段のフリップフロップ回路(3)のシリアル
データ入力(SD)に供給される。また、POo〜PO
nは、各フリップフロップ(3)のQ出力から並列にデー
タを出力するパラレルデータ出力信号である。OPE is a serial output enable signal for controlling the input / output control buffer (4), and when this signal is active, data is sequentially serially input / output controlled from the Q output of the final stage flip-flop circuit (3). The data is output to the serial data input / output (SDATA) via the buffer (4) and is also supplied to the serial data input (SD) of the first stage flip-flop circuit (3). Also, PO o ~ PO
n is a parallel data output signal for outputting data in parallel from the Q output of each flip-flop (3).
第2図に示すように、本発明の実施例回路の基本構成を
なすフリップフロップ回路(3)は、マスター部(5)とスレ
ーブ部(6)とを備えるマスター・スレーブ型のフリップ
フロップ回路であり、また各制御信号(TGL,ES
D,EPD),各データ信号(SD,PD)および各ク
ロック信号(CKT,CKD)を動作モードに応じ適宜
アクティブにする論理回路(7),(8)を備えている。As shown in FIG. 2, the flip-flop circuit (3) which is the basic configuration of the embodiment circuit of the present invention is a master-slave type flip-flop circuit including a master section (5) and a slave section (6). Yes, each control signal (TGL, ES
D, EPD), each data signal (SD, PD) and each clock signal (CKT, CKD) are appropriately activated according to the operation mode, and logic circuits (7), (8) are provided.
第1図に示された回路において、動作モードの制御は、
カウンタモード制御信号(CTMOD)、シフトレジス
タモード制御信号(SRMOD)パラレルロードモード
制御信号(PLMOD)によって行われるが、各フリッ
プフロップ(3)の動作モード制御は、各制御信号(CT
MOD、SRMOD、PLMOD)が各々印加される制
御入力(TGL、ESD、EPD)によって行われる。
トグル動作制御入力(TGL)がアクティブ、即ち、
“1”になると、各フリップフロップ回路(3)の出力
が各々のデータ入力に帰還され、また、クロックは第1
のクロック入力(CKT1)が選択され、TFFの構成
になる(以下この状態をTFFモードと言う)。一方、
トグル動作制御入力(TGL)が“0”になると、出
力の帰還ループは論理回路(7)において遮断され、ま
た、論理回路(8)において、第2のクロック入力(CK
D)が選択され、DFFの構成になる(以下この状態を
DFFモードと言う)。ここで、フリップフロップ回路
(3)のモード切換において、モード切換前のクロック信
号の状態とモード切換後のクロック信号の状態によりフ
リップフロップ回路(3)の出力状態が変化する場合があ
る。従って、フリップフロップ回路(3)のモード切換は
一定のルールに従う必要がある。In the circuit shown in FIG. 1, the control of the operation mode is
The counter mode control signal (CTMOD), the shift register mode control signal (SRMOD) and the parallel load mode control signal (PLMOD) are used. The operation mode control of each flip-flop (3) is performed by each control signal (CT
MOD, SRMOD, PLMOD) are applied by the respective control inputs (TGL, ESD, EPD).
Toggle motion control input (TGL) is active, ie
When it becomes "1", the output of each flip-flop circuit (3) is fed back to each data input, and the clock is the first
The clock input (CKT1) is selected and the TFF configuration is realized (this state is hereinafter referred to as TFF mode). on the other hand,
When the toggle operation control input (TGL) becomes "0", the output feedback loop is cut off in the logic circuit (7), and the second clock input (CK
D) is selected, and the DFF configuration is obtained (hereinafter, this state is referred to as the DFF mode). Where the flip-flop circuit
In the mode switching of (3), the output state of the flip-flop circuit (3) may change depending on the state of the clock signal before the mode switching and the state of the clock signal after the mode switching. Therefore, the mode switching of the flip-flop circuit (3) needs to follow a certain rule.
第3図はどのような場合に出力状態が変化するかを説明
する図であり、モード切換の状態、及び、切換前後のク
ロック信号(CP)の状態の相違に従って場合分けし、
出力状態が保持されるかどうか検討した結果を示してい
る。FIG. 3 is a diagram for explaining in what case the output state changes, and the cases are classified according to the state of the mode switching and the state of the clock signal (CP) before and after the switching,
The result of examining whether the output state is retained is shown.
DFFモードからTFFモードに切換える時、切換前が
CKD=CP=“1”である場合、マスター部(5)はデ
ータを保持する状態で、その出力はトランスミッション
ゲートを通り抜けてスレーブ部(6)の出力に達してい
る。この場合、切換後にCKT=CP=“1”であると
切換後において、マスター部(5)及びスレーブ部(6)の状
態は変化せず、データは保持される。また、切換後がC
KT=CP=“0”であると、スレーブ部(6)が保持状
態になり、切換後マスター部(5)から出力されたデータ
はスレーブ部(6)において保持されるため、データの変
化はない。一方、切換前にCKD=CP=“0”の場
合、スレーブ部(6)はデータの保持状態にあり、これを
出力している状態にある。この場合、切換後にCKT=
CP=“1”であると、マスター部(5)がデータの保持
状態になり、このデータがスレーブ部(6)から出力され
る状態になるため、切換前にスレーブ部(6)に保持され
ていたデータは変化することになる。一方、切換後にC
KT=CP=“0”であると、スレーブ部(6)の保持状
態は変わらないため、データは保持されることになる。When switching from the DFF mode to the TFF mode, if CKD = CP = “1” before the switching, the master section (5) retains the data, and its output passes through the transmission gate and goes to the slave section (6). The output has been reached. In this case, if CKT = CP = “1” after switching, the states of the master unit (5) and the slave unit (6) do not change after switching, and the data is retained. After switching, C
When KT = CP = “0”, the slave unit (6) is in a holding state, and the data output from the master unit (5) after switching is held in the slave unit (6), so that there is no change in data. Absent. On the other hand, if CKD = CP = “0” before switching, the slave unit (6) is in a data holding state and is outputting the data. In this case, CKT =
When CP = "1", the master section (5) is in a data holding state and this data is output from the slave section (6), so it is held in the slave section (6) before switching. The existing data will change. On the other hand, C after switching
When KT = CP = “0”, the holding state of the slave unit (6) does not change, so that the data is held.
次に、フリップフロップ回路(3)をTFFモードからD
FFモードに切換える時、切換前にCKT=CP=
“1”の場合、マスター部(5)はデータの保持状態にあ
り、その出力はスレーブ部(6)から出力されている。こ
の場合、切換後にCKD=CP=“1”であると、マス
ター部(5)及びスレーブ部(6)の状態は変わらずデータの
変化はない。また、切換後にCKT=CP=“0”であ
ると、スレーブ部(6)がデータの保持状態になり、切換
前にマスター部(5)から出力されたデータを保持するた
め、データは変化しない。一方、切換前にCKT=CP
=“0”の場合、スレーブ部(6)がデータの保持状態に
あり、このデータが出力された状態にある。この場合、
切換後にCKD=CP=“1”であると、マスター部
(5)が保持状態になり、その出力がスレーブ部(6)を通し
て出力される状態になるため、スレーブ部(6)に保持さ
れたデータが変化してしまう。また、切換後にCKD=
CP=“0”であると、スレーブ部(6)が保持状態にな
るため、切換前と変わらずデータは変化しない。Next, set the flip-flop circuit (3) from the TFF mode to D
When switching to FF mode, CKT = CP = before switching
In the case of "1", the master section (5) is in a data holding state, and its output is output from the slave section (6). In this case, if CKD = CP = “1” after switching, the states of the master unit (5) and the slave unit (6) do not change and the data does not change. Further, if CKT = CP = “0” after switching, the slave unit (6) is in a data holding state and holds the data output from the master unit (5) before switching, so the data does not change. . On the other hand, CKT = CP before switching
When = "0", the slave unit (6) is in a data holding state and this data is being output. in this case,
If CKD = CP = “1” after switching, the master unit
Since (5) becomes a holding state and its output is output through the slave section (6), the data held in the slave section (6) changes. After switching, CKD =
When CP = "0", the slave unit (6) is held, so that the data does not change as before switching.
このように第3図に示されるように、切変前後でデータ
が変化する可能性のあるのは、DFFモードからTFF
モードに切換える時、CKD=“0”からCKT=
“1”になる場合と、TFFモードからDFFモードに
切換える時、CKT=“0”からCKD=“1”になる
場合である。従って、動作モードの切換時には、第1の
クロック入力CKTと第2のクロック入力CKDの信号
レベルを注意しなければならない。As shown in FIG. 3, there is a possibility that the data may change before and after the change from the DFF mode to the TFF.
When switching to the mode, from CKD = "0" to CKT =
There are a case where it becomes "1" and a case where CKT = "0" changes to CKD = "1" when switching from the TFF mode to the DFF mode. Therefore, when switching the operation mode, attention must be paid to the signal levels of the first clock input CKT and the second clock input CKD.
ところで、CKTは第1図に示される如く、前段のフリ
ップフロップ回路(3)の出力に接続されるため、各段
のフリップフロップ回路(3)のデータの内容、即ち、カ
ウンタモードで動作したときの計数値やパラレルロード
モードによってセットされたデータの内容によってCK
Tのレベル状態は変わり、動作モードの切換前後で特定
できない。一方、CKDはデータのシフト制御するた
め、あるいは、パラレルデータのロードを制御するため
のクロック信号であるから、CKDにクロックを供給す
る側によってレベルを決定できるものである。従って、
第3図においてCKDに注目すれば、DFFモードから
TFFモードに切換える前後においてCKDを“1”に
しておけばデータの変化がなく、また、TFFモードか
らDFFモードに切換える前後においてCKDを“0”
にしておけばデータの変化がないことがわかる。By the way, since the CKT is connected to the output of the flip-flop circuit (3) at the preceding stage as shown in FIG. 1, the contents of the data of the flip-flop circuit (3) at each stage, that is, when operating in the counter mode. CK depending on the count value of and the data set by the parallel load mode
The level state of T changes and cannot be specified before and after the switching of the operation mode. On the other hand, CKD is a clock signal for controlling the shift of data or for controlling the loading of parallel data, so that the level can be determined by the side supplying the clock to CKD. Therefore,
Focusing on CKD in FIG. 3, if CKD is set to “1” before and after switching from the DFF mode to the TFF mode, there is no change in data, and before and after switching from the TFF mode to the DFF mode, CKD is set to “0”.
If it is set to, it can be seen that the data does not change.
このことから、第1図において、カウンタモード制御信
号(CTMOD)を“0”から“1”に切換える場合、
即ち、カウンタモードに切換える場合には、第2のクロ
ック信号(CLK2)のレベルを“1”に保持し、ま
た、カウンタモード制御信号(CTMOD)を“1”か
ら“0”に切換える場合には、第2のクロック信号(C
LK2)のレベルを“0”に保持すればよい。Therefore, in FIG. 1, when the counter mode control signal (CTMOD) is switched from "0" to "1",
That is, when switching to the counter mode, the level of the second clock signal (CLK2) is held at "1", and when switching the counter mode control signal (CTMOD) from "1" to "0". , The second clock signal (C
The level of LK2) may be held at "0".
次に第1図の本発明の実施例回路の動作について、第4
図のタイミングチャートを参照しながら説明する。Next, regarding the operation of the embodiment circuit of the present invention shown in FIG.
This will be described with reference to the timing chart in the figure.
まずカウンタモードでは、CTMOD信号=“1”とな
る。これにより各フリップフロップ回路のQ出力はマス
ター部(5)のデータ入力に接続される。このため各フリ
ップフロップ回路(3)は、CLK1信号によりトグル動
作して該CLK1信号のパルスを計数する。First, in the counter mode, the CTMOD signal = “1”. As a result, the Q output of each flip-flop circuit is connected to the data input of the master section (5). Therefore, each flip-flop circuit (3) toggles by the CLK1 signal and counts the pulses of the CLK1 signal.
次にPLMOD信号=“1”になると、カウンタモード
からパラレルロードモードに切換わる。なおモード切換
前後ではCLK2=“0”に設定されている。次いでC
LK2信号が“1”になるとき、PIo〜PIn信号が
入力してパラレルデータがロードされる。Next, when the PLMOD signal becomes "1", the counter mode is switched to the parallel load mode. Before and after the mode switching, CLK2 = “0” is set. Then C
When the LK2 signal becomes “1”, the PI o to PIn signals are input and parallel data is loaded.
次にCTMOD信号=“1”になると、パラレルロード
モードからカウンタモードに切換わる。なお、モード切
換前後ではCKT2=“1”に設定されている。この
後、CKT1信号のパルス数を、パラレルデータに加算
することができる。Next, when the CTMOD signal becomes "1", the parallel load mode is switched to the counter mode. Note that CKT2 is set to "1" before and after the mode switching. After that, the number of pulses of the CKT1 signal can be added to the parallel data.
次いでSRMOD信号=“1”になると、カウンタモー
ドからシフトレジスタモードに切換わる。なお、モード
切換前後ではCKT2=“0”に設定されている。この
後、CKT2信号パルスに同期してフリップフロップ回
路のデータは順次、シフトされる。Next, when the SRMOD signal becomes "1", the counter mode is switched to the shift register mode. Note that CKT2 is set to "0" before and after the mode switching. After that, the data in the flip-flop circuit is sequentially shifted in synchronization with the CKT2 signal pulse.
次いでPLMOD信号=“1”になると、再びパラレル
ロードモードになる。次にCLK2信号が“1”になる
とき、PIo〜PIn信号が入力してパラレルデータが
ロードされる。Next, when the PLMOD signal becomes "1", the parallel load mode is set again. Next, when the CLK2 signal becomes “1”, the PI o to PIn signals are input and the parallel data is loaded.
次にSRMOD信号=“1”になると、シフトレジスタ
モードに切換わる。この後、CKT2信号パルスに同期
してパラレルロードデータは順次、シフトされる。Next, when the SRMOD signal becomes "1", the mode is switched to the shift register mode. After that, the parallel load data is sequentially shifted in synchronization with the CKT2 signal pulse.
次いでCTMOD信号=“1”になるとシフトレジスタ
モードからカウンタモードに切換わる。なお、モード切
換前後ではCKT2=“1”に設定されている。この
後、CLK1信号パルスを計数する。Next, when the CTMOD signal becomes "1", the shift register mode is switched to the counter mode. Note that CKT2 is set to "1" before and after the mode switching. Then, the CLK1 signal pulse is counted.
以上説明したように、本発明の実施例回路によれば、カ
ウンタ機能およびシフトレシスタ機能の両方を兼ねたデ
ジタル回路を少ない構成素子で実現することが可能とな
る。As described above, according to the embodiment circuit of the present invention, it is possible to realize a digital circuit having both a counter function and a shift register function with a small number of constituent elements.
(ト)発明の効果 以上説明したように、本発明によれば従来の回路に比べ
て極めて少ない素子数でカウンタ機能およびシフトレジ
スタ機能を備えるデジタル回路を実現することができ
る。これにより集積回路を、より高集積化することが可
能となる。(G) Effect of the Invention As described above, according to the present invention, it is possible to realize a digital circuit having a counter function and a shift register function with an extremely small number of elements as compared with a conventional circuit. As a result, the integrated circuit can be highly integrated.
第1図は本発明の実施例に係るデジタル回路の構成を示
すブロック図、第2図は第1図の基本構成をなすフリッ
プフロップ回路の等価回路図、第3図は本発明の実施例
回路の動作モードの切換えを説明する図、第4図は第1
図のデジタル回路の動作を説明するためのタイミングチ
ャート、第5図は従来例の構成ブロック図、第6図は第
5図の基本構成をなすフリップフロップ回路の等価回路
図である。 (1),(2)……従来構成のフリップフロップ回路、(3)…
…本発明の構成に係るフリップフロップ回路、(4)……
入出力制御用バッファ、(5)……マスター部、(6)……ス
レーブ部、(7),(8)……論理回路、CKT……トグル動
作用の第1のクロック入力、CLK1……第1のクロッ
ク信号、TGL……トグル動作制御入力、CTMOD…
…カウンタモード制御信号、CKD……シフトレジスタ
動作用の第2のクロック入力、CLK2……第2のクロ
ック信号、SD……シリアルデータ入力、SDATA…
…シリアルデータ入出力信号、ESD……シリアルデー
タ選択制御入力、SRMOD……シフトレジスタモード
制御信号、PD……パラレルデータ入力、PIo〜PI
n……パラレルデータ信号、EPD……パラレルデータ
選択制御入力、PLMOD……パラレルロードモード制
御信号、OPE……シリアル出力イネーブル信号、PO
o〜POn……パラレルデータ出力信号。FIG. 1 is a block diagram showing a configuration of a digital circuit according to an embodiment of the present invention, FIG. 2 is an equivalent circuit diagram of a flip-flop circuit forming the basic configuration of FIG. 1, and FIG. 3 is an embodiment circuit of the present invention. FIG. 4 is a diagram for explaining the switching of the operation modes of FIG.
5 is a timing chart for explaining the operation of the digital circuit shown in FIG. 5, FIG. 5 is a configuration block diagram of a conventional example, and FIG. 6 is an equivalent circuit diagram of a flip-flop circuit forming the basic configuration of FIG. (1), (2) …… Flip-flop circuit with conventional configuration, (3)…
... Flip-flop circuit according to the configuration of the present invention, (4) ...
Input / output control buffer, (5) ... Master section, (6) ... Slave section, (7), (8) ... Logic circuit, CKT ... First clock input for toggle operation, CLK1 ... First clock signal, TGL ... Toggle operation control input, CTMOD ...
... Counter mode control signal, CKD ... Second clock input for shift register operation, CLK2 ... Second clock signal, SD ... Serial data input, SDATA ...
... Serial data input / output signal, ESD ... Serial data selection control input, SRMOD ... Shift register mode control signal, PD ... Parallel data input, PI o to PI
n: parallel data signal, EPD: parallel data selection control input, PLMOD: parallel load mode control signal, OPE: serial output enable signal, PO
o ~ POn: Parallel data output signal.
Claims (1)
L)に基づき、前記スレーブ部の出力を前記マスター
部のデータ入力に供給すると共にトグル動作用の第1の
クロック入力(CKT)を前記マスター部及びスレーブ
部のクロックとして供給し、D−FFモードを指示する
トグル動作制御入力(TGL)に従ってシフト動作用の
第2のクロック入力(CKD)を前記マスター部及びス
レーブ部のクロックとして供給し、且つ、前記D−FF
モード時にシフトレジスタモードを指示するシリアルデ
ータ選択制御入力(ESD)に基づきシリアルデータ入
力(SD)を前記マスター部のデータ入力に供給し、パ
ラレルデータロードモードを指示するパラレルデータ選
択制御入力(EPD)に基づきパラレルデータ入力(P
D)を前記マスター部のデータ入力に供給する論理回路
と、 を有するフリップフロップ回路を複数備え、 前記トグル動作制御入力、シリアルデータ選択制御入
力、及び、シリアルデータ選択制御入力に各々対応する
制御信号を共通に印加し、前記シリアルデータ入力を各
々前段のQ出力に接続すると共に前記第1のクロック入
力を各々前段の出力に接続し、前記第2のクロック入
力には共通にシフトクロックを印加することによって、
前記各フリップフロップ回路をカウンタモード、シフト
レジスタモード、及び、パラレルデータロードモードと
して動作させ、前記トグル動作制御入力の信号レベルの
切換時に前記第2のクロック入力の信号レベルを第1又
は第2のレベルに固定することを特徴とするデジタル回
路。1. A master unit and a slave unit, and a toggle operation control input (TG) for instructing a T-FF mode.
L), the output of the slave unit is supplied to the data input of the master unit and the first clock input (CKT) for the toggle operation is supplied as the clock of the master unit and the slave unit, and the D-FF mode is set. A second clock input (CKD) for shift operation according to a toggle operation control input (TGL) for instructing the D-FF.
A parallel data selection control input (EPD) that supplies a serial data input (SD) to the data input of the master unit based on a serial data selection control input (ESD) that indicates a shift register mode in the mode, and indicates a parallel data load mode. Parallel data input (P
A plurality of flip-flop circuits each having a logic circuit for supplying D) to the data input of the master section, and a control signal corresponding to each of the toggle operation control input, the serial data selection control input, and the serial data selection control input. , The serial data input is connected to the Q output of the preceding stage, the first clock input is connected to the output of the preceding stage, and the shift clock is commonly applied to the second clock input. By
Each of the flip-flop circuits is operated in a counter mode, a shift register mode, and a parallel data load mode, and the signal level of the second clock input is set to the first or second when the signal level of the toggle operation control input is switched. A digital circuit characterized by being fixed at a level.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62149374A JPH0656953B2 (en) | 1987-06-16 | 1987-06-16 | Digital circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62149374A JPH0656953B2 (en) | 1987-06-16 | 1987-06-16 | Digital circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63312722A JPS63312722A (en) | 1988-12-21 |
| JPH0656953B2 true JPH0656953B2 (en) | 1994-07-27 |
Family
ID=15473735
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62149374A Expired - Lifetime JPH0656953B2 (en) | 1987-06-16 | 1987-06-16 | Digital circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0656953B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE4135318C1 (en) * | 1991-10-25 | 1992-11-26 | Siemens Ag, 8000 Muenchen, De |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS4871178A (en) * | 1971-12-24 | 1973-09-26 | ||
| JPS52104047A (en) * | 1976-02-27 | 1977-09-01 | Citizen Watch Co Ltd | Counter possible to shift |
| JPS5822458A (en) * | 1981-08-03 | 1983-02-09 | Toshiba Corp | Integrated circuit |
-
1987
- 1987-06-16 JP JP62149374A patent/JPH0656953B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63312722A (en) | 1988-12-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH01129616A (en) | Format converting circut | |
| US5341031A (en) | Stable high speed clock generator | |
| US4873456A (en) | High speed state machine | |
| US20110298517A1 (en) | Master-slave flip-flop circuit | |
| EP0067285A2 (en) | Self-initializing ring counter | |
| JP2504568B2 (en) | Signal generation circuit | |
| US5502409A (en) | Clock switcher circuit | |
| US6628660B1 (en) | Finite state machine with associated memory | |
| JPH0656953B2 (en) | Digital circuit | |
| KR20000070091A (en) | Electronic circuit with dual edge triggered flip-flop | |
| EP0524642A2 (en) | Register control circuit for initialization of registers | |
| JP2002271177A (en) | Programmable state machine interface | |
| EP1233517B1 (en) | A system for rapid configuration of a programmable logic device | |
| US5337050A (en) | Serial-to-parallel converter circuit | |
| JPH11340819A (en) | Phase-locked loop circuit | |
| JP2690516B2 (en) | Ring counter | |
| US5349620A (en) | Timer access control apparatus | |
| JPH1155081A (en) | Flip-flop circuit and circuit design system | |
| GB2243008A (en) | Logic array or state machine | |
| US6591371B1 (en) | System for counting a number of clock cycles such that a count signal is diverted from a cascaded series of write latches to a cascaded series of erase latches | |
| JP2621205B2 (en) | Divider circuit | |
| JPH07225631A (en) | Clock switching method and its circuit | |
| JPH06311025A (en) | Up-down counter circuit | |
| JP2514989B2 (en) | Sequential circuit | |
| JPH0698258A (en) | Cross point device and cross point matrix |