JPH06332702A - State register constitution system - Google Patents
State register constitution systemInfo
- Publication number
- JPH06332702A JPH06332702A JP5118548A JP11854893A JPH06332702A JP H06332702 A JPH06332702 A JP H06332702A JP 5118548 A JP5118548 A JP 5118548A JP 11854893 A JP11854893 A JP 11854893A JP H06332702 A JPH06332702 A JP H06332702A
- Authority
- JP
- Japan
- Prior art keywords
- stored
- state
- status register
- set condition
- signal
- 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
Links
- 238000000034 method Methods 0.000 claims description 6
- 238000011156 evaluation Methods 0.000 abstract 1
- 238000007796 conventional method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000000605 extraction Methods 0.000 description 2
- 239000000470 constituent Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はセット条件を記憶する状
態レジスタの構成方式、より具体的にはたとえばコンピ
ュータシステムなどに有利に適用される状態レジスタ構
成方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of arranging a status register for storing a set condition, and more particularly to a method of arranging a status register advantageously applied to a computer system or the like.
【0002】[0002]
【従来の技術】図2および図3は、4ビット構成の従来
技術における状態レジスタの構成例である。図2の構成
例において、符号101〜104は状態レジスタ200
のセット条件信号、符号211〜214は状態レジスタ
200を構成するセット条件を記憶するフリップフロッ
プである。また、符号121はセット条件を出力するデ
ータバス、符号131〜134は状態レジスタ200が
保持している値(セット条件)をデータバス121に読
み出すためのゲート、符号241は状態レジスタ100
の初期化のためのリセット信号、符号151は状態レジ
スタ100の読み出し信号である。2. Description of the Related Art FIGS. 2 and 3 show an example of the structure of a status register of a conventional 4-bit structure. In the configuration example of FIG. 2, reference numerals 101 to 104 denote status registers 200.
The set condition signal, reference numerals 211 to 214, are flip-flops that store the set conditions that form the status register 200. Further, reference numeral 121 is a data bus for outputting a set condition, reference numerals 131 to 134 are gates for reading the value (set condition) held by the state register 200 to the data bus 121, and reference numeral 241 is the state register 100.
Is a reset signal for initializing, and reference numeral 151 is a read signal of the status register 100.
【0003】なんらかの手段でのリセット信号241の
入力による初期化の後、状態レジスタ200のセット条
件101〜104のいずれかが発生すると、その条件に
対応したフリップフロップ211〜214がセットされ
る。状態レジスタ200の読み出し信号151が入力さ
れると、状態レジスタ200の内容がデータバス121
に出力される。この時、それまでにセットされた全ての
状態が読み出され、その後必要ならば、状態レジスタ2
00はリセット信号241によりセットされる。After any of the setting conditions 101 to 104 of the status register 200 occurs after initialization by inputting the reset signal 241 by some means, the flip-flops 211 to 214 corresponding to the conditions are set. When the read signal 151 of the status register 200 is input, the content of the status register 200 is changed to the data bus 121.
Is output to. At this time, all the states set up to that point are read out, and if necessary thereafter, the state register 2
00 is set by the reset signal 241.
【0004】次に、4ビット構成の状態レジスタにおけ
る他の従来技術の構成例を図3に示す。なお、図3にお
いて、セット条件101〜104、データバス121、
ゲート131〜134および読み出し信号151は図2
と同じである。Next, FIG. 3 shows another example of the configuration of the prior art in the 4-bit configuration status register. In FIG. 3, the set conditions 101 to 104, the data bus 121,
The gates 131 to 134 and the read signal 151 are shown in FIG.
Is the same as.
【0005】図3の従来技術では、最新のセット条件の
みを記憶する状態レジスタの構成を示したものである。
すなわちこの従来技術では、セットタイミング信号36
1とセット許可信号381を入力して、これら信号によ
り入力したセット条件を記憶する4つのフリップフロッ
プ311〜314を有する。なお、セット許可信号38
1は、セット条件101〜104を入力してこれの論理
和をとるORゲート371より出力される。The prior art of FIG. 3 shows the structure of a status register that stores only the latest set condition.
That is, in this conventional technique, the set timing signal 36
It has four flip-flops 311 to 314 which receive 1 and the set permission signal 381 and store the set conditions input by these signals. The set permission signal 38
1 is output from the OR gate 371 which inputs the set conditions 101 to 104 and takes the logical sum of them.
【0006】図3において、なんらかの手段でのリセッ
ト信号241の入力による初期化の後、状態レジスタ3
00のセット条件101〜104のいずれかが発生する
と、状態レジスタ300のセット許可信号381が発生
してフリップフロップ311〜314はセット可能な状
態となる。そして、セットタイミング信号361が入力
されると、条件に対応したフリップフロップ311〜3
14に“1”がセットされる。In FIG. 3, after initialization by inputting the reset signal 241 by some means, the status register 3
When any of the set conditions 101 to 104 of 00 occurs, the set permission signal 381 of the state register 300 is generated and the flip-flops 311 to 314 are settable. Then, when the set timing signal 361 is input, the flip-flops 311 to 311 corresponding to the conditions are input.
“1” is set in 14.
【0007】以後、セット条件が発生する都度、状態レ
ジスタ300は4ビット分とも再設定を行い、常に最新
のセット条件による状態のみを保持する。状態レジスタ
300の読み出し信号151が入力されると、状態レジ
スタ300の記憶内容がデータバス121に出力され
る。このとき、最後にセットされた状態が読み出され、
その後必要ならば、状態レジスタ300はリセット信号
241によりリセットされる。After that, each time a set condition occurs, the state register 300 resets all four bits, and always holds only the state according to the latest set condition. When the read signal 151 of the status register 300 is input, the storage content of the status register 300 is output to the data bus 121. At this time, the last set state is read out,
Then, if necessary, the status register 300 is reset by the reset signal 241.
【0008】[0008]
【発明が解決しようとする課題】しかしながらこれら従
来技術において、図2に示した技術では状態レジスタ2
00を読み出すとき、それまでの各フリップフロップ2
11〜214が記憶したセット条件が全て同時に読み出
されるため、その発生順序や重複発生を知ることができ
ないという欠点があった。また、図3に示した従来技術
では、セット条件を新たに入力する度に状態レジスタ3
00のフリップフロップ311〜314の再設定を行う
ため、常に最新のセット条件しか知ることができないと
いう問題があった。このように従来の状態レジスタで
は、多くの情報を入手することができず、近年の複雑な
コンピュータシステムに十分対応できないという問題が
あった。However, in these conventional techniques, the state register 2 is used in the technique shown in FIG.
When reading 00, each flip-flop 2 up to that point
Since all the set conditions stored in 11 to 214 are read out at the same time, there is a disadvantage that the order of occurrence and the occurrence of duplication cannot be known. Further, in the conventional technique shown in FIG. 3, every time a set condition is newly input, the state register 3
Since the flip-flops 311 to 314 of 00 are reset, there is a problem that only the latest set condition can be always known. As described above, the conventional status register has a problem that it is not possible to obtain a lot of information and it is not possible to sufficiently cope with a complicated computer system in recent years.
【0009】本発明はこのような従来技術の欠点を解消
し、多くの情報を得ることができる情報価値の高い状態
レジスタ構成方式を提供することを目的とする。An object of the present invention is to solve the above-mentioned drawbacks of the prior art and to provide a state register configuration system having a high information value and capable of obtaining a large amount of information.
【0010】[0010]
【課題を解決するための手段】本発明は上述の課題を解
決するために、セット条件を発生順序に従って記憶保持
して最後に記憶したセット条件から順に出力する記憶素
子を備えた状態レジスタを有する。この状態レジスタ
は、セット条件信号の何れかが発生したことを示すセッ
ト許可信号を入力すると、その都度その時発生したセッ
ト条件を記憶保持し、記憶したセット条件を取り出す旨
の制御信号を入力すると、最新の記憶内容から順番に記
憶保持した内容を出力し、当該出力したセット条件を入
力する前の状態に戻る。In order to solve the above-mentioned problems, the present invention has a status register having a storage element for storing and holding set conditions according to the order of occurrence and outputting sequentially from the last stored set condition. . When a set permission signal indicating that one of the set condition signals is generated is input to this status register, the set condition generated at that time is stored and held, and when a control signal for extracting the stored set condition is input, The stored contents are output in order from the latest stored contents, and the state before inputting the output set conditions is returned.
【0011】[0011]
【作用】本発明によれば、セット条件信号のいずれかが
発生すると、そのときの複数のセット条件信号の内容を
発生順序に従って記憶保持する。記憶保持されたセット
状態の読み出しを行う旨の読み出し信号を入力すると、
最後に記憶保持されたセット状態をデータバスに出力さ
れる。そして、データバスに出力されたセット状態の読
み出しが完了すると、このセット状態の記憶内容を破棄
し、このセット状態を記憶保持する前の状態に戻る。According to the present invention, when any of the set condition signals is generated, the contents of the plurality of set condition signals at that time are stored and held in the order of generation. When a read signal to read the stored state stored is input,
The set state last stored and held is output to the data bus. Then, when the reading of the set state output to the data bus is completed, the stored contents of the set state are discarded and the state before storing and holding the set state is restored.
【0012】[0012]
【実施例】次に添付図面を参照して本発明による状態レ
ジスタ構成方式の実施例を詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of a status register configuration system according to the present invention will be described in detail with reference to the accompanying drawings.
【0013】図1は本発明による状態レジスタ構成方式
を、4ビット構成の状態レジスタに適用したときの実施
例を示す機能ブロック図である。なお、本実施例におい
て、従来技術と同じ構成要素、すなわちセット条件10
1〜104、データバス121、ゲート131〜134
および読み出し信号151には同一の符号を記し、重複
する説明はここでは省略する。FIG. 1 is a functional block diagram showing an embodiment in which the status register configuration system according to the present invention is applied to a 4-bit status register. In the present embodiment, the same constituent element as that of the conventional technique, that is, the set condition 10
1 to 104, data bus 121, gates 131 to 134
The same symbols are given to the read signal 151 and the read signal 151, and the duplicated description is omitted here.
【0014】本実施例では、4つのセット条件信号10
1〜104を入力する状態レジスタ100、このセット
条件信号101〜104の論理和を取りセット許可信号
181を状態レジスタ100に出力するORゲート17
1および状態レジスタ100に格納されたセット条件を
出力するためのゲート131〜134により構成されて
いる。In this embodiment, four set condition signals 10
An OR gate 17 that inputs the status register 100 to which 1 to 104 are input and the logical sum of these set condition signals 101 to 104 and outputs a set permission signal 181 to the status register 100
1 and gates 131 to 134 for outputting the set condition stored in the state register 100.
【0015】状態レジスタ100は、最後にセットした
データを最初に読み出せる構造を有する記憶素子、たと
えばLIFO(Last In First Out )で構成される。状
態レジスタ100はまた、セット条件信号101〜10
4をそれぞれ入力する入力端子DI0〜DI4、セット
条件をゲート131〜134にそれぞれ出力するDO0
〜DO4、セット許可信号181を入力する制御端子S
ETEN、セットタイミング信号161を入力する入力
端子SETTIMを有する。The status register 100 is composed of a storage element having a structure capable of reading the last set data first, for example, a LIFO (Last In First Out). The status register 100 also includes set condition signals 101-10.
4 input terminals DI0 to DI4, and DO0 outputting set conditions to the gates 131 to 134, respectively.
~ DO4, control terminal S for inputting the set permission signal 181
It has an input terminal SETTIM for inputting ETEN and the set timing signal 161.
【0016】状態レジスタ100はさらに、LIFOの
記憶状態(出力)をひとつ前の状態へ戻すための取り出
し制御信号191を入力する制御端子POP、各LIF
Oの記憶内容をリセットするリセット信号141を入力
する制御端子RESETおよび格納したセット条件がレ
ジスタ100内に無いことを示す空き表示信号を出力す
る空き表示信号出力端子EMPTYを備えている。The status register 100 further includes a control terminal POP for inputting a take-out control signal 191 for returning the storage status (output) of the LIFO to the previous status, and each LIF.
A control terminal RESET for inputting a reset signal 141 for resetting the stored contents of O and an empty display signal output terminal EMPTY for outputting an empty display signal indicating that the stored set condition is not in the register 100 are provided.
【0017】状態レジスタ100は、セット状態を発生
順に所定の数記憶可能な論理的に4つのLIFOを有
し、これらLIFOはそれぞれセット条件信号を入力す
る入力端子DI0〜DI4とこれに対応する出力端子D
O0〜DO4に接続されている。The state register 100 has four logically four LIFOs capable of storing a predetermined number of set states in the order of occurrence, and these LIFOs respectively input terminals DI0 to DI4 for inputting a set condition signal and outputs corresponding thereto. Terminal D
It is connected to O0 to DO4.
【0018】このような状態レジスタ100を構成する
各LIFOの概念を図4に示す。各LIFOは、状態レ
ジスタ100にセット許可信号181を入力すると、セ
ットタイミング信号161によりその時発生したセット
条件の有無を入力端子DI0〜DI4より入力し、最初
に発生したセット条件400−1が一番奥に格納され
る。以後、セット許可信号181を入力する毎に新たな
セット条件が順次つみ上げられていく。FIG. 4 shows the concept of each LIFO constituting the status register 100. When each LIFO inputs the set permission signal 181 to the status register 100, the presence or absence of the set condition generated at that time by the set timing signal 161 is input from the input terminals DI0 to DI4, and the set condition 400-1 generated first is the highest. Stored in the back. After that, each time the set permission signal 181 is input, new set conditions are successively picked up.
【0019】そして、状態レジスタの読み出し信号が各
ゲート131〜134に出力されると、最新に格納した
セット条件400−m+2をこれらゲートに出力する。
また、取り出し制御信号191を入力すると、最新に入
力したセット条件400−m+2は廃棄され、次に読み
出し信号が各ゲート131〜134に出力されると、セ
ット条件400−m+1がこれらゲートに出力される。When the read signal of the status register is output to each of the gates 131 to 134, the most recently stored set condition 400-m + 2 is output to these gates.
When the fetch control signal 191 is input, the most recently input set condition 400-m + 2 is discarded, and when the read signal is output to each of the gates 131 to 134 next, the set condition 400-m + 1 is output to these gates. It
【0020】次に図1に戻って本実施例の一連の動作を
順に説明する。なんらかの手段でのリセット信号141
の入力による初期化の後、状態レジスタ100のセット
条件101〜104のいずれかが発生すると、その条件
に応じたビットを“1”として状態レジスタ100にデ
ータワード(4ビット)が書き込まれる。以後、セット
条件が発生する都度、状態レジスタ100に新しいデー
タワードの書き込みが行われ、それまでのセット条件に
よる状態がその発生順序に従って保持される。なお、セ
ット条件が発生しなかったLIFOにはビット“0”が
格納される。Next, returning to FIG. 1, a series of operations of this embodiment will be described in order. Reset signal 141 by some means
When any of the set conditions 101 to 104 of the status register 100 occurs after the initialization by the input of, the data word (4 bits) is written in the status register 100 with the bit corresponding to the condition set to "1". After that, each time a set condition occurs, a new data word is written to the state register 100, and the states according to the set conditions up to that point are held in the order of occurrence. The bit "0" is stored in the LIFO for which the set condition has not occurred.
【0021】状態レジスタ100の読み出し信号151
が入力されると、状態レジスタ100の内容のうち、最
後に書き込まれたデータが、読み出しゲート131〜1
34を通してデータバス121に出力される。データの
読み出し終了時に発生する読み出し完了信号は、LIF
O取り出し制御信号191として状態レジスタ100に
入力され、状態レジスタ100は現在保持している最も
新しい(最後に書かれた)データを破棄して、ひとつ前
のセット条件を保持した状態に戻る。Read signal 151 of status register 100
Is input, the last written data of the contents of the status register 100 is read out by the read gates 131 to 1.
It is output to the data bus 121 through 34. The read completion signal generated at the end of data read is the LIF
The O extraction control signal 191 is input to the state register 100, and the state register 100 discards the newest (last written) data currently held and returns to the state in which the previous set condition is held.
【0022】この状態で、新たに状態レジスタ100の
読み出し信号151を入力することにより、前回の読み
出し時のデータよりひとつ前に書き込まれたデータを読
み出すことができる。これを状態レジスタ100からの
空き表示信号192を検出するまで繰り返すことによ
り、セット条件の発生状態を、時間の経過をさかのぼり
つつ知ることができる。In this state, by newly inputting the read signal 151 of the state register 100, it is possible to read the data written immediately before the data read at the previous time. By repeating this until the empty display signal 192 from the status register 100 is detected, the occurrence state of the set condition can be known while tracing back the passage of time.
【0023】なお、ここで説明した実施例は本発明を説
明するためのものであって、本発明は必ずしもこれに限
定されるものではなく、本発明の精神を逸脱することな
く当業者が可能な変形または修正は本発明の範疇に含ま
れる。すなわち、本実施例ではLIFOを論理的に4つ
あるとしたが物理的には必ずしも4つ必要なわけではな
く、また4つに限定されるものでもない。また、同等の
機能を有する記憶素子であれば特にLIFOに限定され
るものではなく、他の記憶素子により状態レジスタ10
0を構成することも可能である。It should be noted that the embodiments described here are for explaining the present invention, and the present invention is not necessarily limited to this, and those skilled in the art can do it without departing from the spirit of the present invention. Such variations or modifications are included in the scope of the present invention. That is, in the present embodiment, there are logically four LIFOs, but four LIFOs are not necessarily required physically, and the number of LIFOs is not limited to four. Further, as long as it is a storage element having an equivalent function, it is not particularly limited to the LIFO, and the status register 10 may be replaced by another storage element.
It is also possible to configure 0.
【0024】[0024]
【発明の効果】このように本発明によれば、状態レジス
タ100を複数の記憶素子で構成し、セット条件の発生
のたびにセットするレジスタを変えることができるよう
にしたので、これまでの構成による場合と比較して、状
態レジスタからより多くの情報を入手することが可能に
なる。As described above, according to the present invention, the status register 100 is composed of a plurality of storage elements, and the register to be set can be changed every time a set condition is generated. More information can be obtained from the status register as compared to.
【図1】本発明による状態レジスタ構成方式の実施例を
示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of a status register configuration system according to the present invention.
【図2】従来技術における状態レジスタ構成方式を示す
構成図である。FIG. 2 is a configuration diagram showing a state register configuration method in a conventional technique.
【図3】従来技術における状態レジスタ構成方式を示す
構成図である。FIG. 3 is a configuration diagram showing a state register configuration method in a conventional technique.
【図4】図1に示した実施例における状態レジスタを構
成する記憶素子の概念図である。FIG. 4 is a conceptual diagram of a memory element forming a status register in the embodiment shown in FIG.
100 状態レジスタ 101〜104 セット条件信号 131〜134 ゲート 141 リセット信号 151 読み出し信号 161 セットタイミング信号 171 ORゲート 181 セット許可信号 191 取り出し制御信号 192 空き表示信号 100 status register 101 to 104 set condition signal 131 to 134 gate 141 reset signal 151 read signal 161 set timing signal 171 OR gate 181 set permission signal 191 extraction control signal 192 empty display signal
Claims (1)
憶したセット状態を読み出し信号によりデータバスに出
力する状態レジスタの構成方式において、 前記セット条件信号のいずれかが発生すると、そのとき
の複数のセット条件信号の内容を発生順序に従って記憶
保持し、 前記記憶保持されたセット状態の読み出しを行う旨の前
記読み出し信号を入力すると、最後に記憶保持されたセ
ット状態を前記データバスに出力し、 前記データバスに出力されたセット状態の読み出しが完
了すると、このセット状態の記憶内容を破棄し、このセ
ット状態を記憶保持する前の状態に戻ることを特徴とす
る状態レジスタの構成方式。1. In a configuration method of a status register for storing a plurality of set condition signals and outputting the stored set status to a data bus by a read signal, when any one of the set condition signals occurs, a plurality of set condition signals at that time are generated. The content of the set condition signal is stored and held according to the generation order, and when the read signal indicating that the stored and stored set state is read is input, the set state that is finally stored and output is output to the data bus, When the reading of the set state output to the data bus is completed, the stored contents of the set state are discarded and the state before the storage and holding of the set state is returned to.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5118548A JPH06332702A (en) | 1993-05-20 | 1993-05-20 | State register constitution system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5118548A JPH06332702A (en) | 1993-05-20 | 1993-05-20 | State register constitution system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06332702A true JPH06332702A (en) | 1994-12-02 |
Family
ID=14739317
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5118548A Pending JPH06332702A (en) | 1993-05-20 | 1993-05-20 | State register constitution system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06332702A (en) |
-
1993
- 1993-05-20 JP JP5118548A patent/JPH06332702A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5079693A (en) | Bidirectional FIFO buffer having reread and rewrite means | |
| US5088061A (en) | Routing independent circuit components | |
| JP2916045B2 (en) | FIFO module | |
| US4053871A (en) | Method and system for the iterative and simultaneous comparison of data with a group of reference data items | |
| JP2702181B2 (en) | FIFO memory control circuit | |
| JP3156813B2 (en) | Buffer control circuit | |
| KR100902765B1 (en) | First-in, first-out memory system and method | |
| US6802036B2 (en) | High-speed first-in-first-out buffer | |
| US20020080672A1 (en) | First-in first-out memory device and method of generating flag signal in the same | |
| JPH06332702A (en) | State register constitution system | |
| JP3013800B2 (en) | Asynchronous FIFO circuit | |
| US6397272B1 (en) | Interruption processing circuit for receiving and storing data associated with an event | |
| RU2020554C1 (en) | Data input device | |
| US20020112141A1 (en) | Time division finite state machine | |
| JPS6362083A (en) | Projection data generation method | |
| SU1725237A1 (en) | Device for selecting object attributes | |
| JPH10112178A (en) | FIFO memory and method of manufacturing the same | |
| SU610098A1 (en) | Device for preparing data for input to computer | |
| JP2580877B2 (en) | Light module for data flow calculator | |
| SU1472909A1 (en) | Dynamic addressing memory | |
| SU1509871A1 (en) | Device for sorting information | |
| JPH0748309B2 (en) | Symbol string matching memory and its cascade connection method | |
| SU1075311A1 (en) | Control unit for bubble memory | |
| JP3114177B2 (en) | Error correction circuit | |
| SU1001478A1 (en) | Majority-redundancy device |